From patchwork Thu Nov 30 08:29:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Misono Tomohiro X-Patchwork-Id: 10084365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2934560234 for ; Thu, 30 Nov 2017 08:29:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 164A029EFB for ; Thu, 30 Nov 2017 08:29:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B5B929EFD; Thu, 30 Nov 2017 08:29:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B3D629EFB for ; Thu, 30 Nov 2017 08:29:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752071AbdK3I32 (ORCPT ); Thu, 30 Nov 2017 03:29:28 -0500 Received: from mgwym02.jp.fujitsu.com ([211.128.242.41]:39154 "EHLO mgwym02.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751897AbdK3I31 (ORCPT ); Thu, 30 Nov 2017 03:29:27 -0500 Received: from yt-mxoi2.gw.nic.fujitsu.com (unknown [192.168.229.69]) by mgwym02.jp.fujitsu.com with smtp id 1b75_8adb_d182a3df_cdcb_4e59_b281_4650c050eb5e; Thu, 30 Nov 2017 17:29:22 +0900 Received: from g01jpfmpwyt02.exch.g01.fujitsu.local (g01jpfmpwyt02.exch.g01.fujitsu.local [10.128.193.56]) by yt-mxoi2.gw.nic.fujitsu.com (Postfix) with ESMTP id B81F9AC00C0 for ; Thu, 30 Nov 2017 17:29:21 +0900 (JST) Received: from G01JPEXCHYT16.g01.fujitsu.local (G01JPEXCHYT16.g01.fujitsu.local [10.128.194.55]) by g01jpfmpwyt02.exch.g01.fujitsu.local (Postfix) with ESMTP id CBF14584370 for ; Thu, 30 Nov 2017 17:29:20 +0900 (JST) X-SecurityPolicyCheck: OK by SHieldMailChecker v2.5.2 X-SHieldMailCheckerPolicyVersion: FJ-ISEC-20170217-enc X-SHieldMailCheckerMailID: 1e02e31b03574fc7a2c01281e365c89e Subject: [PATCH v2 1/3] btrfs-progs: fi usage: change warning message more appropriately From: "Misono, Tomohiro" To: linux-btrfs References: <12571738-34cb-412c-a512-3b117d4726e9@jp.fujitsu.com> Message-ID: <1a534c1e-4223-f5fd-89a3-dd97ed79a0da@jp.fujitsu.com> Date: Thu, 30 Nov 2017 17:29:13 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-SecurityPolicyCheck-GC: OK by FENCE-Mail X-TM-AS-MML: disable Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP "fi usage" shows the warning "RAID5/6 numbers will be incorrect" when runnning without root privilege even if raid5/6 is not used. What happens is it cannot get the per device profile usage info, so change the message more appropriately. Signed-off-by: Tomohiro Misono Reviewed-by: Qu Wenruo --- v1 -> v2: fix not to split message line cmds-fi-usage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-fi-usage.c b/cmds-fi-usage.c index 6c846c15..2f3d57e3 100644 --- a/cmds-fi-usage.c +++ b/cmds-fi-usage.c @@ -590,7 +590,7 @@ int load_chunk_and_device_info(int fd, struct chunk_info **chunkinfo, ret = load_chunk_info(fd, chunkinfo, chunkcount); if (ret == -EPERM) { warning( -"cannot read detailed chunk info, RAID5/6 numbers will be incorrect, run as root"); +"cannot read detailed chunk info. per device usage will not be shown, run as root"); } else if (ret) { return ret; }