3.5.3.1. Setting the Direct Access Flag Inside Containers

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, set fs.odirect_enable to 0 in that container.
  • To honor the O_DIRECT flag inside the container, set fs.odirect_enable to 1 in that container.
  • To have a container inherit the setting from the hardware node, set fs.odirect_enable to 2 in that container (default value). On the hardware node, fs.odirect_enable is 0 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.