Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp857067yba; Sat, 4 May 2019 14:51:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy9zdnni5dRgrVwq2sO0vWZFdZAz4V25zLkjlvCUl9mYsyKsI0leV+M2QmkH7rEAdaI7qP X-Received: by 2002:a62:2b43:: with SMTP id r64mr21991740pfr.210.1557006688004; Sat, 04 May 2019 14:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557006687; cv=none; d=google.com; s=arc-20160816; b=PUiv9FK9eEptJ7fEk5JXPCYpvRTAxeg9zbZg4bJXR1ucLn1q/kmreMfn+3adchrAfz xe0Of5pLkBRquEDFRfQUMPJiCJDsmE7cCKTRTAoTloMOafRqyL6YSInH1zFnfCebM+Xr 2XEec1L2m7WtCLBPaENUureqTRHwSSg3EHzLY1dCKmxJCVMt+kHp8HnSbGBHDf03wpt/ atRAeKIyLMsTDUwdkUUnTIxzy2nKSOpawPWdxjLUGMiA9vvod8S9kXA7p7/hEIngWLE9 AfmZuPhvNcpoNmALp6Hw/ytEBD2XlyzZ5Xx7LKFN4V+Nm0uak60OIi/j5dExRi6WIzFP M2eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+BiEoFQgmcWZuJitTBluN8s7NCUudKKCnePi+7KG+0E=; b=A2ver1dYIiYfIj1JKXA0hyqCKyjpWjUrT7xvHX1MwjO3SZUm6/o0VnrSH7at4s86XE pSnhv0U/FGkIKxgFz3Ja5vXGYfjIbFg5JysOf1EcBF5RR5VDdbHCud9c7ADFAF+vSDwM Ju5fnZPliVzjVYs61feCX2btDlbsYtqeORapnAHn47acLrOr7xwhxfbsDef8oXydzQRA RElPNhP3yU+gntDMqbrmDFJbAWcBz6AXBtjHmeRyvfIcfSLRLbPgPJgOr291NOFcDFlX e7Z/5HXbwFPPBah0CElBfrAx9a7sV/87PU2Solk6FhBxBep3sa/xgP8KlJ17OLBb2PJs AqTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si8522848plo.11.2019.05.04.14.50.59; Sat, 04 May 2019 14:51:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbfEDVtv (ORCPT + 99 others); Sat, 4 May 2019 17:49:51 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:36982 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726647AbfEDVtv (ORCPT ); Sat, 4 May 2019 17:49:51 -0400 Received: from callcc.thunk.org ([66.31.38.53]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x44LnjiH012724 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 4 May 2019 17:49:45 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 065F9420024; Sat, 4 May 2019 17:49:45 -0400 (EDT) Date: Sat, 4 May 2019 17:49:44 -0400 From: "Theodore Ts'o" To: Alexey Lyashkov Cc: Artem Blagodarenko , linux-ext4 , Alexey Lyashkov Subject: Re: [PATCH] e2fsck: Do not to be quiet if verbose option used. Message-ID: <20190504214944.GA10073@mit.edu> References: <20190426130913.9288-1-c17828@cray.com> <20190428233847.GA31999@mit.edu> <5DF9A5AD-ADCA-452B-8242-FE43946002ED@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5DF9A5AD-ADCA-452B-8242-FE43946002ED@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Apr 29, 2019 at 07:16:36AM +0300, Alexey Lyashkov wrote: > Theodore, > > Usecase is simple. User use a -p with -v flag, > in this case, -p block any messages on console in case it successfully fixed. > It’s OK _without_ -v flag, situation is different with -v flag. > In this case, user expect to see mode debug info about check/fix process, > and «no messages» in this mode confuse a user, as he think «no messages» == «no bugs fixed», > but it’s not a true in common way. > From other side, -p print a messages about fix process, but not for bitmaps, it’s source of additional > confuse for the user, as he lack an info about FS changes during e2fsck run. That's not a use case. *Why* is the user using -p? The -p option is only intended to be used when called from boot scripts, where e2fsck is run in parallel. This usage, "preen mode" dates back to BSD 4.3. What it does is pretty clearly described in the man page. The user seems to be very confused with their expectation, and it's not at all clear it's a correct one. Why does the user have this expectation, and under what circumstances would they want e2fsck to abort for some fixes, and automatically fix others, *and* want a full set of messages of what was fixed? If you are running things interactively (e.g., not at boot time), having e2fsck abort for certain sets of error may end up wasting a lot of time, since then you'll have to restart the e2fsck run. Essentially, I'm asking for a complete justification for why this is a general thing that many users will want, and why it makes sense for them to want it. The fact that *some* user had some twisted expectation, and filed a Lustre bug, doesn't mean that you automatically get to have that expectation satisified in the upstream e2fsprogs sources. You need to justify why other users would want it, and how this is optimal for that particular way that people would want to run e2fsck, for some particular set of circumstances. Otherwise, some other user will have some *other* set if expectations, and file another bug with Debian or Red Hat, demanding some other random change, and this way lies madness. - Ted