summaryrefslogtreecommitdiffstats
path: root/python/examples/create_disk.py
diff options
context:
space:
mode:
authorWanlong Gao <gaowanlong@cn.fujitsu.com>2012-01-09 15:22:43 +0800
committerRichard W.M. Jones <rjones@redhat.com>2012-01-09 14:08:26 +0000
commitbe47b66c3033105a2b880dbc10bfc2b163b7eafe (patch)
treec750a6bdc60d981e88dff35428829f7bbb2af186 /python/examples/create_disk.py
parent0a7b734d2f54d4e98882532da9887feb66c9824a (diff)
downloadlibguestfs-be47b66c3033105a2b880dbc10bfc2b163b7eafe.tar.gz
libguestfs-be47b66c3033105a2b880dbc10bfc2b163b7eafe.tar.xz
libguestfs-be47b66c3033105a2b880dbc10bfc2b163b7eafe.zip
launch: don't add a drive twice
1. Change the g->path to restore a absolute path instead of the mixed. 2. Check that if the adding drive is duplicated with the added drive. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Make sure abs_path is NULL before it is assigned, so freeing it will work along the error path. - Fix the test which added /dev/null multiple times.
Diffstat (limited to 'python/examples/create_disk.py')
0 files changed, 0 insertions, 0 deletions