diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/bcache-ioctl.h | 8 | ||||
-rw-r--r-- | include/linux/bcache.h | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/bcache-ioctl.h b/include/linux/bcache-ioctl.h index 2d07666..ca76936 100644 --- a/include/linux/bcache-ioctl.h +++ b/include/linux/bcache-ioctl.h @@ -78,6 +78,14 @@ struct bch_ioctl_disk_set_state { #define BCH_REWRITE_RECOMPRESS (1 << 0) #define BCH_REWRITE_DECREASE_REPLICAS (1 << 1) +enum bch_data_ops { + BCH_DATA_SCRUB, +}; + +struct bch_data_op { + __u8 type; +}; + struct bch_ioctl_data { __u32 flags; __u32 pad; diff --git a/include/linux/bcache.h b/include/linux/bcache.h index f4c2f27..c221747 100644 --- a/include/linux/bcache.h +++ b/include/linux/bcache.h @@ -886,6 +886,10 @@ LE64_BITMASK(BCH_KDF_SCRYPT_N, struct bch_sb_field_crypt, kdf_flags, 0, 16); LE64_BITMASK(BCH_KDF_SCRYPT_R, struct bch_sb_field_crypt, kdf_flags, 16, 32); LE64_BITMASK(BCH_KDF_SCRYPT_P, struct bch_sb_field_crypt, kdf_flags, 32, 48); +struct bch_sb_field_replication { + struct bch_sb_field field; +}; + /* * @offset - sector where this sb was written * @version - on disk format version |