Lines Matching defs:string
2233 const char *string;
2303 string = dm_shift_arg(&as);
2304 if (!string)
2307 if (!strcasecmp(string, "s")) {
2309 } else if (!strcasecmp(string, "p")) {
2347 string = dm_shift_arg(&as);
2348 if (!string)
2350 r = dm_get_device(ti, string, dm_table_get_mode(ti->table), &wc->dev);
2359 string = dm_shift_arg(&as);
2360 if (!string)
2363 r = dm_get_device(ti, string, dm_table_get_mode(ti->table), &wc->ssd_dev);
2373 string = dm_shift_arg(&as);
2374 if (!string)
2376 if (sscanf(string, "%u%c", &wc->block_size, &dummy) != 1 ||
2403 string = dm_shift_arg(&as), opt_params--;
2404 if (!strcasecmp(string, "start_sector") && opt_params >= 1) {
2407 string = dm_shift_arg(&as), opt_params--;
2408 if (sscanf(string, "%llu%c", &start_sector, &dummy) != 1)
2415 } else if (!strcasecmp(string, "high_watermark") && opt_params >= 1) {
2416 string = dm_shift_arg(&as), opt_params--;
2417 if (sscanf(string, "%d%c", &high_wm_percent, &dummy) != 1)
2423 } else if (!strcasecmp(string, "low_watermark") && opt_params >= 1) {
2424 string = dm_shift_arg(&as), opt_params--;
2425 if (sscanf(string, "%d%c", &low_wm_percent, &dummy) != 1)
2431 } else if (!strcasecmp(string, "writeback_jobs") && opt_params >= 1) {
2432 string = dm_shift_arg(&as), opt_params--;
2433 if (sscanf(string, "%u%c", &wc->max_writeback_jobs, &dummy) != 1)
2436 } else if (!strcasecmp(string, "autocommit_blocks") && opt_params >= 1) {
2437 string = dm_shift_arg(&as), opt_params--;
2438 if (sscanf(string, "%u%c", &wc->autocommit_blocks, &dummy) != 1)
2441 } else if (!strcasecmp(string, "autocommit_time") && opt_params >= 1) {
2444 string = dm_shift_arg(&as), opt_params--;
2445 if (sscanf(string, "%u%c", &autocommit_msecs, &dummy) != 1)
2452 } else if (!strcasecmp(string, "max_age") && opt_params >= 1) {
2455 string = dm_shift_arg(&as), opt_params--;
2456 if (sscanf(string, "%u%c", &max_age_msecs, &dummy) != 1)
2463 } else if (!strcasecmp(string, "cleaner")) {
2466 } else if (!strcasecmp(string, "fua")) {
2472 } else if (!strcasecmp(string, "nofua")) {
2478 } else if (!strcasecmp(string, "metadata_only")) {
2480 } else if (!strcasecmp(string, "pause_writeback") && opt_params >= 1) {
2485 string = dm_shift_arg(&as), opt_params--;
2486 if (sscanf(string, "%u%c", &pause_msecs, &dummy) != 1)