mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-03 00:00:07 +03:00
8b6497b4e7
Also adds partial . and .. support, and implements ENOTDIR error. The source of this problem was due to the off-by-one interface expected by readdir. Each directory entry contains a pointer to next, so it cannot be emitted to the user until the next entry is actually read. Returning the current position + 1 is insufficient, because the user will just retry cur + 1 as the start position to see if they've reached the end of the directory. Since directory entries are keyed by a 64-bit hash in bcachefs, the result was that the user would call readdir over and over with what it believed the next pointer to be until "cur + 1" reached some enormous 64-bit value related to the hash for the "lost+found" entry. |
||
---|---|---|
ccan | ||
debian | ||
include | ||
initramfs | ||
libbcachefs | ||
linux | ||
nix | ||
raid | ||
.bcachefs_revision | ||
.gitignore | ||
bcachefs.8 | ||
bcachefs.c | ||
cmd_assemble.c | ||
cmd_attr.c | ||
cmd_data.c | ||
cmd_debug.c | ||
cmd_device.c | ||
cmd_format.c | ||
cmd_fs.c | ||
cmd_fsck.c | ||
cmd_fusemount.c | ||
cmd_key.c | ||
cmd_migrate.c | ||
cmd_run.c | ||
cmd_version.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.