summaryrefslogtreecommitdiffstats
path: root/mount/fsprobe.c
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: convert mount/ to module, rename to mount-deprecated/Karel Zak2012-06-261-142/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move obsolete lib/fsprobe to mount/Karel Zak2012-03-271-0/+142
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: generic blkid/volume_id wrapper, use blkid_evaluate_*Karel Zak2009-02-171-228/+0Star
| | | | | | | | | | | | | | | | | | * moves the generic libblkid/libvolume_id wrapper (fsprobe.c) from mount/ to lib/. We'll use the wrapper in cfdisk and fsck. The wrapper supports: - obsolete volume_id (udev) - obsolete libblkid (e2fsprogs) - libblkid (util-linux-ng) * mount, umount and swapon when linked against the new libblkid use - low-level probing code to read LABEL, UUID or FSTYPE from a device - high-level blkid_evaluate_spec() to convert LABEL/UUID to devname Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: move realpath.c code to lib/Karel Zak2009-02-111-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: clean up SPEC canonicalizationKarel Zak2008-12-191-0/+5
| | | | | | | | | | | | | | | | | | | | The SPEC (fsname) field in fstab/mtab could be: - devname - NAME=value (e.g LABEL, UUID) - directory (MS_MOVE, MS_BIND, ..) - pseudo-fs keyword (tmpfs, proc, sysfs, ...) the pseudo-fs keywords shouldn't be canonicalized to absolute path. It means we have to differ between SPEC and mountpoint (fs_dir). Unfortunately, the keywords was checked on wrong place. This patch move this check to the new function canonicalize_spec(). The fsname in mtab entry is canonicalized when the FS type is not pseudo filesystem. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: cleanup usage of _PATH_*Karel Zak2007-11-281-11/+11
| | | | | | | The macros MOUNTED and MNTTAB are deprecated. This patch standardize and consolidate all path macros and remove mount_paths.h. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use blkdev_get_size()Karel Zak2007-11-081-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: remove redundant fflushKarel Zak2007-10-251-3/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: cleanup canonicalize() usageKarel Zak2007-10-251-0/+1
| | | | | | | | | | | This patch renames canonicalize() to canonicalize_mountpoint() and moves this function to realpath.c where is all cannonicalize code. The canonicalize_mountpoint() function checks for special "none", "proc", "swap" pseudo mointpoint. The patch also adds a new generic canonicalize() function. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: needs to handle special mountprog even on guessed file systems.Karel Zak2007-06-281-4/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fsprobe: make fsprobe_get_devname functions more genericKarel Zak2007-05-171-0/+61
| | | | | | | | | | | The blkid supports NAME=value parsing, but use the library for this simple task is overkill. (The libblkid requires initialized blkid cache all time, for all calls.) This patch makes the fsprobe_get_devname_for_mounting() and fsprobe_get_devname() generic for all fsprobe implementations. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fsprobe: remove mount_guess_fstype.{c,h}Karel Zak2007-05-171-0/+164
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>