[PATCH] md: allow checkpoint of recovery with version-1 superblock
authorNeilBrown <neilb@suse.de>
Mon, 26 Jun 2006 07:27:40 +0000 (00:27 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:37 +0000 (09:58 -0700)
commit5fd6c1dce06ec24ef3de20fe0c7ecf2ba9fe5ef9
treebd7cc8c22615e8622d3d63b7fc68dcc3ac1964de
parenta8a55c387da28d67d98f56e4f5021462cb61f7a6
[PATCH] md: allow checkpoint of recovery with version-1 superblock

For a while we have had checkpointing of resync.  The version-1 superblock
allows recovery to be checkpointed as well, and this patch implements that.

Due to early carelessness we need to add a feature flag to signal that the
recovery_offset field is in use, otherwise older kernels would assume that a
partially recovered array is in fact fully recovered.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c
include/linux/raid/md_k.h
include/linux/raid/md_p.h