Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/amiga Fix space calculation for dump header. ...
details: https://anonhg.NetBSD.org/src/rev/d19e0520cb5a
branches: trunk
changeset: 338776:d19e0520cb5a
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 07 20:00:11 2015 +0000
description:
Fix space calculation for dump header. Round up to clicks to avoid
disk alignment issues.
diffstat:
sys/arch/amiga/amiga/machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 77a0d2a25db9 -r d19e0520cb5a sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c Sun Jun 07 15:06:24 2015 +0000
+++ b/sys/arch/amiga/amiga/machdep.c Sun Jun 07 20:00:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.243 2014/03/24 20:06:31 christos Exp $ */
+/* $NetBSD: machdep.c,v 1.244 2015/06/07 20:00:11 mlelstv Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -50,7 +50,7 @@
#include "empm.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.243 2014/03/24 20:06:31 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.244 2015/06/07 20:00:11 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -535,7 +535,7 @@
else if (dumplo == 0)
dumplo = nblks - btodb(ctob(dumpsize));
}
- --dumplo; /* XXX assume header fits in one block */
+ dumplo -= btodb(ctob(btoc(MDHDRSIZE + ctob(1) - 1)));
/*
* Don't dump on the first PAGE_SIZE (why PAGE_SIZE?)
* in case the dump device includes a disk label.
Home |
Main Index |
Thread Index |
Old Index