Re: Automatic SSD trim script

Karel Zak
2013-12-11T11:36:54Z

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 <kzak@redhat.com>