]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: modify bad_features2 when modifying features2
authorEric Sandeen <sandeen@sandeen.net>
Wed, 2 Dec 2009 17:19:48 +0000 (11:19 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 2 Dec 2009 17:19:48 +0000 (11:19 -0600)
commit72f112572389a8d5f04323c0ce6a28a610714446
treea8541118e5d0046b49094a062d6298e16e7fdf97
parent04aaa28cde239c2f20fcda34d15284efeabbf00a
xfs_db: modify bad_features2 when modifying features2

The "attr1" command in xfs_db, for example, only modifies the features2
field; when mounted, the kernel will find a mismatch between features2
and bad_features2, and attr2 gets turned back on.

I think the simplest fix is to modify do_version to modify both fields,
but not if there is an existing mismatch that should be investigated
first.

Any mismatch can be fixed up by writing directly to the superblock
fields.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/sb.c