[PATCH 1/2] FIX: During reshape array is in active state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



During reshape array is in active state. This has to be considered during
calling set_array_state() and setting consistent flag.
Consistent flag during reshape has to be set to 1 to keep volume in clean state.

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---

 monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/monitor.c b/monitor.c
index fb2288d..0d238cf 100644
--- a/monitor.c
+++ b/monitor.c
@@ -384,7 +384,7 @@ static int read_and_act(struct active_array *a)
 			     strncmp(buf, "none", 4) == 0)
 				a->last_checkpoint = a->info.component_size;
 		}
-		a->container->ss->set_array_state(a, a->curr_state <= clean);
+		a->container->ss->set_array_state(a, a->curr_state <= active);
 		a->last_checkpoint = sync_completed;
 	}
 

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux