Skip to contentSkip to conversation

xl: correct migration_domname_r

PATCH Applied Ian Campbell 2 participants 2 messages Oct 12, 2010 – Oct 13, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl: correct migration_domname_r

# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1286898427 -3600
# Node ID 811dfe7ea7a79e5cb236c8c1fb81d47de22787d0 # Parent 7c7141f655fd2c561dac5589a93f21aacc2562f1
xl: correct migration_domname_r

22154:ed8019e672c6 causes migration_domname_r to be initialised as d_config.c_info.name + "--incoming" immediately after setting d_config.c_info.name. The intention appears to have been to set it to common_domname + "--incoming" so do so.

tools/libxl/xl_cmdimpl.c +1 -1
diff -r 7c7141f655fd -r 811dfe7ea7a7 tools/libxl/xl_cmdimpl.c
@@ -1562,7 +1562,7 @@ static int create_domain(struct domain_c
             d_config.c_info.name = 0; /* steals allocation from config */
 
             if (asprintf(&d_config.c_info.name,
-                         "%s--incoming", d_config.c_info.name) < 0) {
+                         "%s--incoming", common_domname) < 0) {
                 fprintf(stderr, "Failed to allocate memory in asprintf\n");
                 exit(1);
             }
#1 lore raw
Quoted 7 lines · Ian Campbell

# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1286898427 -3600
# Node ID 811dfe7ea7a79e5cb236c8c1fb81d47de22787d0 # Parent 7c7141f655fd2c561dac5589a93f21aacc2562f1
xl: correct migration_domname_r

Quoted 6 lines

22154:ed8019e672c6 causes migration_domname_r to be initialised as d_config.c_info.name + "--incoming" immediately after setting d_config.c_info.name. The intention appears to have been to set it to common_domname + "--incoming" so do so.

applied, thanks