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 > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 06-28-2010, 12:14 PM
Martin Sivak
 
Default Show sane non-removable drives too in the DD dialog (#594548)

---
loader/driverdisk.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/loader/driverdisk.c b/loader/driverdisk.c
index da3d3c2..5b1f7d5 100644
--- a/loader/driverdisk.c
+++ b/loader/driverdisk.c
@@ -348,7 +348,10 @@ int getRemovableDevices(char *** devNames) {

if(devs) for (i = 0; devs[i] ; i++) {
logMessage(DEBUGLVL, "Considering device %s (isremovable: %d)", devs[i]->device, devs[i]->priv.removable);
- if (devs[i]->priv.removable) {
+
+ /* XXX Filter out memory devices from the list for now, we have to come
+ up with smarter way of filtering someday.. */
+ if (strncmp(devs[i]->device, "ram", 3) && strncmp(devs[i]->device, "loop", 4)) {
*devNames = realloc(*devNames, (numDevices + 2) * sizeof(char *));
(*devNames)[numDevices] = strdup(devs[i]->device);
(*devNames)[numDevices+1] = NULL;
--
1.6.6.1

_______________________________________________
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 01:57 PM.

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