Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Devel

[PATCH 16/21] xl: Handle return value from libxl_domain_suspend correctly

 

 

Xen devel RSS feed   Index | Next | Previous | View Threaded


ian.jackson at eu

Jun 15, 2012, 4:54 AM

Post #1 of 2 (41 views)
Permalink
[PATCH 16/21] xl: Handle return value from libxl_domain_suspend correctly

libxl_domain_suspend returns a libxl error code. So it must be
wrapped with MUST and not CHK_ERRNO.

Signed-off-by: Ian Jackson <ian.jackson [at] eu>
Acked-by: Ian Campbell <ian.campbell [at] citrix>
---
tools/libxl/xl_cmdimpl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 19daa1c..a9125cc 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -2846,7 +2846,7 @@ static int save_domain(const char *p, const char *filename, int checkpoint,

save_domain_core_writeconfig(fd, filename, config_data, config_len);

- CHK_ERRNO(libxl_domain_suspend(ctx, domid, fd, 0, NULL));
+ MUST(libxl_domain_suspend(ctx, domid, fd, 0, NULL));
close(fd);

if (checkpoint)
--
1.7.2.5


_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
http://lists.xen.org/xen-devel


ian.jackson at eu

Jun 26, 2012, 10:55 AM

Post #2 of 2 (35 views)
Permalink
[PATCH 16/21] xl: Handle return value from libxl_domain_suspend correctly [In reply to]

libxl_domain_suspend returns a libxl error code. So it must be
wrapped with MUST and not CHK_ERRNO.

Signed-off-by: Ian Jackson <ian.jackson [at] eu>
Acked-by: Ian Campbell <ian.campbell [at] citrix>
---
tools/libxl/xl_cmdimpl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 4aea1c7..56e51aa 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -2817,7 +2817,7 @@ static int save_domain(const char *p, const char *filename, int checkpoint,

save_domain_core_writeconfig(fd, filename, config_data, config_len);

- CHK_ERRNO(libxl_domain_suspend(ctx, domid, fd, 0, NULL));
+ MUST(libxl_domain_suspend(ctx, domid, fd, 0, NULL));
close(fd);

if (checkpoint)
--
1.7.2.5


_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
http://lists.xen.org/xen-devel

Xen devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.