diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-03-09 16:53:02 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-09 18:05:31 +0000 |
commit | 2fb545b840745f6d944d89872f1d7372821b30cc (patch) | |
tree | 1c40d7dd5d7e5976234c4c844ae010ecfd38a523 /resize/resize.ml | |
parent | 4c9218658e4d4b769acaa41d999b4bce437fbc37 (diff) | |
download | libguestfs-2fb545b840745f6d944d89872f1d7372821b30cc.tar.gz libguestfs-2fb545b840745f6d944d89872f1d7372821b30cc.tar.xz libguestfs-2fb545b840745f6d944d89872f1d7372821b30cc.zip |
resize2fs: Run 'e2fsck -f' automatically if filesystem is not mounted.
Diffstat (limited to 'resize/resize.ml')
-rw-r--r-- | resize/resize.ml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/resize/resize.ml b/resize/resize.ml index 675a6e1c..407d80f3 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -1120,9 +1120,7 @@ let () = (* Helper function to expand partition or LV content. *) let do_expand_content target = function | PVResize -> g#pvresize target - | Resize2fs -> - g#e2fsck_f target; - g#resize2fs target + | Resize2fs -> g#resize2fs target | NTFSResize -> g#ntfsresize_opts ~force:ntfsresize_force target | BtrfsFilesystemResize -> (* Complicated ... Btrfs forces us to mount the filesystem |