[Freedos-kernel] About Eric's CLUSTER v ULONG remarks.

2004-07-19 Thread Bart Oldeman
Hi Eric,

please be aware that some structs (such as fnodes) are free-style, but 
most are dictated by RBIL. It's best to use CLUSTER in internal parameters 
and fields etc. because this is either 16 or 32 bits. Just like those 
freedos specific open flags they are completely kernel-internal and have 
no meaning to the outside world.

However, when mirroring an RBIL-dictated structure we should use 
ULONG (which is FD kernel speak for a 32 bit unsigned integer, I'm not 
terribly happy about the naming, but hey, we know what it means and what 
it does by now), it can never be 16-bits. Using CLUSTER there would just 
be obscuring things -- what if some weirdo makes CLUSTER 64 bits? It 
would completely break the mirroring.

Also be careful with LSEEK. The offset you feed to it really is signed -- 
on the other hand with two-s complement it doesn't really matter.

The Not Yet Implemented part about this 2GB files thingy is that 
normally opened files have to fail reads and writes if the current 
offset is beyond 2GB, perhaps also int21/ah=3d should refuse opening files 
 2GB. A special flag for int21/ah=6c is needed to enable 2Gb opens.

Bart



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] About Eric's CLUSTER v ULONG remarks.

2004-07-19 Thread Arkady V.Belousov
Hi!

20--2004 01:09 [EMAIL PROTECTED] (Bart Oldeman) wrote to
[EMAIL PROTECTED]:

 Glad to hear you, Bart. Have some questions to you.

BO please be aware that some structs (such as fnodes) are free-style, but
BO most are dictated by RBIL.

 You develop the fnode structures, so should know the better. Thus, may
you yourself fix the bugs in lfnapi.c (where used removed f_dmod field
instead F_DMOD mask)? Also, I wish to know: may we remove f_cluster_offset
field (and use in fatfs.c:map_cluster() stack variable)?

BO However, when mirroring an RBIL-dictated structure we should use
BO ULONG (which is FD kernel speak for a 32 bit unsigned integer, I'm not

 For 32-bit unsigned integers should be used UDWORD type.

PS: Do you see the patch from tom, related to unfreed near fnodes at
critical handler?




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21alloc_id040op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel