summaryrefslogtreecommitdiff
path: root/pathfs_frontend
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-27 22:20:01 +0100
committerJakob Unterwurzacher2015-11-27 22:20:01 +0100
commita04a92cdab11df43f072db685b8ade6c973f8995 (patch)
tree457b018abf5fa6be480b58ea95375a11fbc449af /pathfs_frontend
parent6acd772cf908908e3b0d817a78e64f98faaa8b7b (diff)
Run go fmt
Diffstat (limited to 'pathfs_frontend')
-rw-r--r--pathfs_frontend/fs.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/pathfs_frontend/fs.go b/pathfs_frontend/fs.go
index 0e0d022..680b08c 100644
--- a/pathfs_frontend/fs.go
+++ b/pathfs_frontend/fs.go
@@ -3,10 +3,10 @@ package pathfs_frontend
import (
"encoding/base64"
"fmt"
- "sync"
- "syscall"
"os"
"path/filepath"
+ "sync"
+ "syscall"
"time"
"github.com/hanwen/go-fuse/fuse"
@@ -17,13 +17,12 @@ import (
type FS struct {
*cryptfs.CryptFS
- pathfs.FileSystem // loopbackFileSystem, see go-fuse/fuse/pathfs/loopback.go
- backingDir string // Backing directory, cipherdir
+ pathfs.FileSystem // loopbackFileSystem, see go-fuse/fuse/pathfs/loopback.go
+ backingDir string // Backing directory, cipherdir
// dirIVLock: Lock()ed if any "gocryptfs.diriv" file is modified
// Readers must RLock() it to prevent them from seeing intermediate
// states
dirIVLock sync.RWMutex
-
}
// Encrypted FUSE overlay filesystem
@@ -31,7 +30,7 @@ func NewFS(key []byte, backing string, useOpenssl bool, plaintextNames bool) *FS
return &FS{
CryptFS: cryptfs.NewCryptFS(key, useOpenssl, plaintextNames),
FileSystem: pathfs.NewLoopbackFileSystem(backing),
- backingDir: backing,
+ backingDir: backing,
}
}