btrfs: validate sysfs fsid
authorAnand Jain <anand.jain@oracle.com>
Thu, 21 Oct 2021 09:17:05 +0000 (17:17 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 24 Oct 2021 16:08:22 +0000 (00:08 +0800)
commit0e35c0548abd7fecabb9f85f26b3841f553b0715
tree7139a93fbf11eeb0615dd7fe28c0e29ef7730ba2
parentcdc96c304c377bf4669b061f232a5c76911a21a3
btrfs: validate sysfs fsid

Validate if the sysfs fsid is the same as fsid as obtained from the
superblock.

Suggested-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/248 [new file with mode: 0755]
tests/btrfs/248.out [new file with mode: 0644]