xfs: rw remount with unknown ro-compat features
authorZorro Lang <zlang@redhat.com>
Sun, 28 Aug 2016 12:50:25 +0000 (20:50 +0800)
committerEryu Guan <eguan@redhat.com>
Tue, 30 Aug 2016 03:36:13 +0000 (11:36 +0800)
commit1083413cd446fedaaab99a69d0d214027e69b4b6
tree942a022eabfd7e004c93c3ac48e8a86214545477
parent643d623669f38607d72d271f78dcd7309234d473
xfs: rw remount with unknown ro-compat features

Although ro-compat features cannot be mounted rw, a bug allows an
ro->rw remount transition, and this will corrupt the filesystem if
it contains ro-compat features unknown to the running kernel.

This bug has been fixed on linux kernel (d0a58e8 xfs: disallow rw
remount on fs with unknown ro-compat features), this case is the
regression testcase of that bug.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/270 [new file with mode: 0755]
tests/xfs/270.out [new file with mode: 0644]
tests/xfs/group