summaryrefslogtreecommitdiff
path: root/btt/plat.c
diff options
context:
space:
mode:
authorVasily Tarasov <tarasov@vasily.name>2012-02-27 08:21:11 +0100
committerJens Axboe <axboe@kernel.dk>2012-02-27 08:21:11 +0100
commitc3ce73f5a414900c5c4817cf2fa1eeb7837f17b8 (patch)
tree073ae4700efab6c78697bc86175e63a4005d2777 /btt/plat.c
parentf6d38abde41a7b18808dcdab393f05d6300d16c3 (diff)
downloadblktrace-c3ce73f5a414900c5c4817cf2fa1eeb7837f17b8.tar.gz
blktrace-c3ce73f5a414900c5c4817cf2fa1eeb7837f17b8.tar.bz2
Too small arrays for file names
In our experiments blktrace/blkparse file names encode a lot of infomation about the particular experiment. We noticed that for long enough file names blkparse does not work. The reason is that per_cpu_info->fname[] is of 128 bytes. As a result, in setup_file() function only part of the file name gets to ->fname[]. Then stat() fails and we exit the function. Notice, that no error is printed in this case. In the following patch ->fname[] size is increased to POSIX defined PATH_MAX. Signed-off-by: Vasily Tarasov <tarasov@vasily.name Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'btt/plat.c')
0 files changed, 0 insertions, 0 deletions