Lines Matching defs:vtoc
35 #include <sys/vtoc.h>
394 struct extvtoc vtoc;
412 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
432 if (snum < 0 || snum >= vtoc.v_nparts ||
433 vtoc.v_part[snum].p_size == 0) {
455 vtoc.v_part[snum].p_start) != 0) {
459 if (nvlist_add_uint64(attrs, DM_SIZE, vtoc.v_part[snum].p_size)
464 if (nvlist_add_uint32(attrs, DM_TAG, vtoc.v_part[snum].p_tag)
469 if (nvlist_add_uint32(attrs, DM_FLAG, vtoc.v_part[snum].p_flag)
635 struct extvtoc vtoc;
647 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
694 if (slice_num >= vtoc.v_nparts ||
695 vtoc.v_part[slice_num].p_size == 0) {
754 struct extvtoc vtoc;
780 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
796 if (slice_num >= vtoc.v_nparts ||
797 vtoc.v_part[slice_num].p_size == 0) {
834 struct extvtoc vtoc;
884 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
896 if (slice_num < vtoc.v_nparts &&
897 vtoc.v_part[slice_num].p_size > 0) {