git: Properly ignore "trim" failures in swapon(8).

Daniel Fojt deef at
Thu Jun 11 11:56:05 PDT 2020

commit eeecdae69913500f880d57f02a22a49d8ea89460
Author: Daniel Fojt <df at>
Date:   Thu Jun 11 20:11:55 2020 +0200

    Properly ignore "trim" failures in swapon(8).
    When trying to "trim" a swap device that doesn't support this, just ignore
    particular ioctl() failure and continue activating the swap. This actually
    matches the behaviour described in swapon(8) manpage.

Summary of changes:
 sbin/swapon/swapon.c | 1 -
 1 file changed, 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list