X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfish-actions.pod;h=e635e548cdb420a22678a80bda5b396836db6ff5;hb=5186251f8f681f2ebb028423bb49a748861fd11e;hp=8ced2e14f8e96609f7110fcde5e77d470c4b8a67;hpb=0884d8bbae6d76a603ec1385ada2938f88981c5c;p=libguestfs.git diff --git a/guestfish-actions.pod b/guestfish-actions.pod index 8ced2e1..e635e54 100644 --- a/guestfish-actions.pod +++ b/guestfish-actions.pod @@ -26,7 +26,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. This stops you from specifying other types of drive which are supported @@ -47,7 +48,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. This stops you from specifying other types of drive which are supported @@ -1234,6 +1235,20 @@ Note that this function cannot correctly handle binary files as end of line). For those you need to use the C function which has a more complex interface. +=head2 readdir + + readdir dir + +This returns the list of directory entries in directory C. + +All entries in the directory are returned, including C<.> and +C<..>. The entries are I sorted, but returned in the same +order as the underlying filesystem. + +This function is primarily intended for use by programs. To +get a simple list of names, use C. To get a printable +directory for human consumption, use C. + =head2 resize2fs resize2fs device @@ -1665,6 +1680,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, C, C. This call returns the previous umask.