Commit 073e2885 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Run gofmt.

parent 97a174d5
...@@ -348,7 +348,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) fuse.Status { ...@@ -348,7 +348,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) fuse.Status {
// This operation is rare, so we kludge it to avoid // This operation is rare, so we kludge it to avoid
// contention. // contention.
time.Sleep(delay) time.Sleep(delay)
delay = delay*2 delay = delay * 2
if !c.inodeMap.Has(nodeId) { if !c.inodeMap.Has(nodeId) {
break break
} }
......
...@@ -92,7 +92,7 @@ func (n *memNode) Readlink(c *fuse.Context) ([]byte, fuse.Status) { ...@@ -92,7 +92,7 @@ func (n *memNode) Readlink(c *fuse.Context) ([]byte, fuse.Status) {
return []byte(n.link), fuse.OK return []byte(n.link), fuse.OK
} }
func (n *memNode) StatFs() (*fuse.StatfsOut) { func (n *memNode) StatFs() *fuse.StatfsOut {
return &fuse.StatfsOut{} return &fuse.StatfsOut{}
} }
......
...@@ -1506,7 +1506,7 @@ func TestUnionFSBarf(t *testing.T) { ...@@ -1506,7 +1506,7 @@ func TestUnionFSBarf(t *testing.T) {
if err := ioutil.WriteFile(wd+"/rw/dir/file", []byte("bla"), 0644); err != nil { if err := ioutil.WriteFile(wd+"/rw/dir/file", []byte("bla"), 0644); err != nil {
t.Fatalf("WriteFile failed: %v", err) t.Fatalf("WriteFile failed: %v", err)
} }
if _, err := os.Lstat(wd+"/mnt/dir/file"); err != nil { if _, err := os.Lstat(wd + "/mnt/dir/file"); err != nil {
t.Fatalf("Lstat: %v", err) t.Fatalf("Lstat: %v", err)
} }
if err := os.Rename(wd+"/rw/dir/file", wd+"/rw/file"); err != nil { if err := os.Rename(wd+"/rw/dir/file", wd+"/rw/file"); err != 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