Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: Reduce path lengths
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jodh-intel committed May 9, 2018
1 parent f6544a3 commit 6a47808
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virtcontainers/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a47808

Please sign in to comment.