diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-25 06:42:12 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-25 06:42:12 +0200 |
commit | 8f0f1f4c8047a97012c55dc057780ff76667aacc (patch) | |
tree | 6ab2fb3eab80928ae2f9ce07ed12d2406acc3f03 /lib/sqfs/blk_proc/deduplicate.c | |
parent | d58ec4c9a11987e37bf158760bd18294f293beea (diff) |
Cleanup "signature" misnomer. It's actually a hash value.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/blk_proc/deduplicate.c')
-rw-r--r-- | lib/sqfs/blk_proc/deduplicate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqfs/blk_proc/deduplicate.c b/lib/sqfs/blk_proc/deduplicate.c index 34e4e37..08a108e 100644 --- a/lib/sqfs/blk_proc/deduplicate.c +++ b/lib/sqfs/blk_proc/deduplicate.c @@ -25,7 +25,7 @@ int store_block_location(sqfs_block_processor_t *proc, uint64_t offset, } proc->blocks[proc->num_blocks].offset = offset; - proc->blocks[proc->num_blocks].signature = MK_BLK_SIG(chksum, size); + proc->blocks[proc->num_blocks].hash = MK_BLK_HASH(chksum, size); proc->num_blocks += 1; return 0; } @@ -36,8 +36,8 @@ size_t deduplicate_blocks(sqfs_block_processor_t *proc, size_t count) for (i = 0; i < proc->file_start; ++i) { for (j = 0; j < count; ++j) { - if (proc->blocks[i + j].signature != - proc->blocks[proc->file_start + j].signature) + if (proc->blocks[i + j].hash != + proc->blocks[proc->file_start + j].hash) break; } |