[PATCH 15/23] Add ngnfs_dir_mkdir() and debugfs command
Zach Brown
zab at zabbo.net
Wed Apr 9 14:58:14 PDT 2025
On Fri, Apr 04, 2025 at 08:45:31PM +0200, Valerie Aurora wrote:
> Add ngnfs_dir_mkdir() and corresponding debugfs command. Other file
> systems report a non-zero i_size for empty directories, so we also
> give empty directories a non-zero file size. In our case it is 5
> bytes, to match our convention for the effect on directory i_size of
> real dirents of name plus null terminator, applied to "." and "..".
> diff --git a/shared/inode.c b/shared/inode.c
> index 982f8af..3698920 100644
> --- a/shared/inode.c
> +++ b/shared/inode.c
> @@ -1,5 +1,7 @@
> /* SPDX-License-Identifier: GPL-2.0 */
>
> +#include <sys/stat.h>
shared/inode.c will be kernel code, so <sys/stat.h> should be "shared/lk/stat.h".
- z
More information about the ngnfs-devel
mailing list