summaryrefslogtreecommitdiffstats
path: root/python/guestfs.py
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-06-08 17:44:18 +0100
committerRichard Jones <rjones@redhat.com>2009-06-08 17:44:18 +0100
commit460d139e6a52da67a4f1947035b1978610349f78 (patch)
tree798177aa71bc9615074cd1a9a351ff4b38165c7c /python/guestfs.py
parent3de234656bc61a2d35b0f1a9ccb1e6ef7535166b (diff)
downloadlibguestfs-460d139e6a52da67a4f1947035b1978610349f78.tar.gz
libguestfs-460d139e6a52da67a4f1947035b1978610349f78.tar.xz
libguestfs-460d139e6a52da67a4f1947035b1978610349f78.zip
Generated code for ntfs_3g_probe command.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r--python/guestfs.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py
index dd9fa58c..2600ff2a 100644
--- a/python/guestfs.py
+++ b/python/guestfs.py
@@ -1604,3 +1604,20 @@ class GuestFS:
"""
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)
+