]> git.proxmox.com Git - qemu-server.git/commit
Fix #1999: cli: listsnapshot: handle multiple roots and mark orphaned as root
authorRhonda D'Vine <rhonda@proxmox.com>
Wed, 5 Jun 2019 13:30:48 +0000 (15:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jun 2019 17:22:30 +0000 (19:22 +0200)
commit3e494a3ca7715176b9b29bd6d538fab1fd9fa592
treeabe1d187eaabfbe599a57c4f0a8b48977631ee11
parent90041ba890f5626f114ae227b9bdeb24f81f1224
Fix #1999: cli: listsnapshot: handle multiple roots and mark orphaned as root

This commit addresses the following things:

* There can be multiple independent snapshot tree roots, display them
  all
* If a snapshot defines a parent that doesn't exist, it is now
  considered a snapshot root

There is a potential issue (which was also before and also affects the
GUI): circular snapshot trees.  That plays into the second mentioned
issue above.  If you manage to have a snapshot that defines a
non-existing root in the config, and then create a snapshot with that
exact name as a child of that snapshot, it would create a circular
dependency.  This would have to get addressed in the GUI too.

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/qm.pm