mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #4326 from swordqiu/hotfix/qj-baremetal-disk-config-empty-index
fix: baremetal diskconfig empty adaptor index
This commit is contained in:
@@ -65,23 +65,23 @@ var (
|
||||
)
|
||||
|
||||
type BaremetalStorage struct {
|
||||
Size int64 `json:"size"`
|
||||
Size int64 `json:"size,allowzero"`
|
||||
Driver string `json:"driver"`
|
||||
Rotate bool `json:"rotate"`
|
||||
Rotate bool `json:"rotate,allowfalse"`
|
||||
Dev string `json:"dev,omitempty"`
|
||||
Sector int64 `json:"sector,omitempty"`
|
||||
Block int64 `json:"block,omitempty"`
|
||||
ModuleInfo string `json:"module,omitempty"`
|
||||
Kernel string `json:"kernel,omitempty"`
|
||||
PCIClass string `json:"pci_class,omitempty"`
|
||||
Slot int `json:"slot,omitempty"`
|
||||
Slot int `json:"slot,allowzero"`
|
||||
Status string `json:"status,omitempty"`
|
||||
Adapter int `json:"adapter,omitempty"`
|
||||
Adapter int `json:"adapter,allowzero"`
|
||||
Model string `json:"model,omitempty"`
|
||||
Enclosure int `json:"enclousure,omitempty"`
|
||||
Enclosure int `json:"enclousure,allowzero"`
|
||||
MinStripSize int64 `json:"min_strip_size,omitempty"`
|
||||
MaxStripSize int64 `json:"max_strip_size,omitempty"`
|
||||
Index int64 `json:"index"`
|
||||
Index int64 `json:"index,allowzero"`
|
||||
Addr string `json:"addr,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user