Lines Matching refs:ndisks
1649 u_int ndisks; in g_mirror_request_split() local
1655 ndisks = g_mirror_ndisks(sc, G_MIRROR_DISK_STATE_ACTIVE); in g_mirror_request_split()
1656 slice = bp->bio_length / ndisks; in g_mirror_request_split()
2437 u_int dirty, ndisks; in g_mirror_update_device() local
2475 DETECT_MISMATCH(ndisks, "md_all"); in g_mirror_update_device()
2500 ndisks = g_mirror_ndisks(sc, -1); in g_mirror_update_device()
2501 if ((force && ndisks > 0) || in g_mirror_update_device()
2502 (g_launch_mirror_before_timeout && ndisks == sc->sc_ndisks)) { in g_mirror_update_device()
2504 } else if (ndisks == 0) { in g_mirror_update_device()
2528 ndisks = 0; in g_mirror_update_device()
2532 ndisks++; in g_mirror_update_device()
2535 if (ndisks == 0) { in g_mirror_update_device()
2559 dirty = ndisks = 0; in g_mirror_update_device()
2568 ndisks++; in g_mirror_update_device()
2579 } else if (dirty == ndisks) { in g_mirror_update_device()
2604 } else if (dirty < ndisks) { in g_mirror_update_device()