convert_state(9)
π convert_state(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the Kernel API Manual entry for convert_state(9), and no cap this one is actually kind of iconic once you get the vibe π
πΈ NAME πΈ
convert_state β converts the peer's view of the cluster state to our point of view π«Ά
like, the peer sees the cluster one way, we see it another way, and this function is the lil translator that makes them match. it's giving diplomacy, honestly π
β¨ SYNOPSIS β¨
union drbd_state convert_state (union drbd_state ps );
yes bestie, that's the whole signature, copy it exactly, don't be weird about the spacing π
π ARGUMENTS π
psβ the state as seen by the peer π that's it, that's the argument, it's the peer's whole perspective of the cluster state and we're about to flip it into ours π
π¦ SEE ALSO π¦
go look at the kernel file ./drivers/block/drbd/drbd_receiver.c for the whole scene, and also these absolute icons:
iykyk, the whole drbd family is lowkey serving π§
fr fr bestie, this page is short and sweet β but don't let the length fool you, that peer-state-to-our-state conversion is main character energy β
okay that's the whole page, mwah π this gem came from ./drivers/block/drbd, dated October 2026, and it's literally the convert_state(9) page β slay, bye πβ¨
π¦ 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