134
134
# Compute CRC of primary partition array and put it in substr ($pri, 88, 4)
135
135
my $pa_crc = partition_array_crc $pri_or_backup, $n_pe, $in;
136
substr ($$buf, 88, 4) = pack ('L', $pa_crc);
136
substr ($$buf, 88, 4) = pack ('L<', $pa_crc);
138
138
# In the backup header, we must also set the 8-byte "Partition entries
139
139
# starting LBA number" field to reflect our new value of $n_pe.