From ff8c81f95b311eb1cd9c822202519f1a90a8cdd4 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 8 Dec 2015 13:51:06 +0100 Subject: go fmt --- integration_tests/main_test.go | 5 ++--- pathfs_frontend/file.go | 4 ++-- 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 -- cgit v1.2.3