From c92fd5220a45dfea521e4354ecb092d02e79d1d5 Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Tue, 20 Jun 2023 12:59:08 -0600 Subject: [PATCH] c8d: mark stargz as requiring reference-counted mounts The stargz snapshotter cannot be re-mounted, so the reference-counted path must be used. Co-authored-by: Djordje Lukic Signed-off-by: Bjorn Neergaard (cherry picked from commit 21c0a54a6b2dc059fae62f46a23d338a35fe6d1d) Signed-off-by: Bjorn Neergaard --- daemon/snapshotter/mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/snapshotter/mount.go b/daemon/snapshotter/mount.go index 0dc3f0bdd2..f156bb2ab2 100644 --- a/daemon/snapshotter/mount.go +++ b/daemon/snapshotter/mount.go @@ -14,7 +14,7 @@ import ( const mountsDir = "rootfs" // List of known filesystems that can't be re-mounted or have shared layers -var refCountedFileSystems = []string{"overlayfs", "zfs", "fuse-overlayfs"} +var refCountedFileSystems = []string{"fuse-overlayfs", "overlayfs", "stargz", "zfs"} // Mounter handles mounting/unmounting things coming in from a snapshotter // with optional reference counting if needed by the filesystem