disk.go 233 B

123456789
  1. package stats
  2. import "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
  3. func NewDiskStatus(path string) (disk *volume_server_pb.DiskStatus) {
  4. disk = &volume_server_pb.DiskStatus{Dir: path}
  5. fillInDiskStatus(disk)
  6. return
  7. }