iRename store_blk to write_blk - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit ad360edb70575b72ca96071e12bdd3106a055c86 /scm/dedup/commit/ad360edb70575b72ca96071e12bdd3106a055c86.gph bitreich.org 70 1parent 20f65f4dab52f9b4432a8f69987a485852777d85 /scm/dedup/commit/20f65f4dab52f9b4432a8f69987a485852777d85.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Sun, 17 Feb 2019 11:27:44 +0000 Err bitreich.org 70 i Err bitreich.org 70 iRename store_blk to write_blk Err bitreich.org 70 i Err bitreich.org 70 iTo be consistent with read_blk. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 4 ++-- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 2 insertions(+), 2 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/dedup.c b/dedup.c /scm/dedup/file/dedup.c.gph bitreich.org 70 i@@ -340,7 +340,7 @@ read_blk(uint8_t *buf, struct bdescr *bdescr) Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 i void Err bitreich.org 70 i-store_blk(uint8_t *buf, struct bdescr *bdescr) Err bitreich.org 70 i+write_blk(uint8_t *buf, struct bdescr *bdescr) Err bitreich.org 70 i { Err bitreich.org 70 i lseek(sfd, bdescr->offset, SEEK_SET); Err bitreich.org 70 i xwrite(sfd, buf, bdescr->size); Err bitreich.org 70 i@@ -407,7 +407,7 @@ dedup(int fd, char *msg) Err bitreich.org 70 i ent->bdescr[ent->nblks++] = bdescr; Err bitreich.org 70 i Err bitreich.org 70 i /* Store block */ Err bitreich.org 70 i- store_blk(bp, &bdescr); Err bitreich.org 70 i+ write_blk(bp, &bdescr); Err bitreich.org 70 i Err bitreich.org 70 i /* Create a cache entry for this block */ Err bitreich.org 70 i cent = alloc_cent(); Err bitreich.org 70 .