[Libguestfs] [PATCH 2/2] NEW API: new api e2fsck-fy for resize2fs

Wanlong Gao wanlong.gao at gmail.com
Fri Jan 13 11:09:38 UTC 2012


On 01/13/2012 06:12 PM, Richard W.M. Jones wrote:

> On Fri, Jan 13, 2012 at 02:27:50PM +0800, Wanlong Gao wrote:
>> Add a new api e2fsck-fy for resize2fs.
>> Sometimes e2fsck-f is not enough.
>>
>> If resiz2fs return the message says: " Please use e2fsck-fy first",
>> we just haven't such a command, it's so awkward.
> 
> Since we are going to rewrite the error message, can we change it to
> say "use e2fsck-f first"?


Yes, normally it will say "use e2fsck-f", but after use e2fsck-f, then
resize2fs still fails, it'll say "use e2fsck-fy".

> 
> It's not really clear to me what the difference is between
> 'e2fsck -p -f' (which is what we use for the 'e2fsck-f' command) and
> 'e2fsck -y -f'.


"-p" : correct the errors which is not dangerous, but say "n" to some "may be dangerous"
	ones.
"-y" : always say "y" to try to fix the errors whether it is safe or not.
	so, when using "-y", you should know what are you doing now.


Thanks
-Wanlong Gao
 

> 
> Rich.
> 





More information about the Libguestfs mailing list