aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorhilimd <68371223+hilimd@users.noreply.github.com>2020-07-17 09:25:45 +0800
committerGitHub <noreply@github.com>2020-07-17 09:25:45 +0800
commitb1616e93474246a624370ad18da98b8371c09ece (patch)
tree213d853366ec32277833755d826c8e7fdc685f14 /weed/command
parent74456b3d5e1524d90e384e9cbdfde3a0e974db9e (diff)
parent54445b207ddf6de5db128d307ec7a8554e529946 (diff)
downloadseaweedfs-b1616e93474246a624370ad18da98b8371c09ece.tar.xz
seaweedfs-b1616e93474246a624370ad18da98b8371c09ece.zip
Merge pull request #1 from chrislusf/master
sync
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/mount_std.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 915754166..7520de784 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -13,6 +13,9 @@ import (
"strings"
"time"
+ "github.com/seaweedfs/fuse"
+ "github.com/seaweedfs/fuse/fs"
+
"github.com/chrislusf/seaweedfs/weed/filesys"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb"
@@ -20,8 +23,6 @@ import (
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/chrislusf/seaweedfs/weed/util/grace"
- "github.com/seaweedfs/fuse"
- "github.com/seaweedfs/fuse/fs"
)
func runMount(cmd *Command, args []string) bool {
@@ -97,6 +98,9 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
mountMode = os.ModeDir | fileInfo.Mode()
uid, gid = util.GetFileUidGid(fileInfo)
fmt.Printf("mount point owner uid=%d gid=%d mode=%s\n", uid, gid, fileInfo.Mode())
+ } else {
+ fmt.Printf("can not stat %s\n", dir)
+ return false
}
if uid == 0 {