Commit c07e64b1 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Run gofmt.

parent 4a79a89d
......@@ -68,7 +68,7 @@ func (me *HandleMap) Register(obj *Handled) (handle uint64) {
if rest != 0 {
panic("more than 48 bits in address")
}
if handle & 0x7 != 0 {
if handle&0x7 != 0 {
panic("unaligned ptr")
}
handle >>= 3
......
......@@ -657,4 +657,3 @@ func TestIoctl(t *testing.T) {
v, e := ioctl(f.Fd(), 0x5401, 42)
fmt.Println("ioctl", v, e)
}
......@@ -14,7 +14,7 @@ func TestMountOnExisting(t *testing.T) {
ts.Setup(t)
defer ts.Cleanup()
err := os.Mkdir(ts.mountPoint + "/mnt", 0777)
err := os.Mkdir(ts.mountPoint+"/mnt", 0777)
CheckSuccess(err)
fs := &DefaultFileSystem{}
code := ts.connector.Mount("/mnt", fs, nil)
......@@ -80,7 +80,7 @@ func TestRecursiveMount(t *testing.T) {
ts.Setup(t)
defer ts.Cleanup()
err := ioutil.WriteFile(ts.origDir + "/hello.txt", []byte("blabla"), 0644)
err := ioutil.WriteFile(ts.origDir+"/hello.txt", []byte("blabla"), 0644)
CheckSuccess(err)
fs := NewLoopbackFileSystem(ts.origDir)
......
......@@ -61,7 +61,7 @@ func TestMultiZipFs(t *testing.T) {
t.Errorf("wrong names return. %v", entries)
}
err = os.Symlink(zipFile, mountPoint + "/config/zipmount")
err = os.Symlink(zipFile, mountPoint+"/config/zipmount")
CheckSuccess(err)
fi, err := os.Lstat(mountPoint + "/zipmount")
......
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