X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfs-actions.pod;h=aade37b9175e397e7c6c7634267ad2211f0948df;hp=a48bbe68c6ee29a12d0b7eb3784b3bf96fa81e0e;hb=da8ddb2745c3d53c36e3ad7f09836a4c27a4d3e6;hpb=b2ed0f4c55c2bd3d07341ba2207f0cb238eb4e18 diff --git a/guestfs-actions.pod b/guestfs-actions.pod index a48bbe6..aade37b 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -689,6 +689,23 @@ so that the maximum guest memory is freed. This function returns 0 on success or -1 on error. +=head2 guestfs_du + + int64_t guestfs_du (guestfs_h *handle, + const char *path); + +This command runs the C command to estimate file space +usage for C. + +C can be a file or a directory. If C is a directory +then the estimate includes the contents of the directory and all +subdirectories (recursively). + +The result is the estimated size in I +(ie. units of 1024 bytes). + +On error this function returns -1. + =head2 guestfs_e2fsck_f int guestfs_e2fsck_f (guestfs_h *handle, @@ -995,6 +1012,25 @@ 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_initrd_list + + char **guestfs_initrd_list (guestfs_h *handle, + const char *path); + +This command lists out files contained in an initrd. + +The files are listed without any initial C character. The +files are listed in the order they appear (not necessarily +alphabetical). Directory names are listed as separate items. + +Old Linux kernels (2.4 and earlier) used a compressed ext2 +filesystem as initrd. We I support the newer initramfs +format (compressed cpio files). + +This function returns a NULL-terminated array of strings +(like L), or NULL if there was an error. +I. + =head2 guestfs_is_busy int guestfs_is_busy (guestfs_h *handle); @@ -1295,6 +1331,35 @@ example C. This function returns 0 on success or -1 on error. +=head2 guestfs_mkswap + + int guestfs_mkswap (guestfs_h *handle, + const char *device); + +Create a swap partition on C. + +This function returns 0 on success or -1 on error. + +=head2 guestfs_mkswap_L + + int guestfs_mkswap_L (guestfs_h *handle, + const char *label, + const char *device); + +Create a swap partition on C with label C