X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfish-actions.pod;h=ee3f6411c1a9918e40e6c6d5548ac38bc1f4580a;hp=fa82ef1b11853c4a25f9496bf0e6d311af287738;hb=460d139e6a52da67a4f1947035b1978610349f78;hpb=3e408f493496597dc026d20778837f421f05a9dd diff --git a/guestfish-actions.pod b/guestfish-actions.pod index fa82ef1..ee3f641 100644 --- a/guestfish-actions.pod +++ b/guestfish-actions.pod @@ -6,6 +6,11 @@ This function adds a virtual CD-ROM disk image to the guest. This is equivalent to the qemu parameter C<-cdrom filename>. +Note that this call checks for the existence of C. This +stops you from specifying other types of drive which are supported +by qemu such as C and C URLs. To specify those, use +the general C call instead. + =head2 add-drive | add add-drive filename @@ -23,6 +28,32 @@ image). This is equivalent to the qemu parameter C<-drive file=filename>. +Note that this call checks for the existence of C. This +stops you from specifying other types of drive which are supported +by qemu such as C and C URLs. To specify those, use +the general C call instead. + +=head2 add-drive-ro | add-ro + + add-drive-ro filename + +This adds a drive in snapshot mode, making it effectively +read-only. + +Note that writes to the device are allowed, and will be seen for +the duration of the guestfs handle, but they are written +to a temporary file which is discarded as soon as the guestfs +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>. + +Note that this call checks for the existence of C. This +stops you from specifying other types of drive which are supported +by qemu such as C and C URLs. To specify those, use +the general C call instead. + =head2 aug-close aug-close @@ -925,6 +956,22 @@ Some internal mounts are not shown. This moves a file from C to C where C is either a destination filename or destination directory. +=head2 ntfs-3g-probe + + ntfs-3g-probe true|false device + +This command runs the L command which probes +an NTFS C for mountability. (Not all NTFS volumes can +be mounted read-write, and some cannot be mounted at all). + +C is a boolean flag. Set it to true if you want to test +if the volume can be mounted read-write. Set it to false if +you want to test if the volume can be mounted read-only. + +The return value is an integer which C<0> if the operation +would succeed, or some non-zero value documented in the +L manual page. + =head2 ping-daemon ping-daemon @@ -1179,6 +1226,12 @@ This displays the partition table on C, in the human-readable output of the L command. It is not intended to be parsed. +=head2 sleep + + sleep secs + +Sleep for C seconds. + =head2 stat stat path