diff options
author | NeilBrown <neilb@suse.de> | 2012-05-22 13:55:07 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-05-22 13:55:07 +1000 |
commit | 6409bb05a9831f6af36a20b97cda13059c2ef1b6 (patch) | |
tree | c997526bd60d3fb5cafea604e5b240c2479e20d9 /drivers/md/md.h | |
parent | bf07bb7d5be813630d3530be274b3324f85e310c (diff) | |
download | op-kernel-dev-6409bb05a9831f6af36a20b97cda13059c2ef1b6.zip op-kernel-dev-6409bb05a9831f6af36a20b97cda13059c2ef1b6.tar.gz |
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>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 3609373..7b4a3c3 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -393,10 +393,13 @@ struct mddev { * For external metadata, offset * from start of device. */ + unsigned long space; /* space available at this offset */ loff_t default_offset; /* this is the offset to use when * hot-adding a bitmap. It should * eventually be settable by sysfs. */ + unsigned long default_space; /* space available at + * default offset */ struct mutex mutex; unsigned long chunksize; unsigned long daemon_sleep; /* how many jiffies between updates? */ |