]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add device delete cancel
authorDavid Sterba <dsterba@suse.com>
Fri, 14 May 2021 19:21:27 +0000 (21:21 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:07 +0000 (15:19 +0200)
commit7ef195daba273c78454db97b81ba0436828d9cb7
tree322fc2971e20d9f75b0bdce07c670e264fbfd85b
parent73938e26ae975da98373421cc6b648b925c900bd
btrfs: add device delete cancel

Accept device name "cancel" as a request to cancel running device
deletion operation. The string is literal, in case there's a real device
named "cancel", pass it as full absolute path or as "./cancel"

This works for v1 and v2 ioctls when the device is specified by name.
Moving chunks from the device uses relocation, use the conditional
exclusive operation start and cancellation helpers

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c