X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfs-actions.pod;h=0b06470da0b3332bb5a40e0bfcb6484f2e3aa21d;hp=6f33d80e5b261bd3319e2ffcaa7a10986c65644b;hb=e58626a0e59ebb1c3417de33080fa65cfe0b482a;hpb=ca49c50e06834bbc68e21630a5552c57494f2b53 diff --git a/guestfs-actions.pod b/guestfs-actions.pod index 6f33d80..0b06470 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -624,6 +624,20 @@ so that the maximum guest memory is freed. This function returns 0 on success or -1 on error. +=head2 guestfs_e2fsck_f + + int guestfs_e2fsck_f (guestfs_h *handle, + const char *device); + +This runs C, ie. runs the ext2/ext3 +filesystem checker on C, noninteractively (C<-p>), +even if the filesystem appears to be clean (C<-f>). + +This command is only needed because of C +(q.v.). Normally you should use C. + +This function returns 0 on success or -1 on error. + =head2 guestfs_end_busy int guestfs_end_busy (guestfs_h *handle); @@ -677,6 +691,40 @@ particular that the filename is not prepended to the output This function returns a string, or NULL on error. I. +=head2 guestfs_find + + char **guestfs_find (guestfs_h *handle, + const char *directory); + +This command lists out all files and directories, recursively, +starting at C. It is essentially equivalent to +running the shell command C but some +post-processing happens on the output, described below. + +This returns a list of strings I. Thus +if the directory structure was: + + /tmp/a + /tmp/b + /tmp/c/d + +then the returned list from C C would be +4 elements: + + a + b + c + c/d + +If C is not a directory, then this command returns +an error. + +The returned list is sorted. + +This function returns a NULL-terminated array of strings +(like L), or NULL if there was an error. +I. + =head2 guestfs_fsck int guestfs_fsck (guestfs_h *handle, @@ -1285,6 +1333,12 @@ I. This resizes an ext2 or ext3 filesystem to match the size of the underlying device. +I It is sometimes required that you run C +on the C before calling this command. For unknown reasons +C sometimes gives an error about this and sometimes not. +In any case, it is always safe to call C before +calling this function. + This function returns 0 on success or -1 on error. =head2 guestfs_rm