btrfs-progs/check
Josef Bacik c979ffd787 btrfs-progs: sync accessors.[ch] from the kernel
This syncs accessors.[ch] from the kernel.  For the most part
accessors.h will remain the same, there's just some helpers that need to
be adjusted for eb->data instead of eb->pages.  Additionally accessors.c
needed to be completely updated to deal with this as well.

This is a set of files where we will likely only sync the header going
forward, and leave the C file in place as it needs to be specific to
btrfs-progs.

This forced a few "unrelated" changes

- Using btrfs_dir_item_ftype() instead of btrfs_dir_item_type().  This
  is due to the encryption changes, and was simpler to just do in this
  patch.
- Adjusting some of the print tree code to use the actual helpers and
  not the btrfs-progs ones.

A local definition of static_assert is used to avoid compilation
failures on older gcc (< 9) where the 2nd parameter is mandatory.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-05-26 18:02:28 +02:00
..
clear-cache.c btrfs-progs: introduce UASSERT() for purely userspace code 2023-05-26 18:02:28 +02:00
clear-cache.h btrfs-progs: tune: add --convert-to-free-space-tree option 2023-05-26 18:02:27 +02:00
common.h btrfs-progs: check: move global variables to common headers 2022-10-11 09:08:09 +02:00
main.c btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
mode-common.c btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
mode-common.h btrfs-progs: check: move global variables to common headers 2022-10-11 09:08:09 +02:00
mode-lowmem.c btrfs-progs: sync accessors.[ch] from the kernel 2023-05-26 18:02:28 +02:00
mode-lowmem.h btrfs-progs: check: update include lists 2022-10-11 09:06:12 +02:00
mode-original.h btrfs-progs: check: add check for overlong xattr names 2022-04-25 18:52:49 +02:00
qgroup-verify.c btrfs-progs: rename the qgroup structs to match the kernel 2023-05-26 18:02:28 +02:00
qgroup-verify.h btrfs-progs: check: update include lists 2022-10-11 09:06:12 +02:00
repair.c btrfs-progs: remove parent_key arg from btrfs_check_* helpers 2023-05-26 18:02:28 +02:00
repair.h btrfs-progs: add a btrfs check helper for checking blocks 2023-05-26 18:02:28 +02:00