From 6f67daf09667d7b714274615a3378c7e622d3d9c Mon Sep 17 00:00:00 2001 From: Krzysztof Mazur Date: Tue, 25 Jan 2011 21:13:22 +0100 Subject: [PATCH 14/84] LSBD: add mirrored flag --- include/linux/lsbd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/lsbd.h b/include/linux/lsbd.h index 5c101c8..63fe10b 100644 --- a/include/linux/lsbd.h +++ b/include/linux/lsbd.h @@ -25,6 +25,7 @@ #define LSBD_SET_DEV _IO('l', 0x0) #define LSBD_PART _IO('l', 0x1) +#define LSBD_PART_MIRRORED 1 struct lsbd_part_info { __u32 num; __u32 start; @@ -35,6 +36,7 @@ struct lsbd_part_info { #ifdef __KERNEL__ #define LSBD_PART_MASK 0xffffff00 #define LSBD_PART_FLAGS_MASK 0xff +#define LSBD_PART_MIRRORED 1 struct lsbd_part { u32 start_flags; u32 size_res; @@ -63,7 +65,7 @@ struct lsbd_block { u32 prev_block[16]; /* 0x40 previous block table */ u32 ptab_offset; /* 0x80 */ - u32 mirror_offset; /* 0x84 mirror offset */ + u32 flags; /* 0x84 LSBD_* flags */ u32 pad1; /* 0x88 0 */ u32 ptab_checksum; /* 0x8c */ @@ -82,6 +84,9 @@ struct lsbd_block { u32 checksum; } __attribute__((packed)); +/* LSBD flags */ +#define LSBD_MIRRORED 1 /* block device uses mirroring */ + struct lsbd_sect { u64 epoch; /* version of this sector */ u64 mtime; /* last modify time */ -- 1.8.4.652.g0d6e0ce