diff options
Diffstat (limited to 'weed/filesys')
| -rw-r--r-- | weed/filesys/wfs.go | 3 | ||||
| -rw-r--r-- | weed/filesys/wfs_write.go | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index cd14e8032..1d4b323e2 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -3,6 +3,7 @@ package filesys import ( "context" "fmt" + "github.com/chrislusf/seaweedfs/weed/storage" "math" "os" "path" @@ -30,6 +31,7 @@ type Option struct { Collection string Replication string TtlSec int32 + VolumeType storage.VolumeType ChunkSizeLimit int64 ConcurrentWriters int CacheDir string @@ -176,6 +178,7 @@ func (wfs *WFS) Statfs(ctx context.Context, req *fuse.StatfsRequest, resp *fuse. Collection: wfs.option.Collection, Replication: wfs.option.Replication, Ttl: fmt.Sprintf("%ds", wfs.option.TtlSec), + VolumeType: string(wfs.option.VolumeType), } glog.V(4).Infof("reading filer stats: %+v", request) diff --git a/weed/filesys/wfs_write.go b/weed/filesys/wfs_write.go index 83e40e7f5..00a7445c8 100644 --- a/weed/filesys/wfs_write.go +++ b/weed/filesys/wfs_write.go @@ -26,6 +26,7 @@ func (wfs *WFS) saveDataAsChunk(fullPath util.FullPath) filer.SaveDataAsChunkFun Replication: wfs.option.Replication, Collection: wfs.option.Collection, TtlSec: wfs.option.TtlSec, + VolumeType: string(wfs.option.VolumeType), DataCenter: wfs.option.DataCenter, Path: string(fullPath), } |
