]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: modify argument errors of mremap command
authorZorro Lang <zlang@redhat.com>
Tue, 10 May 2016 07:16:05 +0000 (17:16 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 10 May 2016 07:16:05 +0000 (17:16 +1000)
commit6f224a2c24da9baf710b40e525085a8ffacf3f95
tree13c5ad2e543f390d03e3ea702c3a3e75698f0008
parent09033e359bb0a6616c580f9d7250ccd7de5a1a61
xfs_io: modify argument errors of mremap command

There are two argument parsing errors in mremap command:

1. "mremap 1024 8192" won't return error and will run "mremap 1024"
silently.

2. The "-f" option can't be used, due to it needing a new address
argument as the fifth argument of mremap() syscall.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/mmap.c
man/man8/xfs_io.8