svn commit: r323906 - head/sys/boot/efi/libefi

Toomas Soome tsoome at FreeBSD.org
Fri Sep 22 07:34:09 UTC 2017


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;


More information about the svn-src-all mailing list