From patchwork Tue Apr 8 13:38:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kusanagi Kouichi X-Patchwork-Id: 3948971 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 65D6F9F369 for ; Tue, 8 Apr 2014 13:47:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7AA12203B8 for ; Tue, 8 Apr 2014 13:47:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76027203B7 for ; Tue, 8 Apr 2014 13:47:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756973AbaDHNri (ORCPT ); Tue, 8 Apr 2014 09:47:38 -0400 Received: from mail-ae0-f63.auone-net.jp ([106.187.230.63]:46398 "EHLO dmta03.auone-net.jp" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756586AbaDHNrh (ORCPT ); Tue, 8 Apr 2014 09:47:37 -0400 X-Greylist: delayed 596 seconds by postgrey-1.27 at vger.kernel.org; Tue, 08 Apr 2014 09:47:37 EDT Received: from amlmta302.auone-net.jp (amlmta302-MM [10.188.22.207]) by dmta03.auone-net.jp (au one net mail) with ESMTP id 92374DA0711 for ; Tue, 8 Apr 2014 22:38:03 +0900 (JST) Received: from ppp.dion.ne.jp ([222.14.169.24]) by amlmta302.auone-net.jp id 5343fbbb0004ae2a0000372000000eae180002ee59c3; Tue, 08 Apr 2014 22:38:03 +0900 Date: Tue, 8 Apr 2014 22:38:02 +0900 From: Kusanagi Kouichi To: linux-btrfs@vger.kernel.org Subject: [PATCH] btrfs-progs: Make property work with -t option MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Message-Id: <5343fbbb0004ae2a0000372000000eae180002ee59c3@amlmta302.auone-net.jp> X-MXM-DELIVERY-TYPE: 3 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP # btrfs prop list -t f . btrfs property list: too many arguments ... # btrfs prop get -t f . label btrfs property get: too many arguments ... # btrfs prop set -t f . label abc btrfs property set: too many arguments ... Signed-off-by: Kusanagi Kouichi --- cmds-property.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmds-property.c b/cmds-property.c index df53f91..8b4869f 100644 --- a/cmds-property.c +++ b/cmds-property.c @@ -392,7 +392,7 @@ static int cmd_get(int argc, char **argv) char *name = NULL; int types = 0; - if (check_argc_min(argc, 2) || check_argc_max(argc, 4)) + if (check_argc_min(argc, 2) || check_argc_max(argc, 5)) usage(cmd_get_usage); parse_args(argc, argv, cmd_get_usage, &types, &object, &name, NULL); @@ -417,7 +417,7 @@ static int cmd_set(int argc, char **argv) char *value; int types = 0; - if (check_argc_min(argc, 4) || check_argc_max(argc, 5)) + if (check_argc_min(argc, 4) || check_argc_max(argc, 6)) usage(cmd_set_usage); parse_args(argc, argv, cmd_set_usage, &types, &object, &name, &value); @@ -437,7 +437,7 @@ static int cmd_list(int argc, char **argv) char *object = NULL; int types = 0; - if (check_argc_min(argc, 2) || check_argc_max(argc, 3)) + if (check_argc_min(argc, 2) || check_argc_max(argc, 4)) usage(cmd_list_usage); parse_args(argc, argv, cmd_list_usage, &types, &object, NULL, NULL);