mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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: 456581661b ("xfs: test per-inode DAX flag by IO")
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ int main(int argc, char **argv)
|
||||
char *dfile;
|
||||
unsigned long len, opt;
|
||||
|
||||
if (argc < 4)
|
||||
if (argc < 5)
|
||||
usage(basename(argv[0]));
|
||||
|
||||
while ((opt = getopt(argc, argv, "b")) != -1)
|
||||
|
||||
Reference in New Issue
Block a user