seaweedfs/weed/stats/disk.go
2019-09-02 11:28:40 +01:00

10 lines
231 B
Go

package stats
import "github.com/joeslay/seaweedfs/weed/pb/volume_server_pb"
func NewDiskStatus(path string) (disk *volume_server_pb.DiskStatus) {
disk = &volume_server_pb.DiskStatus{Dir: path}
fillInDiskStatus(disk)
return
}