[PATCH 12/15] Add ngnfs_dir_unlink(), ngfs_dir_rmdir(), and debugfs commands

Valerie Aurora val at versity.com
Wed Mar 19 02:59:28 PDT 2025


On Wed, Mar 12, 2025 at 3:34 PM Valerie Aurora <val at versity.com> wrote:
>  static int compar_cmd_names(const void *A, const void *B)
> diff --git a/shared/dir.c b/shared/dir.c
> index ebeea01..a8a180a 100644
> --- a/shared/dir.c
> +++ b/shared/dir.c
> @@ -77,6 +77,15 @@ static u64 name_hash(void *name, size_t name_len)
>         return hash;
>  }
>
> +/*
> + * Flags to specify which tests should be done before removing a
> + * directory entry.
> + */
> +enum {
> +       NGNFS_DIRENT_WANT_DIR =         0x1,
> +       NGNFS_DIRENT_WILL_MOVE =        0x2,
> +};
> +

Looking at other parts of the code, these should be shortened to
something like RMD_WANT_DIR. On my todo list!

Valerie



More information about the ngnfs-devel mailing list