Bug #18357: Fix tap-ctl parsing. The previous patch was still wrong: Pythons split() expects the number of splits, not the number of results. Do 3 splits to get pid, minor, state and args. --- a/tools/python/xen/xend/server/BlktapController.py +++ b/tools/python/xen/xend/server/BlktapController.py @@ -252,7 +252,7 @@ class TapdiskController(object): tapdisk = TapdiskController.Tapdisk() # Since 'tap-ctl list' does not escape blanks in the path, hard-code the current format using 4 pairs to prevent splitting the path - for pair in line.split(None, 4): + for pair in line.split(None, 3): key, value = pair.split('=', 1) if key == 'pid': tapdisk.pid = value