diff options
Diffstat (limited to 'weed/filesys')
| -rw-r--r-- | weed/filesys/dir_link.go | 4 | ||||
| -rw-r--r-- | weed/filesys/dir_rename.go | 2 | ||||
| -rw-r--r-- | weed/filesys/wfs.go | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/weed/filesys/dir_link.go b/weed/filesys/dir_link.go index 570b41a3d..3b3735369 100644 --- a/weed/filesys/dir_link.go +++ b/weed/filesys/dir_link.go @@ -6,10 +6,10 @@ import ( "syscall" "time" - "github.com/seaweedfs/fuse" - "github.com/seaweedfs/fuse/fs" "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" + "github.com/seaweedfs/fuse" + "github.com/seaweedfs/fuse/fs" ) var _ = fs.NodeSymlinker(&Dir{}) diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.go index f52c3b876..d29281f35 100644 --- a/weed/filesys/dir_rename.go +++ b/weed/filesys/dir_rename.go @@ -1,9 +1,9 @@ package filesys import ( + "context" "github.com/seaweedfs/fuse" "github.com/seaweedfs/fuse/fs" - "context" "math" "path/filepath" diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 3f6202a4f..969514a06 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -58,7 +58,7 @@ type statsCache struct { func NewSeaweedFileSystem(option *Option) *WFS { wfs := &WFS{ option: option, - listDirectoryEntriesCache: ccache.New(ccache.Configure().MaxSize(1024*8).ItemsToPrune(100)), + listDirectoryEntriesCache: ccache.New(ccache.Configure().MaxSize(1024 * 8).ItemsToPrune(100)), pathToHandleIndex: make(map[string]int), bufPool: sync.Pool{ New: func() interface{} { @@ -174,11 +174,11 @@ func (wfs *WFS) Statfs(ctx context.Context, req *fuse.StatfsRequest, resp *fuse. resp.Blocks = totalDiskSize / blockSize // Compute the number of used blocks - numblocks := uint64(usedDiskSize / blockSize) + numBlocks := uint64(usedDiskSize / blockSize) // Report the number of free and available blocks for the block size - resp.Bfree = resp.Blocks - numblocks - resp.Bavail = resp.Blocks - numblocks + resp.Bfree = resp.Blocks - numBlocks + resp.Bavail = resp.Blocks - numBlocks resp.Bsize = uint32(blockSize) // Report the total number of possible files in the file system (and those free) |
