Searched refs:nparity (Results 1 – 3 of 3) sorted by relevance
/titanic_44/usr/src/uts/common/fs/zfs/ |
H A D | vdev_raidz.c | 445 uint64_t unit_shift, uint64_t dcols, uint64_t nparity) in vdev_raidz_map_alloc() argument 462 q = s / (dcols - nparity); in vdev_raidz_map_alloc() 468 r = s - q * (dcols - nparity); in vdev_raidz_map_alloc() 471 bc = (r == 0 ? 0 : r + nparity); in vdev_raidz_map_alloc() 477 tot = s + nparity * (q + (r == 0 ? 0 : 1)); in vdev_raidz_map_alloc() 484 scols = MIN(dcols, roundup(bc, nparity + 1)); in vdev_raidz_map_alloc() 500 rm->rm_firstdatacol = nparity; in vdev_raidz_map_alloc() 534 rm->rm_asize = roundup(asize, (nparity + 1) << unit_shift); in vdev_raidz_map_alloc() 535 rm->rm_nskip = roundup(tot, nparity + 1) - tot; in vdev_raidz_map_alloc() 537 ASSERT3U(rm->rm_nskip, <=, nparity); in vdev_raidz_map_alloc() [all …]
|
H A D | vdev.c | 375 uint64_t guid = 0, islog, nparity; in vdev_alloc() local 430 nparity = -1ULL; in vdev_alloc() 433 &nparity) == 0) { in vdev_alloc() 434 if (nparity == 0 || nparity > VDEV_RAIDZ_MAXPARITY) in vdev_alloc() 440 if (nparity > 1 && in vdev_alloc() 443 if (nparity > 2 && in vdev_alloc() 456 nparity = 1; in vdev_alloc() 459 nparity = 0; in vdev_alloc() 461 ASSERT(nparity != -1ULL); in vdev_alloc() 466 vd->vdev_nparity = nparity; in vdev_alloc()
|
/titanic_44/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 1103 long nparity; in is_grouping() local 1106 nparity = 1; in is_grouping() 1111 nparity = strtol(p, &end, 10); in is_grouping() 1112 if (errno != 0 || nparity < 1 || nparity >= 255 || in is_grouping() 1118 *mindev = nparity + 1; in is_grouping()
|