Re: [PATCH] Btrfs-progs: do not add stale device into fs_devices

2017-10-11 Thread Liu Bo
On Wed, Oct 11, 2017 at 12:33:15PM +0300, Nikolay Borisov wrote: > > > On 11.10.2017 03:28, Liu Bo wrote: > > If one of btrfs's devices was pulled out and we've replaced it with a > > new one, then they have the same uuid. > > > > If that device gets reconnected, 'btrfs filesystem show' will

Re: [PATCH] Btrfs-progs: do not add stale device into fs_devices

2017-10-11 Thread Anand Jain
On 10/11/2017 05:33 PM, Nikolay Borisov wrote: On 11.10.2017 03:28, Liu Bo wrote: If one of btrfs's devices was pulled out and we've replaced it with a new one, then they have the same uuid. If that device gets reconnected, 'btrfs filesystem show' will show the stale one instead of the new

Re: [PATCH] Btrfs-progs: do not add stale device into fs_devices

2017-10-11 Thread Nikolay Borisov
On 11.10.2017 03:28, Liu Bo wrote: > If one of btrfs's devices was pulled out and we've replaced it with a > new one, then they have the same uuid. > > If that device gets reconnected, 'btrfs filesystem show' will show the > stale one instead of the new one, but on kernel side btrfs has a fix >

Re: [PATCH] Btrfs-progs: do not add stale device into fs_devices

2017-10-11 Thread Anand Jain
On 10/11/2017 08:28 AM, Liu Bo wrote: If one of btrfs's devices was pulled out and we've replaced it with a new one, then they have the same uuid. If that device gets reconnected, 'btrfs filesystem show' will show the stale one instead of the new one, but on kernel side btrfs has a fix to not

[PATCH] Btrfs-progs: do not add stale device into fs_devices

2017-10-10 Thread Liu Bo
If one of btrfs's devices was pulled out and we've replaced it with a new one, then they have the same uuid. If that device gets reconnected, 'btrfs filesystem show' will show the stale one instead of the new one, but on kernel side btrfs has a fix to not include the stale one, this could confuse