You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
327 B

  1. package stats
  2. import (
  3. "github.com/chrislusf/seaweedfs/weed/glog"
  4. "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
  5. )
  6. func NewDiskStatus(path string) (disk *volume_server_pb.DiskStatus) {
  7. disk = &volume_server_pb.DiskStatus{Dir: path}
  8. fillInDiskStatus(disk)
  9. glog.V(0).Infof("read disk size: %v", disk)
  10. return
  11. }