diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-09-19 23:06:35 +0100 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-09-20 13:29:11 +0100 |
commit | eaa6b1883ba00ab32715f74572ba240286821a6b (patch) | |
tree | 6cc6718dd840303996831d0ed2e7584d16c9d7ce /lib | |
parent | 9a6b3851cd1da2d29c93b1076597512551ccc064 (diff) |
Add a test for reading and writing BackupStoreDirectory binary data.
See discussion of incompatible struct packing on ARM processors:
http://lists.boxbackup.org/pipermail/boxbackup/2010-November/005818.html
http://lists.boxbackup.org/pipermail/boxbackup/2011-February/005978.html
Thanks to Leif Linderstam for identifying the problem and proposing a
solution. This is just a test for the problem, not a fix in itself.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backupstore/BackupStoreDirectory.cpp | 5 | ||||
-rw-r--r-- | lib/backupstore/BackupStoreDirectory.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/backupstore/BackupStoreDirectory.cpp b/lib/backupstore/BackupStoreDirectory.cpp index 9507ab0d..d158cdd4 100644 --- a/lib/backupstore/BackupStoreDirectory.cpp +++ b/lib/backupstore/BackupStoreDirectory.cpp @@ -36,11 +36,6 @@ typedef struct // Then a StreamableMemBlock for attributes } dir_StreamFormat; -typedef enum -{ - Option_DependencyInfoPresent = 1 -} dir_StreamFormatOptions; - typedef struct { uint64_t mModificationTime; diff --git a/lib/backupstore/BackupStoreDirectory.h b/lib/backupstore/BackupStoreDirectory.h index 5bbb0b35..788a3ad0 100644 --- a/lib/backupstore/BackupStoreDirectory.h +++ b/lib/backupstore/BackupStoreDirectory.h @@ -47,6 +47,11 @@ public: } #endif + typedef enum + { + Option_DependencyInfoPresent = 1 + } dir_StreamFormatOptions; + BackupStoreDirectory(); BackupStoreDirectory(int64_t ObjectID, int64_t ContainerID); // Convenience constructor from a stream |