SMOLNET PORTAL home about changes
ttypes.h - dedup - data deduplication program
(URL) git clone git://bitreich.org/dedup/ git://hg6vgqziawt5s4dj.onion/dedup/ (git://bitreich.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
ttypes.h (727B)
---
1 #define MSGSIZE 256
2 #define MDSIZE 32
3
4 /* snashot file format version */
5 #define VER_MIN 1
6 #define VER_MAJ 0
7
8 struct stats {
9 uint64_t orig_size;
10 uint64_t comp_size;
11 uint64_t dedup_size;
12 uint64_t min_blk_size;
13 uint64_t max_blk_size;
14 uint64_t nr_blks;
15 uint64_t reserved[6];
16 };
17
18 struct snapshot_hdr {
19 uint64_t flags;
20 uint64_t nr_snapshots;
21 uint64_t store_size;
22 uint64_t reserved[4];
23 struct stats st;
24 };
25
26 struct blk_desc {
27 uint8_t md[MDSIZE];
28 uint64_t offset;
29 uint64_t size;
30 };
31
32 struct snapshot {
33 uint64_t size;
34 uint8_t msg[MSGSIZE];
35 uint8_t md[MDSIZE]; /* hash of snapshot */
36 uint64_t nr_blk_descs;
37 struct blk_desc blk_desc[];
38 };
39
40 struct cache_entry {
41 uint8_t md[MDSIZE];
42 uint64_t offset;
43 uint64_t size;
44 };
Response: application/gopher-menu
Original URLgopher://bitreich.org/1/scm/dedup/file/types.h.gph
Content-Typeapplication/gopher-menu; charset=utf-8