From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: util-linux-owner@vger.kernel.org Received: from mx1.redhat.com ([209.132.183.28]:31025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133Ab3LKLgy (ORCPT ); Wed, 11 Dec 2013 06:36:54 -0500 Date: Wed, 11 Dec 2013 12:36:46 +0100 From: Karel Zak To: =?iso-8859-1?Q?P=E1draig?= Brady Cc: =?utf-8?B?THVrw6HFoQ==?= Czerner , Sten Heinze , util-linux@vger.kernel.org Subject: Re: Automatic SSD trim script Message-ID: <20131211113646.GA16572@x2.net.home> References: <20131206104944.GE16891@x2.net.home> <20131210154442.GC8419@x2.net.home> <52A8444F.2040904@draigBrady.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <52A8444F.2040904@draigBrady.com> Sender: util-linux-owner@vger.kernel.org List-ID: On Wed, Dec 11, 2013 at 10:54:07AM +0000, Pádraig Brady wrote: > Very nice: > https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=36c370c > > One foible was it was called multiple times for my /home > Now my /home is mounted a couple of times on my system (why I don't know): > > ├─/home /dev/sdb1 ext4 rw,relatime,seclabel,user_xattr,barrier=1,data=ordered > │ └─/home /dev/sdb1 ext4 rw,relatime,seclabel,user_xattr,barrier=1,data=ordered > > If this was common it might be worth avoiding processing the same entry multiple times. The common things is something like: ├─/boot systemd-1 autofs rw,relatime,fd=41,pgrp=1,timeout=300,minproto=5,maxpr │ └─/boot /dev/sda1 vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iochar but "autofs" is ignored. My old plan is to add some de-duplication function to libmount... now I have a real motivation :-) Karel -- Karel Zak http://karelzak.blogspot.com