X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfish-actions.pod;h=e635e548cdb420a22678a80bda5b396836db6ff5;hp=a3592ad40240cc997acb1ff49b3d05a8f82ad026;hb=da85ed425dc828ef4b8817f64d448101a88507b5;hpb=5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe diff --git a/guestfish-actions.pod b/guestfish-actions.pod index a3592ad..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 @@ -685,6 +686,20 @@ C. This returns the ext2/3/4 filesystem UUID of the filesystem on C. +=head2 get-memsize + + get-memsize + +This gets the memory size in megabytes allocated to the +qemu subprocess. + +If C was not called +on this handle, and if C was not set, +then this returns the compiled-in default value for memsize. + +For more information on the architecture of libguestfs, +see L. + =head2 get-path get-path @@ -1006,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 @@ -1014,6 +1037,52 @@ 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 + +Create a swap partition on C. + +=head2 mkswap-L + + mkswap-L label device + +Create a swap partition on C with label C