TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: MIKE RUSKAI
from: Vitus Jensen
date: 1999-10-21 20:53:27
subject: DosDevIOCtl, cat8, f64

Hello Mike,

19.10.99 07:34, MIKE RUSKAI wrote a message to VITUS JENSEN:

...
 VJ>> ===============================================
 VJ>> DosRead/Write in direct-access mode will normally fail if the
 VJ>> partition is greater than four gigabytes in size.  If you wish
 VJ>> to write an HPFS editor or other tool, you will need to know the
 VJ>> "secret password" that unlocks the big disks.  After you use
 VJ>> DosOpen to get a handle to that volume, use FSCTL FSC_SECTORIO
 VJ>> (0x9014) and in the parameter list, put a pointer to 0xDEADFACE.
 VJ>>  Doing so will put the handle in "sector" mode.  All offsets and
 VJ>> sizes will refer to sectors instead of bytes, allowing you to
 VJ>> address 64Gb.
 VJ>> ================================================= 
 VJ>> From "Undocumented Features of OS/2" (os2undoc.zip, 48K)

 MR> Interesting.  I've already figured it out using DosDevIOCtl(),
 MR> though the above might prove useful in the future.

 MR> Is that to say that DosSetFilePtr() will also treat parameters as
 MR> sector offsets?

Never used that IOCtl.

I maintain a file/drive/disk editor to help me develop VRAID.  This editor
could switch to sector mode if a disk or drive is larger than 4GB. 
Unfortunately I don't own such a disk and all my test disks combined would
only reach 3*150+500 = 950MB.  So there is no need to do the coding.

I think you have to try it yourself...

C-x C-s
    Vitus

---
* Origin: Request VRAID - Software RAID for OS/2! (2:2474/424.1)

SOURCE: echoes via The OS/2 BBS

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™.