From d45595d9cc2ae60a5e23d081e27a8ba0ab952113 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 22 Aug 2019 11:30:50 -0400 Subject: Don't double-process tmpfs options We already process the options on all tmpfs filesystems during final addition of mounts to the spec. We don't need to do it before that in parseVolumes. Signed-off-by: Matthew Heon --- pkg/spec/storage.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'pkg/spec') diff --git a/pkg/spec/storage.go b/pkg/spec/storage.go index bc06945f0..9f4248924 100644 --- a/pkg/spec/storage.go +++ b/pkg/spec/storage.go @@ -195,16 +195,6 @@ func (config *CreateConfig) parseVolumes(runtime *libpod.Runtime) ([]spec.Mount, // Final step: maps to arrays finalMounts := make([]spec.Mount, 0, len(baseMounts)) for _, mount := range baseMounts { - // All user-added tmpfs mounts need their options processed. - // Exception: mounts added by the ReadOnlyTmpfs option, which - // contain several exceptions to normal options rules. - if mount.Type == TypeTmpfs { - opts, err := util.ProcessOptions(mount.Options, true) - if err != nil { - return nil, nil, err - } - mount.Options = opts - } if mount.Type == TypeBind { absSrc, err := filepath.Abs(mount.Source) if err != nil { -- cgit v1.2.3-54-g00ecf