inherit_flags(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


byeee 🫢 β€” source/version: ./fs/ubifs; date: October 2026. mwah πŸ’‹

πŸ“¦ where this page comes from