Renamed package fuseutil -> fuse.

geesefs-0-30-9
Aaron Jacobs 2015-02-27 08:57:18 +11:00
parent 915afb6308
commit 90ef75da6f
8 changed files with 18 additions and 18 deletions

View File

@ -1,7 +1,7 @@
// Copyright 2015 Google Inc. All Rights Reserved.
// Author: jacobsa@google.com (Aaron Jacobs)
package fuseutil
package fuse
import (
"flag"
@ -12,7 +12,7 @@ import (
)
var fEnableDebug = flag.Bool(
"fuseutil.debug",
"fuse.debug",
false,
"Write FUSE debugging messages to stderr.")
@ -23,5 +23,5 @@ func getLogger() *log.Logger {
writer = os.Stderr
}
return log.New(writer, "fuseutil: ", log.LstdFlags)
return log.New(writer, "fuse: ", log.LstdFlags)
}

View File

@ -1,7 +1,7 @@
// Copyright 2015 Google Inc. All Rights Reserved.
// Author: jacobsa@google.com (Aaron Jacobs)
package fuseutil
package fuse
import "bazil.org/fuse"

View File

@ -1,7 +1,7 @@
// Copyright 2015 Google Inc. All Rights Reserved.
// Author: jacobsa@google.com (Aaron Jacobs)
package fuseutil
package fuse
import (
"time"

View File

@ -1,7 +1,7 @@
// Copyright 2015 Google Inc. All Rights Reserved.
// Author: jacobsa@google.com (Aaron Jacobs)
package fuseutil
package fuse
import (
"errors"

View File

@ -1,7 +1,7 @@
// Copyright 2015 Google Inc. All Rights Reserved.
// Author: jacobsa@google.com (Aaron Jacobs)
package fuseutil
package fuse
import "golang.org/x/net/context"

View File

@ -4,7 +4,7 @@
package samples
import (
"github.com/jacobsa/gcsfuse/fuseutil"
"github.com/jacobsa/fuse"
"github.com/jacobsa/gcsfuse/timeutil"
"golang.org/x/net/context"
)
@ -17,21 +17,21 @@ import (
//
// Each file contains the string "Hello, world!".
type HelloFS struct {
fuseutil.NotImplementedFileSystem
fuse.NotImplementedFileSystem
Clock timeutil.Clock
}
var _ fuseutil.FileSystem = &HelloFS{}
var _ fuse.FileSystem = &HelloFS{}
func (fs *HelloFS) Open(
ctx context.Context,
req *fuseutil.OpenRequest) (resp *fuseutil.OpenResponse, err error) {
req *fuse.OpenRequest) (resp *fuse.OpenResponse, err error) {
// We always allow opening the root directory.
if req.Inode == fuseutil.RootInodeID {
if req.Inode == fuse.RootInodeID {
return
}
// TODO(jacobsa): Handle others.
err = fuseutil.ENOSYS
err = fuse.ENOSYS
return
}

View File

@ -11,8 +11,8 @@ import (
"testing"
"time"
"github.com/jacobsa/gcsfuse/fuseutil"
"github.com/jacobsa/gcsfuse/fuseutil/samples"
"github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/samples"
"github.com/jacobsa/gcsfuse/timeutil"
. "github.com/jacobsa/ogletest"
"golang.org/x/net/context"
@ -26,7 +26,7 @@ func TestHelloFS(t *testing.T) { RunTests(t) }
type HelloFSTest struct {
clock timeutil.SimulatedClock
mfs *fuseutil.MountedFileSystem
mfs *fuse.MountedFileSystem
}
var _ SetUpInterface = &HelloFSTest{}
@ -51,7 +51,7 @@ func (t *HelloFSTest) SetUp(ti *TestInfo) {
Clock: &t.clock,
}
if t.mfs, err = fuseutil.Mount(mountPoint, fs); err != nil {
if t.mfs, err = fuse.Mount(mountPoint, fs); err != nil {
panic("Mount: " + err.Error())
}

View File

@ -1,7 +1,7 @@
// Copyright 2015 Google Inc. All Rights Reserved.
// Author: jacobsa@google.com (Aaron Jacobs)
package fuseutil
package fuse
import (
"fmt"