From b3d3195538e315b3863235731112eee7398d4340 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sat, 25 Oct 2008 18:20:49 +1100 Subject: Allow WRITEMOSTLY to be cleared on --readd using --readwrite. Previously it was possible to set the WRITEMOSTLY flag when adding a device to an array, but not to clear the flag when re-adding. This is now possible with --readwrite. Signed-off-by: NeilBrown --- Build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Build.c') diff --git a/Build.c b/Build.c index d6e20fb..1e213ce 100644 --- a/Build.c +++ b/Build.c @@ -183,7 +183,7 @@ int Build(char *mddev, int mdfd, int chunk, int level, int layout, disk.number = i; disk.raid_disk = i; disk.state = (1<writemostly) + if (dv->writemostly == 1) disk.state |= 1<