raid6_recov_datap(9)
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βdiskssize array of memory pointers. literally an array of memory pointers sized bydisks. π
π 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 inptrsmust be page aligned and is limited toPAGE_SIZE. that's not a suggestion, that's the rule. π
π₯ SEE ALSO π₯
go poke these if you want the rest of the raid6 lore:
- Kernel file
./lib/raid/raid6/algos.c raid6_gen_syndrome(9)raid6_xor_syndrome(9)raid6_recov_2data(9)
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
- 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