kdave / btrfs-progs

Development of userspace BTRFS tools
GNU General Public License v2.0
527 stars 239 forks source link

`device delete`: warn and add a timeout when multiple devices are removed #708

Closed kdave closed 7 months ago

kdave commented 7 months ago

Reported on IRC, that it's unexpected that passing several devices on command line for device delet still uses some of the devices during deletion. The expectation was that they'd be removed at once (and thus not used for the intermediate chunk relocation).

As it works now, the ioctl removes only one device. As a workaround, add a timeout (like we have for the full balance and others) when there are more devices passed on the command line.

kdave commented 7 months ago

Now implemented in devel.