]> xenbits.xensource.com Git - libvirt.git/commit
conf: snapshot: Avoid autogenerating duplicate snapshot names
authorPeter Krempa <pkrempa@redhat.com>
Thu, 11 Feb 2016 08:57:45 +0000 (09:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Feb 2016 14:33:10 +0000 (15:33 +0100)
commitb60af444ccc7ae2655af6753d62c7ee611a628b8
treead6992379cccc536964e7364c1395edf09a55510
parent4319444d05f8dd24649a29103cb5f2e2f7dfb839
conf: snapshot: Avoid autogenerating duplicate snapshot names

The snapshot name generator truncates the original file name after a '.'
and replaces the suffix with the snapshot name. If two disks source
images differ only in the suffix portion, the generated name will be
duplicate.

Since this is a corner case just error out stating that a duplicate name
was generated. The user can work around this situation by providing
the file names explicitly.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1283085
src/conf/snapshot_conf.c