summaryrefslogtreecommitdiff
path: root/super1.c
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2015-06-10 13:42:05 +0800
committerNeilBrown <neilb@suse.de>2015-06-17 09:04:16 +1000
commit529e2aa573333981b211dc50ac687da7baefd224 (patch)
treee4474033c66a7f9bf66b97c41814758ad75120b8 /super1.c
parent95a05b37e8eb2bc0803b1a0298fce6adc60eff16 (diff)
downloadmdadm-529e2aa573333981b211dc50ac687da7baefd224.tar.gz
Add nodes option while creating md
Specifies the maximum number of nodes in the cluster that may use this device simultaneously. This is equivalent to the number of bitmaps created in the internal superblock (patches to follow). Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/super1.c b/super1.c
index 7928a3d..78d98a7 100644
--- a/super1.c
+++ b/super1.c
@@ -2144,6 +2144,7 @@ add_internal_bitmap1(struct supertype *st,
bms->daemon_sleep = __cpu_to_le32(delay);
bms->sync_size = __cpu_to_le64(size);
bms->write_behind = __cpu_to_le32(write_behind);
+ bms->nodes = __cpu_to_le32(st->nodes);
*chunkp = chunk;
return 1;