Run go fmt
This commit is contained in:
parent
6acd772cf9
commit
a04a92cdab
@ -33,11 +33,11 @@ func TestExampleFsNormal(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
mount(cDir, pDir, "-extpass", "echo test")
|
||||
checkStatusTxt(t, pDir + "status.txt")
|
||||
checkStatusTxt(t, pDir+"status.txt")
|
||||
unmount(pDir)
|
||||
mount(cDir, pDir, "-masterkey", "74676e34-0b47c145-00dac61a-17a92316-"+
|
||||
"bb57044c-e205b71f-65f4fdca-7cabd4b3")
|
||||
checkStatusTxt(t, pDir + "status.txt")
|
||||
checkStatusTxt(t, pDir+"status.txt")
|
||||
unmount(pDir)
|
||||
err = os.Remove(pDir)
|
||||
if err != nil {
|
||||
|
@ -39,7 +39,7 @@ func resetTmpDir() {
|
||||
os.Exit(1)
|
||||
}
|
||||
dirIV := make([]byte, 16)
|
||||
err = ioutil.WriteFile(defaultCipherDir + "gocryptfs.diriv", dirIV, 0444)
|
||||
err = ioutil.WriteFile(defaultCipherDir+"gocryptfs.diriv", dirIV, 0444)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
|
@ -3,7 +3,6 @@ package integration_tests
|
||||
// File reading, writing, modification, truncate
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"bytes"
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
@ -13,6 +12,7 @@ import (
|
||||
"os"
|
||||
"runtime"
|
||||
"sync"
|
||||
"syscall"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
2
main.go
2
main.go
@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"os/signal"
|
||||
|
@ -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"
|
||||
@ -23,7 +23,6 @@ type FS struct {
|
||||
// Readers must RLock() it to prevent them from seeing intermediate
|
||||
// states
|
||||
dirIVLock sync.RWMutex
|
||||
|
||||
}
|
||||
|
||||
// Encrypted FUSE overlay filesystem
|
||||
|
Loading…
Reference in New Issue
Block a user