Mark cache_data as packed - dedup - deduplicating backup program
HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 4590e214c6140e6d71896c8133120ebc2af287a1
DIR parent 6a723da8930261861bc8eec788c0affc47ae8b3f
HTML Author: sin <sin@2f30.org>
Date: Wed, 21 Mar 2018 14:54:11 +0000
Mark cache_data as packed
This is a filesystem structure so make sure it never changes due to
padding.
Diffstat:
M dedup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/dedup.c b/dedup.c
@@ -38,7 +38,7 @@ struct blk {
struct cache_data {
unsigned char md[SHA256_DIGEST_LENGTH];
uint64_t blkidx;
-};
+} __attribute__((packed));
struct cache_ent {
struct cache_data data;