summaryrefslogtreecommitdiffstats
path: root/bitmap.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mdadm/bitmap:fixed typos in comments of bitmap.hZhilong Liu2017-03-281-2/+2
| | | | | | | bitmap.h: fixed trivial typos in comments Signed-off-by: Zhilong Liu <zlliu@suse.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
* Increment version for clustered bitmapsGoldwyn Rodrigues2015-09-281-0/+1
| | | | | | | | | | | | | | | Add BITMAP_MAJOR_CLUSTERED as 5, in order to prevent older kernels to assemble a clustered device. In order to maximize compatibility, the major version is set to BITMAP_MAJOR_CLUSTERED *only* if the bitmap is clustered. Also, added MD_FEATURE_CLUSTERED in order to return error for older kernels which would assemble MD in case bitmap is corrupted. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: NeilBrown <neilb@suse.com>
* Create n bitmaps for clustered modeGuoqing Jiang2015-06-161-2/+5
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Remove spaces/tabs from ends of lines.Neil Brown2007-12-141-2/+2
|
* Create version-4 bitmaps if kernel supports it.Neil Brown2005-10-111-1/+7
| | | | | | | Version-3 bitmaps are host-endian. Version-4 are little-endian and so more portable. Signed-off-by: Neil Brown <neilb@suse.de>
* Add write-behind supportNeil Brown2005-08-091-2/+10
| | | | | | | | Currently this includes --write-behind to set level of write-behind supported --write-mostly to flag devices as write-mostly. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* 2.0-devel-1 releaseNeil Brown2005-06-081-1/+1
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Initial bitmap supportNeil Brown2005-06-081-0/+273
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>