]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
Create n bitmaps for clustered mode
authorGuoqing Jiang <gqjiang@suse.com>
Wed, 10 Jun 2015 05:42:04 +0000 (13:42 +0800)
committerNeilBrown <neilb@suse.de>
Tue, 16 Jun 2015 21:54:03 +0000 (07:54 +1000)
commit95a05b37e8eb2bc0803b1a0298fce6adc60eff16
treed57af663338ae8a79466d74bd9dc2f744acfed6d
parent2a6493cfe14e81b4ddf5c339890719c71df01419
Create n bitmaps for clustered mode

For a clustered MD, create bitmaps equal to number of nodes so
each node has an independent bitmap.

Only the first bitmap is has the bits set so that the first node
that assembles the device also performs the sync.

The bitmaps are aligned to 4k boundaries.

On-disk format:

0                    4k                     8k                    12k
-------------------------------------------------------------------
| idle                | md super            | bm super [0] + bits |
| bm bits[0, contd]   | bm super[1] + bits  | bm bits[1, contd]   |
| bm super[2] + bits  | bm bits [2, contd]  | bm super[3] + bits  |
| bm bits [3, contd]  |                     |                     |

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Create.c
bitmap.c
bitmap.h
mdadm.8.in
super1.c