Hello, Rich.

On Sun, Apr 26, 2020 at 15:29:40 -0400, Rich Freeman wrote:

[ .... ]

> Incidentally, in the other thread the reason that dry-run didn't
> report anything to be trimmed is that this is hard-coded:
> printf(_("%s: 0 B (dry run) trimmed on %s\n"), path, devname);
> https://github.com/karelzak/util-linux/blob/master/sys-utils/fstrim.c#L109

Thanks for looking that up!  There doesn't appear to be much point to
this misleading --dry-run option.  It seems like a good idea which never
got implemented (except in the manual).

> Otherwise the ioctl returns how much space was trimmed, and fstrim outputs 
> this.

> -- 
> Rich

-- 
Alan Mackenzie (Nuremberg, Germany).

Reply via email to