[stage2] Implement disk_status

This commit is contained in:
TuxSH 2018-05-13 20:32:38 +02:00
parent 4f50d412f5
commit 9f53aa13d1

View file

@ -24,7 +24,12 @@ DSTATUS disk_status (
BYTE pdrv /* Physical drive nmuber to identify the drive */ BYTE pdrv /* Physical drive nmuber to identify the drive */
) )
{ {
return 0; device_partition_t *devpart = g_volume_to_devparts[pdrv];
if (devpart == NULL) {
return STA_NODISK;
} else {
return devpart->initialized ? 0 : STA_NOINIT;
}
} }