xl: Clarify 'xend is running' error message
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Fri, 29 Jun 2012 16:36:50 +0000 (17:36 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Fri, 29 Jun 2012 16:36:50 +0000 (17:36 +0100)
* Give reason for check (unpredictable results)
* Give a better recommendation (shut down xend)
* Make it clear that -f is overriding a safety check.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl.c

index a5ada035e0164322569da0c646ff3906e5eab2ce..d6f2b3ead2590d3f5f2fa8995a565a67c34a56b3 100644 (file)
@@ -251,9 +251,9 @@ int main(int argc, char **argv)
             for (int i = 0; i < sizeof(locks)/sizeof(locks[0]); i++) {
                 if (!access(locks[i], F_OK) && !force_execution) {
                     fprintf(stderr,
-"xend is running, which prevents xl from working correctly.\n"
-"If you still want to force the execution of xl please use the -f\n"
-"option.\n"
+"xend is running, which may cause unpredictable results when using\n"
+"this xl command.  Please shut down xend before continuing.\n\n"
+"(This check can be overridden with the -f option.)\n"
                             );
                     ret = 1;
                     goto xit;