[PATCH 00/14] Support for cd/mkdir/unlink/rmdir/get_handle and static library
Valerie Aurora
val at versity.com
Thu Feb 27 06:16:09 PST 2025
These patches implement cd, mkdir, unlink, rmdir, and open by handle
in debugfs. They also implement dtype and building a static library
for use by external binaries and include a few small bug fixes.
This patch set contains some hints about rename() support, such as the
NGNFS_DIR_WILL_MOVE flag check in remove_dirent_wr(), but my current
version of rename() has an elusive bug so I figured I would send
these for feedback while I work on it.
As usual, they are ordered least to most controversial, and feel free
to take as many or as few as you like and send the rest back for
rework.
Thanks in advance for your feedback!
Valerie
Valerie Aurora (13):
Fix free/alloc reversal of btree block merge condition
Fix size calculation of ngnfs_dirent in init_dirent_args()
Add dependency for generated trace inline header files
Build static library
Add parent inode number for directories
Add auto-generated "." and ".." entries to directories
Add ngnfs_dir_get_dirent() and debugfs lookup command
Add ngnfs_dir_get_handle() for using files/dirs
Extend debugfs stat command to take an optional file name
Add the cd command to debugfs
Add ngnfs_dir_mkdir() and debugfs command
Add nfi, txn, and flags to dirent_args
Add ngnfs_dir_unlink(), ngfs_dir_rmdir(), and debugfs commands
Zach Brown (1):
Add support for dtype
.gitignore | 1 +
Makefile | 22 +-
cli/debugfs.c | 171 +++++++++++++-
lib/.gitkeep | 0
shared/btree.c | 17 +-
shared/dir.c | 534 +++++++++++++++++++++++++++++++++++++++---
shared/dir.h | 32 ++-
shared/format-block.h | 18 +-
shared/inode.c | 21 +-
shared/inode.h | 3 +-
shared/lk/fs_types.h | 7 +
shared/mkfs.c | 3 +-
12 files changed, 767 insertions(+), 62 deletions(-)
create mode 100644 lib/.gitkeep
create mode 100644 shared/lk/fs_types.h
--
2.48.1
More information about the ngnfs-devel
mailing list