diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-24 01:38:51 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-24 01:38:51 +0000 |
commit | 6dc7a97606f2d93a58ce92de3251fca1c9802c31 (patch) | |
tree | f4c1c601a6790a15cdd25980ce3626d78c80159d /runsc | |
parent | 70cbe923d390e91fc05b06dfa05c6810b0701037 (diff) | |
parent | 3ed8ace87123a5cee4fd3aa3751bb24c151749ff (diff) |
Merge release-20201019.0-52-g3ed8ace87 (automated)
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/specutils/specutils.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runsc/specutils/specutils.go b/runsc/specutils/specutils.go index 0392e3e83..33fa2ddd9 100644 --- a/runsc/specutils/specutils.go +++ b/runsc/specutils/specutils.go @@ -425,7 +425,7 @@ func Mount(src, dst, typ string, flags uint32) error { // Special case, as there is no source directory for proc mounts. isDir = true } else if fi, err := os.Stat(src); err != nil { - return fmt.Errorf("Stat(%q) failed: %v", src, err) + return fmt.Errorf("stat(%q) failed: %v", src, err) } else { isDir = fi.IsDir() } @@ -433,25 +433,25 @@ func Mount(src, dst, typ string, flags uint32) error { if isDir { // Create the destination directory. if err := os.MkdirAll(dst, 0777); err != nil { - return fmt.Errorf("Mkdir(%q) failed: %v", dst, err) + return fmt.Errorf("mkdir(%q) failed: %v", dst, err) } } else { // Create the parent destination directory. parent := path.Dir(dst) if err := os.MkdirAll(parent, 0777); err != nil { - return fmt.Errorf("Mkdir(%q) failed: %v", parent, err) + return fmt.Errorf("mkdir(%q) failed: %v", parent, err) } // Create the destination file if it does not exist. f, err := os.OpenFile(dst, syscall.O_CREAT, 0777) if err != nil { - return fmt.Errorf("Open(%q) failed: %v", dst, err) + return fmt.Errorf("open(%q) failed: %v", dst, err) } f.Close() } // Do the mount. if err := syscall.Mount(src, dst, typ, uintptr(flags), ""); err != nil { - return fmt.Errorf("Mount(%q, %q, %d) failed: %v", src, dst, flags, err) + return fmt.Errorf("mount(%q, %q, %d) failed: %v", src, dst, flags, err) } return nil } |