Understanding Linux Inode Flags: FS_IOC_GETFLAGS vs FS_IOC_FSGETXATTR
Both FS_IOC_GETFLAGS and FS_IOC_FSGETXATTR retrieve inode attributes, but they differ in scope, design, and what they’re meant to expose. Understanding which to use depends on your filesystem, compatibility requirements, and what metadata you actually need. Historical context and design constraints FS_IOC_GETFLAGS originated with ext2/ext3 as a simple interface to query inode flags. It became so…
