diff options
author | Anand Jain <Anand.Jain@oracle.com> | 2016-03-14 16:31:49 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-03-14 14:11:33 +0100 |
commit | 2490de5da527969a9178418155120bf50f2a8421 (patch) | |
tree | 4ae37e53ae99a6eaf7aa1d82a0508103ed4fda35 /fsck.btrfs | |
parent | 5f17513313ddd39d4348b382cf2224dbf4d35e7b (diff) |
btrfs-progs: Introduce device delete by devid
This patch introduces new option <devid> for the command
btrfs device delete <device_path|devid>[..] <mnt>
In a user reported issue on a 3-disk-RAID1, one disk failed with its
SB unreadable. Now with this patch user will have a choice to delete
the device using devid.
The other method we could do, is to match the input device_path
to the available device_paths with in the kernel. But that won't
work in all the cases, like what if user provided mapper path
when the path within the kernel is a non-mapper path.
This patch depends on the below kernel patch for the new feature to work,
however it will fail-back to the old interface for the kernel without the
patch
Btrfs: Introduce device delete by devid
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fsck.btrfs')
0 files changed, 0 insertions, 0 deletions