summaryrefslogtreecommitdiffstats
path: root/perl/lib/Sys
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-27 13:41:59 +0100
committerRichard Jones <rjones@redhat.com>2009-04-27 13:41:59 +0100
commitb03ee3675bed8d739ae722ed8c030ae02b3cb0ed (patch)
treef5023b4c49af30258b76f187fbbcb11f5dbad708 /perl/lib/Sys
parentafca1dba5eeb989c231a22df26e48f0967387547 (diff)
downloadlibguestfs-b03ee3675bed8d739ae722ed8c030ae02b3cb0ed.tar.gz
libguestfs-b03ee3675bed8d739ae722ed8c030ae02b3cb0ed.tar.xz
libguestfs-b03ee3675bed8d739ae722ed8c030ae02b3cb0ed.zip
Generated code for ext2 UUID and label functions.
Diffstat (limited to 'perl/lib/Sys')
-rw-r--r--perl/lib/Sys/Guestfs.pm29
1 files changed, 29 insertions, 0 deletions
diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm
index bd2d9616..90384da8 100644
--- a/perl/lib/Sys/Guestfs.pm
+++ b/perl/lib/Sys/Guestfs.pm
@@ -472,6 +472,16 @@ particular that the filename is not prepended to the output
Get the autosync flag.
+=item $label = $h->get_e2label ($device);
+
+This returns the ext2/3/4 filesystem label of the filesystem on
+C<device>.
+
+=item $uuid = $h->get_e2uuid ($device);
+
+This returns the ext2/3/4 filesystem UUID of the filesystem on
+C<device>.
+
=item $path = $h->get_path ();
Return the current search path.
@@ -758,6 +768,25 @@ actions using the low-level API.
For more information on states, see L<guestfs(3)>.
+=item $h->set_e2label ($device, $label);
+
+This sets the ext2/3/4 filesystem label of the filesystem on
+C<device> to C<label>. Filesystem labels are limited to
+16 characters.
+
+You can use either C<$h-E<gt>tune2fs_l> or C<$h-E<gt>get_e2label>
+to return the existing label on a filesystem.
+
+=item $h->set_e2uuid ($device, $uuid);
+
+This sets the ext2/3/4 filesystem UUID of the filesystem on
+C<device> to C<uuid>. The format of the UUID and alternatives
+such as C<clear>, C<random> and C<time> are described in the
+L<tune2fs(8)> manpage.
+
+You can use either C<$h-E<gt>tune2fs_l> or C<$h-E<gt>get_e2uuid>
+to return the existing UUID of a filesystem.
+
=item $h->set_path ($path);
Set the path that libguestfs searches for kernel and initrd.img.