• M
    savevm: Generate a name when run without one · 7d631a11
    Miguel Di Ciurcio Filho 提交于
    When savevm is run without a name, the name stays blank and the snapshot is
    saved anyway.
    
    The new behavior is when savevm is run without parameters a name will be
    created automaticaly, so the snapshot is accessible to the user without needing
    the id when loadvm is run.
    
    (qemu) savevm
    (qemu) info snapshots
    ID        TAG                 VM SIZE                DATE       VM CLOCK
    1         vm-20100728134640      978K 2010-07-28 13:46:40   00:00:08.603
    
    We use a name with the format 'vm-YYYYMMDDHHMMSS'.
    
    This is a first step to hide the internal id, because I don't see a reason to
    expose this kind of internals to the user.
    Signed-off-by: NMiguel Di Ciurcio Filho <miguel.filho@gmail.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    7d631a11
savevm.c 52.9 KB