md/bitmap: add new 'space' attribute for bitmaps.
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:07 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:07 +0000 (13:55 +1000)
commit6409bb05a9831f6af36a20b97cda13059c2ef1b6
treec997526bd60d3fb5cafea604e5b240c2479e20d9
parentbf07bb7d5be813630d3530be274b3324f85e310c
md/bitmap: add new 'space' attribute for bitmaps.

If we are to allow bitmaps to be resized when the array is resized,
we need to know how much space there is.

So create an attribute to store this information and set appropriate
defaults.

It can be set more precisely via sysfs, or future metadata extensions
may allow it to be recorded.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c
drivers/md/md.c
drivers/md/md.h