Searched refs:cmd_match (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/md/
H A Dmd.c2496 * We want to accept with case. For this we use cmd_match.
2498 static int cmd_match(const char *cmd, const char *str) cmd_match() function
2590 if (cmd_match(buf, "faulty") && rdev->mddev->pers) { state_store()
2596 } else if (cmd_match(buf, "remove")) { state_store()
2612 } else if (cmd_match(buf, "writemostly")) { state_store()
2615 } else if (cmd_match(buf, "-writemostly")) { state_store()
2618 } else if (cmd_match(buf, "blocked")) { state_store()
2621 } else if (cmd_match(buf, "-blocked")) { state_store()
2636 } else if (cmd_match(buf, "insync") && rdev->raid_disk == -1) { state_store()
2639 } else if (cmd_match(buf, "-insync") && rdev->raid_disk >= 0 && state_store()
2647 } else if (cmd_match(buf, "write_error")) { state_store()
2650 } else if (cmd_match(buf, "-write_error")) { state_store()
2653 } else if (cmd_match(buf, "want_replacement")) { state_store()
2665 } else if (cmd_match(buf, "-want_replacement")) { state_store()
2671 } else if (cmd_match(buf, "replacement")) { state_store()
2682 } else if (cmd_match(buf, "-replacement")) { state_store()
2690 } else if (cmd_match(buf, "re-add")) { state_store()
3043 if (cmd_match(buf, "none")) recovery_start_store()
3791 if (cmd_match(buf, "none")) resync_start_store()
3865 if (cmd_match(word, list[n])) match_word()
4243 if (cmd_match(buf, "none")) { metadata_store()
4321 if (cmd_match(page, "idle") || cmd_match(page, "frozen")) { action_store()
4322 if (cmd_match(page, "frozen")) action_store()
4337 else if (cmd_match(page, "resync")) action_store()
4339 else if (cmd_match(page, "recover")) { action_store()
4342 } else if (cmd_match(page, "reshape")) { action_store()
4360 if (cmd_match(page, "check")) action_store()
4362 else if (!cmd_match(page, "repair")) action_store()
4771 if (cmd_match(buf, "forwards")) reshape_direction_store()
4773 else if (cmd_match(buf, "backwards")) reshape_direction_store()

Completed in 117 milliseconds