[Bug 271480] background fsck_ffs fails due to improper attempts to update directory depth

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 May 2023 07:25:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271480

            Bug ID: 271480
           Summary: background fsck_ffs fails due to improper attempts to
                    update directory depth
           Product: Base System
           Version: 13.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: andrew@tao11.riddles.org.uk

The directory depth tracking code in fsck_ffs attempts to write to the
(read-only) device when doing fsck -B, leading to failure:

/dev/label/scratch: DIRECTORY I=802562  OWNER=root MODE=40755
/dev/label/scratch: SIZE=512 MTIME=May 18 07:17 2023  DEPTH 3 SHOULD BE 2
(ADJUSTED)
/dev/label/scratch: SETTING DIRTY FLAG IN READ_ONLY MODE

/dev/label/scratch: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY.

-- 
You are receiving this mail because:
You are the assignee for the bug.