Message ID | 1458840160-26733-4-git-send-email-george.dunlap@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
George Dunlap writes ("[PATCH v3 3/9] tools/hotplug: Write physical-device-path in addition to physical-device"): > 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 <george.dunlap@citrix.com> > --- > 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 <Ian.Jackson@eu.citrix.com> > CC: Roger Pau Monne <roger.pau@citrix.com> > CC: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
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 }
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 <george.dunlap@citrix.com> --- 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 <Ian.Jackson@eu.citrix.com> CC: Roger Pau Monne <roger.pau@citrix.com> CC: Wei Liu <wei.liu2@citrix.com> --- tools/hotplug/Linux/block-common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)