add disk stat to logs

This commit is contained in:
Chris Lu 2020-04-04 13:17:23 -07:00
parent 6e776aaafc
commit f7b5a1d697

View file

@ -1,9 +1,13 @@
package stats
import "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
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
}