]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/010: explicitly allow corrupted write in xfs_db
authorEric Sandeen <sandeen@redhat.com>
Mon, 9 Jan 2017 16:49:21 +0000 (10:49 -0600)
committerEryu Guan <eguan@redhat.com>
Sun, 15 Jan 2017 05:56:45 +0000 (13:56 +0800)
commit9ef7c4e3dcc06f93a38d8919c949ca3a1e201a48
tree11f1c95b19e1473ce4796dd5ae708af3ea29ff34
parent1abe96278d4a540acc9680fa37f8aaacbdd2bdec
xfs/010: explicitly allow corrupted write in xfs_db

xfs/010 wants to write corruption and test how xfs_repair
deals, but when:

  xfs: forbid AG btrees with level == 0

is merged to userspace, this new test fails the write verifier
in xfs_db.

Add "-c" to allow the corrupted write, do the corruptions all
in one xfs_db command (so it doesn't have to re-read the
corrupted data on 2nd startup), and filter out the

  "Allowing write of corrupted data and bad CRC"

output from the "write -c" command.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/010