iowatcher: Fix processing of trace filenames containing spaces
authorAndrew Price <anprice@redhat.com>
Fri, 8 Nov 2013 10:06:54 +0000 (10:06 +0000)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:08 +0000 (12:02 -0700)
commit2ef0fdd46258de29bb8b4da6b5b4418af6e4b6aa
tree90327e0e4624f040a7dcd89ea44ffcaa91353956
parent173545a6275189f7947e4473cf4dae0de74e1639
iowatcher: Fix processing of trace filenames containing spaces

blktrace_to_dump passes filenames containing spaces to blkparse via
system() so only the first chunk of the string is taken to be the
filename by the subprocess.

This switches to using posix_spawnp() so that we can present the
filename as an element of argv and avoid iowatcher failing in these
cases.

Signed-off-by: Andrew Price <anprice@redhat.com>
iowatcher/tracers.c