char *cp, *cq;
char p, max, psize[3], pbsize[3],
pfsize[3], poffset[3], ptype[3];
- u_int32_t *dx;
if (cgetent(&buf, db_array, (char *) name) < 0)
return NULL;
}
}
dp->d_npartitions = max + 1 - 'a';
- (void)strlcpy(psize, "dx", sizeof psize);
- dx = dp->d_drivedata;
- for (p = '0'; p < '0' + NDDATA; p++, dx++) {
- psize[1] = p;
- getnumdflt(*dx, psize, 0);
- }
dp->d_magic = DISKMAGIC;
dp->d_magic2 = DISKMAGIC;
free(buf);
-.\" $OpenBSD: disktab.5,v 1.22 2022/10/12 23:11:32 krw Exp $
+.\" $OpenBSD: disktab.5,v 1.23 2022/11/07 10:21:17 krw Exp $
.\" $NetBSD: disktab.5,v 1.4 1994/11/30 19:31:15 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)disktab.5 8.1 (Berkeley) 6/5/93
.\"
-.Dd $Mdocdate: October 12 2022 $
+.Dd $Mdocdate: November 7 2022 $
.Dt DISKTAB 5
.Os
.Sh NAME
.It \&su Ta num Ta "Number of sectors per unit (default: sc*nc)."
.It \&se Ta num Ta "Sector size in bytes (default:"
.Dv DEV_BSIZE ) .
-.It \&d[0-4] Ta num Ta "Drive-type-dependent parameters."
.Pp
.It \&ba Ta num Ta "Block size for partition"
.Dq a
-/* $OpenBSD: subr_disk.c,v 1.265 2022/10/11 23:39:08 krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.266 2022/11/07 10:21:17 krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
dlp->d_flags = swap32(dlp->d_flags);
- for (i = 0; i < NDDATA; i++)
- dlp->d_drivedata[i] = swap32(dlp->d_drivedata[i]);
-
dlp->d_secperunith = swap16(dlp->d_secperunith);
dlp->d_version = swap16(dlp->d_version);