Calculate the checksum the right place for alpha. The fact that this
worked for the beast disklabel only goes to show how weak a simple parity really is.
This commit is contained in:
parent
30af5d1325
commit
b7cb368d31
@ -257,7 +257,7 @@ g_bsd_alpha(struct g_consumer *cp, int secsize, struct disklabel *dl)
|
||||
g_bsd_ledec_disklabel(buf + 64, dl);
|
||||
if (dl->d_magic == DISKMAGIC &&
|
||||
dl->d_magic2 == DISKMAGIC &&
|
||||
g_bsd_lesum(dl, buf) == 0)
|
||||
g_bsd_lesum(dl, buf + 64) == 0)
|
||||
error = 0;
|
||||
else
|
||||
error = ENOENT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user