is_valid_transition(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŽ€ 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 ๐Ÿ”—


xoxo, this iconic page comes from source/version ./drivers/block/drbd and is dated October 2026 ๐Ÿ’œ๐Ÿซถ

๐Ÿ“ฆ where this page comes from