mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-20 12:24:33 +02:00
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_status = 0;
|
||||||
IoReqHdr.r_meddesc = dpbp->dpb_mdb;
|
IoReqHdr.r_meddesc = dpbp->dpb_mdb;
|
||||||
IoReqHdr.r_count = numblocks;
|
IoReqHdr.r_count = numblocks;
|
||||||
if (blkno >= MAXSHORT)
|
if ((dpbp->dpb_device->dh_attr & ATTR_HUGE) || blkno >= MAXSHORT)
|
||||||
{
|
{
|
||||||
IoReqHdr.r_start = HUGECOUNT;
|
IoReqHdr.r_start = HUGECOUNT;
|
||||||
IoReqHdr.r_huge = blkno;
|
IoReqHdr.r_huge = blkno;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user