Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2015 16:06:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 205668] [ext2fs] [patch] cannot mount EXT4 filesystems which weren't cleanly unmounted
Message-ID:  <bug-205668-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205668

            Bug ID: 205668
           Summary: [ext2fs] [patch] cannot mount EXT4 filesystems which
                    weren't cleanly unmounted
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: damjan.jov@gmail.com
                CC: freebsd-fs@FreeBSD.org

Created attachment 164769
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D164769&action=
=3Dedit
Patch to add support for the EXT2F_INCOMPAT_RECOVER flag

If a disk with the EXT4 filesystem wasn't cleanly unmounted, it will have t=
he
EXT2F_INCOMPAT_RECOVER flag set on its feature flags, visible as
"needs_recovery" in the "Filesystem features" of "tune2fs -l /dev/<disk>".

Our ext2fs module doesn't know about this flag, and ends up treating a disk=
 in
this state as having unsupported features, logging the inappropriate and
confusing message:

WARNING: mount of <disk> denied due to unsupported optional features

to dmesg and unable to mount it until fsck.ext4 even if mounting read-only =
or
forced.

My attached patch adds support for this flag and treats it as supported,
warning if the filesystem wasn't cleanly unmounted like it already does with
the other 2 ways of marking it as such.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205668-3630>