diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-12-12 22:03:26 -0800 |
---|---|---|
committer | Eryu Guan <eguan@redhat.com> | 2017-12-15 15:16:46 +0800 |
commit | 9d5ea22aea6bdbb0650f265037b17d4a5c20c647 (patch) | |
tree | ec7bb401005d845f1947f643eada6a0187bc7a21 | |
parent | 2353022e570f53982721386f3055a303f20cbe6c (diff) | |
download | xfstests-9d5ea22aea6bdbb0650f265037b17d4a5c20c647.tar.gz |
common/xfs: fix scrub support probing again
In the final version of the xfs_io scrub command we don't allow the
probe function to have any parameters, so fix the helper to abide
that.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r-- | common/xfs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/xfs b/common/xfs index 799a545de7..5cfa761248 100644 --- a/common/xfs +++ b/common/xfs @@ -314,7 +314,7 @@ _supports_xfs_scrub() # Probe for kernel support... $XFS_IO_PROG -c 'help scrub' 2>&1 | grep -q 'types are:.*probe' || return 1 - $XFS_IO_PROG -c "scrub probe 0" "$mountpoint" 2>&1 | grep -q "Inappropriate ioctl" && return 1 + $XFS_IO_PROG -c "scrub probe" "$mountpoint" 2>&1 | grep -q "Inappropriate ioctl" && return 1 # Scrub can't run on norecovery mounts _fs_options "$device" | grep -q "norecovery" && return 1 |