From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68303C433FE for ; Mon, 17 Oct 2022 16:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbiJQQu4 (ORCPT ); Mon, 17 Oct 2022 12:50:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbiJQQuy (ORCPT ); Mon, 17 Oct 2022 12:50:54 -0400 Received: from len.romanrm.net (len.romanrm.net [IPv6:2001:41d0:1:8b3b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 699295C943 for ; Mon, 17 Oct 2022 09:50:52 -0700 (PDT) Received: from nvm (nvm2.home.romanrm.net [IPv6:fd39::4a:3cff:fe57:d6b5]) by len.romanrm.net (Postfix) with SMTP id 40B564003F; Mon, 17 Oct 2022 16:50:47 +0000 (UTC) Date: Mon, 17 Oct 2022 21:50:46 +0500 From: Roman Mamedov To: Lionel Bouton Cc: Btrfs BTRFS Subject: Re: [btrfs-progs] btrfs filesystem defragment now outputs processed filenames ? Message-ID: <20221017215046.6e29e7bb@nvm> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, 17 Oct 2022 13:32:03 +0200 Lionel Bouton wrote: > This isn't a big problem and it is easily fixable in my scheduler but I > was wondering if there is any plan to allow silencing it or should I > just cleanup the ouput before forwarding it (I prefer to write any > unexpected output in logs instead of ignoring everything) ? If there wasn't a "--quiet", the usual approach would be to discard stdout and log stderr; or log stdout, but log and mail stderr. So you only get notified of any errors, and not the normal operation output. That's assuming btrfs progs follow the good practice and designate printed messages accordingly between these two (I did not check). -- With respect, Roman