fix(region): update cachedimage limit (#20473)

This commit is contained in:
屈轩
2024-06-04 20:41:55 +08:00
committed by GitHub
parent e8ce72acb1
commit b5e875bcd7
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -41,5 +41,5 @@ func (self *SBingoCloudHostDriver) ValidateDiskSize(storage *models.SStorage, si
}
func (driver *SBingoCloudHostDriver) GetStoragecacheQuota(host *models.SHost) int {
return 100
return -1
}
+1 -1
View File
@@ -41,5 +41,5 @@ func (self *SCloudpodsHostDriver) ValidateDiskSize(storage *models.SStorage, siz
}
func (driver *SCloudpodsHostDriver) GetStoragecacheQuota(host *models.SHost) int {
return 100
return -1
}
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -41,5 +41,5 @@ func (self *SNutanixHostDriver) ValidateDiskSize(storage *models.SStorage, sizeG
}
func (driver *SNutanixHostDriver) GetStoragecacheQuota(host *models.SHost) int {
return 100
return -1
}
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -81,5 +81,5 @@ func (self *SQcloudHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Cont
}
func (driver *SQcloudHostDriver) GetStoragecacheQuota(host *models.SHost) int {
return 10
return 500
}
+1 -1
View File
@@ -41,5 +41,5 @@ func (self *SRemoteFileDriver) ValidateDiskSize(storage *models.SStorage, sizeGb
}
func (driver *SRemoteFileDriver) GetStoragecacheQuota(host *models.SHost) int {
return 100
return -1
}
+1 -1
View File
@@ -77,5 +77,5 @@ func (self *SVolcengineHostDriver) RequestDeleteSnapshotWithStorage(ctx context.
}
func (driver *SVolcengineHostDriver) GetStoragecacheQuota(host *models.SHost) int {
return 10
return -1
}