path: root/include/paths.h
diff options
authorHiroki Sato <hrs@FreeBSD.org>2013-06-27 18:28:45 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-06-27 18:28:45 +0000
commit268a55bc98b2119a8e7bc37268c08af30080ec62 (patch)
tree7de5a51b2bb632b781318a008e0d7c347c3065e4 /include/paths.h
parent25fa33476bd6dca47f01c969cea456e566ed2305 (diff)
- Add vnode-backed swap space specification support. This is enabled when
device names "md" or "md[0-9]*" and a "file" option are specified in /etc/fstab like this: md none swap sw,file=/swap.bin 0 0 - Add GBDE/GELI encrypted swap space specification support, which rc.d/encswap supported. The /etc/fstab lines are like the following: /dev/ada1p1.bde none swap sw 0 0 /dev/ada1p2.eli none swap sw 0 0 .eli devices accepts aalgo, ealgo, keylen, and sectorsize as options. swapctl(8) can understand an encrypted device in the command line like this: # swapctl -a /dev/ada2p1.bde - "-L" flag is added to support "late" option to defer swapon until rc.d/mountlate runs. - rc.d script change: rc.d/encswap -> removed rc.d/addswap -> just display a warning message if $swapfile is defined rc.d/swap1 -> renamed to rc.d/swap rc.d/swaplate -> newly added to support "late" option These changes alleviate a race condition between device creation/removal and swapon/swapoff. MFC after: 1 week Reviewed by: wblock (manual page)
Notes: svn path=/head/; revision=252310
Diffstat (limited to 'include/paths.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/paths.h b/include/paths.h
index c96f37c3f066..c0a99a50e5f1 100644
--- a/include/paths.h
+++ b/include/paths.h
@@ -57,6 +57,8 @@
#define _PATH_ETC "/etc"
#define _PATH_FTPUSERS "/etc/ftpusers"
#define _PATH_FWMEM "/dev/fwmem"
+#define _PATH_GBDE "/sbin/gbde"
+#define _PATH_GELI "/sbin/geli"
#define _PATH_HALT "/sbin/halt"
#ifdef COMPAT_32BIT
#define _PATH_I18NMODULE "/usr/lib32/i18n"