mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge branch 'release/2.5.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-host-convert-sched-failed
This commit is contained in:
+13
-13
@@ -1101,23 +1101,23 @@ func totalDiskSize(projectId string, active tristate.TriState, ready tristate.Tr
|
||||
}
|
||||
|
||||
type SDiskConfig struct {
|
||||
ImageId string
|
||||
ImageId string `json:"image_id"`
|
||||
|
||||
SnapshotId string
|
||||
DiskType string // sys, data, swap, volume
|
||||
SnapshotId string `json:"snapshot_id"`
|
||||
DiskType string `json:"disk_type"` // sys, data, swap, volume
|
||||
|
||||
// ImageDiskFormat string
|
||||
SizeMb int // MB
|
||||
Fs string // file system
|
||||
Format string //
|
||||
Driver string //
|
||||
Cache string //
|
||||
Mountpoint string //
|
||||
Backend string // stroageType
|
||||
Medium string
|
||||
ImageProperties map[string]string
|
||||
SizeMb int `json:"size"` // MB
|
||||
Fs string `json:"fs"` // file system
|
||||
Format string `json:"format"` //
|
||||
Driver string `json:"driver"` //
|
||||
Cache string `json:"cache"` //
|
||||
Mountpoint string `json:"mountpoint"` //
|
||||
Backend string `json:"backend"` // stroageType
|
||||
Medium string `json:"medium"`
|
||||
ImageProperties map[string]string `json:"image_properties"`
|
||||
|
||||
DiskId string // import only
|
||||
DiskId string `json:"-"` // import only
|
||||
}
|
||||
|
||||
func parseDiskInfo(ctx context.Context, userCred mcclient.TokenCredential, info jsonutils.JSONObject) (*SDiskConfig, error) {
|
||||
|
||||
Reference in New Issue
Block a user