diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-27 13:41:59 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-27 13:41:59 +0100 |
commit | b03ee3675bed8d739ae722ed8c030ae02b3cb0ed (patch) | |
tree | f5023b4c49af30258b76f187fbbcb11f5dbad708 /python/guestfs.py | |
parent | afca1dba5eeb989c231a22df26e48f0967387547 (diff) | |
download | libguestfs-b03ee3675bed8d739ae722ed8c030ae02b3cb0ed.tar.gz libguestfs-b03ee3675bed8d739ae722ed8c030ae02b3cb0ed.tar.xz libguestfs-b03ee3675bed8d739ae722ed8c030ae02b3cb0ed.zip |
Generated code for ext2 UUID and label functions.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r-- | python/guestfs.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py index 1ebaa74a..ab0154f2 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1113,3 +1113,36 @@ class GuestFS: """ return libguestfsmod.pvremove (self._o, device) + def set_e2label (self, device, label): + u"""This sets the ext2/3/4 filesystem label of the + filesystem on "device" to "label". Filesystem labels are + limited to 16 characters. + + You can use either "g.tune2fs_l" or "g.get_e2label" to + return the existing label on a filesystem. + """ + return libguestfsmod.set_e2label (self._o, device, label) + + def get_e2label (self, device): + u"""This returns the ext2/3/4 filesystem label of the + filesystem on "device". + """ + return libguestfsmod.get_e2label (self._o, device) + + def set_e2uuid (self, device, uuid): + u"""This sets the ext2/3/4 filesystem UUID of the filesystem + on "device" to "uuid". The format of the UUID and + alternatives such as "clear", "random" and "time" are + described in the tune2fs(8) manpage. + + You can use either "g.tune2fs_l" or "g.get_e2uuid" to + return the existing UUID of a filesystem. + """ + return libguestfsmod.set_e2uuid (self._o, device, uuid) + + def get_e2uuid (self, device): + u"""This returns the ext2/3/4 filesystem UUID of the + filesystem on "device". + """ + return libguestfsmod.get_e2uuid (self._o, device) + |