blktrace: Reorganize creation of output file name
authorJan Kara <jack@suse.cz>
Thu, 26 Jan 2017 10:23:54 +0000 (11:23 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 26 Jan 2017 17:06:04 +0000 (10:06 -0700)
commitd7a1f72671eb67a7d0cd261ea4520b9551c51f5f
treeeaaf30944b6ee280dc17e5f1ac895936f5b4117e
parentd045a704a378b9041ebe3d60c497a5656a79d439
blktrace: Reorganize creation of output file name

We would like to generate output file name without having corresponding
iop structure. Reorganize the function to allow that. Also fix couple of
overflows possible when generating the file name when we are modifying
the code anyway.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
blktrace.c