Description of problem: Running the command 'resize2fs-M /dev/vda1' at the guestfish prompt produces the error message libguestfs: error: resize2fs_M: resize2fs 1.41.14 (22-Dec-2010) Please run 'e2fsck -f /dev/vda1' first. The actual command that should be run is one without the space between 'e2fsck' and '-f', in other words, 'e2fsck-f'. Version-Release number of selected component (if applicable): guestfish 1.14.0 How reproducible: I saw it once -- since this an error message, I imagine it's reproducible. Steps to Reproduce: 1. Add a VDI to guestfish, run it. 2. resize2fs-M /dev/vda1 3. Observe error reproduced above. Actual results: As above. Expected results: libguestfs: error: resize2fs_M: resize2fs 1.41.14 (22-Dec-2010) Please run 'e2fsck-f /dev/vda1' first. Additional info:
We'd need to capture the error message (which comes from the resize2fs utility itself) and rewrite it in the daemon.
sent the fix patch to upstream: https://www.redhat.com/archives/libguestfs/2012-January/msg00102.html
Thanks, this is upstream now: https://github.com/libguestfs/libguestfs/commit/0eaf06e673833bc25673d5c3d2487fffae310285
Reopening, see: https://www.redhat.com/archives/libguestfs/2012-March/msg00049.html
OK, the upstream policy is not to rewrite error messages, because whenever we try to do it, it's bitten us. If necessary we'll document them, which is what I have done here: https://www.redhat.com/archives/libguestfs/2012-March/msg00054.html