aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxlu_disk_l.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-10-06 16:19:03 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-10-06 16:19:03 +0100
commit321753f1adef025cc14b76c6afad27500e8f210a (patch)
treea7a5f34283a55963e778a2ddf2f0183e186983d7 /tools/libxl/libxlu_disk_l.c
parent2b43aff571608f1ca6c8a4984a6130ef3ccd46c4 (diff)
downloadxen-321753f1adef025cc14b76c6afad27500e8f210a.tar.gz
xen-321753f1adef025cc14b76c6afad27500e8f210a.tar.bz2
xen-321753f1adef025cc14b76c6afad27500e8f210a.zip
libxlu: correctly parse disk "backendtype" field
Currently it tries to parse the value from the full "backendtype=FOO" string but really it needs to parse from the equals. Before: # xl -N block-attach d32-1 backendtype=phy,vdev=xvdb,access=w,target=/dev/VG/debian-x86_32-1b command line: config parsing error in disk specification: unknown value for backendtype: near `backendtype=phy' in `backendtype=phy,vdev=xvdb,access=w,target=/dev/VG/debian-x86_32-1b' After [in new syntax, not yet in this tree -iwj]: # xl -N block-attach d32-1 backendtype=phy,vdev=xvdb,access=w,target=/dev/VG/debian-x86_32-1b disk: { "backend_domid": 0, "pdev_path": "/dev/VG/debian-x86_32-1b", "vdev": "xvdb", "backend": "phy", "format": "raw", "script": null, "removable": 0, "readwrite": 1, "is_cdrom": 0 } Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxlu_disk_l.c')
-rw-r--r--tools/libxl/libxlu_disk_l.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxlu_disk_l.c b/tools/libxl/libxlu_disk_l.c
index 867bb19e0e..1ed1ec548c 100644
--- a/tools/libxl/libxlu_disk_l.c
+++ b/tools/libxl/libxlu_disk_l.c
@@ -1261,7 +1261,7 @@ case 8:
/* rule 8 can match eol */
YY_RULE_SETUP
#line 142 "libxlu_disk_l.l"
-{ STRIP(','); setbackendtype(DPC,yytext); }
+{ STRIP(','); setbackendtype(DPC,FROMEQUALS); }
YY_BREAK
case 9:
/* rule 9 can match eol */