[PATCH rhel5] RHEL-5: Fix EDD BIOS information parsing (#540637)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kudzu returns a list of block devices to check for EDD signatures which
includes /dev/sg? devices, trying to read from these fails with -ENXIO.

This patch makes us ignore -ENXIO errors and continue with the next device
instead of aborting the EDD parsing.
---
 isys/eddsupport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/isys/eddsupport.c b/isys/eddsupport.c
index 267fa1d..3c0ddc0 100644
--- a/isys/eddsupport.c
+++ b/isys/eddsupport.c
@@ -182,7 +182,7 @@ static int mapBiosDisks(struct device** devices,const char *path) {
             		continue;
 		
         	if ((rc=readDiskSig((*currentDev)->device, &currentSig)) < 0){
-			if (rc == -ENOMEDIUM)
+			if (rc == -ENOMEDIUM || rc == -ENXIO)
 			     continue;
 			return 0;
 		} 
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux