]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commit
CA-46289: PIF_metrics vendor and devices names read incorrectly
authorRob Hoes <rob.hoes@citrix.com>
Tue, 12 Oct 2010 11:15:54 +0000 (12:15 +0100)
committerRob Hoes <rob.hoes@citrix.com>
Tue, 12 Oct 2010 11:15:54 +0000 (12:15 +0100)
commit2837d42b8cf69fae42b825ee93762f29769ecaf7
treedc789da00e779273c233da8e3cfb245458744c5e
parent4610ec860020b84f0966a326b40a0c964c385932
CA-46289: PIF_metrics vendor and devices names read incorrectly

PIF vendor and device names were listed as "unknown" in the PIF_metrics. This was due to a recent change in the Unixext.readfile_line function in combination with a slightly dubious way of jumping out of the read loop by raising End_of_file in pciutil.ml.

It is now possible to raise Unixext.Break in the function passed to Unixext.readfile_line, to break out of the read loop (if you really want to).

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
pciutil/pciutil.ml
stdext/unixext.ml
stdext/unixext.mli