diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-01-16 20:18:25 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-01-16 20:18:25 +0000 |
commit | 20f1ae25249de3c1b54b0a9c93c8ab5af81392f4 (patch) | |
tree | 9f51f0d358e518b576de9c86133b3651f0efabc0 | |
parent | 70de16b2d375df4d72d4de925b1389b35c5efa1b (diff) |
Revert forcing a rachitic `c' slice size when the drive geometry is not known,
now that the disklabel code will reduce MAXDISKSIZE to the real size if a Sun
label is found.
-rw-r--r-- | sys/arch/sparc/dev/xd.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/xy.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c index eb6347a6fd3..13bf6f1498c 100644 --- a/sys/arch/sparc/dev/xd.c +++ b/sys/arch/sparc/dev/xd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xd.c,v 1.70 2015/01/15 21:17:54 miod Exp $ */ +/* $OpenBSD: xd.c,v 1.71 2015/01/16 20:18:24 miod Exp $ */ /* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */ /* @@ -295,8 +295,6 @@ xdgetdisklabel(dev, xd, lp, spoofonly) if (xd->state == XD_DRIVE_ATTACHING || xd->state == XD_DRIVE_NOLABEL) { /* needs to be nonzero */ lp->d_secpercyl = 1; - /* prevent initdisklabel() from putting MAXDISKSIZE */ - DL_SETDSIZE(lp, 1ULL); } else { /* * Disk geometry is known from a previously found label. diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c index e70bed8b057..00d25d94f04 100644 --- a/sys/arch/sparc/dev/xy.c +++ b/sys/arch/sparc/dev/xy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xy.c,v 1.67 2015/01/15 21:17:54 miod Exp $ */ +/* $OpenBSD: xy.c,v 1.68 2015/01/16 20:18:24 miod Exp $ */ /* $NetBSD: xy.c,v 1.26 1997/07/19 21:43:56 pk Exp $ */ /* @@ -233,8 +233,6 @@ xygetdisklabel(dev, xy, lp, spoofonly) if (xy->state == XY_DRIVE_ATTACHING || xy->state == XY_DRIVE_NOLABEL) { /* needs to be nonzero */ lp->d_secpercyl = 1; - /* prevent initdisklabel() from putting MAXDISKSIZE */ - DL_SETDSIZE(lp, 1ULL); } else { /* * Disk geometry is known for a previously found label. |