raid6_recov_datap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hiii bestie πŸ’– you've landed on the raid6_recov_datap(9) page in the Kernel API Manual, and honestly? this one is a whole little recovery mission. no cap. 🫢

✨ NAME ✨

raid6_recov_datap β€” recover a missing data disk and missing P-parity

okay so that's the whole vibe: one function, one very specific rescue β€” recover a missing data disk and missing P-parity. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

void raid6_recov_datap (int disks , size_t bytes , int faila , void **ptrs );

that's the exact signature, bestie β€” don't let the spacing jump-scare you. 😭

πŸŽ€ ARGUMENTS πŸŽ€

  • disks β€” number of "disks" to operate on including parity. yes, parity is included in this count. 🫢
  • bytes β€” length in bytes of each vector. that's the size, in bytes, of each vector. ✨
  • faila β€” failed data disk index. it tells you which data disk is the missing one. πŸ’€
  • ptrs β€” disks size array of memory pointers. literally an array of memory pointers sized by disks. πŸŽ€

πŸ’… DESCRIPTION πŸ’…

so here's the mission: rebuild bytes of missing data in ptrs[faila], and rebuild the missing P-parity in ptrs[disks - 2], from the data in the remaining disks and the Q-parity pointed to by the other indices between 0 and disks - 1 in ptrs. and yes, disks includes the data disks and the two parities. periodt. ✨

🚨 caveat time, bestie: memory pointed to by each pointer in ptrs must be page aligned and is limited to PAGE_SIZE. that's not a suggestion, that's the rule. 😭

πŸ”₯ SEE ALSO πŸ”₯

go poke these if you want the rest of the raid6 lore:

mwah πŸ’‹ β€” source/version: ./lib/raid/raid6; date: October 2026; page: raid6_recov_datap(9). now go be page-aligned and iconic. πŸŽ€

πŸ“¦ where this page comes from