diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-10-11 11:57:16 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-11-14 15:59:00 +0100 |
commit | eebdf023215ca0c9268bf7885d10f0d083cf6b70 (patch) | |
tree | 6ad04cb046606dc6976512890ef7e413528a78cd /repair.h | |
parent | 59e067ada7e8af5894a9f865a2c8d65be57746c3 (diff) |
btrfs-progs: do not add stale device into fs_devices
If one of btrfs' 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 the kernel side btrfs has a fix
not to include the stale one, this could confuse users as people may
monitor btrfs by running that command.
This does the similar thing to what kernel side has done.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
[ format string adjustments ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'repair.h')
0 files changed, 0 insertions, 0 deletions