X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fguestfs.py;h=2600ff2ae52ef89d233c79ebb171ca68f50b8ee4;hb=65acb799d2c94e6628f647f2319eb8d16f29a0d5;hp=a75148e549c24791a30d921ea2654a57a8400fce;hpb=d1a1ab972bb22f4c38a21fcc73f81650aaa03b4e;p=libguestfs.git diff --git a/python/guestfs.py b/python/guestfs.py index a75148e..2600ff2 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1599,3 +1599,25 @@ class GuestFS: """ return libguestfsmod.e2fsck_f (self._o, device) + def sleep (self, secs): + u"""Sleep for "secs" seconds. + """ + return libguestfsmod.sleep (self._o, secs) + + def ntfs_3g_probe (self, rw, device): + u"""This command runs the ntfs-3g.probe(8) command which + probes an NTFS "device" for mountability. (Not all NTFS + volumes can be mounted read-write, and some cannot be + mounted at all). + + "rw" is a boolean flag. Set it to true if you want to + test if the volume can be mounted read-write. Set it to + false if you want to test if the volume can be mounted + read-only. + + The return value is an integer which 0 if the operation + would succeed, or some non-zero value documented in the + ntfs-3g.probe(8) manual page. + """ + return libguestfsmod.ntfs_3g_probe (self._o, rw, device) +