]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In trimming on startup, invoke swapon before closing the fd used for
authordougm <dougm@FreeBSD.org>
Sat, 20 Jul 2019 20:47:07 +0000 (20:47 +0000)
committerdougm <dougm@FreeBSD.org>
Sat, 20 Jul 2019 20:47:07 +0000 (20:47 +0000)
commit4e91fe10be63bb4c95e3af788fdbba00c42000ae
tree4eb0e77c29977b64a9e95ecd62e9b91a763a620a
parent730c2462a2533f298e0dd92a53cc58f7162ee836
In trimming on startup, invoke swapon before closing the fd used for
trimming so that a geli device isn't detached before swapon is
invoked.

Submitted by: sigsys_gmail.com
Discussed with: alc
Approved by: markj (mentor)
Differential Revision: https://reviews.freebsd.org/D21006
sbin/swapon/swapon.c