mirror of
https://github.com/FDOS/kernel.git
synced 2025-12-08 05:30:05 +01:00
IOCTL: Add int21/4408 is drive removable
This commit is contained in:
parent
34003d0caa
commit
b2f23f5a19
@ -184,7 +184,7 @@ int DosDevIOctl(lregs * r)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (r->AL != 9)
|
if (r->AL != 8 && r->AL != 9)
|
||||||
return DE_INVLDDRV;
|
return DE_INVLDDRV;
|
||||||
dev = NULL;
|
dev = NULL;
|
||||||
attr = ATTR_REMOTE;
|
attr = ATTR_REMOTE;
|
||||||
@ -192,6 +192,16 @@ int DosDevIOctl(lregs * r)
|
|||||||
|
|
||||||
switch (r->AL)
|
switch (r->AL)
|
||||||
{
|
{
|
||||||
|
case 0x08:
|
||||||
|
{
|
||||||
|
struct cds FAR *cdsp = get_cds1(r->BL & 0x1f);
|
||||||
|
if (cdsp == NULL)
|
||||||
|
return DE_INVLDDRV;
|
||||||
|
if (cdsp->cdsFlags & CDSNETWDRV)
|
||||||
|
return DE_INVLDFUNC;
|
||||||
|
r->AX = (dpbp->dpb_flags == M_DONT_KNOW);
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
case 0x09:
|
case 0x09:
|
||||||
{
|
{
|
||||||
/* note from get_dpb() */
|
/* note from get_dpb() */
|
||||||
@ -213,7 +223,7 @@ int DosDevIOctl(lregs * r)
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
/* fall through */
|
/* fall through */
|
||||||
default: /* 0x04, 0x05, 0x08, 0x0e, 0x0f, 0x11 */
|
default: /* 0x04, 0x05, 0x0e, 0x0f, 0x11 */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user