Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2196826rwb; Fri, 5 Aug 2022 15:29:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR6K3pZL4tcb7aOISkpZeID87Pk0pLbrekq11/QEPRmclzl3puDvvkJuNQvuUCpRuJmW8Uoa X-Received: by 2002:a05:6402:ea9:b0:43b:b88f:62fe with SMTP id h41-20020a0564020ea900b0043bb88f62femr8200468eda.85.1659738553077; Fri, 05 Aug 2022 15:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659738553; cv=none; d=google.com; s=arc-20160816; b=kKIIFZW3wG//2sE/xywuNzzqjqyZtmtAmAikyVTagnIs2cc9ckzHXvniCwOxR7YP6B b5y6UWnMkTraW9CDCsKb6l7jqHFfP4FgLZYM13wctepa+K3Zf3auGsZ22N0xIKCXqAO2 OtHFh2ra/l/+b8/c4ibkIzLdPQne8djoUDLQ9Z1ugiX3JTzbqrCpkF/tESyAzlITfUbF t0W88hrB1hG2Hxrd0vWYKs8P3OWCuQClEAoeQgOZ+EjD8f8KHFnOWfMyTM65MyWalxPR 6jqD5QDAqqb6dYs7GcRbkavyJ77HGA7x/tRF5ES14dDgkM+sGtiVYSSzv1goEikFeqQR dRpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QJ2VS9ZkAGMakC6mZsyA5hSGry+rfc2Zk4OHGqGGAfs=; b=Z1AkEzFhhczirHbyr7bYJlJMFh+eP06XfpIVcCR3/je7uw6S5l72UWIIuW0JXO6ixJ Ft2WqAcc9zzTejMEFDLtsaKC298nq1dtJIw2rB9BDLOm/1o3y9ZPMKtaJGTJ3H3DsX9Q hzo2NX6yh2dpCHEsYxBvjfUVm18ZPHLYjxi+AWXfR+zVS3UN7wJv/5KmXVTws33TaN5d iFD/+OrYM852eijavqlOA96olUyBf8fARR1amy62As7/+QWRqILeMJu7qequr3SEl/Ez 4SghoauZ5/ubRQS75LfSCGbRxHvAmv+PGedrWBlAwy/YjBPPuJsZCQ7e4VMAYLr3knGV Xexw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ft29-20020a170907801d00b00730d12fc3a3si3825669ejc.852.2022.08.05.15.28.48; Fri, 05 Aug 2022 15:29:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241674AbiHEWHF (ORCPT + 99 others); Fri, 5 Aug 2022 18:07:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241779AbiHEWHC (ORCPT ); Fri, 5 Aug 2022 18:07:02 -0400 Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A50E1263D for ; Fri, 5 Aug 2022 15:07:00 -0700 (PDT) Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTP id K0X7oYX5VSp39K5TAoM3Yt; Fri, 05 Aug 2022 22:07:00 +0000 Received: from webber.adilger.int ([174.0.67.248]) by cmsmtp with ESMTP id K5T9okyXUC3uhK5T9oFxTi; Fri, 05 Aug 2022 22:07:00 +0000 X-Authority-Analysis: v=2.4 cv=a6MjSGeF c=1 sm=1 tr=0 ts=62ed9484 a=5skvQWjG3xExD1Ft+FuDHA==:117 a=5skvQWjG3xExD1Ft+FuDHA==:17 a=RPJ6JBhKAAAA:8 a=lB0dNpNiAAAA:8 a=3-nrOBMCGvy0Alq09_cA:9 a=fa_un-3J20JGBB2Tu-mn:22 a=c-ZiYqmG3AbHTdtsH08C:22 From: Andreas Dilger To: tytso@mit.edu Cc: linux-ext4@vger.kernel.org, Andreas Dilger , Dongyang Li Subject: [PATCH] debugfs: quiet debugfs 'catastrophic' message Date: Fri, 5 Aug 2022 16:06:07 -0600 Message-Id: <20220805220606.11994-1-adilger@dilger.ca> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfFZbv4t6dnrvukfs30rdBQwXSzwqqGB3rMJy1yZH07Elwf0LAt1HFWueOT+a6S48uxGu3//U2RJ7jHFFD/RgxWm9esiP3pWM0i/3adKV2QEMzO0Pp+Wu jnY0zl+oR06wH17V/3H/BAR6kHig8z2on/BJu+Iqh7FwSeJULSzI3z9oEjRHelSwHWNpl05U+4BWSZDKxdjVB61Lr2UjIDrnsDyElVdZzY1sTrwjIrlBqKoi qe1qPW/18MGe1hv48wB9Y6AGnLabQXT/uruo7xcI+Z4= X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org When debugfs runs with "-c", it prints a scary-looking message: catastrophic mode - not reading inode or group bitmaps that is often misunderstood by users to mean that there is something wrong with the filesystem, when there is no problem at all. Not reading the bitmaps is totally normal and expected behavior for the "-c" option, which is used to significantly shorten the debugfs command execution time by not reading metadata that isn't needed for commands run against very large filesystems. Since there is often confusion about what this message means, it would be better to just avoid printing anything at all, since the use of "-c" is expressly requesting this behavior, and there are no messages printed out for other options. Signed-off-by: Andreas Dilger Reviewed-by: Dongyang Li Change-Id: I59b26a601780544ab995aa4ca7ab0c2123c70118 --- debugfs/debugfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index b67a88bc..78b93eda 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -195,9 +195,7 @@ try_open_again: } current_fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE; - if (catastrophic) - com_err(device, 0, "catastrophic mode - not reading inode or group bitmaps"); - else { + if (!catastrophic) { retval = ext2fs_read_bitmaps(current_fs); if (retval) { com_err(device, retval, -- 2.25.1