mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-15 08:14:21 +08:00
e198c6674a
The exclusive ops will not start if there's one already running. Now that we have the sysfs export (since kernel 5.10) to check if there's one already running, use it to allow enqueueing of the operations as a convenience. Supported enqueuing: btrfs balance start --enqueue btrfs filesystem resize --enqueue btrfs device add --enqueue btrfs device delete --enqueue btrfs replace start --enqueue This patch implements the functionality based on Goldwyn's patch https://lore.kernel.org/linux-btrfs/?q=20200825150338.32610-4-rgoldwyn%40suse.de but on top of previous preparatory patches. Note that 'filesystem resize' options could confuse getopt as the negative size change looks like a series of short options and there's no way to make getopt ignore the short options, so there's a custom option parser. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.de> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
box.h | ||
defs.h | ||
device-scan.c | ||
device-scan.h | ||
device-utils.c | ||
device-utils.h | ||
extent-cache.c | ||
extent-cache.h | ||
format-output.c | ||
format-output.h | ||
fsfeatures.c | ||
fsfeatures.h | ||
help.c | ||
help.h | ||
internal.h | ||
messages.c | ||
messages.h | ||
path-utils.c | ||
path-utils.h | ||
rbtree-utils.c | ||
rbtree-utils.h | ||
send-stream.c | ||
send-stream.h | ||
send-utils.c | ||
send-utils.h | ||
string-table.c | ||
string-table.h | ||
task-utils.c | ||
task-utils.h | ||
utils-lib.c | ||
utils.c | ||
utils.h |