From bd862568f14c3406685876d20a983c3fadb7a17c Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Fri, 26 Feb 2016 10:48:53 +0100 Subject: [PATCH 1/8] blkif: document how FreeBSD uses the physical-device backend node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FreeBSD blkback uses the physical-device xenstore node in order to fetch the path to the underlying backing storage (either a block device or raw image). This node is set by the hotplug scripts. Signed-off-by: Roger Pau Monné --- Cc: Ian Campbell Cc: Ian Jackson Cc: Jan Beulich Cc: Tim Deegan --- xen/include/public/io/blkif.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/xen/include/public/io/blkif.h b/xen/include/public/io/blkif.h index 6baf7fb..b94024c 100644 --- a/xen/include/public/io/blkif.h +++ b/xen/include/public/io/blkif.h @@ -89,8 +89,18 @@ * Values: string * * A free formatted string providing sufficient information for the - * backend driver to open the backing device. (e.g. the path to the - * file or block device representing the backing store.) + * hotplug script to attach the device and provide a suitable + * handler (ie: a block device) for blkback to use. + * + * physical-device: + * Values: OS specific + * + * A free formatted string that contains the OS specific path to the + * backing device for this blkback instance. + * + * Linux and NetBSD encode the block device major and minor numbers using + * the following printf format: "%x:%x", while FreeBSD places the path to + * the file or device in the filesystem. * * type * Values: "file", "phy", "tap" -- 2.5.4 (Apple Git-61)