opnsense-src/sys/fs/tmpfs
Fedor Uporov 56242a4c65 Add extended attributes
The extattrs follows semantic of ufs, mean it cannot
be set to char/block devices and fifos. The attributes
are allocated using regular malloc with M_WAITOK
allocation with the own malloc tag M_TMPFSEA. The memory
consumed by extended attributes is limited to avoid OOM
triggereing by tmpfs_mount variable tm_ea_memory_max,
which is set initialy to 16 MB. The extended attributes
entries are stored as linked list in the tmpfs node.
The mount point lock is required only under setextattr
and deleteextattr to update extended attributes
memory-inuse counter, all other operations are doing
under vnode lock.

Reviewed by:    kib
MFC after:      2 week
Differential revision:  https://reviews.freebsd.org/D38052
2023-01-29 11:13:14 +03:00
..
tmpfs.h Add extended attributes 2023-01-29 11:13:14 +03:00
tmpfs_fifoops.c tmpfs: add vop_stdadd_writecount_nomsync to fifo vnode ops 2021-11-26 19:32:35 +00:00
tmpfs_fifoops.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
tmpfs_subr.c Add extended attributes 2023-01-29 11:13:14 +03:00
tmpfs_vfsops.c Add extended attributes 2023-01-29 11:13:14 +03:00
tmpfs_vnops.c Add extended attributes 2023-01-29 11:13:14 +03:00
tmpfs_vnops.h tmpfs: add VOP_STAT handler 2020-08-07 23:07:47 +00:00