]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
src/t_mmap_dio: fix incorrect argument count check
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Mon, 24 Apr 2017 17:49:31 +0000 (11:49 -0600)
committerEryu Guan <eguan@redhat.com>
Tue, 25 Apr 2017 11:32:52 +0000 (19:32 +0800)
commit47a3f8a8308ef62205a7014f0d48dc8f9cdf10e5
tree9feaf03878633e3454ff425264255c2aebdf5573
parent255affa11c14289ae896de38d3bcf58fc9f0679e
src/t_mmap_dio: fix incorrect argument count check

t_mmap_dio.c actually requires 4 arguments, not 3 as the current
check enforces:

usage: t_mmap_dio <src file> <dest file> <size> <msg>
open src(No such file or directory) len 0 (null)

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Fixes: 456581661b4d ("xfs: test per-inode DAX flag by IO")
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/t_mmap_dio.c