X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfs-actions.pod;h=f37ec50bd39eb69a6596ebfc2d65969bab9f52b3;hp=0b06470da0b3332bb5a40e0bfcb6484f2e3aa21d;hb=8224bfd0020ee9e2cb6c58c8d1b8eeba3028e943;hpb=3e408f493496597dc026d20778837f421f05a9dd diff --git a/guestfs-actions.pod b/guestfs-actions.pod index 0b06470..f37ec50 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -7,6 +7,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. + This function returns 0 on success or -1 on error. =head2 guestfs_add_drive @@ -27,6 +32,35 @@ 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. + +This function returns 0 on success or -1 on error. + +=head2 guestfs_add_drive_ro + + int guestfs_add_drive_ro (guestfs_h *handle, + const char *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. + This function returns 0 on success or -1 on error. =head2 guestfs_aug_close @@ -1232,6 +1266,26 @@ either a destination filename or destination directory. This function returns 0 on success or -1 on error. +=head2 guestfs_ntfs_3g_probe + + int guestfs_ntfs_3g_probe (guestfs_h *handle, + int rw, + const char *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. + +On error this function returns -1. + =head2 guestfs_ping_daemon int guestfs_ping_daemon (guestfs_h *handle); @@ -1595,6 +1649,15 @@ not intended to be parsed. This function returns a string, or NULL on error. I. +=head2 guestfs_sleep + + int guestfs_sleep (guestfs_h *handle, + int secs); + +Sleep for C seconds. + +This function returns 0 on success or -1 on error. + =head2 guestfs_stat struct guestfs_stat *guestfs_stat (guestfs_h *handle,