summaryrefslogtreecommitdiffstats
path: root/libs/utils/BackupHelpers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Better (and less) logging from backup.Joe Onorato2009-06-261-2/+5
|
* Only report "unknown metadata" once per restore helperChristopher Tate2009-06-241-17/+14
| | | | Also removes the auto-free object, replacing it with direct memory manipulation.
* Put back LOGP -> printf in the backup helper codeChristopher Tate2009-06-241-1/+1
|
* Preserve file access mode when backing up / restoring filesChristopher Tate2009-06-231-13/+89
| | | | | | | | | | | | | | | | This change adds a fixed-size metadata block at the head of each file's content entity. The block is versioned, and fixed-size on the theory that it might be nice to be able to recover the content (if not the full metadata) of the files if we're ever confronted with data backed up some hypothetical future helper that stored expanded metadata. The net effect is that now on restore, we assign the same access mode to the file that it originally had when backed up. Also, some of the code was failing to properly free transient heap-based buffers when it encountered errors. This has been fixed with the addition of a tiny stack-based object whose job it is to free() its designated pointer from its destructor.
* Add file mode to the file-backup saved state blobsChristopher Tate2009-06-231-31/+42
| | | | | | | | | | | | | | | | This change puts the file's access mode into the saved-state blob used by the file backup helpers. The tests have been updated for the new blob content format. What this change *doesn't* do is actually backup/restore the file mode. This change is a prerequisite for that, but mode preservation in backup/restore will require adding metadata to the backup data stream itself, so will be approached a bit more carefully. (Also fixed one outright bug in the test program: ReadEntityData() had been changed to return a ssize_t union of either a byte-count or a negative number indicating error, but the test program was still assuming that nonzero == error, and was spuriously failing.)
* backup stuffJoe Onorato2009-06-181-3/+5
|
* Make RestoreHelper and friends also write out the snapshot state.Joe Onorato2009-06-181-29/+86
|
* checkpoint BackupDatAInput / RestoreHelperJoe Onorato2009-06-161-74/+24
|
* Make the file backup helper not crash if a file you requestedJoe Onorato2009-06-111-45/+108
| | | | | can't be stated. This means you don't need to know if the files you are backing up exist or not -- we'll figure it out for you.
* Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.Joe Onorato2009-06-111-62/+134
| | | | This took quite a bit of refactoring.
* Fix back_up_files() error detection when opening/CRCing the fileChristopher Tate2009-06-041-1/+2
|
* rename a few files to camel-case, add copyright noticesMathias Agopian2009-06-041-0/+1082