btrfs/010: don't run without /sys/fs/btrfs

Older kernels don't have /sys/fs/btrfs.  btrfs/010 will happily run
until it goes to check its work against sysfs and finds those files
don't exist.  This patch introduces a require check to ensure that
the sysfs files are present before running.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Jeff Mahoney
2019-01-21 11:33:10 -05:00
committed by Eryu Guan
parent a1c91630a3
commit 5b1a503aba
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -33,6 +33,7 @@ rm -f $seqres.full
_supported_fs btrfs
_supported_os Linux
_require_test
_require_btrfs_fs_sysfs
# Create 32k extents. All of these extents will be accounted as outstanding and
# reserved.