|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [XEND] Check for and fail on non-existent
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 0a7fb6788fa746529220768dd66e32a0058db6f7
# Parent e169814c45ac0aec9117047994b60b69f634e463
[XEND] Check for and fail on non-existent floppy-drive file when starting HVM
guest.
The qemu device model hangs when a non-existent floppy file is passed
via 'fda' or 'fdb'. The attached patch checks whether the floppy file
exists and raises an error if it does not.
Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
tools/python/xen/xend/image.py | 5 +++++
1 files changed, 5 insertions(+)
diff -r e169814c45ac -r 0a7fb6788fa7 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Tue Oct 10 16:02:30 2006 +0100
+++ b/tools/python/xen/xend/image.py Sun Oct 15 09:19:26 2006 +0100
@@ -312,6 +312,11 @@ class HVMImageHandler(ImageHandler):
if v:
ret.append("-%s" % a)
ret.append("%s" % v)
+
+ if a in ['fda', 'fdb' ]:
+ if v:
+ if not os.path.isfile(v):
+ raise VmError("Floppy file %s does not exist." % v)
log.debug("args: %s, val: %s" % (a,v))
# Handle disk/network related options
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.,
Xen patchbot-unstable <=
|
|
|
|
|