Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: fixup formatting after go1.14 go fmt changes

Nick Craig-Wood2b268f9724bd
diff --git a/cmd/mount2/node.go b/cmd/mount2/node.go
index 3f00cdcec..dcf204c1a 100644
--- a/cmd/mount2/node.go
+++ b/cmd/mount2/node.go
@@ -81,8 +81,8 @@ func (n *Node) Statfs(ctx context.Context, out *fuse.StatfsOut) syscall.Errno {
out.Blocks = fsBlocks // Total data blocks in file system.
out.Bfree = fsBlocks // Free blocks in file system.
out.Bavail = fsBlocks // Free blocks in file system if you're not root.
- out.Files = 1E9 // Total files in file system.
- out.Ffree = 1E9 // Free files in file system.
+ out.Files = 1e9 // Total files in file system.
+ out.Ffree = 1e9 // Free files in file system.
out.Bsize = blockSize // Block size
out.NameLen = 255 // Maximum file name length?
out.Frsize = blockSize // Fragment size, smallest addressable data size in the file system.
diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go
index 093d9e98a..69381fc0f 100644
--- a/fs/sync/sync_test.go
+++ b/fs/sync/sync_test.go
@@ -1593,9 +1593,11 @@ func testSyncBackupDir(t *testing.T, suffix string, suffixKeepExtension bool) {
fstest.CheckItems(t, r.Fremote, file1b, file2, file3a, file1a)
}
-func TestSyncBackupDir(t *testing.T) { testSyncBackupDir(t, "", false) }
-func TestSyncBackupDirWithSuffix(t *testing.T) { testSyncBackupDir(t, ".bak", false) }
-func TestSyncBackupDirWithSuffixKeepExtension(t *testing.T) { testSyncBackupDir(t, "-2019-01-01", true) }
+func TestSyncBackupDir(t *testing.T) { testSyncBackupDir(t, "", false) }
+func TestSyncBackupDirWithSuffix(t *testing.T) { testSyncBackupDir(t, ".bak", false) }
+func TestSyncBackupDirWithSuffixKeepExtension(t *testing.T) {
+ testSyncBackupDir(t, "-2019-01-01", true)
+}
// Test with Suffix set
func testSyncSuffix(t *testing.T, suffix string, suffixKeepExtension bool) {