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
MFC After: 1 week
Differential Revision: https://reviews.freebsd.org/D30880

Details

Provenance
rewAuthored on Jul 11 2021, 8:47 PM
Reviewer
mckusick
Differential Revision
D30880: fsck_ufs: fix background fsck in preen mode
Parents
rG4488c8c34ba3: mount_nfs.8: Add information for "nconnect" to man page
Branches
Unknown
Tags
Unknown