You can configure honoring of the O_DIRECT
flag inside containers with the sysctl
parameter fs.odirect_enable
:
-
To ignore the
O_DIRECT
flag inside a container, setfs.odirect_enable
to0
in that container. -
To honor the
O_DIRECT
flag inside the container, setfs.odirect_enable
to1
in that container. -
To have a container inherit the setting from the hardware node, set
fs.odirect_enable
to2
in that container (default value). On the hardware node,fs.odirect_enable
is0
by default.
Note
Note: The fs.odirect_enable
parameter on the Node only affects honoring of the O_DIRECT
flag in containers and not on the Node itself where the O_DIRECT
flag is always honored.