mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-06-28 15:41:13 +08:00

Some checks failed
go: build dev binaries / cleanup (push) Has been cancelled
docker: build dev containers / build-dev-containers (push) Has been cancelled
End to End / FUSE Mount (push) Has been cancelled
go: build binary / Build (push) Has been cancelled
Ceph S3 tests / Ceph S3 tests (push) Has been cancelled
test s3 over https using aws-cli / awscli-tests (push) Has been cancelled
go: build dev binaries / build_dev_linux_windows (amd64, linux) (push) Has been cancelled
go: build dev binaries / build_dev_linux_windows (amd64, windows) (push) Has been cancelled
go: build dev binaries / build_dev_darwin (amd64, darwin) (push) Has been cancelled
go: build dev binaries / build_dev_darwin (arm64, darwin) (push) Has been cancelled
31 lines
1.0 KiB
Go
31 lines
1.0 KiB
Go
package command
|
|
|
|
func init() {
|
|
cmdFuse.Run = runFuse // break init cycle
|
|
}
|
|
|
|
var cmdFuse = &Command{
|
|
UsageLine: "fuse /mnt/mount/point -o \"filer=localhost:8888,filer.path=/\"",
|
|
Short: "Allow use weed with linux's mount command",
|
|
Long: `Allow use weed with linux's mount command
|
|
|
|
You can use -t weed on mount command:
|
|
mv weed /sbin/mount.weed
|
|
mount -t weed fuse /mnt -o "filer=localhost:8888,filer.path=/"
|
|
|
|
Or you can use -t fuse on mount command:
|
|
mv weed /sbin/weed
|
|
mount -t fuse.weed fuse /mnt -o "filer=localhost:8888,filer.path=/"
|
|
mount -t fuse "weed#fuse" /mnt -o "filer=localhost:8888,filer.path=/"
|
|
|
|
To use without mess with your /sbin:
|
|
mount -t fuse./home/user/bin/weed fuse /mnt -o "filer=localhost:8888,filer.path=/"
|
|
mount -t fuse "/home/user/bin/weed#fuse" /mnt -o "filer=localhost:8888,filer.path=/"
|
|
|
|
To pass more than one parameter use quotes, example:
|
|
mount -t weed fuse /mnt -o "filer='192.168.0.1:8888,192.168.0.2:8888',filer.path=/"
|
|
|
|
To check valid options look "weed mount --help"
|
|
`,
|
|
}
|