summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-06-30 14:01:40 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-07-01 15:40:13 +0100
commit896079e29b4d49c6c18ac3316a94bfbe2f307648 (patch)
treef1151bf3085ab574501f91d4d88d3bce31a93402 /perl
parent4513f2ec7b6aa843005ba886cdd1747b6ff00915 (diff)
downloadlibguestfs-896079e29b4d49c6c18ac3316a94bfbe2f307648.tar.gz
libguestfs-896079e29b4d49c6c18ac3316a94bfbe2f307648.tar.xz
libguestfs-896079e29b4d49c6c18ac3316a94bfbe2f307648.zip
Generated code for the virtio_blk change.
Diffstat (limited to 'perl')
-rw-r--r--perl/lib/Sys/Guestfs.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm
index 083a0172..cd26bedc 100644
--- a/perl/lib/Sys/Guestfs.pm
+++ b/perl/lib/Sys/Guestfs.pm
@@ -115,7 +115,8 @@ for whatever operations you want to perform (ie. read access if you
just want to read the image or write access if you want to modify the
image).
-This is equivalent to the qemu parameter C<-drive file=filename,cache=off>.
+This is equivalent to the qemu parameter
+C<-drive file=filename,cache=off,if=virtio>.
Note that this call checks for the existence of C<filename>. This
stops you from specifying other types of drive which are supported
@@ -134,7 +135,7 @@ handle is closed. We don't currently have any method to enable
changes to be committed, although qemu can support this.
This is equivalent to the qemu parameter
-C<-drive file=filename,snapshot=on>.
+C<-drive file=filename,snapshot=on,if=virtio>.
Note that this call checks for the existence of C<filename>. This
stops you from specifying other types of drive which are supported
@@ -1480,6 +1481,10 @@ with permissions like "-rw-r--r--" or "-rwxr-xr-x", and
C<002> which creates new files with permissions like
"-rw-rw-r--" or "-rwxrwxr-x".
+The default umask is C<022>. This is important because it
+means that directories and device nodes will be created with
+C<0644> or C<0755> mode even if you specify C<0777>.
+
See also L<umask(2)>, C<$h-E<gt>mknod>, C<$h-E<gt>mkdir>.
This call returns the previous umask.