Files
visor/pkg
Ryan El KochtaandgVisor bot 36feca5ce1 New mount API: implement fsopen(2), fsconfig(2), fsmount(2), move_mount(2).
The first step in implementing the new file-descriptor based mount API in
gVisor. A "filesystem creation context" is created using fsopen(). The context
is then configured using fsconfig(), and the FSCONFIG_CMD_CREATE command is
used to create a filesystem. A "mount object" can be obtained using fsmount(),
which can be operated on directly using the *at() functions or mounted onto the
real directory tree using move_mount().

For compatibility reasons, the new mount API is gated behind the runtime flag
`--new-mount-api`, which is disabled by default.

The current implementation has the following limitations:
- Linux passes configuration options to filesystems on-the-fly as fsopen() and
  fsconfig() are called, allowing per-parameter error handling. gVisor
  currently queues up all options and passes them to the filesystem all-at-once
  when FSCONFIG_CMD_CREATE occurs. Lifting this will require refactoring the
  option parsing for all existing filesystems.
- Only flag and string arguments to fsconfig() are supported.
- FSCONFIG_CMD_RECONFIGURE is not supported.
- move_mount(): flags MOVE_MOUNT_SET_GROUP and MOVE_MOUNT_BENEATH are not
  supported.
- The filesystem context message retrieval interface is not supported.

In the interest of review size, there is no implementation yet for
mount_setattr(2), open_tree(2), or fspick(2).

PiperOrigin-RevId: 923640824
2026-06-08 10:14:39 -07:00
..
2026-01-13 05:34:06 -05:00
2026-02-25 11:07:15 -08:00
2025-12-15 14:42:53 -06:00
2023-10-23 22:09:47 -07:00
2026-02-12 14:55:06 -08:00
2025-12-15 14:42:53 -06:00
2026-03-17 13:43:32 -07:00
2023-08-07 11:42:20 -07:00
2025-12-15 14:42:53 -06:00
2026-03-13 16:09:48 -07:00
2025-07-30 13:11:02 -07:00
2025-12-15 14:42:53 -06:00
2026-03-18 14:58:54 -07:00
2024-09-25 20:16:45 -07:00
2026-03-17 13:43:32 -07:00
2026-04-11 04:49:38 -07:00
2025-08-22 14:27:14 +08:00
2026-02-12 14:55:06 -08:00
2025-12-15 14:42:53 -06:00