HomeFreeBSD

Add extended attributes

Description

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

Details

Provenance
fsuAuthored on Dec 5 2022, 5:04 PM
Reviewer
kib
Differential Revision
D38052: [tmpfs]: Add extended attributes
Parents
rG0de4895aac4e: Fix pjfstest issue tests/rename/23.t
Branches
Unknown
Tags
Unknown