TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: John Slagle
date: 1996-08-13 21:46:00
subject: DosOpen fsOpenFlags

I am wondering about use of locality flags:

            000  OPEN_FLAGS_NO_LOCALITY       (0x00000000)
            001  OPEN_FLAGS_SEQUENTIAL        (0x00000100)
            010  OPEN_FLAGS_RANDOM            (0x00000200)
            011  OPEN_FLAGS_RANDOMSEQUENTIAL  (0x00000300)

When is No Locality used. To open a file for level 3 info or EA info
without intention of reading or writing data?  Am wondering also how
locality would affect things such as buffer/cache size and count, as
well as read prefetch (the opposite of a lazy write, if there is such a
thing?)

I am also wondering how no locality would affect two other options:

       14        OPEN_FLAGS_WRITE_THROUGH (0x00004000)
       12        OPEN_FLAGS_NO_CACHE (0x00001000)

Write through (syncronous) obviously disables lazy writes.  Would
opening a file with no locality make the no cache option irrelevant? Is
the no cache option the same as theno locality specifier?

Thx
John

--- PCBoard (R) v15.3 (OS/2) 5 Beta
* Origin: Wildcard BBS,Thornton,CO HST/V34+ +1-303-252-0491 (1:104/725)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 104/725 251 627 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.