SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
stop if the directory can not be found
Chris Lu2b2ca7d1dca7
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.goindex 9157541669..7520de7849 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 {