diff options
author | Richard Jones <rjones@redhat.com> | 2009-05-21 16:18:16 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-05-21 16:18:16 +0100 |
commit | 3e408f493496597dc026d20778837f421f05a9dd (patch) | |
tree | 5aee1850ae052c36ab56de764d4130789280c7a8 /guestfs-actions.pod | |
parent | 0f81d0941a2705d49bc129f69924265fa60d9677 (diff) | |
download | libguestfs-3e408f493496597dc026d20778837f421f05a9dd.tar.gz libguestfs-3e408f493496597dc026d20778837f421f05a9dd.tar.xz libguestfs-3e408f493496597dc026d20778837f421f05a9dd.zip |
Generated code for e2fsck-f command.
Diffstat (limited to 'guestfs-actions.pod')
-rw-r--r-- | guestfs-actions.pod | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/guestfs-actions.pod b/guestfs-actions.pod index 0d5efb4d..0b06470d 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<e2fsck -p -f device>, ie. runs the ext2/ext3 +filesystem checker on C<device>, noninteractively (C<-p>), +even if the filesystem appears to be clean (C<-f>). + +This command is only needed because of C<guestfs_resize2fs> +(q.v.). Normally you should use C<guestfs_fsck>. + +This function returns 0 on success or -1 on error. + =head2 guestfs_end_busy int guestfs_end_busy (guestfs_h *handle); @@ -1319,6 +1333,12 @@ I<The caller must free the strings and the array after use>. This resizes an ext2 or ext3 filesystem to match the size of the underlying device. +I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> +on the C<device> before calling this command. For unknown reasons +C<resize2fs> sometimes gives an error about this and sometimes not. +In any case, it is always safe to call C<guestfs_e2fsck_f> before +calling this function. + This function returns 0 on success or -1 on error. =head2 guestfs_rm |