mirror of https://github.com/FDOS/kernel.git
Always use huge block sectors if the relevant bit is set in the device
header. This solves a problem with xmsdsk. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@693 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
81654429d7
commit
7c241c59c6
|
@ -406,7 +406,7 @@ UWORD dskxfer(COUNT dsk, ULONG blkno, VOID FAR * buf, UWORD numblocks,
|
|||
IoReqHdr.r_status = 0;
|
||||
IoReqHdr.r_meddesc = dpbp->dpb_mdb;
|
||||
IoReqHdr.r_count = numblocks;
|
||||
if (blkno >= MAXSHORT)
|
||||
if ((dpbp->dpb_device->dh_attr & ATTR_HUGE) || blkno >= MAXSHORT)
|
||||
{
|
||||
IoReqHdr.r_start = HUGECOUNT;
|
||||
IoReqHdr.r_huge = blkno;
|
||||
|
|
Loading…
Reference in New Issue