@@ -181,6 +181,10 @@ static const QErrorStringTable qerror_table[] = {
.desc = "Could not set password",
},
{
+ .error_fmt = QERR_SNAPSHOT_ACTIVATE_FAILED,
+ .desc = "Failed to activate snapshot in device '%(device)' reason: %(reason)",
+ },
+ {
.error_fmt = QERR_SNAPSHOT_CREATE_FAILED,
.desc = "Failed to create snapshot in device '%(device)' reason: %(reason)",
},
@@ -151,6 +151,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_SET_PASSWD_FAILED \
"{ 'class': 'SetPasswdFailed', 'data': {} }"
+#define QERR_SNAPSHOT_ACTIVATE_FAILED \
+ "{ 'class': 'SnapshotActivateFailed', 'data': { 'device': %s, 'reason': %s } }"
+
#define QERR_SNAPSHOT_CREATE_FAILED \
"{ 'class': 'SnapshotCreateFailed', 'data': { 'device': %s, 'reason': %s } }"
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)