dedup

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

commit d189d4fc283a9295791c1c7a83802ab4141651ca
parent 94a49be0c19300d3a57a3d25ba58236c67e912a2
Author: sin <sin@2f30.org>
Date:   Thu, 18 Apr 2019 11:18:48 +0100

Move SNAPSF/STOREF defines to dedup.h

Diffstat:
Mdcheck.c | 3---
Mdedup.h | 3+++
Mdinfo.c | 3---
Mdinit.c | 3---
Mdlist.c | 3---
Mdpack.c | 3---
Mdunpack.c | 3---
7 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/dcheck.c b/dcheck.c @@ -14,9 +14,6 @@ #include "blake2.h" #include "dedup.h" -#define SNAPSF ".snapshots" -#define STOREF ".store" - static struct snap_hdr snap_hdr; static struct blk_hdr blk_hdr; static int ifd; diff --git a/dedup.h b/dedup.h @@ -1,5 +1,8 @@ #include "config.h" +#define SNAPSF ".snapshots" +#define STOREF ".store" + /* * These are the actual sizes of the structs in the * file format itself. The types are serialized/deserialized diff --git a/dinfo.c b/dinfo.c @@ -14,9 +14,6 @@ #include "blake2.h" #include "dedup.h" -#define SNAPSF ".snapshots" -#define STOREF ".store" - static struct snap_hdr snap_hdr; static struct blk_hdr blk_hdr; static int ifd; diff --git a/dinit.c b/dinit.c @@ -14,9 +14,6 @@ #include "blake2.h" #include "dedup.h" -#define SNAPSF ".snapshots" -#define STOREF ".store" - static struct snap_hdr snap_hdr; static struct blk_hdr blk_hdr; static int ifd; diff --git a/dlist.c b/dlist.c @@ -14,9 +14,6 @@ #include "blake2.h" #include "dedup.h" -#define SNAPSF ".snapshots" -#define STOREF ".store" - static struct snap_hdr snap_hdr; static struct blk_hdr blk_hdr; static int ifd; diff --git a/dpack.c b/dpack.c @@ -14,9 +14,6 @@ #include "blake2.h" #include "dedup.h" -#define SNAPSF ".snapshots" -#define STOREF ".store" - static struct snap_hdr snap_hdr; static struct blk_hdr blk_hdr; static struct icache *icache; diff --git a/dunpack.c b/dunpack.c @@ -14,9 +14,6 @@ #include "blake2.h" #include "dedup.h" -#define SNAPSF ".snapshots" -#define STOREF ".store" - struct extract_args { uint8_t *md; int fd;