package uring

  1. Overview
  2. Docs

Module Statx.AttrSource

include FLAGS
Sourcetype t = private int

A set of flags.

Sourceval empty : t
Sourceval of_int : int -> t
Sourceval (+) : t -> t -> t

a + b is the union of the sets.

Sourceval mem : t -> t -> bool

mem x flags is true iff x is a subset of flags.

Sourceval compressed : t

The file is compressed by the filesystem.

Sourceval immutable : t

The file cannot be modified, as defined by chattr(1).

Sourceval append : t

The file can only be opened in append mode for writing. See chattr(1).

Sourceval nodump : t

The file is not a candidate for backup when a backup program scans the filesystem.

Sourceval encrypted : t

A key is required for the file to be encrypted by the filesystem.

Sourceval verity : t

The 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.

Sourceval dax : t

The file is in the DAX (cpu direct access) state, which minimises page-cache effects for both I/O and memory mappings of this file.

  • since Linux 5.8
Sourceval check : ?mask:Int64.t -> Int64.t -> t -> bool

check ?mask attr t will check if t is set in attr.

If mask is not None then it will first check the mask to see if the file attribute is supported and if not raise Invalid_argument.

OCaml

Innovation. Community. Security.