X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fguestfs.py;h=291af5d6b2203fde3dc22077b9f4bebe2480997d;hb=2dc9e8a858b62830d15a8186fe575eb7903d2171;hp=3cfc86a1e0f07bacb0641949892592743114fd25;hpb=62df226f26bd6ac3c481a7790eb89d760d2f0386;p=libguestfs.git diff --git a/python/guestfs.py b/python/guestfs.py index 3cfc86a..291af5d 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1154,12 +1154,21 @@ class GuestFS: which should have filesystem type "fstype". The returned integer is the status. See fsck(8) for the - list of status codes from "fsck", and note that multiple - status codes can be summed together. + list of status codes from "fsck". - It is entirely equivalent to running "fsck -a -t fstype - device". Note that checking or repairing NTFS volumes is - not supported (by linux-ntfs). + Notes: + + * Multiple status codes can be summed together. + + * A non-zero return code can mean "success", for + example if errors have been corrected on the + filesystem. + + * Checking or repairing NTFS volumes is not supported + (by linux-ntfs). + + This command is entirely equivalent to running "fsck -a + -t fstype device". """ return libguestfsmod.fsck (self._o, fstype, device) @@ -1174,3 +1183,28 @@ class GuestFS: """ return libguestfsmod.zero (self._o, device) + def grub_install (self, root, device): + u"""This command installs GRUB (the Grand Unified + Bootloader) on "device", with the root directory being + "root". + """ + return libguestfsmod.grub_install (self._o, root, device) + + def cp (self, src, dest): + u"""This copies a file from "src" to "dest" where "dest" is + either a destination filename or destination directory. + """ + return libguestfsmod.cp (self._o, src, dest) + + def cp_a (self, src, dest): + u"""This copies a file or directory from "src" to "dest" + recursively using the "cp -a" command. + """ + return libguestfsmod.cp_a (self._o, src, dest) + + def mv (self, src, dest): + u"""This moves a file from "src" to "dest" where "dest" is + either a destination filename or destination directory. + """ + return libguestfsmod.mv (self._o, src, dest) +