1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

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:
Poul-Henning Kamp 2002-03-27 21:16:49 +00:00
parent 30af5d1325
commit b7cb368d31
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93292

View File

@ -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;