e2fsprogs
e2fsprogs copied to clipboard
Please add a "Quit Safely" command to the e2fsck interactive mode
My request
It would be great if you could please add a "quit safely" command to the e2fsck interactive mode. The "quit safely" command should quit e2fsck, leaving users confident that they didn't cause any extra damage to the filesystem by quitting early.
Rationale
Some users don't know whether or not it is safe to exit e2fsck using Ctrl+C. "Quit Safely" would leave them confident that they can quit safely and go to bed.
"Quit Safely" would be helpful for e2fsck newbies who want to halt the machine, go to bed, and hire an expert the next day.
"Quit Safely" would also be helpful to e2fsck newbies who want to use a console-mode Web browser or IRC client to get help.
"Quit Safely" would also be helpful to e2fsck newbies who:
- accidentally started the tool in fully-interactive mode
- but realize they should have used -y ("Yes to All") mode.
Those users could simply choose "Quit Safely" then rerun e2fsck with the -y option.
Notes
Dosfsck already has a "Quit Safely" command. (Source.)
Thank you for reading this, and for all your work on e2fsck!
I think we can add the q option in fix_problem()->ask(), accept the return value and exit() to solve the problem.