From: Richard Jones Date: Wed, 28 Jul 2010 22:11:38 +0000 (+0100) Subject: New APIs: findfs-label and findfs-uuid X-Git-Tag: 1.5.3~5 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=65e9ac4595fbace8f301030469932be518456246;hp=65e9ac4595fbace8f301030469932be518456246 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: > vfs-uuid /dev/vda1 277dd61c-bf34-4253-a8dc-df500a05e7df > findfs-uuid 277dd61c-bf34-4253-a8dc-df500a05e7df /dev/vda1 > vfs-label /dev/vda1 /boot > findfs-label /boot /dev/vda1 > vfs-uuid /dev/VolGroup00/LogVol00 40ce7c36-82ce-4a12-a99d-48f5e054162c > findfs-uuid 40ce7c36-82ce-4a12-a99d-48f5e054162c /dev/mapper/VolGroup00-LogVol00 > findfs-uuid 12345678 libguestfs: error: findfs_uuid: findfs: unable to resolve 'UUID=12345678' ---