X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fguestfs.py;h=b2c3e49a7b0f193da68920ca249420dcb0819c60;hb=072567882711725190593f2196e658d5ebf6d5ca;hp=e5f43d1ffa0bf5627995d245776e0bc1209e3e9d;hpb=43db06ea892cc157324a6b837ca430607441c509;p=libguestfs.git diff --git a/python/guestfs.py b/python/guestfs.py index e5f43d1..b2c3e49 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1055,3 +1055,34 @@ 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) + + def debug (self, subcmd, extraargs): + u"""The "g.debug" command exposes some internals of + "guestfsd" (the guestfs daemon) that runs inside the + qemu subprocess. + + There is no comprehensive help for this command. You + have to look at the file "daemon/debug.c" in the + libguestfs source to find out what you can do. + """ + return libguestfsmod.debug (self._o, subcmd, extraargs) +