Properly ignore "trim" failures in swapon(8).
authorDaniel Fojt <df@neosystem.org>
Thu, 11 Jun 2020 18:11:55 +0000 (20:11 +0200)
committerDaniel Fojt <df@neosystem.org>
Thu, 11 Jun 2020 18:54:20 +0000 (20:54 +0200)
commiteeecdae69913500f880d57f02a22a49d8ea89460
tree5969203cf68fba0ea4c295e2c012a0d819df49e6
parent5b8cd87c4302a6548890e3ec3eaea7691a74a1e4
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.

Issue: https://bugs.dragonflybsd.org/issues/3207
sbin/swapon/swapon.c