New APIs: findfs-label and findfs-uuid
authorRichard Jones <rjones@redhat.com>
Wed, 28 Jul 2010 22:11:38 +0000 (23:11 +0100)
committerRichard Jones <rjones@redhat.com>
Tue, 17 Aug 2010 13:09:25 +0000 (14:09 +0100)
commit65e9ac4595fbace8f301030469932be518456246
tree5ddce5a558b5c6eb6b79498b93b89459f07e1e0d
parentad4cff2625651bda9de25de9aba96bdf213d0a0a
New APIs: findfs-label and findfs-uuid

These two calls wrap up the /sbin/findfs command, allowing you
to find a filesystem by only knowing its label or UUID.

This is especially useful when resolving LABEL=... or UUID=...
entries in /etc/fstab.

Sample guestfish session:

><fs> vfs-uuid /dev/vda1
277dd61c-bf34-4253-a8dc-df500a05e7df
><fs> findfs-uuid 277dd61c-bf34-4253-a8dc-df500a05e7df
/dev/vda1
><fs> vfs-label /dev/vda1
/boot
><fs> findfs-label /boot
/dev/vda1
><fs> vfs-uuid /dev/VolGroup00/LogVol00
40ce7c36-82ce-4a12-a99d-48f5e054162c
><fs> findfs-uuid 40ce7c36-82ce-4a12-a99d-48f5e054162c
/dev/mapper/VolGroup00-LogVol00
><fs> findfs-uuid 12345678
libguestfs: error: findfs_uuid: findfs: unable to resolve 'UUID=12345678'
daemon/Makefile.am
daemon/findfs.c [new file with mode: 0644]
po/POTFILES.in
src/MAX_PROC_NR
src/generator.ml