]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs/010: don't run without /sys/fs/btrfs
authorJeff Mahoney <jeffm@suse.com>
Mon, 21 Jan 2019 16:33:10 +0000 (11:33 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 27 Jan 2019 05:30:16 +0000 (13:30 +0800)
commit5b1a503aba5f4890c2aa20a3b77ceef87427430a
tree6f77a4f5067f8038ca595d5a0c9374161f6b2467
parenta1c91630a374041a0a9e2fe3d65eb973f753f10b
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>
common/btrfs
tests/btrfs/010