fix verify_only when using ioengine=mmap
authorBarak Pinhas <barak@e8storage.com>
Tue, 5 Dec 2017 12:23:22 +0000 (14:23 +0200)
committerBarak Pinhas <barak@e8storage.com>
Tue, 5 Dec 2017 12:23:22 +0000 (14:23 +0200)
commit81a1ee613fc6aea92bc2ca5500e8e7b5ba24cc8e
treedc36cbcf926172abfc1cee3da696d46923305472
parent67bfebe6af2e6d030ec739fa45ccb211f3e50a0e
fix verify_only when using ioengine=mmap

verify_only was opening the file with O_RDONLY and the mmap
engine was trying to mmap it with PROT_READ | PROTWRITE hence
getting -EACCESS and failing the job
engines/mmap.c