From patchwork Mon Oct 8 19:07:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dieter Ries X-Patchwork-Id: 1566741 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3A68A40135 for ; Mon, 8 Oct 2012 19:08:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754637Ab2JHTIL (ORCPT ); Mon, 8 Oct 2012 15:08:11 -0400 Received: from psi.thgersdorf.net ([176.9.98.78]:57771 "EHLO mail.psioc.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754388Ab2JHTIK (ORCPT ); Mon, 8 Oct 2012 15:08:10 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost.psioc.net (Postfix) with ESMTP id 0FB574D641F; Mon, 8 Oct 2012 21:08:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at psioc.net Received: from mail.psioc.net ([127.0.0.1]) by localhost (mail.psioc.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y1M4ty9yOWJQ; Mon, 8 Oct 2012 21:08:07 +0200 (CEST) Received: from psioc.net (unknown [195.176.92.20]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.psioc.net (Postfix) with ESMTPSA id A2BA64D64C5; Mon, 8 Oct 2012 21:08:07 +0200 (CEST) From: Dieter Ries To: chris.mason@fusionio.com, linux-btrfs@vger.kernel.org Cc: Dieter Ries Subject: [PATCH 2/4] btrfs-progs: btrfsck: Print which filesystem to be checked to stdout Date: Mon, 8 Oct 2012 21:07:48 +0200 Message-Id: <1349723270-12773-3-git-send-email-mail@dieterries.net> X-Mailer: git-send-email 1.7.3.GIT In-Reply-To: <1349723270-12773-1-git-send-email-mail@dieterries.net> References: <1349723270-12773-1-git-send-email-mail@dieterries.net> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This patch makes btrfsck print the filesystem, which is to be checked, to stdout. This should be helpful when analyzing (copied and pasted) output of btrfsck. Signed-off-by: Dieter Ries --- btrfsck.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/btrfsck.c b/btrfsck.c index 67f4a9d..516bcdf 100644 --- a/btrfsck.c +++ b/btrfsck.c @@ -3540,6 +3540,8 @@ int main(int ac, char **av) } else if(ret) { fprintf(stderr, "%s is currently mounted. Aborting.\n", av[optind]); return -EBUSY; + } else { + printf("Checking filesystem on %s\n",av[optind]); } info = open_ctree_fs_info(av[optind], bytenr, rw, 1);