From patchwork Thu Mar 24 17:22:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Dunlap X-Patchwork-Id: 8663261 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9014BC0553 for ; Thu, 24 Mar 2016 17:25:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0E22201FE for ; Thu, 24 Mar 2016 17:25:37 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E102C203B4 for ; Thu, 24 Mar 2016 17:25:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj8yT-0000TW-3v; Thu, 24 Mar 2016 17:23:09 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj8yR-0000Ri-MW for xen-devel@lists.xen.org; Thu, 24 Mar 2016 17:23:07 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id 7F/90-07120-B7224F65; Thu, 24 Mar 2016 17:23:07 +0000 X-Env-Sender: prvs=884475cec=George.Dunlap@citrix.com X-Msg-Ref: server-5.tower-21.messagelabs.com!1458840184!5791169!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.11; banners=-,-,- X-VirusChecked: Checked Received: (qmail 48771 invoked from network); 24 Mar 2016 17:23:06 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-5.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 24 Mar 2016 17:23:06 -0000 X-IronPort-AV: E=Sophos;i="5.24,386,1454976000"; d="scan'208";a="341804091" From: George Dunlap To: Date: Thu, 24 Mar 2016 17:22:34 +0000 Message-ID: <1458840160-26733-4-git-send-email-george.dunlap@citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458840160-26733-1-git-send-email-george.dunlap@citrix.com> References: <1458840160-26733-1-git-send-email-george.dunlap@citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Wei Liu , Ian Jackson , George Dunlap , Roger Pau Monne Subject: [Xen-devel] [PATCH v3 3/9] tools/hotplug: Write physical-device-path in addition to physical-device X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change block-common.sh on Linux to write physical-device-path with the path of the device node, in addition to physical-device with its major:minor numbers. Signed-off-by: George Dunlap Acked-by: Ian Jackson --- NB that a later patch in this series introduces some documentation for the block script protocol. If it's wanted I could fold that into this patch; or if we wanted to be really strict, I could check it in before this patch (modifying it so that it's accurate at that point in time) and then have this patch update it. CC: Ian Jackson CC: Roger Pau Monne CC: Wei Liu --- tools/hotplug/Linux/block-common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hotplug/Linux/block-common.sh b/tools/hotplug/Linux/block-common.sh index ee95009..35110b4 100644 --- a/tools/hotplug/Linux/block-common.sh +++ b/tools/hotplug/Linux/block-common.sh @@ -67,7 +67,8 @@ write_dev() { fi xenstore_write "$XENBUS_PATH/physical-device" "$mm" - + xenstore_write "$XENBUS_PATH/physical-device-path" "$1" + success }