btrfs-progs/cmds
Josef Bacik 0ba50a27f4 btrfs-progs: fix improper error handling in btrfs filesystem usage
I was seeing test-cli/016 failures because it claimed we were getting
EPERM from the TREE_SEARCH ioctl to get the chunk info out of the file
system.  This turned out to be because errno was already set going into
this function, the ioctl itself wasn't actually failing.  Fix this by
checking for a return value from the ioctl first, and then returning
-EPERM if appropriate.  This fixed the failures in my setup.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-08-28 17:24:25 +02:00
..
balance.c btrfs-progs: balance start: fix typo in help text 2023-08-28 17:24:24 +02:00
commands.h btrfs-progs: add new group reflink and command 2022-12-07 01:43:30 +01:00
device.c btrfs-progs: sync uapi/btrfs.h into btrfs-progs 2023-05-26 18:02:28 +02:00
filesystem-du.c btrfs-progs: introduce UASSERT() for purely userspace code 2023-05-26 18:02:28 +02:00
filesystem-usage.c btrfs-progs: fix improper error handling in btrfs filesystem usage 2023-08-28 17:24:25 +02:00
filesystem-usage.h btrfs-progs: sync uapi/btrfs.h into btrfs-progs 2023-05-26 18:02:28 +02:00
filesystem.c btrfs-progs: rename struct open_ctree_flags to open_ctree_args 2023-07-26 15:00:47 +02:00
inspect-dump-super.c btrfs-progs: dump-super: fix read beyond device size 2023-07-26 15:00:47 +02:00
inspect-dump-tree.c btrfs-progs: factor out btrfs_scan_argv_devices 2023-07-26 15:00:48 +02:00
inspect-tree-stats.c btrfs-progs: update read_tree_block to match the kernel definition 2023-05-26 18:02:30 +02:00
inspect.c btrfs-progs: list-chunks: port to sorting API 2023-08-28 17:24:24 +02:00
property.c btrfs-progs: sync uapi/btrfs.h into btrfs-progs 2023-05-26 18:02:28 +02:00
props.h btrfs-progs: prop set: add force parameter 2021-10-07 18:40:24 +02:00
qgroup.c btrfs-progs: qgroup show: fix formatting of limit values in json output 2023-05-26 18:02:33 +02:00
qgroup.h btrfs-progs: sync uapi/btrfs.h into btrfs-progs 2023-05-26 18:02:28 +02:00
quota.c btrfs-progs: sync uapi/btrfs.h into btrfs-progs 2023-05-26 18:02:28 +02: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: output the parent subvolume uuid if it cannot be found 2023-05-26 18:02:31 +02:00
reflink.c btrfs-progs: fix -Wmissing-prototypes warnings 2023-05-26 18:02:31 +02:00
replace.c btrfs-progs: replace: properly enqueue if there's another replace running 2023-07-26 15:00:48 +02:00
rescue-chunk-recover.c btrfs-progs: add btrfs_locking_nest to btrfs_alloc_tree_block 2023-05-26 18:02:29 +02:00
rescue-super-recover.c btrfs-progs: cmds: update include lists 2022-10-11 09:07:59 +02:00
rescue.c btrfs-progs: rename struct open_ctree_flags to open_ctree_args 2023-07-26 15:00:47 +02:00
rescue.h btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
restore.c btrfs-progs: rename struct open_ctree_flags to open_ctree_args 2023-07-26 15:00:47 +02:00
scrub.c btrfs-progs: scrub: unify the output numbers for "Total to scrub" 2023-06-15 12:24:48 +02:00
send.c btrfs-progs: move sysfs related helpers to own file 2023-08-28 17:24:24 +02:00
subvolume-list.c btrfs-progs: subvolume: move json format output under experimental 2023-08-28 17:24:23 +02:00
subvolume.c btrfs-progs: use escaped format for subvolume path strings in json 2023-08-28 17:24:23 +02:00
subvolume.h btrfs-progs: subvol: introduce rowspec definition for json output 2023-08-28 17:24:23 +02:00