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

Run Gofmt.

parent f738f096
...@@ -7,8 +7,8 @@ HIGHLIGHTS ...@@ -7,8 +7,8 @@ HIGHLIGHTS
filesystem benchmarks, using the gc compiler. For many real world filesystem benchmarks, using the gc compiler. For many real world
applications, the difference will be negligible. applications, the difference will be negligible.
* Supports in-process mounting of different PathFileSystems onto each * Supports in-process mounting of different PathFileSystems onto
other. subdirectories of the FUSE mount.
* Includes two fleshed out examples, zipfs and unionfs. * Includes two fleshed out examples, zipfs and unionfs.
...@@ -49,7 +49,7 @@ EXAMPLES ...@@ -49,7 +49,7 @@ EXAMPLES
* union/autounionfs.go: creates UnionFs mounts automatically based on * union/autounionfs.go: creates UnionFs mounts automatically based on
existence of READONLY symlinks. existence of READONLY symlinks.
Tested on: Tested on:
- x86 32bits (Fedora 14). - x86 32bits (Fedora 14).
......
...@@ -35,4 +35,3 @@ func TestDummyFile(t *testing.T) { ...@@ -35,4 +35,3 @@ func TestDummyFile(t *testing.T) {
_ = fileDir _ = fileDir
_ = filePtr _ = filePtr
} }
...@@ -82,7 +82,7 @@ const ( ...@@ -82,7 +82,7 @@ const (
// TODO - get this from a canonical place. // TODO - get this from a canonical place.
PAGESIZE = 4096 PAGESIZE = 4096
O_ANYWRITE = uint32(os.O_WRONLY|os.O_RDWR|os.O_APPEND|os.O_CREATE|os.O_TRUNC) O_ANYWRITE = uint32(os.O_WRONLY | os.O_RDWR | os.O_APPEND | os.O_CREATE | os.O_TRUNC)
) )
type Status int32 type Status int32
......
...@@ -73,7 +73,7 @@ func TestMultiZipFs(t *testing.T) { ...@@ -73,7 +73,7 @@ func TestMultiZipFs(t *testing.T) {
err = f.Close() err = f.Close()
CheckSuccess(err) CheckSuccess(err)
fi, err = os.Lstat(mountPoint + "/zipmount") fi, err = os.Lstat(mountPoint + "/zipmount")
if !fi.IsDirectory() { if !fi.IsDirectory() {
t.Errorf("Expect directory at /zipmount") t.Errorf("Expect directory at /zipmount")
} }
......
...@@ -136,7 +136,7 @@ func (me *ZipFileFuse) GetAttr(name string) (*fuse.Attr, fuse.Status) { ...@@ -136,7 +136,7 @@ func (me *ZipFileFuse) GetAttr(name string) (*fuse.Attr, fuse.Status) {
} }
func (me *ZipFileFuse) Open(name string, flags uint32) (file fuse.RawFuseFile, code fuse.Status) { func (me *ZipFileFuse) Open(name string, flags uint32) (file fuse.RawFuseFile, code fuse.Status) {
if flags & fuse.O_ANYWRITE != 0 { if flags&fuse.O_ANYWRITE != 0 {
return nil, fuse.EPERM return nil, fuse.EPERM
} }
......
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