From patchwork Fri Mar 27 21:58:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zach Brown X-Patchwork-Id: 6112471 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CC552BF4A6 for ; Fri, 27 Mar 2015 21:59:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B9B19203A0 for ; Fri, 27 Mar 2015 21:59:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5BD0D20380 for ; Fri, 27 Mar 2015 21:59:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753532AbbC0V7S (ORCPT ); Fri, 27 Mar 2015 17:59:18 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:35029 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752415AbbC0V7O (ORCPT ); Fri, 27 Mar 2015 17:59:14 -0400 Received: by pdbop1 with SMTP id op1so108606137pdb.2 for ; Fri, 27 Mar 2015 14:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vXu+gmhHNZ2OeOpjCJQF/1Pa559qNOBf4SGXHFUDXQU=; b=QCtIg5Eh+GVhdkI1nmXF0GiGZiz+vNGNXb1FjFGBEsW+1D7WkVHgIiTSd0pnk1TwNg x5Z7s696gc1zuUDb3DWio/3bUouNpYLFYLJ7VYnlOph9PNgpIYcERObkfbb37+6u4kJ6 CZnP1P/Z4zxhDgfh1CzNWCb5e/s1ALKwLfNg0PSX6+oK4iu0z78Zk2dNSA9YvkUs7fxD QWUkMY6PUOn+7VRIy28br9vs0Yx6UpVAQKr6A0SddhMNvrxvM8v+9Kdv3DYGZjlnOYE0 q18/5rNvFNXei88Xh3JC1R566Nwmf7oY7EVayw+JJPi2Gm1yTr2EnmzHTUH1/1zI2HR0 17Gg== X-Gm-Message-State: ALoCoQl6jqWY2nVt57ZTrFKrG+4pm1zSMKzRM1rKbFcHN3nG9ZRhXJ/kevH6hOoc+27+UNjTwgQ2 X-Received: by 10.66.237.35 with SMTP id uz3mr39318268pac.46.1427493554210; Fri, 27 Mar 2015 14:59:14 -0700 (PDT) Received: from lenny.home.zabbo.net (c-24-22-122-160.hsd1.or.comcast.net. [24.22.122.160]) by mx.google.com with ESMTPSA id kw2sm3009196pab.24.2015.03.27.14.59.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 14:59:13 -0700 (PDT) From: Zach Brown To: linux-btrfs@vger.kernel.org Cc: Harald Hoyer Subject: [PATCH] btrfs-progs: silence fake fsck Date: Fri, 27 Mar 2015 14:58:43 -0700 Message-Id: <1427493523-13424-1-git-send-email-zab@zabbo.net> X-Mailer: git-send-email 2.1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Harald suggested that we remove the message from the fake fsck.btrfs that some distros run at boot: https://bugzilla.redhat.com/show_bug.cgi?id=1206502 "This output does not add anything, but is a disturbing element of booting up a system. It's the only message I get, when starting my system, before gdm is started." I'm inclined to agree. This makes the tiniest change to remove the message that's output for an auto invocation. My guess is that it was just copied from the xfs fsck.xfs and that no one actually cares about it. Signed-off-by: Zach Brown --- fsck.btrfs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fsck.btrfs b/fsck.btrfs index e90043a..f056a7f 100755 --- a/fsck.btrfs +++ b/fsck.btrfs @@ -31,9 +31,7 @@ if [ ! -e $DEV ]; then echo "$0: $DEV does not exist" exit 8 fi -if $AUTO; then - echo "$0: BTRFS file system." -else +if [ "$AUTO" == "false" ]; then echo "If you wish to check the consistency of a BTRFS filesystem or" echo "repair a damaged filesystem, see btrfs(8) subcommand 'check'." fi