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-25-2011, 12:40 PM
Hannes Reinecke
 
Default multipathd: Do not attempt to rename a device

If a device-mapper device got renamed we should be notified
via the waiter thread; no need to do it in the main loop.

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

diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c
index e07b5fd..189f25b 100644
--- a/libmultipath/structs_vec.c
+++ b/libmultipath/structs_vec.c
@@ -326,7 +326,6 @@ set_no_path_retry(struct multipath *mpp)
extern int
setup_multipath (struct vectors * vecs, struct multipath * mpp)
{
-retry:
if (dm_get_info(mpp->alias, &mpp->dmi)) {
/* Error accessing table */
condlog(3, "%s: cannot access table", mpp->alias);
@@ -344,24 +343,6 @@ retry:
condlog(3, "%s: discover", mpp->alias);

if (update_multipath_strings(mpp, vecs->pathvec)) {
- char *new_alias;
-
- /*
- * detect an external rename of the multipath device
- */
- new_alias = dm_get_name(mpp->wwid);
- if (new_alias) {
- condlog(3, "%s multipath mapped device name has "
- "changed from %s to %s", mpp->wwid,
- mpp->alias, new_alias);
- FREE(mpp->alias);
- mpp->alias = new_alias;
-
- if (mpp->waiter)
- strncpy(((struct event_thread *)mpp->waiter)->mapname,
- new_alias, WWID_SIZE);
- goto retry;
- }
condlog(0, "%s: failed to setup multipath", mpp->alias);
goto out;
}

--
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:25 PM.

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