Bug 240545
Summary: | gfs2_fsck should behave more like the other fscks. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Steve Whitehouse <swhiteho> | ||||||||
Component: | gfs2-utils | Assignee: | Chris Feist <cfeist> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 5.1 | ||||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | RHBA-2008-0350 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2008-05-21 17:19:57 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | 286211 | ||||||||||
Bug Blocks: | |||||||||||
Attachments: |
|
Description
Steve Whitehouse
2007-05-18 12:36:47 UTC
1. Should be easy. 2. Should be easy. I'd like to add #3: When I made the changes to allow SIGINT to be caught and to ask the user if he/she wants to skip the current pass, I got into a bind whereby if you interrupt it while a question is being asked, it does not re-ask the question, so the user may be left confused. My solution at the time was to ignore the interrupt while it's asking any Y/N questions. The problem with that is obvious: If there is a massive amount of fs corruption, it will keep asking annoying questions and never let the user break out of it. Unless, of course, they go to another terminal cli and use the kill command. That's bad because sometimes they may just want to get out and restart it with the -y option. Shouldn't be too difficult, but not quite as easy as #1 and #2. So #3: Allow <ctrl-c> interrupts to be processed in a friendly manner while a Y/N question is being asked. Created attachment 160826 [details]
Proposed patch to fix the problem
This patch has been tested on system trin-10 by manually answering
questions with a single character (no enter), interrupting the various
passes, and interrupting the questions.
I posted the proposed fix to cluster-devel on 08 August 2007. Nobody commented on the proposed patch so I'm assuming it's good to go for RHEL5.2. Tested on system trin-10. Committed to cvs in HEAD and RHEL5 branches. Changing status to Modified. splitting out bug 286211: gfs2_fsck not found by fsck wrapper Discovered a small problem with this fix. Need a modify it slightly. Resetting to assigned state, since it hasn't been built yet and still doesn't have the right ack flags at this time. Created attachment 224531 [details] Addendum patch This addendum patch fixes the problem mentioned in comment #6. Created attachment 224551 [details]
Addendum patch revised
Fixed a stupid bug in the previous addendum patch.
Fix tested on roth-01 then committed to HEAD and RHEL5 branches for inclusion in 5.2. Setting back to modified state. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0350.html |