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