]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: test larger dump/restore to/from file
authorEric Sandeen <sandeen@redhat.com>
Tue, 14 Oct 2014 11:59:39 +0000 (22:59 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 14 Oct 2014 11:59:39 +0000 (22:59 +1100)
commit481c28f52fd4ed3976f2733a1c65f92760138258
tree2ae0c6c87c6188898bfa446dac636d834fdcc13f
parentcf1438248c0f62f3b64013d23e9e6d6bc23ca24b
xfs: test larger dump/restore to/from file

This test creates a large-ish directory structure using
fsstress, and does a dump/restore to make sure we dump
all the files.

Without the fix for the regression caused by:
c7cb51d xfs: fix error handling at xfs_inumbers

we will see failures like:

    -xfsrestore: 486 directories and 1590 entries processed
    +xfsrestore: 30 directories and 227 entries processed

as it fails to process all inodes.

I think that existing tests have a much smaller set of files,
and so don't trip the bug.

I don't do a file-by-file comparison here, because for some
reason the diff output gets garbled; this test only checks
that we've dumped & restored the correct number of files.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/dump
tests/xfs/068 [new file with mode: 0755]
tests/xfs/068.out [new file with mode: 0644]
tests/xfs/group