Lines Matching defs:opt_string
4191 const char *opt_string;
4195 opt_string = dm_shift_arg(&as);
4196 if (!opt_string) {
4201 if (sscanf(opt_string, "journal_sectors:%u%c", &val, &dummy) == 1)
4203 else if (sscanf(opt_string, "interleave_sectors:%u%c", &val, &dummy) == 1)
4205 else if (sscanf(opt_string, "buffer_sectors:%u%c", &val, &dummy) == 1)
4207 else if (sscanf(opt_string, "journal_watermark:%u%c", &val, &dummy) == 1 && val <= 100)
4209 else if (sscanf(opt_string, "commit_time:%u%c", &val, &dummy) == 1)
4211 else if (!strncmp(opt_string, "meta_device:", strlen("meta_device:"))) {
4216 r = dm_get_device(ti, strchr(opt_string, ':') + 1,
4222 } else if (sscanf(opt_string, "block_size:%u%c", &val, &dummy) == 1) {
4231 } else if (sscanf(opt_string, "sectors_per_bit:%llu%c", &llval, &dummy) == 1) {
4233 } else if (sscanf(opt_string, "bitmap_flush_interval:%u%c", &val, &dummy) == 1) {
4240 } else if (!strncmp(opt_string, "internal_hash:", strlen("internal_hash:"))) {
4241 r = get_alg_and_key(opt_string, &ic->internal_hash_alg, &ti->error,
4245 } else if (!strncmp(opt_string, "journal_crypt:", strlen("journal_crypt:"))) {
4246 r = get_alg_and_key(opt_string, &ic->journal_crypt_alg, &ti->error,
4250 } else if (!strncmp(opt_string, "journal_mac:", strlen("journal_mac:"))) {
4251 r = get_alg_and_key(opt_string, &ic->journal_mac_alg, &ti->error,
4255 } else if (!strcmp(opt_string, "recalculate")) {
4257 } else if (!strcmp(opt_string, "reset_recalculate")) {
4260 } else if (!strcmp(opt_string, "allow_discards")) {
4262 } else if (!strcmp(opt_string, "fix_padding")) {
4264 } else if (!strcmp(opt_string, "fix_hmac")) {
4266 } else if (!strcmp(opt_string, "legacy_recalculate")) {