Home
last modified time | relevance | path

Searched refs:R_SECONDARY (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/block/drbd/
Ddrbd_strings.c46 [R_SECONDARY] = "Secondary",
93 return s > R_SECONDARY ? "TOO_LARGE" : drbd_role_s_names[s]; in drbd_role_str()
Ddrbd_state.c305 device->state.role != R_SECONDARY) { in conn_all_vols_unconf()
321 if (role1 == R_SECONDARY || role2 == R_SECONDARY) in max_role()
322 return R_SECONDARY; in max_role()
330 if (role1 == R_SECONDARY || role2 == R_SECONDARY) in min_role()
331 return R_SECONDARY; in min_role()
337 enum drbd_role role = R_SECONDARY; in conn_highest_role()
850 else if (ns.role == R_SECONDARY && device->open_cnt) in is_valid_state()
1078 if (ns.conn == C_STANDALONE && ns.disk == D_DISKLESS && ns.role == R_SECONDARY) in sanitize_state()
1440 os.peer == R_SECONDARY && ns.peer == R_PRIMARY) in _drbd_set_state()
1837 if (os.peer == R_PRIMARY && ns.peer == R_SECONDARY) in after_state_ch()
[all …]
Ddrbd_proc.c264 state.role == R_SECONDARY) { in drbd_seq_show()
Ddrbd_nl.c718 if (new_role == R_SECONDARY) { in drbd_set_role()
752 set_disk_ro(device->vdisk, new_role == R_SECONDARY); in drbd_set_role()
796 rv = drbd_set_role(adm_ctx.device, R_SECONDARY, 0); in drbd_adm_set_role()
2796 if (device->state.role == R_SECONDARY && in drbd_adm_resize()
2797 device->state.peer == R_SECONDARY) { in drbd_adm_resize()
2958 if (device->state.conn == C_STANDALONE && device->state.role == R_SECONDARY) { in drbd_adm_invalidate()
4332 device->state.role == R_SECONDARY) { in adm_del_minor()
4432 retcode = drbd_set_role(peer_device->device, R_SECONDARY, 0); in drbd_adm_down()
Ddrbd_receiver.c3104 if (hg == -1 && device->state.role == R_SECONDARY) in drbd_asb_recover_1p()
3122 rv2 = drbd_change_state(device, CS_VERBOSE, NS(role, R_SECONDARY)); in drbd_asb_recover_1p()
3172 rv2 = drbd_change_state(device, CS_VERBOSE, NS(role, R_SECONDARY)); in drbd_asb_recover_2p()
Ddrbd_main.c1930 { .role = R_SECONDARY, in drbd_set_defaults()
/linux-6.1.9/include/linux/
Ddrbd.h183 R_SECONDARY = 2, /* role */ enumerator