Lines Matching refs:sdisks
304 struct mpt_standalone_disk *sdisks; member
383 if (mpt_lookup_standalone_disk(cp, state->sdisks, in parse_volume()
389 dinfo->sdisk = &state->sdisks[i]; in parse_volume()
449 if (state->sdisks[i].target == state->target_id) in find_next_volume()
667 error = mpt_fetch_disks(fd, &state.nsdisks, &state.sdisks); in create_volume()
721 free(state.sdisks); in create_volume()
857 struct mpt_standalone_disk *sdisks; in add_spare() local
891 error = mpt_fetch_disks(fd, &nsdisks, &sdisks); in add_spare()
897 if (mpt_lookup_standalone_disk(av[1], sdisks, nsdisks, &i) < in add_spare()
904 if (mpt_lock_physdisk(&sdisks[i]) < 0) in add_spare()
907 if (mpt_create_physdisk(fd, &sdisks[i], &PhysDiskNum) < 0) { in add_spare()
912 free(sdisks); in add_spare()