1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-11-01 00:51:08 +03:00
Commit Graph

247 Commits

Author SHA1 Message Date
Kay Sievers
7106902dce volume_id: update btrfs 2008-11-21 07:26:09 +01:00
Kay Sievers
405d283043 vol_id: if regular files are probed, use stat() for the size value 2008-11-21 05:02:02 +01:00
Kay Sievers
2b22881cae volume_id: remove unused usage types 2008-11-21 04:22:04 +01:00
Kay Sievers
361b8a7423 volume_id: update btrfs magic 2008-11-18 19:14:37 +01:00
Kay Sievers
4dfe61c966 vol_id: clarify error message 2008-11-14 00:57:34 +01:00
Kay Sievers
510af2e939 volume_id: ntfs - mark as no other fs must match 2008-11-13 21:44:28 +01:00
Kay Sievers
8c7630b704 fix spelling in comment 2008-11-13 20:46:25 +01:00
Kay Sievers
387a827120 volume_id: fat - accept empty FAT32 fsinfo signature 2008-11-13 19:40:24 +01:00
Kay Sievers
779d2d851e volume_id: always check for all filesystem types and skip conflicting results
We probe for all known filesystems to find conflicting signatures. If
we find multiple matching signatures and one of the detected filesystem
types claims that it can not co-exist with any other filesystem type,
we do not return a probing result.

We can not afford to mount a volume with the wrong filesystem code and
possibly corrupt it. Linux ssytems have the problem of dozens of possible
filesystem types, and volumes with left-over signatures from former
filesystem types. Invalid signature need to be removed from the volume
to make the filesystem detection successful.

We do not want to read that many bytes from probed floppies, skip volumes
smaller than a usual floppy disk.
2008-11-13 19:34:41 +01:00
Karel Zak
3e39ff6365 volume_id: fat - move check for msdos signature (0x55 0xaa)
Make the msdos signature (0x55 0xaa) at 510 and 511 optional when
the standard FAT magic string is present.
2008-11-13 17:32:14 +01:00
Kay Sievers
92f4313665 unify string replacement 2008-11-05 21:49:52 +01:00
Kay Sievers
0d5076dd92 volume_id: btrfs update 2008-11-05 02:22:07 +01:00
Matthias Koenig
fcd070d010 volume_id: swap - larger PAGE_SIZE support 2008-10-22 11:45:27 +02:00
Alan Jenkins
b29a5e4ab9 use more appropriate alternatives to malloc()
Use calloc to request cleared memory instead.
Kernel and libc conspire to make this more efficient.

Also, replace one malloc() + strcpy() with strdup().

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21 12:54:57 +02:00
Kay Sievers
d56f94d168 volume_id: btrfs - update magic to latest disk format 2008-10-16 17:10:47 +02:00
Kay Sievers
f183b6ed76 libudev: add global property list 2008-10-16 13:51:29 +02:00
Kay Sievers
f4700eb8a0 vol_id: update README 2008-10-13 03:34:37 +02:00
Steven Whitehouse
2f66462982 volume_id: support for GFS2 UUIDs 2008-10-13 03:23:31 +02:00
Kay Sievers
6a328058e0 volume_id: more fat debugging 2008-10-06 18:17:05 +02:00
Kay Sievers
3cbc96e3be volume_id: add more vfat debugging information 2008-10-06 12:17:47 +02:00
Kay Sievers
0565a00a4c volume_id: use PRIu64i, PRIx64 macros 2008-10-03 18:24:04 +02:00
Kay Sievers
99370c2152 volume_id: add btrfs 2008-10-03 17:23:12 +02:00
Kay Sievers
59315eeae4 volume_id: better DDF raid detection 2008-10-03 15:01:39 +02:00
Kay Sievers
ab7430c5d8 vol_id: always use the safe string versions for unencoded label and uuid 2008-10-03 14:58:02 +02:00
Kay Sievers
d4f687c013 vol_id: fix logging glue 2008-10-03 14:56:54 +02:00
Kay Sievers
3ab8ebf572 volume_id: add dbg() as noop to check for compile errors 2008-10-03 14:50:57 +02:00
Kay Sievers
22c89d3fd7 vol_id: add size= option 2008-10-03 11:42:47 +02:00
Kay Sievers
e598c5738c libudev: get rid of selinux
"Hello world!" linked against libselinux parses /proc/mounts and
whatever else on startup, even when the lib is not needed at all.
Not funny! Get rid of that thing where it's not absolutely needed.
2008-10-02 18:48:40 +02:00
Kay Sievers
033e9f8cde use no_argument, required_argument, optional_argument in longopts 2008-10-02 16:49:05 +02:00
Kay Sievers
842dacb76f volume_id: hpfs - read label and uuid 2008-10-02 15:16:11 +02:00
Kay Sievers
4dea370d49 build: include Makefile.am.inc in all Makefile.am
Many thanks to Chris Spiegel for finding the still current vol_id
non-large-file-access bug, because of not including config.h.
2008-10-01 18:02:39 +02:00
Kay Sievers
d0f398bc25 gitignore: move *.8 to subdirs 2008-09-29 05:03:43 +02:00
Kay Sievers
38f27948cd always include config.h from Makefile 2008-09-19 23:03:49 -07:00
Kay Sievers
c68a293678 vol_id: fix lib logging glue 2008-09-16 00:40:47 -07:00
Kay Sievers
7525097713 extras: use libudev code 2008-09-10 18:24:39 +02:00
Kay Sievers
b2946df419 libudev: rename libudev-utils.c libudev-util.c 2008-09-10 17:12:33 +02:00
Kay Sievers
7a01f11afb libudev: get rid of udev_utils.c 2008-09-10 17:08:24 +02:00
Kay Sievers
b21b95d722 libudev: get rid of udev_sysfs.c 2008-09-10 14:29:07 +02:00
Kay Sievers
55e9959b15 update file headers 2008-09-10 02:40:42 +02:00
Kay Sievers
ef5c2d048c volume_id: merge util.h in libvolume_id-private.h 2008-09-10 02:31:11 +02:00
Kay Sievers
4f4b12c203 libudev: add selinux 2008-09-10 00:46:17 +02:00
Kay Sievers
e5931bb7d8 udevadm: add --version --help options to man page, hide them as commands 2008-09-07 14:48:33 +02:00
Kay Sievers
f640b32fdd vol_id: add --debug option 2008-09-06 16:37:00 +02:00
Kay Sievers
7643819062 volume_id: linux_raid - fix logic for volumes with size == 0 2008-09-06 16:23:21 +02:00
Kay Sievers
7d563a17f3 use libudev code, unify logging, pass udev context around everywhere 2008-09-06 15:45:31 +02:00
Kay Sievers
c2175d2524 volume_id: fail on undefined __BYTE_ORDER 2008-09-01 16:39:34 +02:00
Kay Sievers
ac877d7cf4 volume_id: hfs - calculate proper uuid 2008-08-31 12:20:24 +02:00
Kay Sievers
550d5c2879 volume_id: remove left-over fd close() 2008-08-29 17:06:08 +02:00
Kay Sievers
2603474ff9 volume_id: remove deprecated functions and bump major version 2008-08-28 23:39:41 +02:00
Kay Sievers
f46a8a98a7 vol_id: make the --offset= argument optional 2008-08-22 10:04:55 +02:00