fuse.go 1.0 KB

123456789101112131415161718192021222324252627282930
  1. package command
  2. func init() {
  3. cmdFuse.Run = runFuse // break init cycle
  4. }
  5. var cmdFuse = &Command{
  6. UsageLine: "fuse /mnt/mount/point -o \"filer=localhost:8888,filer.path=/\"",
  7. Short: "Allow use weed with linux's mount command",
  8. Long: `Allow use weed with linux's mount command
  9. You can use -t weed on mount command:
  10. mv weed /sbin/mount.weed
  11. mount -t weed fuse /mnt -o "filer=localhost:8888,filer.path=/"
  12. Or you can use -t fuse on mount command:
  13. mv weed /sbin/weed
  14. mount -t fuse.weed fuse /mnt -o "filer=localhost:8888,filer.path=/"
  15. mount -t fuse "weed#fuse" /mnt -o "filer=localhost:8888,filer.path=/"
  16. To use without mess with your /sbin:
  17. mount -t fuse./home/user/bin/weed fuse /mnt -o "filer=localhost:8888,filer.path=/"
  18. mount -t fuse "/home/user/bin/weed#fuse" /mnt -o "filer=localhost:8888,filer.path=/"
  19. To pass more than one parameter use quotes, example:
  20. mount -t weed fuse /mnt -o "filer='192.168.0.1:8888,192.168.0.2:8888',filer.path=/"
  21. To check valid options look "weed mount --help"
  22. `,
  23. }