Commit 0f41d79d authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys Committed by Han-Wen Nienhuys

Run gofmt -s -w globally

Change-Id: I1aff29b88edff004f2b1cf7c36831c1767608b0d
parent 265a3926
...@@ -18,11 +18,11 @@ func TestInodeParents(t *testing.T) { ...@@ -18,11 +18,11 @@ func TestInodeParents(t *testing.T) {
// non-dupes should be stored // non-dupes should be stored
all := []parentData{ all := []parentData{
parentData{"foo", &ino1}, {"foo", &ino1},
parentData{"foo2", &ino1}, {"foo2", &ino1},
parentData{"foo3", &ino1}, {"foo3", &ino1},
parentData{"foo", &ino2}, {"foo", &ino2},
parentData{"foo", &ino3}, {"foo", &ino3},
} }
for i, v := range all { for i, v := range all {
p.add(v) p.add(v)
......
//go:build darwin
// +build darwin // +build darwin
// Copyright 2019 the Go-FUSE Authors. All rights reserved. // Copyright 2019 the Go-FUSE Authors. All rights reserved.
......
//go:build linux
// +build linux // +build linux
// Copyright 2019 the Go-FUSE Authors. All rights reserved. // Copyright 2019 the Go-FUSE Authors. All rights reserved.
......
...@@ -209,7 +209,7 @@ func (o *AttrOut) string() string { ...@@ -209,7 +209,7 @@ func (o *AttrOut) string() string {
// ft converts (seconds , nanoseconds) -> float(seconds) // ft converts (seconds , nanoseconds) -> float(seconds)
func ft(tsec uint64, tnsec uint32) float64 { func ft(tsec uint64, tnsec uint32) float64 {
return float64(tsec) + float64(tnsec)*1E-9 return float64(tsec) + float64(tnsec)*1e-9
} }
// Returned by LOOKUP // Returned by LOOKUP
......
...@@ -335,7 +335,7 @@ var _ = (fs.NodeReaddirer)((*unionFSNode)(nil)) ...@@ -335,7 +335,7 @@ var _ = (fs.NodeReaddirer)((*unionFSNode)(nil))
func (n *unionFSNode) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno) { func (n *unionFSNode) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno) {
root := n.root() root := n.root()
markers := map[string]struct{}{delDirHash: struct{}{}} markers := map[string]struct{}{delDirHash: {}}
// ignore error: assume no markers // ignore error: assume no markers
root.allMarkers(markers) root.allMarkers(markers)
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
package splice package splice
import ()
func (p *Pair) LoadFromAt(fd uintptr, sz int, off int64) (int, error) { func (p *Pair) LoadFromAt(fd uintptr, sz int, off int64) (int, error) {
panic("not implemented") panic("not implemented")
return 0, nil return 0, nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment