From patchwork Wed Mar 12 13:43:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Pandit X-Patchwork-Id: 3817771 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2CB64BF540 for ; Wed, 12 Mar 2014 13:43:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26EE32018E for ; Wed, 12 Mar 2014 13:43:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2BBE20181 for ; Wed, 12 Mar 2014 13:43:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754057AbaCLNn2 (ORCPT ); Wed, 12 Mar 2014 09:43:28 -0400 Received: from nbl-ex10-fe01.nebula.fi ([188.117.32.121]:27642 "EHLO ex10.nebula.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753626AbaCLNn2 (ORCPT ); Wed, 12 Mar 2014 09:43:28 -0400 Received: from localhost.localdomain (194.100.106.164) by ex10.nebula.fi (188.117.32.115) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 12 Mar 2014 15:48:14 +0200 Date: Wed, 12 Mar 2014 15:43:24 +0200 From: Rakesh Pandit To: Subject: [PATCH] Btrfs-progs: mkfs: let user known when forcing mixed metadata/data groups Message-ID: <20140312134322.GA28005@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [194.100.106.164] 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 While formatting multiple devics (and user doesn't specify -M) if one of them has block count or size less then 1 GiB, mkfs doesn't tell user, on which one mixed metadata/data was forced. This patch updates message to print device name. Signed-off-by: Rakesh Pandit --- mkfs.c | 3 ++- utils.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mkfs.c b/mkfs.c index 2dc90c2..621c869 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1372,7 +1372,8 @@ int main(int ac, char **av) ssd = is_ssd(file); if (is_vol_small(file)) { - printf("SMALL VOLUME: forcing mixed metadata/data groups\n"); + printf("SMALL VOLUME %s: forcing mixed metadata/data groups\n", + file); mixed = 1; } diff --git a/utils.c b/utils.c index 37ec6e5..00dde0f 100644 --- a/utils.c +++ b/utils.c @@ -597,7 +597,7 @@ int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret, zero_end = 1; if (block_count < 1024 * 1024 * 1024 && !(*mixed)) { - printf("SMALL VOLUME: forcing mixed metadata/data groups\n"); + printf("SMALL VOLUME %s: forcing mixed metadata/data groups\n", file); *mixed = 1; }