inherit_flags(9)
π inherit_flags(9) π
okay so this is the Kernel API Manual page for inherit_flags, and bestie, itβs giving βsmall helper, big inheritance energy.β β¨
πΈ NAME πΈ
inherit_flags β inherit flags of the parent inode. periodt. π
β¨ SYNOPSIS β¨
int inherit_flags (const struct inode *dir , umode_t mode );
π ARGUMENTS π
dirβ parent inode.modeβ new inode mode flags.
π¦ DESCRIPTION π¦
okay so inherit_flags is a helper function for ubifs_new_inode, and its whole thing is inheriting the flag of the parent directory inode dir. no cap, thatβs the vibe.
UBIFS inodes inherit the following flags:
UBIFS_COMPR_FLβ useful to switch compression on/of on sub-directory basis;UBIFS_SYNC_FLβ useful for the same reasons;UBIFS_DIRSYNC_FLβ similar, but relevant only to directories.
and yeah, this function returns the inherited flags. thatβs the whole return moment. π
π₯ SEE ALSO π₯
go read these too, bestie:
- Kernel file
./fs/ubifs/dir.c ubifs_new_inode(9)lock_2_inodes(9)unlock_2_inodes(9)vfs_dent_type(9)ubifs_check_dir_empty(9)lock_4_inodes(9)unlock_4_inodes(9)
byeee π«Ά β source/version: ./fs/ubifs; date: October 2026. mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms