On Wed, Jun 02, 2010 at 08:01:47AM -0400, Yufang Zhang wrote:
Can I ask if zerofree or resize2fs could also be applicable to ext4?
Guestfish help of these two commands indicates that they are
applicable to ext2/3. But ext4 is not covered in the help. However,
I have tested these two commands in my Fedora 12 laptop, and it
seems that both commands work well with ext4. So I don't quite
understand why the help of these two commands only mention
ext2/3. Is it a supported feature that these two commands work with
ext4?
resize2fs: Yes, this will work on ext4. It should say this in the
documentation. See the attached patch.
zerofree: I'm cautious about claiming this works on ext4. It may work
in some cases and break in others (for example, if a file uses
extents).
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://et.redhat.com/~rjones/libguestfs/
See what it can do:
http://et.redhat.com/~rjones/libguestfs/recipes.html