X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfish-actions.pod;h=e635e548cdb420a22678a80bda5b396836db6ff5;hp=986284ea24f0f146e7a019f47c0a956882ce6ee9;hb=da85ed425dc828ef4b8817f64d448101a88507b5;hpb=f68b3ac861ae607a333211c775dded82ae2b2c4a diff --git a/guestfish-actions.pod b/guestfish-actions.pod index 986284e..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 @@ -1020,6 +1021,14 @@ directory and its contents after use. See also: L +=head2 mkfifo + + mkfifo mode path + +This call creates a FIFO (named pipe) called C with +mode C. It is just a convenient wrapper around +C. + =head2 mkfs mkfs fstype device @@ -1028,6 +1037,34 @@ This creates a filesystem on C (usually a partition or LVM logical volume). The filesystem type is C, for example C. +=head2 mknod + + mknod mode devmajor devminor path + +This call creates block or character special devices, or +named pipes (FIFOs). + +The C parameter should be the mode, using the standard +constants. C and C are the +device major and minor numbers, only used when creating block +and character special devices. + +=head2 mknod-b + + mknod-b mode devmajor devminor path + +This call creates a block device node called C with +mode C and device major/minor C and C. +It is just a convenient wrapper around C. + +=head2 mknod-c + + mknod-c mode devmajor devminor path + +This call creates a char device node called C with +mode C and device major/minor C and C. +It is just a convenient wrapper around C. + =head2 mkswap mkswap device @@ -1198,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 @@ -1617,6 +1668,26 @@ manpage for more details. The list of fields returned isn't clearly defined, and depends on both the version of C that libguestfs was built against, and the filesystem itself. +=head2 umask + + umask mask + +This function sets the mask used for creating new files and +device nodes to C. + +Typical umask values would be C<022> which creates new files +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. + =head2 umount | unmount umount pathordevice