Lines Matching defs:vtoc
37 #include <sys/vtoc.h>
403 struct extvtoc vtoc;
421 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
441 if (snum < 0 || snum >= vtoc.v_nparts ||
442 vtoc.v_part[snum].p_size == 0) {
463 if (nvlist_add_uint64(attrs, DM_START, vtoc.v_part[snum].p_start)
468 if (nvlist_add_uint64(attrs, DM_SIZE, vtoc.v_part[snum].p_size)
473 if (nvlist_add_uint32(attrs, DM_TAG, vtoc.v_part[snum].p_tag)
478 if (nvlist_add_uint32(attrs, DM_FLAG, vtoc.v_part[snum].p_flag)
622 struct extvtoc vtoc;
634 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
681 if (slice_num >= vtoc.v_nparts ||
682 vtoc.v_part[slice_num].p_size == 0) {
741 struct extvtoc vtoc;
767 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
783 if (slice_num >= vtoc.v_nparts ||
784 vtoc.v_part[slice_num].p_size == 0) {
821 struct extvtoc vtoc;
871 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
883 if (slice_num < vtoc.v_nparts &&
884 vtoc.v_part[slice_num].p_size > 0) {