xfstests: add different logging option to fsstress
authorDmitry Monakhov <dmonakhov@openvz.org>
Sat, 29 Oct 2011 00:48:11 +0000 (04:48 +0400)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Nov 2011 21:04:42 +0000 (21:04 +0000)
commite67879499ea581adf64e219258f8c406203f7183
treeacd7566bb07d7bb8a9f98f493c17468dcd5efc84
parente8f6c8e42e88c631751b09c91a121478f6f63f5c
xfstests: add different logging option to fsstress

Currently the only way to log fsstress's output is to redirect it's shared
stdout to pipe which is very painfull because:

1) Pipe writers are serialized via i_mutex so we waste cpu-cores power on stupid
   sinchronization for loging purpose, instead of hunting real race conditions,
   and bugs inside file system.
2) Usually output is corrupted due to luck of sychronization on shared stdout.

Since fsstress's children operate on independend paths, let's just open didicated
log file for each child and simply avoid useless sycnhronization.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
ltp/fsstress.c