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
mount: create mount root on filer
chrislu0606b59a3e54
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.goindex 5f67bbad3f..dff53f25e9 100644--- a/weed/command/mount_std.go+++ b/weed/command/mount_std.go@@ -241,6 +241,14 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {DisableXAttr: *option.disableXAttr,})+ // create mount root+ mountRootPath := util.FullPath(mountRoot)+ mountRootParent, mountDir := mountRootPath.DirAndName()+ if err = filer_pb.Mkdir(seaweedFileSystem, mountRootParent, mountDir, nil); err != nil {+ fmt.Printf("failed to create dir %s on filer %s: %v\n", mountRoot, filerAddresses, err)+ return false+ }+server, err := fuse.NewServer(seaweedFileSystem, dir, fuseMountOptions)if err != nil {glog.Fatalf("Mount fail: %v", err)