blob: 8af7240a87460f48b1ece886e228264e92d8d29f (
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(2).Infof("read disk size: %v", disk)
return
}
|