]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/388: use the src/godown program instead of xfs_io
authorTheodore Ts'o <tytso@mit.edu>
Fri, 3 Feb 2017 20:50:37 +0000 (15:50 -0500)
committerEryu Guan <eguan@redhat.com>
Sat, 4 Feb 2017 06:16:43 +0000 (14:16 +0800)
The "xfs_io -xc shutdown $MNT" command doesn't work on non-xfs file
systems.  So use the equivalent src/godown program instead, which is
how the other tests which use the shutdown command were converted from
xfs-specific tests to generic tests.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/388

index c00a7548cba0d19a8a486b5394678dc6616d3d16..9d4ba9d6ce0470399a49fb52031ee353f6e9ff32 100755 (executable)
@@ -71,7 +71,7 @@ for i in $(seq 1 50); do
        # purposely include 0 second sleeps to test shutdown immediately after
        # recovery
        sleep $((RANDOM % 3))
-       $XFS_IO_PROG -xc shutdown $SCRATCH_MNT
+       ./src/godown $SCRATCH_MNT
 
        ps -e | grep fsstress > /dev/null 2>&1
        while [ $? -eq 0 ]; do