Lines Matching refs:option

9   (at your option) any later version.
70 static int parse_one_option(const char *option) {
71 assert(option);
74 if (STR_IN_SET(option, "noauto", "auto", "nofail", "fail"))
77 if (startswith(option, "cipher=")) {
80 t = strdup(option+7);
87 } else if (startswith(option, "size=")) {
89 if (safe_atou(option+5, &arg_key_size) < 0) {
101 } else if (startswith(option, "key-slot=")) {
104 if (safe_atoi(option+9, &arg_key_slot) < 0) {
109 } else if (startswith(option, "tcrypt-keyfile=")) {
112 if (path_is_absolute(option+15)) {
113 if (strv_extend(&arg_tcrypt_keyfiles, option + 15) < 0)
116 log_error("Key file path '%s' is not absolute. Ignoring.", option+15);
118 } else if (startswith(option, "keyfile-size=")) {
120 if (safe_atou(option+13, &arg_keyfile_size) < 0) {
125 } else if (startswith(option, "keyfile-offset=")) {
127 if (safe_atou(option+15, &arg_keyfile_offset) < 0) {
132 } else if (startswith(option, "hash=")) {
135 t = strdup(option+5);
142 } else if (startswith(option, "header=")) {
145 if (!path_is_absolute(option+7)) {
146 log_error("Header path '%s' is not absolute, refusing.", option+7);
155 arg_header = strdup(option+7);
159 } else if (startswith(option, "tries=")) {
161 if (safe_atou(option+6, &arg_tries) < 0) {
166 } else if (STR_IN_SET(option, "readonly", "read-only"))
168 else if (streq(option, "verify"))
170 else if (STR_IN_SET(option, "allow-discards", "discard"))
172 else if (streq(option, "luks"))
174 else if (streq(option, "tcrypt"))
176 else if (streq(option, "tcrypt-hidden")) {
179 } else if (streq(option, "tcrypt-system")) {
182 } else if (STR_IN_SET(option, "plain", "swap", "tmp"))
184 else if (startswith(option, "timeout=")) {
186 if (parse_sec(option+8, &arg_timeout) < 0) {
191 } else if (startswith(option, "offset=")) {
193 if (safe_atou64(option+7, &arg_offset) < 0) {
198 } else if (startswith(option, "skip=")) {
200 if (safe_atou64(option+5, &arg_skip) < 0) {
205 } else if (!streq(option, "none"))
206 log_error("Encountered unknown /etc/crypttab option '%s', ignoring.", option);