]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/391: add _require_odirect
authorJakob Unterwurzacher <jakobunt@gmail.com>
Tue, 12 Jun 2018 19:39:40 +0000 (21:39 +0200)
committerEryu Guan <guaneryu@gmail.com>
Wed, 13 Jun 2018 01:48:53 +0000 (09:48 +0800)
commit072ff808cf9cb2871236828aaab028c725d4a657
tree015e22a4f1ef1804c75c0f3420e64b8339983016
parent9b07c2d4fd521a86c69b1ccc2bb18aaa9156ada0
generic/391: add _require_odirect

On filesystems that do not support O_DIRECT, the test should skip
itself with

 generic/391  [not run] O_DIRECT is not supported

instead of failing with

 generic/391  - output mismatch ...
     ...
     +open: Invalid argument
      Silence is golden
     ...

This patch make it do that by adding a call to _require_odirect.
Fixes https://github.com/rfjakob/gocryptfs/issues/244 .

Signed-off-by: Jakob Unterwurzacher <jakobunt@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/391