For non-file engines, set ->real_file_size if total size is known
authorJens Axboe <jens.axboe@oracle.com>
Wed, 11 Apr 2007 19:20:03 +0000 (21:20 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 11 Apr 2007 19:20:03 +0000 (21:20 +0200)
commitf4e62a5f3640dfe2d2119bbe1e40bf57747f6564
tree3c6b2ff0510c886eeceb6c46268dbcf8096af77a
parente48676baa53074b429460c71fb2c9e0ac7ac7d8c
For non-file engines, set ->real_file_size if total size is known

Fixes a segfault with rand* directions.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/cpu.c
engines/net.c
engines/null.c