]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/054: only filter ROOT_INO at the beginning
authorEryu Guan <eguan@redhat.com>
Sat, 22 Oct 2016 05:27:33 +0000 (13:27 +0800)
committerEryu Guan <eguan@redhat.com>
Wed, 26 Oct 2016 02:38:11 +0000 (10:38 +0800)
commit4c99b91d0ad9a97e9d409e8f52696598c934f43d
tree0adadd8152a18ffb99076aa69de1eb3cb5bdc059
parent31db182a1c107e2e5e230ea715908a3b693e17c8
xfs/054: only filter ROOT_INO at the beginning

In the test ROOT_INO is filtered out and/or replaced, but if
ROOT_INO is also 32, more "32"s are filtered and replaced than
expected. This happens to me when testing 512B block size XFS and 1k
block size CRC enabled XFS.

Fix it by filtering out only ROOT_INO at the beginning of a line,
and removing all "g" modifiers in sed expressions.

Also the ROOT_INO should be the root inode number of TEST_DIR not
SCRATCH_MNT.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/054