From patchwork Mon Feb 24 03:13:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcos Paulo de Souza X-Patchwork-Id: 11399203 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 35DA31580 for ; Mon, 24 Feb 2020 03:33:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C6472206E0 for ; Mon, 24 Feb 2020 03:33:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=mpdesouza.com header.i=@mpdesouza.com header.b="m7u+R2HY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727170AbgBXDdj (ORCPT ); Sun, 23 Feb 2020 22:33:39 -0500 Received: from gateway36.websitewelcome.com ([192.185.185.36]:16021 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbgBXDdi (ORCPT ); Sun, 23 Feb 2020 22:33:38 -0500 X-Greylist: delayed 1354 seconds by postgrey-1.27 at vger.kernel.org; Sun, 23 Feb 2020 22:33:38 EST Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway36.websitewelcome.com (Postfix) with ESMTP id C902E40160F62 for ; Sun, 23 Feb 2020 20:25:44 -0600 (CST) Received: from br540.hostgator.com.br ([108.179.252.180]) by cmsmtp with SMTP id 6499juXsdSl8q6499jZqDf; Sun, 23 Feb 2020 21:11:03 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mpdesouza.com; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pFaGorldvyQUpBmP2wGhnPUDjRezrXh+v53FzkL7yjM=; b=m7u+R2HYAqya/KnF+3vt7FSqLB XphOUmpYiKULE44M4YujAuahqCxaU2dFNLcR7mZzlgT56iT/EuiIaQdoPe4c+BFO7PTB8+ZV5BwlN lS6zejdOWFuZcpRU6JiGzsovYRssXR8diwyHwkeMvwdd7DB67lN7sS0DSEf+o4eIpUcMExslg4qjQ dt6nxsEsSVXFU5h5D2v2PusNwrOZC33Jf3RFj/C/ejMqD2GJObUvE7q2z5osfjpoc23CfyKXbrCvr 2aTvpbzihtBdnS6cvkkY/zVzvADWhZwoX8xoamond+2GX0fJAnNwX3iBf7j1A0BTJ9hGaz6fbjX+z yENePM/w==; Received: from [179.185.222.161] (port=40232 helo=hephaestus.suse.de) by br540.hostgator.com.br with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1j6496-0034Sn-Lg; Mon, 24 Feb 2020 00:11:01 -0300 From: Marcos Paulo de Souza To: dsterba@suse.com, nborisov@suse.com, linux-btrfs@vger.kernel.org, fstests@vger.kernel.org, guaneryu@gmail.com Cc: Marcos Paulo de Souza Subject: [ fstests PATCHv3 1/2] common: btrfs: Improve _require_btrfs_command Date: Mon, 24 Feb 2020 00:13:40 -0300 Message-Id: <20200224031341.27740-2-marcos@mpdesouza.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200224031341.27740-1-marcos@mpdesouza.com> References: <20200224031341.27740-1-marcos@mpdesouza.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - br540.hostgator.com.br X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mpdesouza.com X-BWhitelist: no X-Source-IP: 179.185.222.161 X-Source-L: No X-Exim-ID: 1j6496-0034Sn-Lg X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (hephaestus.suse.de) [179.185.222.161]:40232 X-Source-Auth: marcos@mpdesouza.com X-Email-Count: 10 X-Source-Cap: bXBkZXNvNTM7bXBkZXNvNTM7YnI1NDAuaG9zdGdhdG9yLmNvbS5icg== X-Local-Domain: yes Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Marcos Paulo de Souza Now _require_btrfs_command can also check for subfuntion options, like "subvolume delete --subvolid". Signed-off-by: Marcos Paulo de Souza Reviewed-by: Johannes Thumshirn --- Changes from v2: * Added Reviewed-by from Nikolay to patch 0001 Changes from v1: * New patch expanding the funtionality of _require_btrfs_command, which now check for argument of subcommands common/btrfs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/common/btrfs b/common/btrfs index 19ac7cc4..ae3142b6 100644 --- a/common/btrfs +++ b/common/btrfs @@ -12,12 +12,14 @@ _btrfs_get_subvolid() # _require_btrfs_command [|