From patchwork Sat Feb 11 05:28:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Marzinski X-Patchwork-Id: 9567853 X-Patchwork-Delegate: christophe.varoqui@free.fr Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2B62260572 for ; Sat, 11 Feb 2017 05:31:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AFEE285CF for ; Sat, 11 Feb 2017 05:31:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D30B285DA; Sat, 11 Feb 2017 05:31:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BEDB12853B for ; Sat, 11 Feb 2017 05:31:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v1B5TjdG002625; Sat, 11 Feb 2017 00:29:45 -0500 Received: from smtp.corp.redhat.com (int-mx16.intmail.prod.int.phx2.redhat.com [10.5.11.28]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v1B5T32u015676 for ; Sat, 11 Feb 2017 00:29:03 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2D30F30693; Sat, 11 Feb 2017 05:29:03 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from redhat.com (octiron.msp.redhat.com [10.15.80.209]) by smtp.corp.redhat.com (Postfix) with SMTP id EECF33068E; Sat, 11 Feb 2017 05:29:01 +0000 (UTC) Received: by redhat.com (sSMTP sendmail emulation); Fri, 10 Feb 2017 23:29:01 -0600 From: "Benjamin Marzinski" To: device-mapper development Date: Fri, 10 Feb 2017 23:28:50 -0600 Message-Id: <1486790932-30917-6-git-send-email-bmarzins@redhat.com> In-Reply-To: <1486790932-30917-1-git-send-email-bmarzins@redhat.com> References: <1486790932-30917-1-git-send-email-bmarzins@redhat.com> X-Scanned-By: MIMEDefang 2.74 on 10.5.11.28 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH 5/7] multipathd: add messages on delayed path addition X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP When multipath delays adding a path because the device is waiting for udev to finish initialization, it now logs a message, so the users know what happened to the path. Signed-off-by: Benjamin Marzinski --- multipathd/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/multipathd/main.c b/multipathd/main.c index 5480e96..33b7ad6 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -485,6 +485,8 @@ ev_add_map (char * dev, char * alias, struct vectors * vecs) if (mpp) { if (mpp->wait_for_udev > 1) { + condlog(2, "%s: performing delayed actions", + mpp->alias); if (update_map(mpp, vecs)) /* setup multipathd removed the map */ return 1; @@ -719,6 +721,7 @@ ev_add_path (struct path * pp, struct vectors * vecs) (pathcount(mpp, PATH_UP) > 0 || (pathcount(mpp, PATH_GHOST) > 0 && pp->tpgs != TPGS_IMPLICIT))) { /* if wait_for_udev is set and valid paths exist */ + condlog(2, "%s: delaying path addition until %s is fully initialized", pp->dev, mpp->alias); mpp->wait_for_udev = 2; orphan_path(pp, "waiting for create to complete"); return 0;