Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add a "Quit Safely" command to the e2fsck interactive mode #59

Open
unforgettableid opened this issue Feb 9, 2021 · 1 comment

Comments

@unforgettableid
Copy link

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!

@hifilove
Copy link

hifilove commented Nov 2, 2021

I think we can add the q option in fix_problem()->ask(), accept the return value and exit() to solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants