Run go fmt
This commit is contained in:
parent
20b058a333
commit
ce42a6f23d
@ -11,15 +11,15 @@ import (
|
||||
// A simple one-entry DirIV cache
|
||||
type DirIVCache struct {
|
||||
// Invalidated?
|
||||
cleared bool
|
||||
cleared bool
|
||||
// The DirIV
|
||||
iv []byte
|
||||
iv []byte
|
||||
// Directory the DirIV belongs to
|
||||
dir string
|
||||
dir string
|
||||
// Ecrypted version of "dir"
|
||||
translatedDir string
|
||||
// Synchronisation
|
||||
lock sync.RWMutex
|
||||
lock sync.RWMutex
|
||||
}
|
||||
|
||||
func (c *DirIVCache) lookup(dir string) (bool, []byte, string) {
|
||||
|
@ -3,9 +3,9 @@ package integration_tests
|
||||
// Mount example filesystems and check that the file "status.txt" is there
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
8
main.go
8
main.go
@ -283,11 +283,11 @@ func pathfsFrontend(key []byte, args argContainer, confFile *cryptfs.ConfFile) *
|
||||
// Reconciliate CLI and config file arguments into a Args struct that is passed to the
|
||||
// filesystem implementation
|
||||
frontendArgs := pathfs_frontend.Args{
|
||||
Cipherdir: args.cipherdir,
|
||||
Masterkey: key,
|
||||
OpenSSL: args.openssl,
|
||||
Cipherdir: args.cipherdir,
|
||||
Masterkey: key,
|
||||
OpenSSL: args.openssl,
|
||||
PlaintextNames: args.plaintextnames,
|
||||
DirIV: args.diriv,
|
||||
DirIV: args.diriv,
|
||||
}
|
||||
// confFile is nil when "-zerokey" or "-masterkey" was used
|
||||
if confFile != nil {
|
||||
|
@ -2,9 +2,9 @@ package pathfs_frontend
|
||||
|
||||
// Container for arguments that are passed from main() to pathfs_frontend
|
||||
type Args struct {
|
||||
Masterkey []byte
|
||||
Cipherdir string
|
||||
OpenSSL bool
|
||||
Masterkey []byte
|
||||
Cipherdir string
|
||||
OpenSSL bool
|
||||
PlaintextNames bool
|
||||
DirIV bool
|
||||
DirIV bool
|
||||
}
|
||||
|
@ -17,8 +17,8 @@ import (
|
||||
|
||||
type FS struct {
|
||||
*cryptfs.CryptFS
|
||||
pathfs.FileSystem // loopbackFileSystem, see go-fuse/fuse/pathfs/loopback.go
|
||||
args Args // Stores configuration arguments
|
||||
pathfs.FileSystem // loopbackFileSystem, see go-fuse/fuse/pathfs/loopback.go
|
||||
args Args // Stores configuration arguments
|
||||
// dirIVLock: Lock()ed if any "gocryptfs.diriv" file is modified
|
||||
// Readers must RLock() it to prevent them from seeing intermediate
|
||||
// states
|
||||
@ -30,7 +30,7 @@ func NewFS(args Args) *FS {
|
||||
return &FS{
|
||||
CryptFS: cryptfs.NewCryptFS(args.Masterkey, args.OpenSSL, args.PlaintextNames),
|
||||
FileSystem: pathfs.NewLoopbackFileSystem(args.Cipherdir),
|
||||
args: args,
|
||||
args: args,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user