HomeFreeBSD

fsck_ffs: fix background fsck in preen mode

Description

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)

Details

Provenance
rewAuthored on Jul 11 2021, 8:47 PM
Reviewer
mckusick
Differential Revision
D30880: fsck_ufs: fix background fsck in preen mode
Parents
R10:a54e547950f7: arm: replace byte-by-byte memcmp with an already existing asm variant
Branches
Unknown
Tags
Unknown