FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-18-2009, 01:11 PM
Hans de Goede
 
Default RHEL-5: Fix EDD BIOS information parsing (#540637)

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-21-2009, 01:41 PM
Chris Lumens
 
Default RHEL-5: Fix EDD BIOS information parsing (#540637)

> 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;
> }

Looks okay.

- Chris

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

Thread Tools




All times are GMT. The time now is 12:51 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org