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:
Toomas Soome 2017-09-22 07:34:08 +00:00
parent b07d6aa2ae
commit 5af584ffc1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323906

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;