FreeBSD/sys/cddl/boot/zfs/zfssubr.c
/*
 * Generate RAID parity in the first virtual columns according to the number of
 * parity columns available.
 */
Generate RAID parity in the first virtual columns according to the number of
parity columns available.
Generate RAID parity in the first virtual columns according to the number of parity columns available .
static void
vdev_raidz_generate_parity(raidz_map_t *rm)
{
	switch (rm->rm_firstdatacol) {
	case 1:
		vdev_raidz_generate_parity_p(rm);
		break;
	case 2:
		vdev_raidz_generate_parity_pq(rm);
		break;
	case 3:
		vdev_raidz_generate_parity_pqr(rm);
		break;
	default:
		panic("invalid RAID-Z configuration");
	}
}
static void vdev_raidz_generate_parity ( raidz_map_t * rm ) { switch ( rm -> rm_firstdatacol ) { case 1 : vdev_raidz_generate_parity_p ( rm ) ; break ; case 2 : vdev_raidz_generate_parity_pq ( rm ) ; break ; case 3 : vdev_raidz_generate_parity_pqr ( rm ) ; break ; default : panic ( " " ) ; } }
Generate RAID parity in the first virtual columns according to the number of
 parity columns available.
Generate RAID parity in the first virtual columns according to the number of parity columns available .