dedup

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

commit ad360edb70575b72ca96071e12bdd3106a055c86
parent 20f65f4dab52f9b4432a8f69987a485852777d85
Author: sin <sin@2f30.org>
Date:   Sun, 17 Feb 2019 11:27:44 +0000

Rename store_blk to write_blk

To be consistent with read_blk.

Diffstat:
Mdedup.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dedup.c b/dedup.c @@ -340,7 +340,7 @@ read_blk(uint8_t *buf, struct bdescr *bdescr) } void -store_blk(uint8_t *buf, struct bdescr *bdescr) +write_blk(uint8_t *buf, struct bdescr *bdescr) { lseek(sfd, bdescr->offset, SEEK_SET); xwrite(sfd, buf, bdescr->size); @@ -407,7 +407,7 @@ dedup(int fd, char *msg) ent->bdescr[ent->nblks++] = bdescr; /* Store block */ - store_blk(bp, &bdescr); + write_blk(bp, &bdescr); /* Create a cache entry for this block */ cent = alloc_cent();