dedup

data deduplication program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | LICENSE

commit 4590e214c6140e6d71896c8133120ebc2af287a1
parent 6a723da8930261861bc8eec788c0affc47ae8b3f
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:
dedup.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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;