Lines Matching defs:state

53  * ver:state:prop:timeout:guid:ntarget:cmntlen:comment
431 /* get flavor info from state info (info level 2) */
1032 smb_tracef("state\t%X", info->i_state);
1042 smb_tracef("[%d] state\t%X", i, t->t_state);
1292 rc |= nvlist_add_uint32(nvl, "state", info->i_state);
1333 rc |= nvlist_lookup_uint32(nvl, "state", &info->i_state);
1403 * Determines if the passed state is valid for a DFS root
1409 dfs_root_isvalidstate(uint32_t state)
1411 switch (state) {
1447 * ver:state:prop:timeout:guid:ntarget:cmntlen:comment:
1494 * server:share:state:class:rank
1526 * ver:state:prop:timeout:guid:ntarget:cmntlen:comment
1541 * :server:share:state:class:rank
1584 * Determines if the passed state is valid for a link
1587 dfs_link_isvalidstate(uint32_t state)
1589 return (state == DFS_VOLUME_STATE_OK ||
1590 state == DFS_VOLUME_STATE_OFFLINE ||
1591 state == DFS_VOLUME_STATE_ONLINE);
1599 uint32_t state)
1603 t->t_state = state;
1630 * Determines if the passed state is valid for a link/root target
1633 dfs_target_isvalidstate(uint32_t state)
1635 return (state == DFS_STORAGE_STATE_ONLINE ||
1636 state == DFS_STORAGE_STATE_OFFLINE);
1784 * Validates the given state based on the object type (root/link), info
1785 * level, and whether it is the object's state or its target's state
1788 dfs_isvalidstate(uint32_t state, uint32_t type, boolean_t target,
1797 return (dfs_root_isvalidstate(state));
1799 if (!dfs_target_isvalidstate(state))
1801 else if (state == DFS_STORAGE_STATE_OFFLINE)
1805 if (!dfs_link_isvalidstate(state))
1808 if (!dfs_target_isvalidstate(state))
1815 if (state == 0)
1819 switch (state) {
1832 switch (state) {
1891 uint32_t state;
1909 state = (target_op)
1911 status = dfs_isvalidstate(state, type, target_op, 101);
1919 if (state & DFS_VOLUME_STATES_SRV_OPS)
1922 info->i_state = state;
1924 info->i_targets[target_idx].t_state = state;