tAdvance file pointer past the entry blocks - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bcd01c69cfead07db9df4e8dc6d07fe2263766b8
(DIR) parent 9fef9d0082f1cfb9dc1883482f45ba3f84bc5e9c
(HTM) Author: sin <sin@2f30.org>
Date: Tue, 20 Mar 2018 18:41:36 +0000
Advance file pointer past the entry blocks
Diffstat:
M dedup.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/dedup.c b/dedup.c
t@@ -311,6 +311,7 @@ list(void)
read(ifd, &ent, sizeof(ent));
dump_md(ent.md, sizeof(ent.md));
putchar('\n');
+ lseek(ifd, ent.nblks * sizeof(ent.blks[0]), SEEK_CUR);
}
}