From 896079e29b4d49c6c18ac3316a94bfbe2f307648 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Jun 2009 14:01:40 +0100 Subject: Generated code for the virtio_blk change. --- python/guestfs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/guestfs.py b/python/guestfs.py index bb9bc087..ad44df7f 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -197,7 +197,7 @@ class GuestFS: to modify the image). This is equivalent to the qemu parameter "-drive - file=filename,cache=off". + file=filename,cache=off,if=virtio". Note that this call checks for the existence of "filename". This stops you from specifying other types @@ -234,7 +234,7 @@ class GuestFS: although qemu can support this. This is equivalent to the qemu parameter "-drive - file=filename,snapshot=on". + file=filename,snapshot=on,if=virtio". Note that this call checks for the existence of "filename". This stops you from specifying other types @@ -1948,6 +1948,10 @@ class GuestFS: "-rwxr-xr-x", and 002 which creates new files with permissions like "-rw-rw-r--" or "-rwxrwxr-x". + The default umask is 022. This is important because it + means that directories and device nodes will be created + with 0644 or 0755 mode even if you specify 0777. + See also umask(2), "g.mknod", "g.mkdir". This call returns the previous umask. -- cgit