[libvirt] [PATCH v1] qemu: migration: Convert to virErrorRestore/virErrorPreserveLast

2019-04-29 Thread Syed Humaid
Replaced usages of virSaveLastError and virSetError/virFreeError with virErrorPreserveLast and virErrorRestore respectively. Signed-off-by: Syed Humaid --- src/qemu/qemu_migration.c | 75 +-- 1 file changed, 24 insertions(+), 51 deletions(-) diff --git a/src

[libvirt] [PATCH v1] qemu: Convert to virErrorPreserveLast/virErrorRestore

2019-04-28 Thread Syed Humaid
Replaced usage of virSaveLastError and virSetError/virFreeError with virErrorPreserveLast and virErrorRestore respectively. Signed-off-by: Syed Humaid --- src/qemu/qemu_cgroup.c | 7 ++- src/qemu/qemu_command.c | 2 +- src/qemu/qemu_domain.c | 2 +- src/qemu/qemu_driver.c | 28

[libvirt] [PATCH v1] network: Convert to virErrorRestore/virErrorPreserveLast

2019-04-16 Thread Syed Humaid
Replaced usage of virSaveLastError and virSetError/virFreeError with virErrorPreserveLast and virErrorRestore respectively. Signed-off-by: Syed Humaid --- src/network/bridge_driver.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/network/bridge_driver.c

[libvirt] [PATCH v3] libvirt-domain.c: Convert to virErrorRestore/virErrorPreserveLast

2019-04-16 Thread Syed Humaid
Replaced all virSaveLastError and virSetError/virFreeError usages to virErrorPreserveLast and virErrorRestore respectively. Signed-off-by: Syed Humaid --- src/libvirt-domain.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/libvirt-domain.c b

[libvirt] [PATCH] virErrorPreserveLast/virErrorRestore conversions

2019-04-06 Thread Syed Humaid
As per the suggestions regarding the previous patch for virErrorPreserveLast conversions, I have converted all instances to virErrorPreserveLast and virErrorRestore. Signed-off-by: Syed Humaid --- src/libvirt-domain.c | 26 +++--- 1 file changed, 11 insertions(+), 15

[libvirt] [PATCH] virErrorPreserveLast conversions

2019-04-03 Thread Syed Humaid
From: Humaid Converted few instances of virSaveLastError() to virErrorPreserveLast() as per the newer internal APIs for saving and restoring error reports. Signed-off-by: Syed Humaid --- src/libvirt-domain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src