From 48cf06bc5f508d5f71bc0fd7530daebb12a48428 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Wed, 24 Sep 2014 17:47:19 +0200 Subject: [PATCH] dm raid: add discard support for RAID levels 4, 5 and 6 In case of RAID levels 4, 5 and 6 we have to verify each RAID members' ability to zero data on discards to avoid stripe data corruption -- if discard_zeroes_data is not set for each RAID member discard support must be disabled. But given the uncertainty of whether or not a RAID member properly supports zeroing data on discard we require the user to explicitly allow discard support on RAID levels 4, 5, and 6 by setting a dm-raid module paramter, e.g.: dm-raid.devices_handle_discard_safely=Y Otherwise, discards could cause data corruption on RAID4/5/6. Signed-off-by: Heinz Mauelshagen Signed-off-by: Mike Snitzer --- Reading git-format-patch failed