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)
|