Skip to content

Commit

Permalink
build: fixup formatting after go1.14 go fmt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Feb 28, 2020
1 parent 7a5a74c commit 2b268f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/mount2/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 5 additions & 3 deletions fs/sync/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2b268f9

Please sign in to comment.