Remove geometry translations here.

This commit is contained in:
Yoshihiro Takahashi 2005-03-30 12:59:54 +00:00
parent d9e96e03ee
commit 612f970e46
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144333

View file

@ -274,29 +274,6 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags)
sectorsize = cp->provider->sectorsize;
if (sectorsize % 512 != 0)
break;
if (!strncmp(gp->name, "ad", 2)) {
u_int total_secs = cp->provider->mediasize/sectorsize;
if (total_secs < 17*8*65535) {
fwsectors = 17;
fwheads = 8;
}
else if (total_secs < 63*16*65535) {
if (fwsectors > 63)
fwsectors = 63;
if (fwheads > 16)
fwheads = 16;
}
else if (total_secs < 255*16*65535) {
fwsectors = 255;
if (fwheads > 16)
fwheads = 16;
}
else {
fwsectors = 255;
fwheads = 255;
}
}
buf = g_read_data(cp, 0, 8192, &error);
if (buf == NULL || error != 0)
break;