]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: validate superblock against known v5 feature flags
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 1 Jun 2015 01:17:08 +0000 (11:17 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 1 Jun 2015 01:17:08 +0000 (11:17 +1000)
commita98b22b6a4135041e2a82b966cd7d8e606c2b958
treefc1f95501ff6f4b28d856d9ae2d40013f11169c5
parentd6cfd5aee844e7e11f4e313da370bbc4a4cec450
xfs_repair: validate superblock against known v5 feature flags

Apparently xfs_repair running on a v5 filesystem doesn't check the
compat, rocompat, or incompat feature flags for bits that it doesn't
know about, which means that old xfs_repairs can wreak havoc.  So,
strengthen the checks to prevent repair from "repairing" anything it
doesn't understand.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Fanael Linithien <fanael4@gmail.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/versions.c