Home
last modified time | relevance | path

Searched refs:un_devstate (Results 1 – 8 of 8) sorted by relevance

/titanic_41/usr/src/uts/common/sys/lvm/
H A Dmd_raid.h54 #define COLUMN_STATE(un, column) ((un)->un_column[(column)].un_devstate)
57 ((un)->un_column[(column)].un_devstate == RCS_INIT) || \
58 ((un)->un_column[(column)].un_devstate == RCS_OKAY) || \
59 ((un)->un_column[(column)].un_devstate == RCS_ERRED) || \
60 ((un)->un_column[(column)].un_devstate == RCS_RESYNC) || \
61 ((un)->un_column[(column)].un_devstate == RCS_LAST_ERRED) || \
62 ((un)->un_column[(column)].un_devstate == RCS_REGEN))
65 ((un)->un_column[(column)].un_devstate == RCS_OKAY) || \
66 ((un)->un_column[(column)].un_devstate == RCS_RESYNC) || \
67 ((un)->un_column[(column)].un_devstate == RCS_LAST_ERRED))
[all …]
H A Dmd_convert.h225 small_rcol->un_devstate = big_rcol->un_devstate; \
245 big_rcol->un_devstate = small_rcol->un_devstate; \
/titanic_41/usr/src/uts/common/io/lvm/raid/
H A Draid_hotspare.c166 if (HOTSPARED(un, hs_index) && (col->un_devstate & RCS_ERRED)) { in check_comp_4_hs()
181 state = col->un_devstate; in check_comp_4_hs()
349 if (un->un_column[i].un_devstate == RCS_ERRED) in check_4_hs()
H A Draid.c219 un->un_column[col].un_devstate = newstate; in raid_set_state()
232 if (un->un_column[col].un_devstate == newstate) in raid_set_state()
242 orig_colstate = un->un_column[col].un_devstate; in raid_set_state()
252 colstate = un->un_column[i].un_devstate; in raid_set_state()
275 un->un_column[col].un_devstate = newstate; in raid_set_state()
332 (un->un_column[i].un_devstate & RCS_LAST_ERRED)) { in raid_set_state()
373 if (column->un_devstate & RCS_OKAY) in erred_check_line()
376 if (column->un_devstate & RCS_ERRED) in erred_check_line()
386 if (column->un_devstate & RCS_LAST_ERRED) in erred_check_line()
389 ASSERT(column->un_devstate & RCS_RESYNC); in erred_check_line()
[all …]
H A Draid_resync.c162 (un->un_column[column_index].un_devstate & RCS_RESYNC))) { in resync_request()
168 if (un->un_column[column_index].un_devstate & in resync_request()
633 state = un->un_column[resync].un_devstate; in resync_comp()
650 if (! (un->un_column[resync].un_devstate & RCS_RESYNC)) { in resync_comp()
898 if (un->un_column[i].un_devstate & RCS_OKAY) in resync_comp()
H A Draid_ioctl.c497 if (un->un_column[ix].un_devstate != RCS_INIT) in raid_init_columns()
1225 if (un->un_column[col].un_devstate != RCS_ERRED) { in raid_replace()
1227 if (un->un_column[ix].un_devstate & RCS_ERRED) in raid_replace()
1235 if ((un->un_column[col].un_devstate != RCS_LAST_ERRED) && in raid_replace()
1236 (un->un_column[col].un_devstate != RCS_ERRED)) in raid_replace()
1242 if (! (un->un_column[col].un_devstate & in raid_replace()
1251 state = un->un_column[col].un_devstate; in raid_replace()
1448 if (un->un_column[col].un_devstate & RCS_INIT) in raid_replace()
1550 if (un->un_column[ix].un_devstate & RCS_RESYNC) { in raid_set_sync()
1650 switch (un->un_column[ix].un_devstate) { in raid_get_resync()
[all …]
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_raid.c211 mdrcp->state = rcp->un_devstate; in meta_get_raid_common()
1208 mdc->un_devstate = state; in attach_raid_col()
2054 if (mr->un_column[col].un_devstate & state) in meta_raid_state_cnt()
2205 mdc->un_devstate = cp->state; in meta_create_raid()
2238 mdc->un_devstate = RCS_INIT; in meta_create_raid()
2240 mdc->un_devstate = RCS_OKAY; in meta_create_raid()
H A Dmeta_statconcise.c734 state = meta_get_raid_col_state(mc->un_devstate); in process_raid()