Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
multipath-tools
multipath-tools-remove-umount-map-uevent-handling
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File multipath-tools-remove-umount-map-uevent-handling of Package multipath-tools
From 34b3c36731a15ddf2ce6e21c36337d30f45e7659 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Wed, 4 Feb 2009 11:28:17 +0100 Subject: [PATCH] Remove 'umount map' uevent handling umount uevents are obsolete. So we can as well remove the handling for it. Signed-off-by: Hannes Reinecke <hare@suse.de> --- multipathd/main.c | 30 +----------------------------- 1 files changed, 1 insertions(+), 29 deletions(-) diff --git a/multipathd/main.c b/multipathd/main.c index e0f85e7..7b46f2d 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -309,33 +309,9 @@ ev_remove_map (char * devname, struct vectors * vecs) devname); return 0; } - flush_map(mpp, vecs); - - return 0; -} - -static int -uev_umount_map (struct uevent * uev, struct vectors * vecs) -{ - struct multipath * mpp; - - condlog(2, "%s: umount map (uevent)", uev->kernel); - - mpp = find_mp_by_str(vecs->mpvec, uev->kernel); - - if (!mpp) - return 0; - - update_mpp_paths(mpp, vecs->pathvec); - verify_paths(mpp, vecs, NULL); - - if (!VECTOR_SIZE(mpp->paths)) - flush_map(mpp, vecs); - - return 0; + return flush_map(mpp, vecs); } - static int uev_add_path (struct uevent *uev, struct vectors * vecs) { @@ -713,10 +689,6 @@ uev_trigger (struct uevent * uev, void * trigger_data) r = uev_remove_map(uev, vecs); goto out; } - if (!strncmp(uev->action, "umount", 6)) { - r = uev_umount_map(uev, vecs); - goto out; - } goto out; } -- 1.6.0.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor