From 583315d9c522c310c89d5640ae884ef7984b9c30 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 14 Dec 2006 17:31:13 +1100 Subject: Give useful message if raid4/5/6 cannot be started because it is not clean and is also degraded. --- super1.c | 1 + 1 file changed, 1 insertion(+) (limited to 'super1.c') diff --git a/super1.c b/super1.c index 140f637..1890949 100644 --- a/super1.c +++ b/super1.c @@ -429,6 +429,7 @@ static void getinfo_super1(struct mdinfo *info, void *sbv) info->array.ctime = __le64_to_cpu(sb->ctime); info->array.utime = __le64_to_cpu(sb->utime); info->array.chunk_size = __le32_to_cpu(sb->chunksize)*512; + info->array.state = (__le64_to_cpu(sb->resync_offset)+1) ? 0 : 1; info->data_offset = __le64_to_cpu(sb->data_offset); info->component_size = __le64_to_cpu(sb->size); -- cgit