Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/embedded/conf Disklabel need to use sectors, n...



details:   https://anonhg.NetBSD.org/src/rev/53cc0c30923a
branches:  trunk
changeset: 785179:53cc0c30923a
user:      htodd <htodd%NetBSD.org@localhost>
date:      Fri Mar 01 14:28:22 2013 +0000

description:
Disklabel need to use sectors, not bytes. Thanks to agc.

diffstat:

 distrib/utils/embedded/conf/evbarm.conf |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 77e3fa071db7 -r 53cc0c30923a distrib/utils/embedded/conf/evbarm.conf
--- a/distrib/utils/embedded/conf/evbarm.conf   Fri Mar 01 14:05:43 2013 +0000
+++ b/distrib/utils/embedded/conf/evbarm.conf   Fri Mar 01 14:28:22 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: evbarm.conf,v 1.9 2013/02/21 15:13:10 hans Exp $
+# $NetBSD: evbarm.conf,v 1.10 2013/03/01 14:28:22 htodd Exp $
 # evbarm shared config
 #
 image=$HOME/${board}.img
@@ -14,7 +14,9 @@
 msdosid=12
 
 make_label_evbarm() {
-       local totalsize=$(( ${newsize} * 1024 * 2 ))
+       # compute all sizes in terms of sectors
+       local totalsize=$(( ${newsize} * 1024 * 2 / 512 ))
+
        local swapsize=$(( ${swap} * 1024 ))
        local bootsize=$(( ${boot} * 1024 ))
 



Home | Main Index | Thread Index | Old Index