1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

PC98 got it right here: sectors can be non-512 byte sized.

This commit is contained in:
Poul-Henning Kamp 2004-07-07 20:28:31 +00:00
parent fd13236829
commit 8a1f37f227
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131760

View File

@ -452,13 +452,8 @@ get_fmt(int size, enum fd_drivetype type)
return fd_types_auto;
for (i = 0; i < n; i++, fdtp++)
#ifdef PC98
if (((128 << fdtp->secsize) * fdtp->size / 1024) == size)
return (fdtp);
#else
if (fdtp->size / 2 == size)
return (fdtp);
#endif
return (0);
}