Question: Background information ( ARM LANGUAGE ) In RAID 4 and 5 systems, a parity block is calculated for each group of blocks across multiple drives.
Background information ARM LANGUAGE
In RAID and systems, a parity block is calculated for each group of blocks across multiple drives. The parity block is calculated by applying XOR.
Eg in a fourdrive RAID system we could have
PA B C
where A B C and P are blocks of data, anywhere from bytes to MiB or more, based on
the cluster size.
Exercise
Calculate the XOR parity of an array of numbers given in memory, eg:
n DCD data DCD
The result should be a single bit number.
Store the result in memory x
Use the RN directive to replace direct references to registers, with symbolic names.
Exercise
Use the result obtained in the previous exercise to recover one of the numbers in the array assumed to be lost or corrupted
For example, if we use just of the previous numbers and we perform a sequence of XOR operations between them and the parity found, we should get
n DCD data DCD
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
