bcachefs-tools/c_src
Kent Overstreet 7c47145f6c cmd_fs_usage: Fix kernel version check
This needed an access() check, like the other uses, instead of exiting
if it can't be read.

Factor out a small common helper for this.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-03-28 11:38:55 -04:00
..
bcachefs.c bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled 2025-03-28 11:12:32 -04:00
cmd_assemble.c move Rust sources to top level, C sources into c_src 2024-01-16 01:47:05 -05:00
cmd_attr.c change setattr to set-file-option in docs/usage 2024-08-22 16:23:51 -05:00
cmd_counters.c move Rust sources to top level, C sources into c_src 2024-01-16 01:47:05 -05:00
cmd_data.c Scrub 2025-02-03 14:08:49 -05:00
cmd_device.c bch2_format() now takes a darray of dev_opts 2025-03-23 11:03:42 -04:00
cmd_dump.c cmd_dump: Open in noexcl mode 2024-08-31 21:34:15 -04:00
cmd_format.c Update bcachefs sources to 1392e502d48b bcachefs: Add an "ignore unknown" option to bch2_parse_mount_opts() 2025-03-25 16:37:24 -04:00
cmd_fs.c cmd_fs_usage: Fix kernel version check 2025-03-28 11:38:55 -04:00
cmd_fsck.c cmd_fs_usage: Fix kernel version check 2025-03-28 11:38:55 -04:00
cmd_fusemount.c bcachefs-tools: fix build failure by fixing of C header filename 2025-03-26 09:41:11 -04:00
cmd_key.c Fix set-passphrase on --no_passphrase FS 2024-09-07 21:46:32 -04:00
cmd_kill_btree_node.c cmd_kill_btree_node: Can now kill multiple nodes simultaneously 2024-10-12 17:20:56 -04:00
cmd_list_journal.c Scrub 2025-02-03 14:08:49 -05:00
cmd_migrate.c migrate_superblock: make sure we remove old superblock 2025-03-26 09:39:59 -04:00
cmd_option.c More device option work 2025-03-19 15:47:44 -04:00
cmd_run.c move Rust sources to top level, C sources into c_src 2024-01-16 01:47:05 -05:00
cmd_top.c bcachefs fs top 2025-02-03 14:08:49 -05:00
cmd_version.c move Rust sources to top level, C sources into c_src 2024-01-16 01:47:05 -05:00
cmds.h cmd_recover_super: 'bcachefs recover-super' 2025-03-17 14:28:10 -04:00
config.h move Rust sources to top level, C sources into c_src 2024-01-16 01:47:05 -05:00
crypto.c Fix set-passphrase on --no_passphrase FS 2024-09-07 21:46:32 -04:00
crypto.h Fix set-passphrase on --no_passphrase FS 2024-09-07 21:46:32 -04:00
libbcachefs.c format: fix minimum bucket nr check 2025-03-25 16:47:50 -04:00
libbcachefs.h cmd_fs_usage: Fix kernel version check 2025-03-28 11:38:55 -04:00
posix_to_bcachefs.c Update bcachefs sources to 1392e502d48b bcachefs: Add an "ignore unknown" option to bch2_parse_mount_opts() 2025-03-25 16:37:24 -04:00
posix_to_bcachefs.h Migrate tool fixes 2025-03-24 17:46:23 -04:00
qcow2.c move Rust sources to top level, C sources into c_src 2024-01-16 01:47:05 -05:00
qcow2.h move Rust sources to top level, C sources into c_src 2024-01-16 01:47:05 -05:00
tools-util.c fixup! cmd_format: fix --version 2024-12-04 21:22:03 -05:00
tools-util.h cmd_format: fix --version 2024-12-03 21:51:26 -05:00