X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfs-actions.pod;h=eb3898afcc88204639250ce716301fac2ae416c5;hb=6085137e65cb63aaf725207f2929a571d1149420;hp=eec66977bd35c9d7ce3c20c6f2663371806c0f0e;hpb=1cf85b1e60e85c4940869c6291d75ac44a5bd190;p=libguestfs.git diff --git a/guestfs-actions.pod b/guestfs-actions.pod index eec6697..eb3898a 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -7,16 +7,44 @@ Return the contents of the file named C. Note that this function cannot correctly handle binary files (specifically, files containing C<\0> character which is treated -as end of string). For those you need to use the C +as end of string). For those you need to use the C function which has a more complex interface. -This function returns a string or NULL on error. The caller -must free the returned string after use. +This function returns a string or NULL on error. +I. Because of the message protocol, there is a transfer limit of somewhere between 2MB and 4MB. To transfer large files you should use FTP. +=head2 guestfs_list_devices + + char **guestfs_list_devices (guestfs_h *handle); + +List all the block devices. + +The full block device names are returned, eg. C + + +This function returns a NULL-terminated array of strings +(like L), or NULL if there was an error. +I. + +=head2 guestfs_list_partitions + + char **guestfs_list_partitions (guestfs_h *handle); + +List all the partitions detected on all block devices. + +The full partition device names are returned, eg. C + +This does not return logical volumes. For that you will need to +call C. + +This function returns a NULL-terminated array of strings +(like L), or NULL if there was an error. +I. + =head2 guestfs_ll char *guestfs_ll (guestfs_h *handle, @@ -28,8 +56,8 @@ there is no cwd) in the format of 'ls -la'. This command is mostly useful for interactive sessions. It is I intended that you try to parse the output string. -This function returns a string or NULL on error. The caller -must free the returned string after use. +This function returns a string or NULL on error. +I. =head2 guestfs_ls @@ -45,8 +73,33 @@ should probably use C instead. This function returns a NULL-terminated array of strings (like L), or NULL if there was an error. +I. + +=head2 guestfs_lvs + + char **guestfs_lvs (guestfs_h *handle); + +List all the logical volumes detected. This is the equivalent +of the L command. + +This returns a list of the logical volume device names +(eg. C). + +See also C. + +This function returns a NULL-terminated array of strings +(like L), or NULL if there was an error. +I. + +=head2 guestfs_lvs_full + + struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *handle); -The caller must free the strings I the array after use. +List all the logical volumes detected. This is the equivalent +of the L command. The "full" version includes all fields. + +This function returns a C. +I after use.>. =head2 guestfs_mount @@ -73,6 +126,32 @@ call, in order to improve reliability. This function returns 0 on success or -1 on error. +=head2 guestfs_pvs + + char **guestfs_pvs (guestfs_h *handle); + +List all the physical volumes detected. This is the equivalent +of the L command. + +This returns a list of just the device names that contain +PVs (eg. C). + +See also C. + +This function returns a NULL-terminated array of strings +(like L), or NULL if there was an error. +I. + +=head2 guestfs_pvs_full + + struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *handle); + +List all the physical volumes detected. This is the equivalent +of the L command. The "full" version includes all fields. + +This function returns a C. +I after use.>. + =head2 guestfs_sync int guestfs_sync (guestfs_h *handle); @@ -96,3 +175,29 @@ to create a new zero-length file. This function returns 0 on success or -1 on error. +=head2 guestfs_vgs + + char **guestfs_vgs (guestfs_h *handle); + +List all the volumes groups detected. This is the equivalent +of the L command. + +This returns a list of just the volume group names that were +detected (eg. C). + +See also C. + +This function returns a NULL-terminated array of strings +(like L), or NULL if there was an error. +I. + +=head2 guestfs_vgs_full + + struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *handle); + +List all the volumes groups detected. This is the equivalent +of the L command. The "full" version includes all fields. + +This function returns a C. +I after use.>. +