From 1db45b2ed43e9da73eaf2083136d53861b2063a6 Mon Sep 17 00:00:00 2001 From: Benjamin Leggett Date: Wed, 9 Sep 2026 16:10:29 -0400 Subject: [PATCH] feat(mounts): Expose options to control whether host mounts are cached or not --- protect/control/v1/common.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/protect/control/v1/common.proto b/protect/control/v1/common.proto index 1124dff..9ad5866 100644 --- a/protect/control/v1/common.proto +++ b/protect/control/v1/common.proto @@ -187,10 +187,22 @@ message ProcessSpec { repeated int64 additional_gids = 13; } +// How a host mount is cached inside the zone. CACHED enables caching for the host mount. +// NONE disables mount caching. +// +// The KVM backend currently doesn't use this, because it doesn't support per-mount FS devices. +enum MountCacheMode { + // Treated as CACHED. + MOUNT_CACHE_MODE_UNKNOWN = 0; + MOUNT_CACHE_MODE_CACHED = 1; + MOUNT_CACHE_MODE_NONE = 2; +} + message MountSpec { string host_path = 1; string target_path = 2; bool read_only = 3; + MountCacheMode cache = 4; } message EnvironmentVariableSpec { @@ -628,6 +640,7 @@ message WorkloadMountInfo { string host_path = 3; string target_path = 5; bool read_only = 6; + MountCacheMode cache = 7; reserved 1, 4; }