[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: libxl__xs_path_cleanup don't print error if ENOENT
# HG changeset patch # User Roger Pau Monne <roger.pau@xxxxxxxxxx> # Date 1343296509 -3600 # Node ID b0fc6f8d5066498d79d9bcbb29ccf3b1fc2a9e2c # Parent d79db0ea07d5094343fc34af8d9cca3a96a6564a libxl: libxl__xs_path_cleanup don't print error if ENOENT Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r d79db0ea07d5 -r b0fc6f8d5066 tools/libxl/libxl_xshelp.c --- a/tools/libxl/libxl_xshelp.c Thu Jul 26 10:35:37 2012 +0100 +++ b/tools/libxl/libxl_xshelp.c Thu Jul 26 10:55:09 2012 +0100 @@ -219,7 +219,8 @@ int libxl__xs_path_cleanup(libxl__gc *gc path = libxl__strdup(gc, user_path); if (!xs_rm(CTX->xsh, t, path)) { - LOGE(DEBUG, "unable to remove path %s", path); + if (errno != ENOENT) + LOGE(DEBUG, "unable to remove path %s", path); rc = ERROR_FAIL; goto out; } @@ -235,7 +236,8 @@ int libxl__xs_path_cleanup(libxl__gc *gc if (!libxl__xs_directory(gc, t, path, &nb) || nb != 0) break; if (!xs_rm(CTX->xsh, t, path)) { - LOGE(DEBUG, "unable to remove path %s", path); + if (errno != ENOENT) + LOGE(DEBUG, "unable to remove path %s", path); rc = ERROR_FAIL; goto out; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |