Commit 884812f5 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Gofmt.

parent e0de488a
......@@ -26,7 +26,7 @@ func (f *flipNode) GetAttr(out *Attr, file File, c *Context) Status {
}
func TestDeleteNotify(t *testing.T) {
dir, err := ioutil.TempDir("","")
dir, err := ioutil.TempDir("", "")
if err != nil {
t.Fatalf("TempDir failed %v", err)
}
......@@ -62,7 +62,7 @@ func TestDeleteNotify(t *testing.T) {
newCh := fs.Root().Inode().New(true, &flip)
fs.Root().Inode().AddChild("testdir", newCh)
err = ioutil.WriteFile(mnt + "/testdir/testfile", []byte{42}, 0644)
err = ioutil.WriteFile(mnt+"/testdir/testfile", []byte{42}, 0644)
if err != nil {
t.Fatal(err)
}
......@@ -85,11 +85,11 @@ func TestDeleteNotify(t *testing.T) {
defer func() {
cmd.Process.Kill()
time.Sleep(100*time.Millisecond)
time.Sleep(100 * time.Millisecond)
}()
// Wait until tail opened the file.
time.Sleep(100*time.Millisecond)
time.Sleep(100 * time.Millisecond)
err = os.Remove(mnt + "/testdir/testfile")
if err != nil {
t.Fatal(err)
......
......@@ -298,12 +298,11 @@ type NotifyInvalEntryOut struct {
Padding uint32
}
type NotifyInvalDeleteOut struct {
Parent uint64;
Child uint64;
NameLen uint32;
Padding uint32;
Parent uint64
Child uint64
NameLen uint32
Padding uint32
}
const (
......
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