Bug 112741
Summary: | "btrfs device replace" should allow smaller devices if possible | ||
---|---|---|---|
Product: | File System | Reporter: | Andy Smith (andy-bugzilla.kernel.org) |
Component: | btrfs | Assignee: | Josef Bacik (josef) |
Status: | NEW --- | ||
Severity: | enhancement | CC: | dsterba, fdmanana, szg00000 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.5.0-rc4 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Andy Smith
2016-02-20 19:21:19 UTC
Technically possible, I've just tried it and works if the size checks are dropped. We'd need to make sure the actual data will fit the new device size and satisfy the raid constraints. Before anyone else goes into assuming that adding support for device replace to use a smaller device is as simple as removing or updating the device size constraints in the kernel and btrfs-progs: https://lore.kernel.org/linux-btrfs/CAL3q7H60gNBC_zzU8gjZ_s=7MnN23yFzQqYxanhvzMO50qtXJg@mail.gmail.com/ https://patchwork.kernel.org/patch/11278121/ Just in case someone else is interested in implementing the feature. |