btrfs: test btrfs filesystem usage command on missing seed device
authorAnand Jain <anand.jain@oracle.com>
Thu, 21 Oct 2021 09:17:06 +0000 (17:17 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 24 Oct 2021 16:08:22 +0000 (00:08 +0800)
commit359610a43c29c9f7632d19baf0913a9085b79e9d
tree0403ba9b99040956d841c6482de8075921c3b214
parent0e35c0548abd7fecabb9f85f26b3841f553b0715
btrfs: test btrfs filesystem usage command on missing seed device

If there is a missing seed device in a sprout, the btrfs filesystem usage
command fails, which is fixed by the following patches:

  btrfs: sysfs add devinfo/fsid to retrieve fsid from the device
  btrfs-progs: read fsid from the sysfs in device_is_seed

Test if it works now after these patches in the kernel and in the
btrfs-progs respectively.

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/249 [new file with mode: 0755]
tests/btrfs/249.out [new file with mode: 0644]