Author: tsoome Date: Fri Sep 22 07:34:08 2017 New Revision: 323906 URL: https://svnweb.freebsd.org/changeset/base/323906
Log: 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. Modified: head/sys/boot/efi/libefi/efipart.c Modified: head/sys/boot/efi/libefi/efipart.c ============================================================================== --- head/sys/boot/efi/libefi/efipart.c Fri Sep 22 07:29:26 2017 (r323905) +++ head/sys/boot/efi/libefi/efipart.c Fri Sep 22 07:34:08 2017 (r323906) @@ -857,7 +857,7 @@ efipart_strategy(void *devdata, int rw, daddr_t blk, s if (pd->pd_blkio->Media->RemovableMedia && !pd->pd_blkio->Media->MediaPresent) - return (EIO); + return (ENXIO); bcd.dv_strategy = efipart_realstrategy; bcd.dv_devdata = devdata; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"