From patchwork Fri Nov 10 09:47:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Fengqi X-Patchwork-Id: 10052695 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 70AF260365 for ; Fri, 10 Nov 2017 09:48:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53A092947E for ; Fri, 10 Nov 2017 09:48:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 469CF2B1F7; Fri, 10 Nov 2017 09:48:06 +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 C196F2947E for ; Fri, 10 Nov 2017 09:48:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752630AbdKJJsD (ORCPT ); Fri, 10 Nov 2017 04:48:03 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:48597 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751885AbdKJJsB (ORCPT ); Fri, 10 Nov 2017 04:48:01 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="30080391" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 10 Nov 2017 17:47:59 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 6F36348089F3 for ; Fri, 10 Nov 2017 17:47:55 +0800 (CST) Received: from localhost.localdomain (10.167.226.155) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 10 Nov 2017 17:47:55 +0800 From: Lu Fengqi To: Subject: [PATCH] btrfs-progs: lowmem check: Reword an unclear error message about file extent gap Date: Fri, 10 Nov 2017 17:47:10 +0800 Message-ID: <20171110094710.21193-1-lufq.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 X-Originating-IP: [10.167.226.155] X-yoursite-MailScanner-ID: 6F36348089F3.AA720 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lufq.fnst@cn.fujitsu.com 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 This error occurs when no_holes is not set, but there is a gap before the file extent. Signed-off-by: Lu Fengqi --- Really ashamed, I made the mistake about the meaning of this word. cmds-check.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index a93ac2c8..5eab0143 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -5868,8 +5868,9 @@ static int check_file_extent(struct btrfs_root *root, struct btrfs_key *fkey, if (!repair || ret) { err |= FILE_EXTENT_ERROR; error( - "root %llu EXTENT_DATA[%llu %llu] interrupt, should start at %llu", - root->objectid, fkey->objectid, fkey->offset, *end); +"root %llu EXTENT_DATA[%llu %llu] gap exists, expected: EXTENT_DATA[%llu %llu]", + root->objectid, fkey->objectid, fkey->offset, + fkey->objectid, *end); } }