Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169286822
D8126.id21606.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D8126.id21606.diff
View Options
Index: head/etc/rc.d/swaplate
===================================================================
--- head/etc/rc.d/swaplate
+++ head/etc/rc.d/swaplate
@@ -12,7 +12,7 @@
name="swaplate"
desc="Setup late swap space"
start_cmd='/sbin/swapon -aLq'
-stop_cmd='/sbin/swapoff -aq'
+stop_cmd='/sbin/swapoff -aLq'
load_rc_config swap
run_rc_command "$1"
Index: head/sbin/swapon/swapon.8
===================================================================
--- head/sbin/swapon/swapon.8
+++ head/sbin/swapon/swapon.8
@@ -28,7 +28,7 @@
.\" @(#)swapon.8 8.1 (Berkeley) 6/5/93
.\" $FreeBSD$
.\"
-.Dd October 2, 2016
+.Dd October 21, 2016
.Dt SWAPON 8
.Os
.Sh NAME
@@ -98,6 +98,12 @@
.Dq noauto
option is also set.
If the
+.Fl L
+option is specified,
+only swap devices with the
+.Dq late
+option will be removed.
+If the
.Fl q
option is used,
informational messages will not be
Index: head/sbin/swapon/swapon.c
===================================================================
--- head/sbin/swapon/swapon.c
+++ head/sbin/swapon/swapon.c
@@ -176,6 +176,10 @@
strstr(fsp->fs_mntops, "late") &&
late == 0)
continue;
+ if (which_prog == SWAPOFF &&
+ strstr(fsp->fs_mntops, "late") == NULL &&
+ late != 0)
+ continue;
swfile = swap_on_off(fsp->fs_spec, 1,
fsp->fs_mntops);
if (swfile == NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 2, 3:26 AM (15 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37838081
Default Alt Text
D8126.id21606.diff (1 KB)
Attached To
Mode
D8126: swapoff: Remove only late devices with -aL.
Attached
Detach File
Event Timeline
Log In to Comment