Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4092679ybi; Mon, 3 Jun 2019 05:40:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHVY29kHz28duS0QtrS0hj3vSbQk0+RsBzX3ym/OICvezav9JzKrK4Pok7uu60xhZxQM/p X-Received: by 2002:a17:902:8b8b:: with SMTP id ay11mr29534509plb.63.1559565615806; Mon, 03 Jun 2019 05:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559565615; cv=none; d=google.com; s=arc-20160816; b=srkMlXjtX6GPg9T6gB3Acp7ZycuNm+UxBeuRIySWixVY52WU5Uq9ucLczvjMYZtzZZ l7UOv9TGjVeKegZSi8q0Da3j957AxPYDh6bB847Nvxk3aMZtQhzWh0ztxa2xAhD6Mb45 ycscL4t1lc7pnUT5dA6uUgQZZkmv38ERzT7uF9oCLK9LGnMNVo77VHtHF5gZV3fW2eH6 6GeiLiYTnCBXNG710ZZ0lyfY5nL/b4OORrQfn1Ou8qFC4S6g46c5meSl3SYl3sUxFw5K f5R2rMednyls68FoDtTQ3Qe5zlWiBXN1sXteRul5DzMEWzh9UzQGesVblRtvHmPjComD TpVQ== 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=vmna60EGJllqXxid9FgsGY2uZDmpRritfRMSK+5qZjE=; b=uBzsftPviC0kKzW5PN8C1p4SNO2Y5rFW+9QSWx+DWXA3WZevrDDGgfbIhUDBZ42PT1 Ag+RPasix9FRrp2AfUFhzhMRfWP6QiLv0JaFVnAVljXbUJ/MEAH7wFo9Hh4to6w04JF8 +hOMZ9s86PUEXqGG4cHYQ2/zES9jMdjZtPXLQ2nKiLr5GFWyKpLgPBDVipxohXhnSvrI 7gZgcbyOc7djfCKzV9T6Kj2wO4KG/3H63jpHtNO7rfT/DgsFFsidhDr8AmkhAxzqAO6i l5YBeuqD5Tc3W7nbJ6aN4cylKTZ/BAbBi/e6DiStEshT9hTT9fR6WyqgwuMfY8eXqTKY DidQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6si17641074pgq.275.2019.06.03.05.39.59; Mon, 03 Jun 2019 05:40:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726270AbfFCMjP (ORCPT + 99 others); Mon, 3 Jun 2019 08:39:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46702 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfFCMjP (ORCPT ); Mon, 3 Jun 2019 08:39:15 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F291B3086227; Mon, 3 Jun 2019 12:39:09 +0000 (UTC) Received: from work (ovpn-204-95.brq.redhat.com [10.40.204.95]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C68D15D9D2; Mon, 3 Jun 2019 12:39:03 +0000 (UTC) Date: Mon, 3 Jun 2019 14:39:00 +0200 From: Lukas Czerner To: "Darrick J. Wong" Cc: linux-ext4@vger.kernel.org, Jan Kara , Theodore Ts'o , xfs , Eric Sandeen Subject: Re: How to package e2scrub Message-ID: <20190603123900.gzwwltgt2bj7gyfa@work> References: <20190529120603.xuet53xgs6ahfvpl@work> <20190529182111.GA5220@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190529182111.GA5220@magnolia> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Mon, 03 Jun 2019 12:39:15 +0000 (UTC) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, May 29, 2019 at 11:21:11AM -0700, Darrick J. Wong wrote: > On Wed, May 29, 2019 at 02:06:03PM +0200, Lukas Czerner wrote: > > Hi guys, > > > > I am about to release 1.45.2 for Fedora rawhide, but I was thinking > > about how to package the e2scrub cron job/systemd service. > > Funny, xfs has the same conundrum. Adding Eric & xfs list to cc... > > > I really do not like the idea of installing cron job and/or the service as > > a part of regular e2fsprogs package. This can potentially really surprise > > people in a bad way. > > > > Note that I've already heard some complaints from debian users about the > > systemd service being installed on their system after the e2fsprogs > > update. > > Yeah, e2scrub is bitrotting rather faster than I had thought it > would... but it's only available in Debian unstable. > > > What I am going to do is to split the systemd service into a separate > > package and I'd like to come to some agreement about the name of the > > package so that we can have the same name across distributions (at least > > Fedora/Debian/Suse). > > Indeed. Eric picked "xfsprogs-xfs_scrub" for Rawhide, though I find > that name to be very clunky and would have preferred "xfs_scrub". > > > I was thinking about e2scrub-service for systemd service or e2scrub-cron > > for the cron job. What do you think ? > > In /theory/ the cronjob support in e2scrub (and xfs_scrub) were designed > to step out of the way if systemd is running, so at least in theory (on > Debian anyway) the two can be in the same package with the end result > being that e2scrub runs weekly in the background. I've not tried in > rhel/suse environments, however. > > I also don't see the point of supporting cron *while* systemd is active. > That increases the amount of corner-case testing we have to do, for > little gain. It's enough work to maintain the systemd-with-timers and > sysvinit-with-cron scenarios. Yeah, you're probably right. I just wanted to give people some options if they do not want (for whatever reason) to use systemd. Container environment might be a good example of that, but I am not at all sure how well is lvm2 supported in containers. > > If you're worried about the stability of systemd timer code, systemd's > timer support has been stable enough to run e2scrub_all/xfs_scrub_all on > my systems since late 2015, and I have no interest in supporting either > on a pre-2016 distro. Practically speaking, I guess that RHEL8, SLES16, > and Ubuntu 20.04 will be the first LTS distros to support e2scrub at > all. > > (As for xfs_scrub, it'll barely achieve alpha status in Linux 5.2...) > > > Also I decided not to package the cron job for now. But if I decide to > > package it in the future I'd like to change the e2scrub cron > > configuration so that it can run on the systems with systemd but make > > the package conflict with the e2scrub-service so that users are free to > > decide how they want to use it. > > If you do end up creating two packages I'd name the systemd one > e2scrub-systemd over e2scrub-service. Ok, thanks for suggestion. Andreas was suggesting naming it as part of e2fsprogs, that is - e2fsprogs-scrub but then it would be e2fsprogs-scrub-systemd and that sounds a bit convoluted to me. Thanks! -Lukas > > --D > > > Thoughts ? > > > > Thanks! > > -Lukas