libefi: efipart_strategy() should return ENXIO when there is no media

We should return ENXIO to indicate the situation with device present,
but no media.
This commit is contained in:
tsoome 2017-09-22 07:34:08 +00:00
parent aee8c6eefe
commit 6be612a073

View File

@ -857,7 +857,7 @@ efipart_strategy(void *devdata, int rw, daddr_t blk, size_t size,
if (pd->pd_blkio->Media->RemovableMedia &&
!pd->pd_blkio->Media->MediaPresent)
return (EIO);
return (ENXIO);
bcd.dv_strategy = efipart_realstrategy;
bcd.dv_devdata = devdata;