From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Yb3T9-0001iD-Sc for ptxdist@pengutronix.de; Thu, 26 Mar 2015 09:48:51 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1Yb3T9-0006y5-R4 for ptxdist@pengutronix.de; Thu, 26 Mar 2015 09:48:51 +0100 Date: Thu, 26 Mar 2015 09:48:51 +0100 From: Michael Olbrich Message-ID: <20150326084851.GH3000@pengutronix.de> References: <1425637560-23901-1-git-send-email-h.feurstein@gmail.com> <1425637560-23901-2-git-send-email-h.feurstein@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1425637560-23901-2-git-send-email-h.feurstein@gmail.com> Subject: Re: [ptxdist] [PATCH 02/10] util-linux-ng: add fstrim option Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Fri, Mar 06, 2015 at 11:25:52AM +0100, Hubert Feurstein wrote: > Signed-off-by: Hubert Feurstein Thanks, applied (It's already in ptxdist-2015.03.0). Michael > --- > rules/util-linux-ng.in | 12 ++++++++++++ > rules/util-linux-ng.make | 3 +++ > 2 files changed, 15 insertions(+) > > diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in > index a5f51a6..50dfbf6 100644 > --- a/rules/util-linux-ng.in > +++ b/rules/util-linux-ng.in > @@ -200,6 +200,18 @@ config UTIL_LINUX_NG_FSCK > comment "BusyBox' fsck is selected!" > depends on BUSYBOX_FSCK > > +config UTIL_LINUX_NG_FSTRIM > + bool > + prompt "fstrim" > + depends on !BUSYBOX_FSTRIM || ALLYES > + help > + fstrim is used on a mounted filesystem to discard (or "trim") > + blocks which are not in use by the filesystem. This is useful > + for solid-state drives (SSDs) and thinly-provisioned storage. > + > +comment "BusyBox' fstrim is selected!" > + depends on BUSYBOX_FSTRIM > + > config UTIL_LINUX_NG_IPCS > bool > prompt "ipcs" > diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make > index fc28c66..acd3b78 100644 > --- a/rules/util-linux-ng.make > +++ b/rules/util-linux-ng.make > @@ -205,6 +205,9 @@ endif > ifdef PTXCONF_UTIL_LINUX_NG_FSCK > @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /sbin/fsck) > endif > +ifdef PTXCONF_UTIL_LINUX_NG_FSTRIM > + @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /sbin/fstrim) > +endif > ifdef PTXCONF_UTIL_LINUX_NG_IPCS > @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/ipcs) > endif > -- > 2.3.0 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de