You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
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"
|
|
`,
|
|
}
|