diff options
author | phk <phk@FreeBSD.org> | 2002-03-27 21:16:49 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-03-27 21:16:49 +0000 |
commit | d3fb224518d049e4480bb92ad819336b0b5643a6 (patch) | |
tree | e69c22529c2da3141d7ab002a213adb4300eeca7 /sys/geom/geom_bsd.c | |
parent | ce5de303f0ed9d1db4210d1833fccfc0e2e59ff7 (diff) | |
download | FreeBSD-src-d3fb224518d049e4480bb92ad819336b0b5643a6.zip FreeBSD-src-d3fb224518d049e4480bb92ad819336b0b5643a6.tar.gz |
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.
Diffstat (limited to 'sys/geom/geom_bsd.c')
-rw-r--r-- | sys/geom/geom_bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 2e17160..b982b8b 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -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; |