Lines Matching defs:opt_string
3898 const char *opt_string;
3901 opt_string = dm_shift_arg(&as);
3902 if (!opt_string) {
3907 if (sscanf(opt_string, "journal_sectors:%u%c", &val, &dummy) == 1)
3909 else if (sscanf(opt_string, "interleave_sectors:%u%c", &val, &dummy) == 1)
3911 else if (sscanf(opt_string, "buffer_sectors:%u%c", &val, &dummy) == 1)
3913 else if (sscanf(opt_string, "journal_watermark:%u%c", &val, &dummy) == 1 && val <= 100)
3915 else if (sscanf(opt_string, "commit_time:%u%c", &val, &dummy) == 1)
3917 else if (!strncmp(opt_string, "meta_device:", strlen("meta_device:"))) {
3922 r = dm_get_device(ti, strchr(opt_string, ':') + 1,
3928 } else if (sscanf(opt_string, "block_size:%u%c", &val, &dummy) == 1) {
3937 } else if (sscanf(opt_string, "sectors_per_bit:%llu%c", &llval, &dummy) == 1) {
3939 } else if (sscanf(opt_string, "bitmap_flush_interval:%u%c", &val, &dummy) == 1) {
3946 } else if (!strncmp(opt_string, "internal_hash:", strlen("internal_hash:"))) {
3947 r = get_alg_and_key(opt_string, &ic->internal_hash_alg, &ti->error,
3951 } else if (!strncmp(opt_string, "journal_crypt:", strlen("journal_crypt:"))) {
3952 r = get_alg_and_key(opt_string, &ic->journal_crypt_alg, &ti->error,
3956 } else if (!strncmp(opt_string, "journal_mac:", strlen("journal_mac:"))) {
3957 r = get_alg_and_key(opt_string, &ic->journal_mac_alg, &ti->error,
3961 } else if (!strcmp(opt_string, "recalculate")) {
3963 } else if (!strcmp(opt_string, "allow_discards")) {
3965 } else if (!strcmp(opt_string, "fix_padding")) {
3967 } else if (!strcmp(opt_string, "legacy_recalculate")) {