For RAID 6 in wiki, the extra priority check bit Q is calculated by shifting of bits.
https://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_6
Suppose we would like to distribute our data over n {\displaystyle n} n chunks. Our goal is to define two parity values P {\displaystyle \mathbf {P} } \mathbf {P} and Q {\displaystyle \mathbf {Q} } \mathbf {Q} , known as syndromes, resulting in a system of n + 2 {\displaystyle n+2} n+2 physical drives that is resilient to the loss of any two of them. In order to generate more than a single independent syndrome, we will need to perform our parity calculations on data chunks of size k > 1. {\displaystyle k>1.} {\displaystyle k>1.} A typical choice in practice is a chunk size k = 8 {\displaystyle k=8} {\displaystyle k=8}, i.e. striping the data per-byte. We will denote the base-2 representation of a data chunk D {\displaystyle D} D as d 0 d 1 . . . d k − 1 {\displaystyle d_{0}d_{1}...d_{k-1}} {\displaystyle d_{0}d_{1}...d_{k-1}}, where each d i {\displaystyle d_{i}} d_{i} is either 0 or 1.
...
This system will no longer work applied to a larger number of drives n > k {\displaystyle n>k} {\displaystyle n>k}. This is because if we repeatedly apply the shift operator k {\displaystyle k} k times to a chunk of length k {\displaystyle k} k, we end up back where we started.
In ZFS RAID-Z2 implementation (summarised in a developer blog post, the algorithm is based on H. Peter Anvin's paper, as well as the ZFA RAIDZ source code), should setting data chunk D size to 256 bits, k would be 265 thus allowing 255 different shifts. Then the theoretical maximum number of data drives supported should be 256 drives (no shift + 255 shifts), isn't it?
A maximum is mentioned in H. Peter Anvin's paper, but it says 255, which seems that he left out the no shift case.
Galois field, GF(28), allows for a maximum of 257 drives, 255 (28 − 1) of which can be data drives; the reason for this is shown below.
In addition I do not understand why in shift-2, shift-3, and shift-4 they need to by exclusive-or by x7, while the rest five do not.