Changeset 91536 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- Oct 4, 2021 9:46:04 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147230
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/NvramStoreImpl.cpp
r91535 r91536 610 610 * Saves the NVRAM store as a tar archive. 611 611 */ 612 int NvramStore::i_saveStoreAsTar( void)612 int NvramStore::i_saveStoreAsTar(const char *pszPath) 613 613 { 614 614 uint32_t offError = 0; … … 616 616 RTVFSIOSTREAM hVfsIos; 617 617 618 int rc = RTVfsChainOpenIoStream( m->bd->strNvramPath.c_str(), RTFILE_O_WRITE | RTFILE_O_DENY_WRITE | RTFILE_O_CREATE_REPLACE,618 int rc = RTVfsChainOpenIoStream(pszPath, RTFILE_O_WRITE | RTFILE_O_DENY_WRITE | RTFILE_O_CREATE_REPLACE, 619 619 &hVfsIos, &offError, RTErrInfoInitStatic(&ErrInfo)); 620 620 if (RT_SUCCESS(rc)) … … 666 666 int rc = VINF_SUCCESS; 667 667 668 Utf8Str strTmp; 669 NvramStore::getNonVolatileStorageFile(strTmp); 670 668 671 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 669 672 if ( m->bd->mapNvram.size() == 1 … … 674 677 rc = RTVfsFileSeek(hVfsFileNvram, 0 /*offSeek*/, RTFILE_SEEK_BEGIN, NULL /*poffActual*/); 675 678 AssertRC(rc); RT_NOREF(rc); 676 677 Utf8Str strTmp;678 NvramStore::getNonVolatileStorageFile(strTmp);679 679 680 680 RTVFSIOSTREAM hVfsIosDst; … … 693 693 } 694 694 else if (m->bd->mapNvram.size()) 695 rc = i_saveStoreAsTar( );695 rc = i_saveStoreAsTar(strTmp.c_str()); 696 696 /* else: No NVRAM content to store so we are done here. */ 697 697
Note:
See TracChangeset
for help on using the changeset viewer.