xfstests: automatically add -F to xfs_io on non-xfs
authorEric Sandeen <sandeen@sandeen.net>
Tue, 14 May 2013 13:33:44 +0000 (08:33 -0500)
committerRich Johnston <rjohnston@sgi.com>
Tue, 14 May 2013 13:33:44 +0000 (08:33 -0500)
commit96fce07867cdd55f1731663a0014b418d8b0ed6c
tree1d2107df80f8804aa3cb55f49617994a53da35ff
parent2941898570ccdb32ab5af89c0b25147231489973
xfstests: automatically add -F to xfs_io on non-xfs

The -F flag to xfs_io originally enabled it to operate on non-xfs
filesystems.  This restriction was removed upstream in favor of
gracefully failing on the handful of operations that actually
required xfs, and the option was deprecated.

However, xfstests is still used on distros with older xfsprogs, and
so "xfs_io -F" was necessary throughout xfstests.

Simplify this by appending -F to XFS_IO_PROG when it's needed -
i.e. if we're using old xfsprogs on a non-xfs filesystem.

This will eliminate errors when new tests leave out the -F, and
if and when -F is finally removed, there will be one central
location in xfstests to update.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
30 files changed:
common/punch
common/rc
tests/ext4/271
tests/generic/130
tests/generic/132
tests/generic/133
tests/generic/135
tests/generic/141
tests/generic/169
tests/generic/213
tests/generic/214
tests/generic/215
tests/generic/219
tests/generic/223
tests/generic/226
tests/generic/228
tests/generic/230
tests/generic/231
tests/generic/235
tests/generic/247
tests/generic/249
tests/generic/255
tests/generic/256
tests/generic/274
tests/generic/286 [changed mode: 0644->0755]
tests/generic/306
tests/shared/218
tests/shared/243
tests/shared/298 [changed mode: 0644->0755]
tests/xfs/252