Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148483352
D10338.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
D10338.diff
View Options
Index: head/sbin/geom/class/eli/geom_eli.c
===================================================================
--- head/sbin/geom/class/eli/geom_eli.c
+++ head/sbin/geom/class/eli/geom_eli.c
@@ -1118,7 +1118,9 @@
val = gctl_get_intmax(req, "iterations");
/* Check if iterations number should and can be changed. */
- if (val != -1) {
+ if (val != -1 && md->md_iterations == -1) {
+ md->md_iterations = val;
+ } else if (val != -1 && val != md->md_iterations) {
if (bitcount32(md->md_keys) != 1) {
gctl_error(req, "To be able to use '-i' option, only "
"one key can be defined.");
Index: head/sys/geom/eli/g_eli_ctl.c
===================================================================
--- head/sys/geom/eli/g_eli_ctl.c
+++ head/sys/geom/eli/g_eli_ctl.c
@@ -618,7 +618,9 @@
return;
}
/* Check if iterations number should and can be changed. */
- if (*valp != -1) {
+ if (*valp != -1 && md.md_iterations == -1) {
+ md.md_iterations = *valp;
+ } else if (*valp != -1 && *valp != md.md_iterations) {
if (bitcount32(md.md_keys) != 1) {
gctl_error(req, "To be able to use '-i' option, only "
"one key can be defined.");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 4:34 AM (11 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29946723
Default Alt Text
D10338.diff (1 KB)
Attached To
Mode
D10338: Always allow setting initial number of iterations for ELI encrypted disk created without passphrase
Attached
Detach File
Event Timeline
Log In to Comment