Summary: | fsck_ffs completely broken for background fsck | ||
---|---|---|---|
Product: | Base System | Reporter: | Andrew "RhodiumToad" Gierth <andrew> |
Component: | bin | Assignee: | Robert Wing <rew> |
Status: | Closed FIXED | ||
Severity: | Affects Many People | CC: | chris, fs, grahamperrin, mckusick, rew |
Priority: | --- | Flags: | koobs:
mfc-stable13+
|
Version: | 13.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://www.freebsd.org/releases/13.1R/relnotes/#storage-ufs | ||
See Also: | https://reviews.freebsd.org/D35212 |
Description
Andrew "RhodiumToad" Gierth
2021-06-21 12:07:54 UTC
Thanks for breaking out this bug separately. I will investigate it and report back. Thank you, both. (In reply to andrew from comment #0) <https://cgit.freebsd.org/src/commit/?id=5cc52631b3b88dfc36d8049dc8bece8573c5f9af> Re: the most recent commit, line 298 is at <https://cgit.freebsd.org/src/tree/sbin/fsck_ffs/main.c?id=441e69e419effac0225a45f4cdb948280b8ce5ab#n298> proposed fix: https://reviews.freebsd.org/D30880 (In reply to Robert Wing from comment #3) Your proposed fix in https://reviews.freebsd.org/D30880 looks good. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0c5a59252c8e7b80b98521ebc23a415a05ff9594 commit 0c5a59252c8e7b80b98521ebc23a415a05ff9594 Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2021-07-11 20:47:27 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2021-07-11 20:47:27 +0000 fsck_ffs: fix background fsck in preen mode Background checks are only allowed for mounted filesystems - don't try to open the device for writing when performing a background check. While here, remove a debugging printf that's commented out. PR: 256746 Fixes: 5cc52631b3b88dfc36d8049dc8bece8573c5f9af Reviewed by: mckusick MFC After: 1 week Differential Revision: https://reviews.freebsd.org/D30880 sbin/fsck_ffs/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=fb2feceac34cc9c3fb47ba4a7b0ca31637f8fdf0 commit fb2feceac34cc9c3fb47ba4a7b0ca31637f8fdf0 Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2021-07-11 20:47:27 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2021-07-19 18:06:53 +0000 fsck_ffs: fix background fsck in preen mode Background checks are only allowed for mounted filesystems - don't try to open the device for writing when performing a background check. While here, remove a debugging printf that's commented out. PR: 256746 Fixes: 5cc52631b3b88dfc36d8049dc8bece8573c5f9af Reviewed by: mckusick Differential Revision: https://reviews.freebsd.org/D30880 (cherry picked from commit 0c5a59252c8e7b80b98521ebc23a415a05ff9594) sbin/fsck_ffs/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) Please, when might this be engineered for release? <https://cgit.freebsd.org/src/log/sbin/fsck_ffs/main.c?h=releng/13.0> the most recent commit was in January. Thanks (In reply to Graham Perrin from comment #7) The bug has been MFC'ed (merged) into 13-stable which is available now. The next engineered release will be 13.1 which will contain this change. ^Triage: Assign to committer that resolved and track merge(s) ⚙ D35212 13.1-RELEASE note: fsck_ffs: background fsck <https://reviews.freebsd.org/D35212> (In reply to Graham Perrin from comment #10) I approved your suggested addition to the 31.1 release notes. |