summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-06 12:12:14 +0200
committerJakob Unterwurzacher2015-09-06 12:12:14 +0200
commitf2e2b813611a57192960e87df90ceed73d8e47d9 (patch)
tree7941a67ce030a63e12b08a825cb4908ebf6a1a91 /main.go
parent0a35d0970e86efbc5ed494395de7b448d3e337d0 (diff)
Add README.md
Also, run go fmt
Diffstat (limited to 'main.go')
-rw-r--r--main.go21
1 files changed, 10 insertions, 11 deletions
diff --git a/main.go b/main.go
index 3619bb7..071415a 100644
--- a/main.go
+++ b/main.go
@@ -1,24 +1,23 @@
package main
import (
- "path/filepath"
+ "bazil.org/fuse"
+ fusefs "bazil.org/fuse/fs"
"flag"
- "os"
"fmt"
"github.com/rfjakob/gocryptfs/frontend"
- "bazil.org/fuse"
- fusefs "bazil.org/fuse/fs"
-
+ "os"
+ "path/filepath"
)
const (
PROGRAM_NAME = "gocryptfs"
- USE_OPENSSL = true
+ USE_OPENSSL = true
- ERREXIT_USAGE = 1
- ERREXIT_NEWFS = 2
- ERREXIT_MOUNT = 3
- ERREXIT_SERVE = 4
+ ERREXIT_USAGE = 1
+ ERREXIT_NEWFS = 2
+ ERREXIT_MOUNT = 3
+ ERREXIT_SERVE = 4
ERREXIT_MOUNT2 = 5
)
@@ -48,7 +47,7 @@ func main() {
fuse.Subtype(PROGRAM_NAME),
fuse.VolumeName(PROGRAM_NAME),
fuse.LocalVolume(),
- fuse.MaxReadahead(1024*1024),
+ fuse.MaxReadahead(1024 * 1024),
}
conn, err := fuse.Mount(mountpoint, mountOpts...)
if err != nil {