[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Setting up encrypted swap: "swapon" vs. "swapctl -a"
From:       David Wolfskill <david () catwhisker ! org>
Date:       2019-12-11 22:35:34
Message-ID: 20191211223534.GU27431 () albert ! catwhisker ! org
[Download RAW message or body]


I find that swapon(8) allows a -E flag:

| The swapon utility adds the specified swap devices to the system...
| The -E option causes each of following devices to receive a BIO_DELETE
| command....

While "swapctl -a" is (otherwise) similar to "swapon,":

| swapctl -E -a /dev/nda11p5.eli
| usage: swapctl [-AghklmsU] [-a file ... | -d file ...]
| swapctl -a /dev/nda11p5.eli
| swapctl: adding /dev/nda11p5.eli as swap device
| swapoff /dev/nda11p5.eli
| swapon -E /dev/nda11p5.eli

That said, I also note:

| The swapctl utility exists primarily for those familiar with other
| BSDs and may be used to add, remove, or list swap devices....

Should "swapctl -a" also accept & make use of -E?

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Some might think an oath of office is as meaningful as a marriage vow.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic