]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commit
stubdom: fix cdrom changing
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 4 Jan 2010 16:21:02 +0000 (16:21 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 4 Jan 2010 16:21:02 +0000 (16:21 +0000)
commit662c50f50338fa3abe68da95b45b6ef42dcdecc8
treebb0bfa71d8373aaefbf06c5f719cf9079207a8dc
parent9297e6402f6aa1b52e5577edc875eb2d2163baeb
stubdom: fix cdrom changing

Hi all,
the current code to change a cdrom doesn't work with stubdoms:

- media_filename set at boot time doesn't have the proper
value (that in the stubdom case is the frontend path and not the
filename);

- when a cdrom watch event is triggered, the code to decide whether the
new cdrom is valid and different from the current cdrom doesn't work for
stubdoms;

both issues are fixed by this patch, in particular now media_filename
consistently holds the frontend path for stubdoms while bs->filename
holds the filename (like in the normal qemu case) to allow comparisons
with the old cdrom filename.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xenstore.c