Message ID | 20100809161610.8643.qmail@sourceware.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
--- multipath-tools/multipathd/main.c 2010/06/23 16:28:08 1.69.2.27 +++ multipath-tools/multipathd/main.c 2010/08/09 16:16:10 1.69.2.28 @@ -299,8 +299,18 @@ static int uev_remove_map (char * devname, struct vectors * vecs) { + struct multipath * mpp; + condlog(2, "%s: remove map (uevent)", devname); - return ev_remove_map(devname, vecs); + + mpp = find_mp_by_str(vecs->mpvec, devname); + if (!mpp) { + condlog(2, "%s: devmap not registered, can't remove", devname); + return 0; + } + orphan_paths(vecs->pathvec, mpp); + remove_map(mpp, vecs, stop_waiter_thread, 1); + return 0; } int