]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: fix inode command help and argsmax
authorEric Sandeen <sandeen@redhat.com>
Sun, 2 Oct 2016 23:44:02 +0000 (10:44 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 2 Oct 2016 23:44:02 +0000 (10:44 +1100)
commit870ecc222fb4674de30708d573abdb5c8826e202
treec46e2fc87d6c718790e88c8767d96e6f1513acf2
parentef4332b8fbd3f3f915ac1b27da67478f0cc88ce3
xfs_io: fix inode command help and argsmax

The short help implied that -n and -v were exclusive, and the longer
help wasn't particularly clear.

Further, argsmax is wrong; "-n -v num" is 3, not 2.

 # xfs_io -c "inode -n -v 123" /mnt/test2
 bad argument count 3 to inode, expected between 0 and 2 arguments
 # xfs_io -c "inode -vn 123" /mnt/test2
 128:32

Fix up all of those issues.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/open.c