Gentoo Archives: gentoo-user

From: Alan Mackenzie <acm@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] "Amount" of fstrim? (curiosity driven, no paranoia :)
Date: Mon, 27 Apr 2020 10:32:30
Message-Id: 20200427103219.GB4976@ACM
In Reply to: Re: [gentoo-user] "Amount" of fstrim? (curiosity driven, no paranoia :) by Rich Freeman
1 Hello, Rich.
2
3 On Sun, Apr 26, 2020 at 15:29:40 -0400, Rich Freeman wrote:
4
5 [ .... ]
6
7 > Incidentally, in the other thread the reason that dry-run didn't
8 > report anything to be trimmed is that this is hard-coded:
9 > printf(_("%s: 0 B (dry run) trimmed on %s\n"), path, devname);
10 > https://github.com/karelzak/util-linux/blob/master/sys-utils/fstrim.c#L109
11
12 Thanks for looking that up! There doesn't appear to be much point to
13 this misleading --dry-run option. It seems like a good idea which never
14 got implemented (except in the manual).
15
16 > Otherwise the ioctl returns how much space was trimmed, and fstrim outputs this.
17
18 > --
19 > Rich
20
21 --
22 Alan Mackenzie (Nuremberg, Germany).