From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YTpSg-0002UD-C5 for ptxdist@pengutronix.de; Fri, 06 Mar 2015 11:26:30 +0100 Received: by widex7 with SMTP id ex7so1707236wid.1 for ; Fri, 06 Mar 2015 02:26:24 -0800 (PST) From: Hubert Feurstein Date: Fri, 6 Mar 2015 11:25:52 +0100 Message-Id: <1425637560-23901-2-git-send-email-h.feurstein@gmail.com> In-Reply-To: <1425637560-23901-1-git-send-email-h.feurstein@gmail.com> References: <1425637560-23901-1-git-send-email-h.feurstein@gmail.com> Subject: [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: , MIME-Version: 1.0 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 Signed-off-by: Hubert Feurstein --- 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