[PATCH] blkparse: don't do partial reads in read_data()
authorJens Axboe <axboe@suse.de>
Tue, 31 Jan 2006 08:11:01 +0000 (09:11 +0100)
committerJens Axboe <axboe@suse.de>
Tue, 31 Jan 2006 08:11:01 +0000 (09:11 +0100)
commit5c0f40f757e864e11e2844955776dedd14e4d3cd
tree1d76e4e2a0c6de8f99f76c7c424364f1fd64d14d
parenteea01dfc2e0eb1521dbbd481ab5a3e660e6cb588
[PATCH] blkparse: don't do partial reads in read_data()

If we do a partial read, the trace may look ok because the magic is there,
but we will have lost it and the next read() will be confused. So only
return early if we read zero bytes and we must not block, otherwise wait
around for the remaining data.
blkparse.c