Skip to contentSkip to conversation

blkif.h: document physical-device node

PATCH Applied Wei Liu 3 participants 4 messages Jul 7, 2015 – Jul 28, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 blkif.h: document physical-device node

This node is used by toolstack (libxl, hotplug script) and blkback.

---
Cc: Ian Campbell <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Roger Pau Monne <[email protected]>
Cc: David Vrabel <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: George Dunlap <[email protected]>

I notice this when I was looking at George's patch series to fix hotplug scripts. If anyone has better idea how we can document this feel free to provide alternative.

---
 xen/include/public/io/blkif.h | 6 ++++++
 1 file changed, 6 insertions(+)
xen/include/public/io/blkif.h +6 -0
index 6baf7fb..8f0f9a6 100644
@@ -92,6 +92,12 @@
  *      backend driver to open the backing device.  (e.g. the path to the
  *      file or block device representing the backing store.)
  *
+ * physical-device
+ *      Values:         "MAJOR:MINOR"
+ *
+ *      MAJOR and MINOR are the major number and minor number of the
+ *      backing device respectively.
+ *
  * type
  *      Values:         "file", "phy", "tap"
  *
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Wei Liu

This node is used by toolstack (libxl, hotplug script) and blkback.

---
Cc: Ian Campbell <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Roger Pau Monne <[email protected]>
Cc: David Vrabel <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: George Dunlap <[email protected]>

Quoted 3 lines

I notice this when I was looking at George's patch series to fix hotplug scripts. If anyone has better idea how we can document this feel free to provide alternative.

It looks perfectly fine to me, maybe you might want to insert a "block" before the device, but in any case:

Quoted 21 lines
---
 xen/include/public/io/blkif.h | 6 ++++++
 1 file changed, 6 insertions(+)
xen/include/public/io/blkif.h +6 -0
index 6baf7fb..8f0f9a6 100644
@@ -92,6 +92,12 @@
  *      backend driver to open the backing device.  (e.g. the path to the
  *      file or block device representing the backing store.)
  *
+ * physical-device
+ *      Values:         "MAJOR:MINOR"
+ *
+ *      MAJOR and MINOR are the major number and minor number of the
+ *      backing device respectively.
+ *
  * type
  *      Values:         "file", "phy", "tap"
  *
Acked-by on v1 1/1
#2 lore raw
In reply to Wei Liu

El 07/07/15 a les 17.48, Wei Liu ha escrit:

Quoted 23 lines

This node is used by toolstack (libxl, hotplug script) and blkback.

---
Cc: Ian Campbell <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Roger Pau Monne <[email protected]>
Cc: David Vrabel <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: George Dunlap <[email protected]>

I notice this when I was looking at George's patch series to fix hotplug scripts. If anyone has better idea how we can document this feel free to provide alternative.

---
 xen/include/public/io/blkif.h | 6 ++++++
 1 file changed, 6 insertions(+)
xen/include/public/io/blkif.h +0 -0
index 6baf7fb..8f0f9a6 100644

xen/include/public/io/blkif.h line 100

Quoted 9 lines
xen/include/public/io/blkif.h +6 -0
@@ -92,6 +92,12 @@
  *      backend driver to open the backing device.  (e.g. the path to the
  *      file or block device representing the backing store.)
  *
+ * physical-device
+ *      Values:         "MAJOR:MINOR"
+ *
+ *      MAJOR and MINOR are the major number and minor number of the
+ *      backing device respectively.
+ *

Although I plan to expand this field so it's also used by FreeBSD blkback with a different format.

Roger.