Jan Engelhardt
2012-Feb-24 05:48 UTC
Wrong error message when using unknown 2nd subcommand
In btrfsprogs-0.19, using an unknown second argument (fd, misspelled) leads to an error message complaining about the first argument (it should report the second one instead). $ btrfs fi df ERROR: ''filesystem df'' requires 1 arg(s) $ btrfs fi fd ERROR: unknown command ''fi'' -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Ilya Dryomov
2012-Feb-24 10:54 UTC
Re: Wrong error message when using unknown 2nd subcommand
On Fri, Feb 24, 2012 at 06:48:58AM +0100, Jan Engelhardt wrote:> > In btrfsprogs-0.19, using an unknown second argument (fd, misspelled) > leads to an error message complaining about the first argument (it > should report the second one instead). > > $ btrfs fi df > ERROR: ''filesystem df'' requires 1 arg(s) > $ btrfs fi fd > ERROR: unknown command ''fi''Yep, that''s one of the bugs in the current progs parser. I rewrote it completely, it''s available from the ''parser'' branch of Chris'' btrfs-progs repo and should be merged into master shortly. Thanks, Ilya -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html