]> xenbits.xensource.com Git - libvirt.git/commit
esx: Don't treat an empty root snapshot list as error
authorChris Wong <wongc-redhat@hoku.net>
Wed, 21 Apr 2010 09:47:15 +0000 (11:47 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 21 Apr 2010 09:47:15 +0000 (11:47 +0200)
commitb1fab0c21c77cf72acfc7e961b25dc34465e98ed
tree623a2b57502d2ab73c09818034733a1f619c49aa
parent3f52921d431a744906833c1f40dbf61c3431916a
esx: Don't treat an empty root snapshot list as error

An empty root snapshot list was considered as error condition. Creating a
new snapshot would fail if the domain didn't have snapshots yet, because
the snapshot-create function tries to lookup the list of existing snapshots
in order to verify that the snapshot name is unique. This fails if the
domain doesn't have snapshots yet.

Removing the NULL check from esxVI_LookupRootSnapshotTreeList fixes this.
src/esx/esx_vi.c