From 6a4780858021b8713ed89e06e78a36187f726945 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Wed, 9 May 2018 10:29:41 +0100 Subject: [PATCH] virtcontainers: Reduce path lengths Reduce the virtcontainers prefix path to avoid hitting the 107 byte Unix domain socket path limit. Related #268. Fixes #290. Signed-off-by: James O. D. Hunt --- virtcontainers/filesystem.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtcontainers/filesystem.go b/virtcontainers/filesystem.go index bd92c1c7c..90a5fd871 100644 --- a/virtcontainers/filesystem.go +++ b/virtcontainers/filesystem.go @@ -84,7 +84,10 @@ const devicesFile = "devices.json" const dirMode = os.FileMode(0750) | os.ModeDir // storagePathSuffix is the suffix used for all storage paths -const storagePathSuffix = "/virtcontainers/sandboxes" +// +// Note: this very brief path represents "virtcontainers sandboxes". It is as +// terse as possible to minimise path length. +const storagePathSuffix = "/vc/sbs" // configStoragePath is the sandbox configuration directory. // It will contain one config.json file for each created sandbox.