-/* $OpenBSD: disksubr.c,v 1.29 2013/12/28 23:37:00 miod Exp $ */
+/* $OpenBSD: disksubr.c,v 1.30 2014/01/06 21:00:55 miod Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
return (EINVAL); /* sgilabel checksum error */
/* Spoof info from sgi label, in case there is no OpenBSD label. */
- DL_SETDSIZE(lp, (DL_GETDSIZE(lp)*lp->d_secsize) / dlp->dp.dp_secbytes);
- lp->d_secsize = dlp->dp.dp_secbytes;
- lp->d_nsectors = dlp->dp.dp_secs;
- lp->d_ntracks = dlp->dp.dp_trks0;
- lp->d_ncylinders = dlp->dp.dp_cyls;
lp->d_npartitions = MAXPARTITIONS;
for (i = 0; i < 16; i++) {