FSMOUNT_NAMESPACE Feature Coming For Linux 7.1
([Linux Storage] 5 Hours Ago
FSMOUNT_NAMESPACE)
- Reference: 0001626234
- News link: https://www.phoronix.com/news/Linux-7.1-FSMOUNT-NAMESPACE
- Source link:
Among the new VFS features expected to land for the upcoming Linux 7.1 merge window is FSMOUNT_NAMESPACE.
FSMOUNT_NAMESPACE is a new feature developed by Christian Brauner. Using the FSMOUNT_NAMESPACE flag with fsmount() allows creating a new mount namespace with the newly-created file-system attached to a copy of the real root file-system. A namespace file descriptor is returned rather than the O_PATH mount file descriptor.
The intent with FSMOUNT_NAMESPACE is for creating a new file-system and immediately placing it into a new mount namespace via a single operation. This should benefit container runtimes and other namespace-based isolation techniques, rather than having to go via [1]OPEN_TREE_NAMESPACE , such as using an actual file-system for a container rootfs.
The FSMOUNT_NAMESPACE support is part of the [2]VFS Git branch and thus should be part of the upcoming Linux 7.1 merge window barring any objections from Linus Torvalds or any other last minute issues.
[1] https://www.phoronix.com/news/Linux-Open-Tree-Namespace
[2] https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git/commit/?h=vfs.all&id=5e8969bd192712419aae511dd5ba26855c2c78db
FSMOUNT_NAMESPACE is a new feature developed by Christian Brauner. Using the FSMOUNT_NAMESPACE flag with fsmount() allows creating a new mount namespace with the newly-created file-system attached to a copy of the real root file-system. A namespace file descriptor is returned rather than the O_PATH mount file descriptor.
The intent with FSMOUNT_NAMESPACE is for creating a new file-system and immediately placing it into a new mount namespace via a single operation. This should benefit container runtimes and other namespace-based isolation techniques, rather than having to go via [1]OPEN_TREE_NAMESPACE , such as using an actual file-system for a container rootfs.
The FSMOUNT_NAMESPACE support is part of the [2]VFS Git branch and thus should be part of the upcoming Linux 7.1 merge window barring any objections from Linus Torvalds or any other last minute issues.
[1] https://www.phoronix.com/news/Linux-Open-Tree-Namespace
[2] https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git/commit/?h=vfs.all&id=5e8969bd192712419aae511dd5ba26855c2c78db