properly working local write buffer

This commit is contained in:
Chris Lu
2018-05-29 01:21:21 -07:00
parent c4b92e17d0
commit 4e3ea49cff
5 changed files with 54 additions and 91 deletions

View File

@@ -19,6 +19,10 @@ func runMount(cmd *Command, args []string) bool {
fmt.Printf("Please specify the mount directory via \"-dir\"")
return false
}
if *mountOptions.chunkSizeLimitMB <= 0 {
fmt.Printf("Please specify a reasonable buffer size.")
return false
}
fuse.Unmount(*mountOptions.dir)