diff options
author | Karel Zak <kzak@redhat.com> | 2009-02-17 01:01:35 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-02-17 01:18:22 +0100 |
commit | 17f29d7bac86dc6e42c8ea728a2b7d1dc873b3dc (patch) | |
tree | 60261cb64ad167a98e193f43e7e9f23de2319349 /include | |
parent | 4b921045e57b61df78f552f76227d2a0d528426d (diff) | |
download | util-linux-old-17f29d7bac86dc6e42c8ea728a2b7d1dc873b3dc.tar.gz |
mount: generic blkid/volume_id wrapper, use blkid_evaluate_*
* 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>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsprobe.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/fsprobe.h b/include/fsprobe.h new file mode 100644 index 00000000..ed2cce14 --- /dev/null +++ b/include/fsprobe.h @@ -0,0 +1,23 @@ +#ifndef FSPROBE_H +#define FSPROBE_H +/* + * This is the generic interface for filesystem guessing libraries. + * Implementations are provided by + */ +extern void fsprobe_init(void); +extern void fsprobe_exit(void); + +extern int fsprobe_parse_spec(const char *spec, char **name, char **value); + +extern const char *fsprobe_get_devname_by_uuid(const char *uuid); +extern const char *fsprobe_get_devname_by_label(const char *label); +extern const char *fsprobe_get_devname_by_spec(const char *spec); + +extern const char *fsprobe_get_label_by_devname(const char *devname); +extern const char *fsprobe_get_uuid_by_devname(const char *devname); +extern const char *fsprobe_get_fstype_by_devname(const char *devname); + + +extern int fsprobe_known_fstype(const char *fstype); + +#endif /* FSPROBE_H */ |