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:
parent
aee8c6eefe
commit
6be612a073
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user