diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2016-10-03 19:22:17 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-02-28 03:05:38 -0900 |
commit | a5b5eba7f788bb77cf57f9c94f3474a2d439ab0b (patch) | |
tree | 278813d1b1a9024174531376d41a2ba04a3b27f6 /libbcache/io_types.h | |
parent | e4d1c93d85a5b86c04599bfc9f658308d741fd41 (diff) |
New on disk format - encryption
Diffstat (limited to 'libbcache/io_types.h')
-rw-r--r-- | libbcache/io_types.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libbcache/io_types.h b/libbcache/io_types.h index f7d99cdb..64269d94 100644 --- a/libbcache/io_types.h +++ b/libbcache/io_types.h @@ -43,7 +43,8 @@ struct bch_read_bio { u8 bounce:1, split:1; - struct bch_extent_crc64 crc; + struct bversion version; + struct bch_extent_crc128 crc; struct bch_extent_ptr ptr; struct cache *ca; @@ -101,15 +102,17 @@ struct bch_write_op { short error; u16 flags; + unsigned csum_type:4; unsigned compression_type:4; unsigned nr_replicas:4; unsigned alloc_reserve:4; + unsigned nonce:14; struct bpos pos; - unsigned version; + struct bversion version; /* For BCH_WRITE_DATA_COMPRESSED: */ - struct bch_extent_crc64 crc; + struct bch_extent_crc128 crc; unsigned size; struct disk_reservation res; |