]> git.ipfire.org Git - people/ms/linux.git/commit - fs/btrfs/ioctl.c
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)
commit67ae34b69c4146e40f3828ecb59ff00a840c01dc
tree322fc2971e20d9f75b0bdce07c670e264fbfd85b
parentbb059a37c9ff3e40c0348e82a7e3ebd3918cf418
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