OSDN Git Service

iotests: handle tmpfs
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 30 Apr 2020 12:47:06 +0000 (15:47 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 May 2020 11:26:35 +0000 (13:26 +0200)
commitcfdca2b9f9d4ca26bb2b2dfe8de3149092e39170
treea905b74752839be25591951ae30ba9351c1b6220
parent1b8c45899715d292398152ba97ef755ccaf84680
iotests: handle tmpfs

Some tests requires O_DIRECT, or want it by default. Introduce smarter
O_DIRECT handling:

- Check O_DIRECT in common.rc, if it is requested by selected
cache-mode.

- Support second fall-through argument in _default_cache_mode

Inspired-by: Max's 23e1d054112cec1e
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200430124713.3067-2-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/091
tests/qemu-iotests/common.rc