]> git.baikalelectronics.ru Git - kernel.git/commit
md: support updating bitmap parameters via sysfs.
authorNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:49:55 +0000 (12:49 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:51:41 +0000 (12:51 +1100)
commit593df54a65c0f2822c900d64dffcdf51be770437
treeff8e161d841c41992dbbcca2a844816411941c3c
parent0ec264b3fe429e53d7cc0cff3d1828c2d652d7e1
md: support updating bitmap parameters via sysfs.

A new attribute directory 'bitmap' in 'md' is created which
contains files for configuring the bitmap.
'location' identifies where the bitmap is, either 'none',
or 'file' or 'sector offset from metadata'.
Writing 'location' can create or remove a bitmap.
Adding a 'file' bitmap this way is not yet supported.
'chunksize' and 'time_base' must be set before 'location'
can be set.

'chunksize' can be set before creating a bitmap, but is
currently always over-ridden by the bitmap superblock.

'time_base' and 'backlog' can be updated at any time.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Andre Noll <maan@systemlinux.org>
Documentation/md.txt
drivers/md/bitmap.c
drivers/md/md.c
drivers/md/md.h