summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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