On 03/11/2016 08:21 PM, Alberto Garcia wrote:
On Thu 10 Mar 2016 03:49:40 AM CET, Changlong Xie wrote:
@@ -81,6 +82,8 @@ typedef struct BDRVQuorumState {
bool rewrite_corrupted;/* true if the driver must rewrite-on-read
corrupted
* block if Quorum is reached.
*/
+ unsigned long *index_bitmap;
Hi Berto
*NOTE*, In the old version, we just used "bs->node_name", but in the
lastest one, as Kevin suggested we introduce "child->child_name"(formart
as "children.xxx"), this is the key cause why we need this two functions
here.
Thanks
-Xie
+ int bsize;
[...]
+static int get_new_child_index(BDRVQuorumState *s)
[...]
+static void remove_child_index(BDRVQuorumState *s, int index)
[...]
Sorry if I missed a previous discussion, but why is this necessary?
Berto
.