Project

General

Profile

Feature #4002 ยป 253991.diff

Xin Li, 2013-08-06 10:01 PM

View differences:

usr/src/uts/common/fs/zfs/vdev.c
2367 2367
	for (int c = 0; c < vd->vdev_children; c++)
2368 2368
		vdev_clear(spa, vd->vdev_child[c]);
2369 2369

  
2370
	if (vd == rvd) {
2371
		for (int c = 0; c < spa->spa_l2cache.sav_count; c++)
2372
			vdev_clear(spa, spa->spa_l2cache.sav_vdevs[c]);
2373

  
2374
		for (int c = 0; c < spa->spa_spares.sav_count; c++)
2375
			vdev_clear(spa, spa->spa_spares.sav_vdevs[c]);
2376
	}
2377

  
2370 2378
	/*
2371 2379
	 * If we're in the FAULTED state or have experienced failed I/O, then
2372 2380
	 * clear the persistent state and attempt to reopen the device.  We
    (1-1/1)