linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfsprogs/io: set argmax to 1 for imap command
@ 2014-01-06 15:24 Brian Foster
  2014-01-07  7:28 ` Jeff Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Foster @ 2014-01-06 15:24 UTC (permalink / raw)
  To: xfs; +Cc: jeff.liu

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>
---
 io/imap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io/imap.c b/io/imap.c
index 0a4f14e..4f3f883 100644
--- a/io/imap.c
+++ b/io/imap.c
@@ -67,7 +67,7 @@ imap_init(void)
 	imap_cmd.name = "imap";
 	imap_cmd.cfunc = imap_f;
 	imap_cmd.argmin = 0;
-	imap_cmd.argmax = 0;
+	imap_cmd.argmax = 1;
 	imap_cmd.args = _("[nentries]");
 	imap_cmd.flags = CMD_NOMAP_OK;
 	imap_cmd.oneline = _("inode map for filesystem of current file");
-- 
1.8.1.4

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-07  7:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-06 15:24 [PATCH] xfsprogs/io: set argmax to 1 for imap command Brian Foster
2014-01-07  7:28 ` Jeff Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).