mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
fix(region): update cachedimage limit (#20472)
This commit is contained in:
@@ -45,5 +45,5 @@ func (self *SBingoCloudHostDriver) ValidateDiskSize(storage *models.SStorage, si
|
||||
}
|
||||
|
||||
func (driver *SBingoCloudHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func (self *SCloudpodsBaremetalHostDriver) ValidateDiskSize(storage *models.SSto
|
||||
}
|
||||
|
||||
func (driver *SCloudpodsBaremetalHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
func (driver *SCloudpodsBaremetalHostDriver) RequestBaremetalUnmaintence(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error {
|
||||
|
||||
@@ -45,5 +45,5 @@ func (self *SCloudpodsESXiHostDriver) ValidateDiskSize(storage *models.SStorage,
|
||||
}
|
||||
|
||||
func (driver *SCloudpodsESXiHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -45,5 +45,5 @@ func (self *SCloudpodsHostDriver) ValidateDiskSize(storage *models.SStorage, siz
|
||||
}
|
||||
|
||||
func (driver *SCloudpodsHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ func (self *SInCloudSphereHostDriver) ValidateDiskSize(storage *models.SStorage,
|
||||
}
|
||||
|
||||
func (self *SInCloudSphereHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
func (self *SInCloudSphereHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error) {
|
||||
|
||||
@@ -45,5 +45,5 @@ func (self *SNutanixHostDriver) ValidateDiskSize(storage *models.SStorage, sizeG
|
||||
}
|
||||
|
||||
func (driver *SNutanixHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ func (self *SOpenStackHostDriver) ValidateDiskSize(storage *models.SStorage, siz
|
||||
}
|
||||
|
||||
func (driver *SOpenStackHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
func (self *SOpenStackHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error) {
|
||||
|
||||
@@ -62,7 +62,7 @@ func (self *SProxmoxHostDriver) ValidateDiskSize(storage *models.SStorage, sizeG
|
||||
}
|
||||
|
||||
func (driver *SProxmoxHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
func (self *SProxmoxHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error {
|
||||
|
||||
@@ -85,5 +85,5 @@ func (self *SQcloudHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Cont
|
||||
}
|
||||
|
||||
func (driver *SQcloudHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 10
|
||||
return 500
|
||||
}
|
||||
|
||||
@@ -45,5 +45,5 @@ func (self *SRemoteFileDriver) ValidateDiskSize(storage *models.SStorage, sizeGb
|
||||
}
|
||||
|
||||
func (driver *SRemoteFileDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -81,5 +81,5 @@ func (self *SVolcengineHostDriver) RequestDeleteSnapshotWithStorage(ctx context.
|
||||
}
|
||||
|
||||
func (driver *SVolcengineHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 10
|
||||
return -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user