summaryrefslogtreecommitdiffstats
path: root/crypto/xor.c
diff options
context:
space:
mode:
authorJonathan Brassow2012-10-11 04:42:19 +0200
committerNeilBrown2012-10-11 04:42:19 +0200
commit761becff016b82a6a7a1b2ef224248da5f46bae9 (patch)
treebf9e1b479b85c659c9f54cb479bed9804484c011 /crypto/xor.c
parentDM RAID: Fix comparison of index and quantity for "rebuild" parameter (diff)
downloadkernel-qcow2-linux-761becff016b82a6a7a1b2ef224248da5f46bae9.tar.gz
kernel-qcow2-linux-761becff016b82a6a7a1b2ef224248da5f46bae9.tar.xz
kernel-qcow2-linux-761becff016b82a6a7a1b2ef224248da5f46bae9.zip
DM RAID: Fix for "sync" directive ineffectiveness
There are two table arguments that can be given to a DM RAID target that control whether the array is forced to (re)synchronize or skip initialization: "sync" and "nosync". When "sync" is given, we set mddev->recovery_cp to 0 in order to cause the device to resynchronize. This is insufficient if there is a bitmap in use, because the array will simply look at the bitmap and see that there is no recovery necessary. The fix is to skip over the loading of the superblocks when "sync" is given, causing new superblocks to be written that will force the array to go through initialization (i.e. synchronization). Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'crypto/xor.c')
0 files changed, 0 insertions, 0 deletions