xfs/068: fix clonerange problems in file/dir count output
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 13 Dec 2017 23:28:05 +0000 (15:28 -0800)
committerEryu Guan <eguan@redhat.com>
Fri, 5 Jan 2018 18:09:02 +0000 (02:09 +0800)
commit4515048910312573d8989ba64ee5cac76138e8f8
tree7f0d536094842eeba2b7993ea20ece6a1c86f107
parent70138c383bf5af34484c237e6b85399bccce7e13
xfs/068: fix clonerange problems in file/dir count output

In this test we use a fixed sequence of operations in fsstress to
create some number of files and dirs and then exercise
xfsdump/xfsrestore on them.  Since clonerange/deduperange are not
supported on all xfs configurations, detect if they're in fsstress
and disable them so that we always execute exactly the same sequence
of operations no matter how the filesystem is configured.

[eguan: move it from xfs/068 to common/dump as Dave suggested]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Suggested-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/dump