From patchwork Sat Jan 22 11:59:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Mehnert X-Patchwork-Id: 497961 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0MBxgg6002757 for ; Sat, 22 Jan 2011 11:59:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751532Ab1AVL7j (ORCPT ); Sat, 22 Jan 2011 06:59:39 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:46190 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750898Ab1AVL7j (ORCPT ); Sat, 22 Jan 2011 06:59:39 -0500 Received: (qmail invoked by alias); 22 Jan 2011 11:59:34 -0000 Received: from unknown (EHLO [10.44.153.229]) [82.113.121.196] by mail.gmx.net (mp002) with SMTP; 22 Jan 2011 12:59:34 +0100 X-Authenticated: #52861084 X-Provags-ID: V01U2FsdGVkX1+CDhZPPYOCavCZndgz7DY9T8TKgv/9m/JZlIk9mH 55J3uw6PWyRFsd Message-ID: <4D3AC69A.2080302@gmx.de> Date: Sat, 22 Jan 2011 12:59:22 +0100 From: Maximilian Mehnert User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20081207 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: linux-btrfs Subject: [PATCH] Add -v option to btrfsctl to control verbosity: Be quiet unless requested. X-Y-GMX-Trusted: 0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 22 Jan 2011 11:59:53 +0000 (UTC) diff --git a/btrfsctl.c b/btrfsctl.c index 92bdf39..156ed62 100644 --- a/btrfsctl.c +++ b/btrfsctl.c @@ -106,6 +106,7 @@ int main(int ac, char **av) char *pos; char *fullpath; u64 objectid = 0; + int verbose = 0; if (ac == 2 && strcmp(av[1], "-a") == 0) { fprintf(stderr, "Scanning for Btrfs filesystems\n"); @@ -217,6 +218,9 @@ int main(int ac, char **av)