]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
mdadm: do not display bitmap info if it is cleared
authorGuoqing Jiang <gqjiang@suse.com>
Tue, 1 Dec 2015 16:30:12 +0000 (00:30 +0800)
committerNeilBrown <neilb@suse.com>
Wed, 16 Dec 2015 02:24:04 +0000 (13:24 +1100)
commit53e76b1def4d3d6c884e45f1ac723b5f3a1b7376
tree3398e83cfb308681f6cff2eb17cc0d88a6d12912
parent8b2202ded1ab920c02851c14745330ba80384e16
mdadm: do not display bitmap info if it is cleared

"mdadm -X DISK" is used to report information about a bitmap
file, it is better to not display all the related infos if
bitmap is cleared with "--bitmap=none" under grow mode.

To do that, the locate_bitmap is changed a little to have a
return value based on MD_FEATURE_BITMAP_OFFSET.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
bitmap.c
mdadm.h
super0.c
super1.c