RE: Question about msdosfs

2000-02-05 Thread John Baldwin


On 05-Feb-00 Warner Losh wrote:
> 
> In msdosfs_vfsops.c we have:
>   || !pmp->pm_Heads || pmp->pm_Heads > 255
>#ifdef PC98
>   || !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 255) {
>#else
>   || !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 63) {
>#endif
>   error = EINVAL;
> 
> What's so special about 63?  Many scsi drives have more than 63
> sectors per track.  The only reason that we don't see problems with
> this is that it appears that CAM appears to be using a geometry with
> 64 heads and 32 sectors and N cylendars.  What's the justification
> here?

The PC BIOS (int 0x13 calls) only allows for 63 sectors numbered 1-63 for each
track (cylinder).  That is most likely the reason for the 63.

> Warner

-- 

John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Question about msdosfs

2000-02-04 Thread Warner Losh


In msdosfs_vfsops.c we have:
|| !pmp->pm_Heads || pmp->pm_Heads > 255
#ifdef PC98
|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 255) {
#else
|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 63) {
#endif
error = EINVAL;

What's so special about 63?  Many scsi drives have more than 63
sectors per track.  The only reason that we don't see problems with
this is that it appears that CAM appears to be using a geometry with
64 heads and 32 sectors and N cylendars.  What's the justification
here?

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message