aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorbingoohuang <bingoo.huang@gmail.com>2019-01-17 09:17:19 +0800
committerbingoohuang <bingoo.huang@gmail.com>2019-01-17 09:17:19 +0800
commitab6be025d76748388ad3eea6fe6ca000db1c2435 (patch)
tree1be9b1b5e7f91693f4cabe3ae0d114cb7f7dced6 /weed/filesys/wfs.go
parent6ddfaf33cba953b92a5e3383a15bf26ab1845dbc (diff)
downloadseaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.tar.xz
seaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.zip
go fmt and fix some typo
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go8
1 files changed, 4 insertions, 4 deletions
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)