summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-06-01 06:13:16 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-06-01 06:13:16 +0000
commit31b21dece8baf4ca8bbb831b2328ab694caea5c1 (patch)
tree99e4232551d7c13862ade374e4c3e5da432e364a /lib
parent05f031b6a1efc9e500ae986feb6c082f0d0fa860 (diff)
mark the non-handling of 48 bits units with XXX
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/disklabel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gen/disklabel.c b/lib/libc/gen/disklabel.c
index ac5a21f05ac..539e422ebd1 100644
--- a/lib/libc/gen/disklabel.c
+++ b/lib/libc/gen/disklabel.c
@@ -93,6 +93,7 @@ getdiskbyname(const char *name)
else
getnumdflt(dp->d_type, "dt", 0);
getnumdflt(dp->d_secpercyl, "sc", dp->d_nsectors * dp->d_ntracks);
+ /* XXX */
getnumdflt(dp->d_secperunit, "su", dp->d_secpercyl * dp->d_ncylinders);
getnumdflt(dp->d_rpm, "rm", 3600);
getnumdflt(dp->d_interleave, "il", 1);
@@ -114,12 +115,14 @@ getdiskbyname(const char *name)
long f;
psize[1] = pbsize[1] = pfsize[1] = poffset[1] = ptype[1] = p;
+ /* XXX */
if (cgetnum(buf, psize, &f) == -1)
pp->p_size = 0;
else {
u_int32_t fsize, frag = 8;
pp->p_size = f;
+ /* XXX */
getnum(pp->p_offset, poffset);
getnumdflt(fsize, pfsize, 0);
if (fsize) {