Searched refs:nparity (Results 1 – 3 of 3) sorted by relevance
/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | vdev_raidz.c | 446 uint64_t unit_shift, uint64_t dcols, uint64_t nparity) in vdev_raidz_map_alloc() argument 463 q = s / (dcols - nparity); in vdev_raidz_map_alloc() 469 r = s - q * (dcols - nparity); in vdev_raidz_map_alloc() 472 bc = (r == 0 ? 0 : r + nparity); in vdev_raidz_map_alloc() 478 tot = s + nparity * (q + (r == 0 ? 0 : 1)); in vdev_raidz_map_alloc() 485 scols = MIN(dcols, roundup(bc, nparity + 1)); in vdev_raidz_map_alloc() 501 rm->rm_firstdatacol = nparity; in vdev_raidz_map_alloc() 535 rm->rm_asize = roundup(asize, (nparity + 1) << unit_shift); in vdev_raidz_map_alloc() 536 rm->rm_nskip = roundup(tot, nparity + 1) - tot; in vdev_raidz_map_alloc() 538 ASSERT3U(rm->rm_nskip, <=, nparity); in vdev_raidz_map_alloc() [all …]
|
H A D | vdev.c | 376 uint64_t guid = 0, islog, nparity; in vdev_alloc() local 431 nparity = -1ULL; in vdev_alloc() 434 &nparity) == 0) { in vdev_alloc() 435 if (nparity == 0 || nparity > VDEV_RAIDZ_MAXPARITY) in vdev_alloc() 441 if (nparity > 1 && in vdev_alloc() 444 if (nparity > 2 && in vdev_alloc() 457 nparity = 1; in vdev_alloc() 460 nparity = 0; in vdev_alloc() 462 ASSERT(nparity != -1ULL); in vdev_alloc() 467 vd->vdev_nparity = nparity; in vdev_alloc()
|
/titanic_50/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 1106 long nparity; in is_grouping() local 1109 nparity = 1; in is_grouping() 1114 nparity = strtol(p, &end, 10); in is_grouping() 1115 if (errno != 0 || nparity < 1 || nparity >= 255 || in is_grouping() 1121 *mindev = nparity + 1; in is_grouping()
|