This is a pretty simple patch to address Bug 112741: "btrfs device replace" should allow smaller devices if possible[1]. I have a followup patch for btrfs-progs related to this which updates the validation and adds an extra prompt. [1] https://bugzilla.kernel.org/show_bug.cgi?id=112741 Kyle Ambroff-Kao (1): btrfs: Allow replacing device with a smaller one if possible fs/btrfs/dev-replace.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) -- 2.20.1
