is_valid_transition(9)
๐ NAME ๐
okay so bestie, welcome to is_valid_transition(9), fresh from the Kernel API Manual โจ This one is lowkey the vibe-check for DRBD state changes, and it's giving โnope, not todayโ energy ๐
is_valid_transition returns an SS_ error code if the state transition is not possible. It limits hard state transitions. Hard state transitions are facts imposed on DRBD by the environment โ e.g. the disk broke or the network broke down ๐ญ. But those hard state transitions are still not allowed to do everything, periodt.
๐ SYNOPSIS ๐
enum drbd_state_rv is_valid_transition (union drbd_state os , union drbd_state ns );
๐งธ ARGUMENTS ๐งธ
osโ old state, aka the state you're coming from ๐nsโ new state, aka the state you're trying to slide into โจ
๐ SEE ALSO ๐
- Kernel file
./drivers/block/drbd/drbd_state.c cl_wide_st_chg(9)drbd_force_state(9)drbd_req_state(9)_drbd_request_state(9)is_valid_state(9)is_valid_soft_transition(9)sanitize_state(9)_drbd_set_state(9)after_state_ch(9)
xoxo, this iconic page comes from source/version ./drivers/block/drbd and is dated October 2026 ๐๐ซถ
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms