aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-12-08 13:51:06 +0100
committerJakob Unterwurzacher2015-12-08 13:51:06 +0100
commitff8c81f95b311eb1cd9c822202519f1a90a8cdd4 (patch)
tree6ef1a8ea84e92a291243522d78f30d3e8558256f
parentf4ae0304aff2f721ebe6088aa4f4c83f872f1ee9 (diff)
go fmt
-rw-r--r--integration_tests/main_test.go5
-rw-r--r--pathfs_frontend/file.go4
2 files changed, 4 insertions, 5 deletions
diff --git a/integration_tests/main_test.go b/integration_tests/main_test.go
index 7cc078d..953c552 100644
--- a/integration_tests/main_test.go
+++ b/integration_tests/main_test.go
@@ -325,14 +325,13 @@ func TestMkdirRmdir(t *testing.T) {
}
}
-
// Test Rename
func TestRename(t *testing.T) {
- err := ioutil.WriteFile(defaultPlainDir + "rename1", []byte("content"), 0777)
+ err := ioutil.WriteFile(defaultPlainDir+"rename1", []byte("content"), 0777)
if err != nil {
t.Fatal(err)
}
- err = syscall.Rename(defaultPlainDir + "rename1", defaultPlainDir + "rename2")
+ err = syscall.Rename(defaultPlainDir+"rename1", defaultPlainDir+"rename2")
if err != nil {
t.Fatal(err)
}
diff --git a/pathfs_frontend/file.go b/pathfs_frontend/file.go
index 16d83c1..f2350cc 100644
--- a/pathfs_frontend/file.go
+++ b/pathfs_frontend/file.go
@@ -99,8 +99,8 @@ func (f *file) createHeader() error {
defer f.fdLock.Unlock()
err := syscall.Fallocate(int(f.fd.Fd()), FALLOC_FL_KEEP_SIZE, 0, cryptfs.HEADER_LEN)
if err != nil {
- cryptfs.Warn.Printf("createHeader: Fallocate failed: %s\n", err.Error())
- return err
+ cryptfs.Warn.Printf("createHeader: Fallocate failed: %s\n", err.Error())
+ return err
}
// Actually write header