diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-22 21:02:49 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-22 21:02:49 +0100 |
commit | 79cdf81e2fb717ea4372a55170d16800cdbddf23 (patch) | |
tree | 42b91b69ef02a17c49de10944d249526d63698f6 /python/guestfs.py | |
parent | d7ffe439e8ec5304a1a2d1eb591d348c4ab84f38 (diff) | |
download | libguestfs-79cdf81e2fb717ea4372a55170d16800cdbddf23.tar.gz libguestfs-79cdf81e2fb717ea4372a55170d16800cdbddf23.tar.xz libguestfs-79cdf81e2fb717ea4372a55170d16800cdbddf23.zip |
Generated code for new mount_* commands.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r-- | python/guestfs.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py index e5f43d1f..7515aa75 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1055,3 +1055,23 @@ class GuestFS: """ return libguestfsmod.tgz_out (self._o, directory, tarball) + def mount_ro (self, device, mountpoint): + u"""This is the same as the "g.mount" command, but it mounts + the filesystem with the read-only (*-o ro*) flag. + """ + return libguestfsmod.mount_ro (self._o, device, mountpoint) + + def mount_options (self, options, device, mountpoint): + u"""This is the same as the "g.mount" command, but it allows + you to set the mount options as for the mount(8) *-o* + flag. + """ + return libguestfsmod.mount_options (self._o, options, device, mountpoint) + + def mount_vfs (self, options, vfstype, device, mountpoint): + u"""This is the same as the "g.mount" command, but it allows + you to set both the mount options and the vfstype as for + the mount(8) *-o* and *-t* flags. + """ + return libguestfsmod.mount_vfs (self._o, options, vfstype, device, mountpoint) + |