btrfs: test cleaning up of the stale device
authorAnand Jain <anand.jain@oracle.com>
Fri, 10 Dec 2021 18:14:41 +0000 (02:14 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 26 Dec 2021 14:53:39 +0000 (22:53 +0800)
commit770f462e17e52c4b2bc026fd707ad01fcce95f32
tree1451751e1b89666b238ed539b59844ea35aae5d8
parent2daa91f1b59927ca71c500e749097324c6362908
btrfs: test cleaning up of the stale device

Recreating a new filesystem or adding a device to a mounted the
filesystem should remove the device entries under its previous fsid
even when confused with different device paths to the same device.

Fixed by the kernel patch (in the ml):

  btrfs: harden identification of the stale device

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