FreeBSD Bugzilla – Attachment 154327 Details for
Bug 198598
[PATCH] swapon: Accept the "late" option for .eli devices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] swapon: Accept the "late" option for .eli devices
swapon-Accept-the-late-option-for-eli-devices.diff (text/plain), 989 bytes, created by
Fabian Keil
on 2015-03-15 11:37:23 UTC
(
hide
)
Description:
[PATCH] swapon: Accept the "late" option for .eli devices
Filename:
MIME Type:
Creator:
Fabian Keil
Created:
2015-03-15 11:37:23 UTC
Size:
989 bytes
patch
obsolete
>From 49023bb4765927abe958deb956d8ec66665911df Mon Sep 17 00:00:00 2001 >From: Fabian Keil <fk@fabiankeil.de> >Date: Sat, 14 Mar 2015 12:07:50 +0100 >Subject: [PATCH] swapon: Accept the "late" option for .eli devices > >Using the late option makes it possible to additionally use the >consumer device as (unencrypted!) dump device without making it >unavailable for rc.d/savecore (which runs between rc.d/swap >and rc.d/swaplate). > >Obtained from: ElectroBSD >--- > sbin/swapon/swapon.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c >index 033c40a..54ee1b25 100644 >--- a/sbin/swapon/swapon.c >+++ b/sbin/swapon/swapon.c >@@ -365,7 +365,8 @@ swap_on_geli_args(const char *mntops) > free(ops); > return (NULL); > } >- } else if (strcmp(token, "sw") != 0) { >+ } else if (strcmp(token, "sw") != 0 && >+ strcmp(token, "late") != 0) { > warnx("Invalid option: %s", token); > free(ops); > return (NULL); >-- >2.3.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198598
: 154327