mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): update cachedimage limit (#20473)
This commit is contained in:
@@ -41,5 +41,5 @@ func (self *SBingoCloudHostDriver) ValidateDiskSize(storage *models.SStorage, si
|
||||
}
|
||||
|
||||
func (driver *SBingoCloudHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@ func (self *SCloudpodsHostDriver) ValidateDiskSize(storage *models.SStorage, siz
|
||||
}
|
||||
|
||||
func (driver *SCloudpodsHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -44,7 +44,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) {
|
||||
|
||||
@@ -41,5 +41,5 @@ func (self *SNutanixHostDriver) ValidateDiskSize(storage *models.SStorage, sizeG
|
||||
}
|
||||
|
||||
func (driver *SNutanixHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -45,7 +45,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) {
|
||||
|
||||
@@ -58,7 +58,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 {
|
||||
|
||||
@@ -81,5 +81,5 @@ func (self *SQcloudHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Cont
|
||||
}
|
||||
|
||||
func (driver *SQcloudHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 10
|
||||
return 500
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@ func (self *SRemoteFileDriver) ValidateDiskSize(storage *models.SStorage, sizeGb
|
||||
}
|
||||
|
||||
func (driver *SRemoteFileDriver) GetStoragecacheQuota(host *models.SHost) int {
|
||||
return 100
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -77,5 +77,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