Lines Matching refs:state
35 * The following flags are used by dm-raid.c to set up the array state.
202 * These are all internal and used to define runtime state,
3347 /* Return sync state string for @state */
3349 static const char *sync_str(enum sync_state state)
3362 return __within_range(state, 0, ARRAY_SIZE(sync_strs) - 1) ? sync_strs[state] : "undef";
3424 enum sync_state state, sector_t resync_max_sectors)
3437 if (state == st_idle && !test_bit(MD_RECOVERY_INTR, &recovery))
3442 if (state == st_idle && r >= resync_max_sectors) {
3450 } else if (state == st_recover)
3459 else if (state == st_resync || state == st_reshape)
3467 else if (state == st_check || state == st_repair)
3522 enum sync_state state;
3540 state = decipher_sync_action(mddev, recovery);
3541 progress = rs_get_progress(rs, recovery, state, resync_max_sectors);
3545 /* HM FIXME: do we want another state char for raid0? It shows 'D'/'A'/'-' now */
3571 DMEMIT(" %s", sync_str(state));