btrfs-progs/cmds
David Sterba 9cb34031d7 btrfs-progs: balance: fix condition for recognizing old syntax
The commit 6f7151f499 extended the set of recognized valid subcommands
for the old path syntax but wrongly checks for more than 2 parameters.
That way a shortened and valid new syntax is not recognized (here 'can'
is short for 'cancel' and the short form is not in the list):

  btrfs-progs-6.1.3

  btrfs bal can /
  ERROR: balance cancel on '/' failed: Not in progress

  btrfs-progs-6.2.2

  btrfs bal can /
  WARNING: deprecated syntax, please use 'btrfs balance start'
  ERROR: cannot access 'can': No such file or directory

Issue: #612
Fixes: 6f7151f499 ("btrfs-progs: balance: fix some cases wrongly parsed as old syntax")
Signed-off-by: David Sterba <dsterba@suse.com>
2023-04-03 19:28:16 +02:00
..
balance.c btrfs-progs: balance: fix condition for recognizing old syntax 2023-04-03 19:28:16 +02:00
commands.h btrfs-progs: add new group reflink and command 2022-12-07 01:43:30 +01:00
device.c btrfs-progs: dev stats: fix printing wrong values in tabular output 2023-03-07 21:09:03 +01:00
filesystem-du.c btrfs-progs: filesystem: convert help text to option formatter 2023-02-28 20:11:23 +01:00
filesystem-usage.c btrfs-progs: handle case if fsid not in sysfs in device_is_seed 2023-03-17 18:15:39 +01:00
filesystem-usage.h btrfs-progs: fi usage: unify naming of device and chunk info variables 2022-10-11 09:08:08 +02:00
filesystem.c btrfs-progs: filesystem: convert help text to option formatter 2023-02-28 20:11:23 +01:00
inspect-dump-super.c btrfs-progs: inspect-internal: convert help text to option formatter 2023-02-28 20:11:24 +01:00
inspect-dump-tree.c btrfs-progs: inspect-internal: convert help text to option formatter 2023-02-28 20:11:24 +01:00
inspect-tree-stats.c btrfs-progs: inspect-internal: convert help text to option formatter 2023-02-28 20:11:24 +01:00
inspect.c btrfs-progs: inspect-internal: convert help text to option formatter 2023-02-28 20:11:24 +01:00
property.c btrfs-progs: property: convert help text to option formatter 2023-02-28 20:11:24 +01:00
props.h
qgroup.c btrfs-progs: qgroup show: fix formatting of qgroupid on json output 2023-03-16 15:48:41 +01:00
qgroup.h Revert "btrfs-progs: rename qgroup items to match the kernel naming scheme" 2023-01-03 13:10:54 +01:00
quota.c btrfs-progs: quota: convert help text to option formatter 2023-02-28 20:11:24 +01:00
receive-dump.c btrfs-progs: receive: add support for fs-verity 2022-10-11 09:08:08 +02:00
receive-dump.h btrfs-progs: cmds: update include lists 2022-10-11 09:07:59 +02:00
receive.c btrfs-progs: receive: convert help text to option formatter 2023-02-28 20:11:24 +01:00
reflink.c btrfs-progs: reflink: convert help text to option formatter 2023-02-28 20:11:24 +01:00
replace.c btrfs-progs: replace: convert help text to option formatter 2023-02-28 20:11:24 +01:00
rescue-chunk-recover.c btrfs-progs: don't use btrfs_header_csum helper 2022-11-30 19:14:29 +01:00
rescue-super-recover.c btrfs-progs: cmds: update include lists 2022-10-11 09:07:59 +02:00
rescue.c btrfs-progs: rescue: convert help text to option formatter 2023-02-28 20:11:24 +01:00
rescue.h
restore.c btrfs-progs: restore: don't modify metadata in dry-run mode 2023-03-16 16:31:27 +01:00
scrub.c btrfs-progs: scrub: convert help text to option formatter 2023-02-28 20:11:24 +01:00
send.c btrfs-progs: send: convert help text to option formatter 2023-02-28 20:11:24 +01:00
subvolume-list.c btrfs-progs: subvolume: convert help text to option formatter 2023-02-28 20:11:24 +01:00
subvolume.c btrfs-progs: subvolume: convert help text to option formatter 2023-02-28 20:11:24 +01:00