Re: [PATCH 2/4] btrfs: delete identified alien device in open_fs_devices

2019-10-05 Thread Anand Jain
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 06ec3577c6b4..05ade8c7342b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -803,10 +803,10 @@ static int btrfs_open_one_device(struct btrfs_fs_devices *fs_devices, disk_super = (struct btrfs_super_block *)bh->b_dat

Re: [PATCH 2/4] btrfs: delete identified alien device in open_fs_devices

2019-10-04 Thread Nikolay Borisov
On 4.10.19 г. 10:50 ч., Anand Jain wrote: > In open_fs_devices() we identify alien device but we don't reset its > the device::name. So progs device list does not show the device missing > as shown in the script below. > > mkfs.btrfs -fq /dev/sdd && mount /dev/sdd /btrfs > mkfs.btrfs -fq -draid

[PATCH 2/4] btrfs: delete identified alien device in open_fs_devices

2019-10-04 Thread Anand Jain
In open_fs_devices() we identify alien device but we don't reset its the device::name. So progs device list does not show the device missing as shown in the script below. mkfs.btrfs -fq /dev/sdd && mount /dev/sdd /btrfs mkfs.btrfs -fq -draid1 -mraid1 /dev/sdc /dev/sdb sleep 3 # avoid racing with u