Statx.Attrval compressed : tThe file is compressed by the filesystem.
val immutable : tThe file cannot be modified, as defined by chattr(1).
val append : tThe file can only be opened in append mode for writing. See chattr(1).
val nodump : tThe file is not a candidate for backup when a backup program scans the filesystem.
val encrypted : tA key is required for the file to be encrypted by the filesystem.
val verity : tThe file has fs-verity enabled. It cannot be written to, and all reads from it will be verified against a cryptographic hash that covers the entire file.
val dax : tThe file is in the DAX (cpu direct access) state, which minimises page-cache effects for both I/O and memory mappings of this file.
mem_checked ~mask attr attrs is true iff attr is both supported and set, i.e. mem attr mask && mem attr attrs.
attrs should be the result of attributes and mask that of attributes_mask for the same statx reply. The kernel leaves unsupported attributes in an undefined state, so an attribute that is not in mask is reported as unset.
If you have already established that an attribute is supported you can use mem directly.