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 > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 05-05-2011, 07:29 AM
Hannes Reinecke
 
Default Return PATH_UP for non-SCSI devices in path_offline()

path_offline() only makes sense for SCSI devices, as non
of the other types can detect the path state.

Signed-off-by: Hannes Reinecke <hare@suse.de>

diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index aa25cc4..a93f08c 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -706,6 +706,10 @@ path_offline (struct path * pp)
struct sysfs_device * parent;
char buff[SCSI_STATE_SIZE];

+ if (pp->bus != SYSFS_BUS_SCSI)
+ /* No information for non-SCSI devices, return UP */
+ return PATH_UP;
+
pp->sysdev = sysfs_device_from_path(pp);
if (!pp->sysdev) {
condlog(1, "%s: failed to get sysfs information", pp->dev);
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 04:57 PM.

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