备份空间不足时立刻返回

This commit is contained in:
zhaominyong 2022-07-18 15:24:19 +08:00
parent 3b8eaf06fe
commit ada4f50401
6 changed files with 6 additions and 0 deletions

View File

@ -182,6 +182,7 @@ bool CustomizeDataBackupProxy::checkFreeCapacity(qint64 itotalSize)
if (itotalSize > freeSize) {
emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH));
result = false;
return result;
} else {
emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS));
}

View File

@ -154,6 +154,7 @@ void CustomizeSystemBackupProxy::checkFreeCapacity(qint64 itotalSize)
// 3、校验空间是否足够
if (itotalSize > freeSize) {
emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH));
return ;
} else {
emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS));
}

View File

@ -164,6 +164,7 @@ bool DataBackupProxy::checkFreeCapacity(qint64 itotalSize)
if (itotalSize > freeSize) {
emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH));
result = false;
return result;
} else {
emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS));
}

View File

@ -174,6 +174,7 @@ void SystemBackupProxy::checkFreeCapacity(qint64 itotalSize)
// 3、校验空间是否足够
if (itotalSize > freeSize) {
emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH));
return ;
} else {
emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS));
}

View File

@ -193,6 +193,7 @@ bool UDiskDataBackupProxy::checkFreeCapacityToUdisk(qint64 itotalSize)
if (itotalSize > freeSize) {
emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH));
result = false;
return result;
} else {
emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS));
}

View File

@ -212,6 +212,7 @@ void UDiskSystemBackupProxy::checkFreeCapacity(qint64 itotalSize)
// 3、校验空间是否足够
if (itotalSize > freeSize) {
emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH));
return ;
} else {
emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS));
}