Lines Matching refs:fd_vtoc
162 struct vtoc fd_vtoc;
410 * The fd_vtoc, bpb, and rdirsec structures will be
416 * be added. This function should fill in fd_vtoc, bpb, and
419 (void) memset((void *)&fd_vtoc, (char)0, sizeof (struct vtoc));
422 format_diskette(fd, real_name, &fd_vtoc, &bpb, &rdirsec);
430 write_SunOS_label(fd, vollabel, &fd_vtoc);
446 * Oututs: the fd_vtoc will be partially filled in with the
452 format_diskette(int fd, char *real_name, struct vtoc *fd_vtoc,
596 (void) strcpy(fd_vtoc->v_asciilabel,
601 (void) strcpy(fd_vtoc->v_asciilabel,
610 (void) strcpy(fd_vtoc->v_asciilabel,
624 (void) strcpy(fd_vtoc->v_asciilabel,
642 (void) strcpy(fd_vtoc->v_asciilabel,
650 (void) strcpy(fd_vtoc->v_asciilabel,
684 fd_vtoc->v_nparts = 3;
686 fd_vtoc->v_part[0].p_start = 0;
687 fd_vtoc->v_part[0].p_size = ((num_cyl - 1) * 2 * spt *
689 fd_vtoc->v_part[1].p_start = ((num_cyl - 1) * 2 * spt *
691 fd_vtoc->v_part[1].p_size = 2 * spt * (m_flag ? 2 : 1);
693 fd_vtoc->v_part[2].p_start = 0;
694 fd_vtoc->v_part[2].p_size = num_cyl * 2 * spt * (m_flag ? 2 : 1);
1322 * NOTE: this function assumes fd_vtoc has been filled in with the
1327 write_SunOS_label(int fd, char *volname, struct vtoc *fd_vtoc)
1331 fd_vtoc->v_sanity = VTOC_SANE;
1338 fd_vtoc->v_sectorsz = DEV_BSIZE;
1340 (void) strncpy(fd_vtoc->v_volume, volname, sizeof (fd_vtoc->v_volume));
1343 if (ioctl(fd, DKIOCSVTOC, fd_vtoc) == -1) {