Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37539273
en ru br
Репозитории ALT
S:2.5.5-alt68
5.1: 2.5.5-alt13
4.1: 2.5.5-alt9
4.0: 2.5.5-alt5.M40.4
3.0: 2.5.2-alt3
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: evms

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: evms-2.4.0-raid1_discovery.patch
Скачать


--- evms-2.4.0/plugins/md/raid1_discover.c.orig	2004-02-25 20:24:37 +0200
+++ evms-2.4.0/plugins/md/raid1_discover.c	2004-02-25 20:25:24 +0200
@@ -145,11 +145,20 @@
 	}
 
 	if (!final_call && (volume->nr_disks != volume->super_block->nr_disks)) {
+		for (i = 0; i < volume->super_block->nr_disks; i ++) {
+			if (!volume->child_object[i]) {
+				LOG_WARNING("Volume %s currently has missed object, delaying discovery.\n",
+				  volume->name);
+				LOG_EXIT_INT(0);
+				return 0;
+			}
+		}		
 		/*
		 * It's not final discovery call and we have not found all the disks.
		 * If we can find 1 active disk, create the region in "degraded" mode.
		 * When missing objects arrive later, we will rediscover this region.
 		 */
+				/*
 		for (i = 0; i< MAX_MD_DEVICES; i++) {
 			if (volume->child_object[i]) {
 				if (disk_active(&volume->super_block->disks[i])) {
@@ -165,6 +174,7 @@
 			LOG_EXIT_INT(0);
 			return 0;
 		}
+		*/
 	}
 
 	LOG_DETAILS("Discovered region %s.\n",volume->name);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin