[PATCH 13/14] Add nfi, txn, and flags to dirent_args

Zach Brown zab at zabbo.net
Fri Feb 28 15:40:43 PST 2025


On Thu, Feb 27, 2025 at 03:16:22PM +0100, Valerie Aurora wrote:
> For directory operations like unlink(), rmdir(), and rename(), the
> dirent_args struct needs to carry all necessary info down to the btree
> iterator operator function. unlink() needs to know whether it is
> attempting to remove a directory or a file, so add a flags field to
> dirent_args. rmdir() needs to read the dir inode to get the link
> count, so add the nfi and txn pointers. rename() needs to know if the
> entry is just being moved to different directory, so add a flag.

Hopefully this won't be needed, as discussed in review of the addition
of unlink..

- z



More information about the ngnfs-devel mailing list