]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: set argmax to 1 for imap command
authorBrian Foster <bfoster@redhat.com>
Wed, 19 Feb 2014 00:52:24 +0000 (11:52 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 19 Feb 2014 00:52:24 +0000 (11:52 +1100)
commiteecbd583ac0f0524b8ac6e183d76557431d1bc21
tree43df789ce69439e8b1e08a6b4c24739cbfd958a0
parentdc1513283c3e831a6ecd8350373982045120215c
xfs_io: set argmax to 1 for imap command

The imap command supports an optional argument to specify the
number of inode records to capture per ioctl(), but argmax is
currently set to 0. This leads to an error if an argument is
provided on the command line. Set argmax to 1 to support the
optional argument.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/imap.c