mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
8acc54456e
The fsck and bcachefs scripts simply worked by running 'exec bcachefs ...', but this executes whatever is out of `$PATH`, which is likely not what a user expected when working inside the bcachefs-tools tree. This replaces the local uses of 'exec bcachefs' to use bash's readlink/dirname builtins in order to find the location of the currently executing wrapper, and execute the 'bcachefs' tool from there. This allows executing these wrappers from anywhere, provided 'bcachefs' is just right next to them, with the correct semantics. As a result, this also allows removing a tiny hack from the Nix expressions, allowing the included default.nix to use completely standard mkDerivation builders, with no extra patch/fixup phases. Signed-off-by: Austin Seipp <aseipp@pobox.com> |
||
---|---|---|
ccan | ||
debian | ||
include | ||
libbcachefs | ||
linux | ||
nix | ||
.bcachefs_revision | ||
.gitignore | ||
bcachefs.8 | ||
bcachefs.c | ||
cmd_assemble.c | ||
cmd_debug.c | ||
cmd_device.c | ||
cmd_format.c | ||
cmd_fs.c | ||
cmd_fsck.c | ||
cmd_key.c | ||
cmd_migrate.c | ||
cmd_run.c | ||
cmds.h | ||
config.h | ||
COPYING | ||
crypto.c | ||
crypto.h | ||
default.nix | ||
fsck.bcachefs | ||
INSTALL | ||
libbcachefs.c | ||
libbcachefs.h | ||
Makefile | ||
mkfs.bcachefs | ||
qcow2.c | ||
qcow2.h | ||
README | ||
tools-util.c | ||
tools-util.h |
Userspace tools for bcachefs This builds the bcachefs tool, which has a number of subcommands for formatting and managing bcachefs filesystems: bcachefs format bcachefs unlock bcachefs assemble bcachefs incremental etc. Run bcachefs --help for full list of commands.