line |
stmt |
code |
1
|
|
# Copyright 2018 SUSE LLC |
2
|
|
# SPDX-License-Identifier: GPL-2.0-or-later |
3
|
|
|
4
|
|
=head2 OpenQA::Qemu::Snapshot |
5
|
|
|
6
|
|
Represents the state of a virtual machine at a particular point in time. Not |
7
|
|
much information about the snapshot is stored within this class itself, it is |
8
|
|
used mainly as a reference to identify disperate objects as belonging to a |
9
|
|
single snapshot. |
10
|
|
|
11
|
|
We only consider snapshots which form a linear chain. Branching snapshots are |
12
|
|
not supported. |
13
|
|
|
14
|
|
=cut |
15
|
|
|
16
|
|
use Mojo::Base 'OpenQA::Qemu::MutParams', -signatures; |
17
|
16
|
|
|
16
|
|
|
16
|
|
18
|
|
has sequence => sub { return -1; }; |
19
|
|
has name => sub { return 'none'; }; |
20
|
|
has 'previous'; |
21
|
|
|
22
|
|
|
23
|
132
|
|
|
132
|
|
|
132
|
|
|
132
|
|
|
132
|
|
24
|
|
|
25
|
44
|
1; |
|
44
|
|
|
44
|
|
|
44
|
|