Message ID | 1459436979-7475-2-git-send-email-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Mar 31, 2016 at 4:09 PM, Roger Pau Monne <roger.pau@citrix.com> wrote: > FreeBSD blkback uses the physical-device-path 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. Also clarify the usage > of the physical-device node. > > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Looks good to me: Reviewed-by: George Dunlap <george.dunlap@citrix.com> > --- > Cc: Ian Jackson <ian.jackson@eu.citrix.com> > Cc: Jan Beulich <jbeulich@suse.com> > Cc: Tim Deegan <tim@xen.org> > --- > Changes since v2: > - Use physical-device-path instead of physical-device in order to store the > absolute path to the backing disk image. > --- > xen/include/public/io/blkif.h | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > > diff --git a/xen/include/public/io/blkif.h b/xen/include/public/io/blkif.h > index 99f0326..ce0dbfe 100644 > --- a/xen/include/public/io/blkif.h > +++ b/xen/include/public/io/blkif.h > @@ -89,15 +89,23 @@ > * 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: "MAJOR:MINOR" > + * Notes: 11 > * > * MAJOR and MINOR are the major number and minor number of the > * backing device respectively. > * > + * physical-device-path > + * Values: path string > + * > + * A string that contains the absolute path to the disk image. On > + * NetBSD and Linux this is always a block device, while on FreeBSD > + * it can be either a block device or a regular file. > + * > * type > * Values: "file", "phy", "tap" > * > @@ -391,6 +399,7 @@ > * than RING_SIZE * BLKIF_MAX_SEGMENTS_PER_REQUEST. > *(10) The discard-secure property may be present and will be set to 1 if the > * backing device supports secure discard. > + *(11) Only used by Linux and NetBSD. > */ > > /* > -- > 2.6.4 (Apple Git-63) > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel
Roger Pau Monne writes ("[PATCH v3 1/8] blkif: document how FreeBSD uses the physical-device backend node"): > FreeBSD blkback uses the physical-device-path 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. Also clarify the usage > of the physical-device node. Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
diff --git a/xen/include/public/io/blkif.h b/xen/include/public/io/blkif.h index 99f0326..ce0dbfe 100644 --- a/xen/include/public/io/blkif.h +++ b/xen/include/public/io/blkif.h @@ -89,15 +89,23 @@ * 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: "MAJOR:MINOR" + * Notes: 11 * * MAJOR and MINOR are the major number and minor number of the * backing device respectively. * + * physical-device-path + * Values: path string + * + * A string that contains the absolute path to the disk image. On + * NetBSD and Linux this is always a block device, while on FreeBSD + * it can be either a block device or a regular file. + * * type * Values: "file", "phy", "tap" * @@ -391,6 +399,7 @@ * than RING_SIZE * BLKIF_MAX_SEGMENTS_PER_REQUEST. *(10) The discard-secure property may be present and will be set to 1 if the * backing device supports secure discard. + *(11) Only used by Linux and NetBSD. */ /*
FreeBSD blkback uses the physical-device-path 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. Also clarify the usage of the physical-device node. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> --- Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Jan Beulich <jbeulich@suse.com> Cc: Tim Deegan <tim@xen.org> --- Changes since v2: - Use physical-device-path instead of physical-device in order to store the absolute path to the backing disk image. --- xen/include/public/io/blkif.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)