This commit is contained in:
zhaominyong 2022-07-13 10:53:36 +08:00
parent b00743edd8
commit 3c950abd54
4 changed files with 5 additions and 0 deletions

View File

@ -291,6 +291,7 @@ void CustomizeSystemRestoreProxy::restoreSystem()
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
Utils::updateSyncFile();
Utils::wait(2);
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
fileIfSync.replace("//", "/");
QFileInfo file(fileIfSync);

View File

@ -353,6 +353,7 @@ void SystemRestoreProxy::restoreSystem()
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
Utils::updateSyncFile();
Utils::wait(2);
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
fileIfSync.replace("//", "/");
QFileInfo file(fileIfSync);

View File

@ -406,6 +406,7 @@ void UDiskSystemRestoreProxy::restoreSystem()
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
Utils::updateSyncFile();
Utils::wait(2);
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
fileIfSync.replace("//", "/");
QFileInfo file(fileIfSync);

View File

@ -1279,6 +1279,8 @@ bool Utils::updateSyncFile()
QTextStream out(&file);
out << "sync" << END_LINE;
out.flush();
file.flush();
file.close();
return true;