Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp667993ybi; Fri, 31 May 2019 07:14:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxp2vQtRWLv0VE4TphBPFCEhH5NQfwV3kr+qlhsEPMN1QlbJSnojUh1j2ylAHnaVNuAJCez X-Received: by 2002:a17:902:683:: with SMTP id 3mr9015978plh.209.1559312070594; Fri, 31 May 2019 07:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559312070; cv=none; d=google.com; s=arc-20160816; b=IvhgX+CGF9OPx/mRStOIfNNNtttWGoEAqfF+fpR3ny2f//WfSdO+ZBlBe9Z8qiAI7g 0SJoMsHUjlEyitZwJ739m5mMaPU8gclkT6egzWd0ueL+kH8aJ9Q2jZlbl/cSsOkNYkab xNRO/l8Lrz/4VzzU1lm8CFMmlbNT0tm/bkrb4jebDY/yxoJT7bzfELa9WvsiQPDISbgW kl30ZNpU4GxaEIjvfy/mQJWMu5oZzMkeQCnjuZNqhJhtw+TYPPBFSbFj7+1xEDXi/Zn7 yii+yANJe59KIqdy7F2Fb+PtfJShuqJT5xQDBYZEvm6vdAKz9UNn3LzMAw169UCAYf5V g4iw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=X6abscTyVQ7lXFpsBFvfP7hyaiscu5K3oLD2KvqskyA=; b=HEPK6USww1IyHChWFdGhHIV/Y0RL9Lauqwt72I6LeeGKu6XwZlaBFYlQvBzWRaRyLC P8uaLafzZTRJt7Gz8+vLpYcetuTX84JEbRz1/UTScr1qF0/h4JLsWTAseD2a8Zs0Nt5f KE7uE0MMCm/PnMQwdw4cQ4UIIbVS1wQ9vj94KLcSkcuDxB5jVisFzZ4vROWeZdBLkfjJ eBI9HPa1AAv5LI/5QKbXt3WG4CnEZmuQWMyBpBEWbgHdguhJA+/VPQRJBlM9M2A9qb1w W73xNjz0BPCVL42a7YXfeKAGwJUfqjZPEnenj4X995gEWyR0fuTR1QDG22gH3dfLr8Im UfYQ== 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 b18si6399876pgm.82.2019.05.31.07.14.01; Fri, 31 May 2019 07:14:30 -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 S1726683AbfEaOLh (ORCPT + 99 others); Fri, 31 May 2019 10:11:37 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:53830 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726386AbfEaOLh (ORCPT ); Fri, 31 May 2019 10:11:37 -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 x4VEAJWw020207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 May 2019 10:10:20 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id C20DD420481; Fri, 31 May 2019 10:10:19 -0400 (EDT) Date: Fri, 31 May 2019 10:10:19 -0400 From: "Theodore Ts'o" To: Jan Kara Cc: Lukas Czerner , linux-ext4@vger.kernel.org, Jan Kara Subject: Re: How to package e2scrub Message-ID: <20190531141019.GC8123@mit.edu> References: <20190529120603.xuet53xgs6ahfvpl@work> <20190529235948.GB3671@mit.edu> <20190530095907.GA29237@quack2.suse.cz> <20190530135155.GD2751@mit.edu> <20190531100713.GA14773@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190531100713.GA14773@quack2.suse.cz> 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 Fri, May 31, 2019 at 12:07:13PM +0200, Jan Kara wrote: > On Thu 30-05-19 09:51:55, Theodore Ts'o wrote: > > On Thu, May 30, 2019 at 11:59:07AM +0200, Jan Kara wrote: > > > Yeah, my plan is to just not package cron bits at all since openSUSE / SLES > > > support only systemd init anyway these days (and in fact our distro people > > > want to deprecate cron in favor of systemd). I guess I'll split off the > > > scrub bits into a separate sub-package (likely e2fsprogs will suggest > > > installation of this sub-package) and the service will be disabled by > > > default. > > > > I'm not super-fond of extra sub-packages for their own sake, and the > > extra e2scrub bits are small enough (about 32k?) that I don't believe > > it justifies an extra sub-package; but that's a distribution-level > > packaging decision, so it's certainly fine if we're not completely aligned. > > Yes, size is not a big concern but the scrub bits require util-linux, lvm, > and mailer to work correctly and I don't want to add these dependencies to > stock e2fsprogs package because some minimal installations do not want e.g. > lvm at all. Granted these are just scripts so I could get away with not > requiring e.g. lvm at all but it seems user-unfriendly to leave it up to > user to determine that his systemd-service fails due to missing packages. So you're using an extra package to force the installation of the necessary prerequisite packages, instead of the current approach where we don't require them, but we just skip running the scrub if lvm and util-linux are not present. I think both approaches makes sense. It's also a good point that we need to handle the case of a missing sendmail intelligently. It looks like we currently skip sending mail at all in the cron case, and in the case systemd case, we'll spew a warning (which won't get mailed since there's no sendmail, but it does mean some extra lines in the logfile). All of this being said, it's not _completely_ useless to scrub without an mailer; we still mark the file system as needing to be checked on the next boot. But it's another argument that we shouldn't enable the service by default. For that reason, I'm not sure I'd want to force the installation of a mailer, since someone might want to run e2scrub by hand, and e2scrub_all every week w/o isn't a completely insane thing. But we certainly should handle that case gracefully. - Ted