diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-06-27 21:31:55 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-06-27 21:31:55 +0000 |
commit | 085d6fdce34f34d82de5f71d031407c3da253b23 (patch) | |
tree | d10fa274dfd60d258a37c8ba950e6d7f29b4baf3 /runsc | |
parent | ea09397196f66a2f13e315017372c5b38c3b1edb (diff) | |
parent | 085a907565921e84f59dfeb51da49af2d7c36c40 (diff) |
Merge 085a9075 (automated)
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/boot/fs.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runsc/boot/fs.go b/runsc/boot/fs.go index 5c2220d83..af52286a6 100644 --- a/runsc/boot/fs.go +++ b/runsc/boot/fs.go @@ -239,7 +239,11 @@ func mustFindFilesystem(name string) fs.Filesystem { // addSubmountOverlay overlays the inode over a ramfs tree containing the given // paths. func addSubmountOverlay(ctx context.Context, inode *fs.Inode, submounts []string) (*fs.Inode, error) { - msrc := fs.NewPseudoMountSource(ctx) + // Construct a ramfs tree of mount points. The contents never + // change, so this can be fully caching. There's no real + // filesystem backing this tree, so we set the filesystem to + // nil. + msrc := fs.NewCachingMountSource(ctx, nil, fs.MountSourceFlags{}) mountTree, err := ramfs.MakeDirectoryTree(ctx, msrc, submounts) if err != nil { return nil, fmt.Errorf("creating mount tree: %v", err) |