common/btrfs: add _require_btrfs_sysfs_fsid helper
authorAnand Jain <anand.jain@oracle.com>
Thu, 21 Oct 2021 09:17:04 +0000 (17:17 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 24 Oct 2021 16:08:22 +0000 (00:08 +0800)
commitcdc96c304c377bf4669b061f232a5c76911a21a3
tree962f4c19b9d93ffa3e51faad5e804c521dff6b22
parentacb516fdfe72b0f69e306ae80032c6043e661aec
common/btrfs: add _require_btrfs_sysfs_fsid helper

It checks if the kernel has the following patch
 btrfs: sysfs add devinfo/fsid to retrieve fsid from the device
that added sysfs interface to get fsid.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/btrfs