diff options
author | lemmi <lemmi@nerd2nerd.org> | 2021-07-09 10:20:05 +0200 |
---|---|---|
committer | classabbyamp <5366828+classabbyamp@users.noreply.github.com> | 2023-04-13 15:47:25 -0400 |
commit | df222dab84696514fa32a8392ec662e29adc96a0 (patch) | |
tree | 43e0f8063c6996d1aa8ee57d1c13de5900c1b461 | |
parent | 79675bcb1a3c926f30415f8fa30c8bee8c9360b9 (diff) | |
download | runit-void-df222dab84696514fa32a8392ec662e29adc96a0.tar.gz runit-void-df222dab84696514fa32a8392ec662e29adc96a0.tar.xz runit-void-df222dab84696514fa32a8392ec662e29adc96a0.zip |
crypt.awk: enable dm-crypt perf-* options
This enables handling of the following options: * perf-same_cpu_crypt * perf-submit_from_crypt_cpus * perf-no_read_workqueue * perf-no_write_workqueue
-rw-r--r-- | crypt.awk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypt.awk b/crypt.awk index b29c87c..2d9cafc 100644 --- a/crypt.awk +++ b/crypt.awk @@ -56,6 +56,10 @@ NF>4 { print "a valid crypttab has max 4 cols not " NF >"/dev/stderr"; next } else if ( par == "keyfile-size" ) luksopts=luksopts "-l " val " "; else if ( par == "keyfile-offset" ) luksopts=luksopts "--keyfile-offset=" val " "; else if ( par == "header" ) luksopts=luksopts "--header=" val " "; + else if ( par == "perf-same_cpu_crypt" ) commonopts=commonopts "--perf-same_cpu_crypt "; + else if ( par == "perf-submit_from_crypt_cpus" ) commonopts=commonopts "--perf-submit_from_crypt_cpus "; + else if ( par == "perf-no_read_workqueue" ) commonopts=commonopts "--perf-no_read_workqueue "; + else if ( par == "perf-no_write_workqueue" ) commonopts=commonopts "--perf-no_write_workqueue "; else { print "option: " par " not supported " >"/dev/stderr"; makeswap=""; |