From 35c6690e0b1611134de032c281976a62e4d2c9fd Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 1 Jul 2025 04:06:53 -0400 Subject: kernel: tmpfs: Add 'mode' field to tmpfs nodes Signed-off-by: Ian Moffett --- sys/include/fs/tmpfs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/include') diff --git a/sys/include/fs/tmpfs.h b/sys/include/fs/tmpfs.h index ca24060..acb5256 100644 --- a/sys/include/fs/tmpfs.h +++ b/sys/include/fs/tmpfs.h @@ -55,6 +55,7 @@ struct tmpfs_node; * @len: Length of buffer * @real_size: Actual size of file * @data: The backing file data + * @mode: File permissions * @dirvp: Vnode of the parent node * @vp: Vnode of the current node * @lock: Lock protecting this node @@ -65,6 +66,7 @@ struct tmpfs_node { size_t len; size_t real_size; void *data; + mode_t mode; struct vnode *dirvp; struct vnode *vp; struct spinlock lock; -- cgit v1.2.3