Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/distrib/common Pull up following revision(s) (requested b...
details: https://anonhg.NetBSD.org/src/rev/3b88e7c8d62a
branches: netbsd-3
changeset: 577566:3b88e7c8d62a
user: riz <riz%NetBSD.org@localhost>
date: Sun Nov 27 22:45:09 2005 +0000
description:
Pull up following revision(s) (requested by dsl in ticket #1005):
distrib/common/buildfloppies.sh: revision 1.11
Report the exact number of free bytes in the install floppy images.
diffstat:
distrib/common/buildfloppies.sh | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 012007479a25 -r 3b88e7c8d62a distrib/common/buildfloppies.sh
--- a/distrib/common/buildfloppies.sh Sun Nov 27 22:41:42 2005 +0000
+++ b/distrib/common/buildfloppies.sh Sun Nov 27 22:45:09 2005 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: buildfloppies.sh,v 1.9.2.1 2005/09/19 20:59:41 tron Exp $
+# $NetBSD: buildfloppies.sh,v 1.9.2.2 2005/11/27 22:45:09 riz Exp $
#
# Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -101,6 +101,22 @@
trap "rm -f ${floppy}" 0 1 2 3 # EXIT HUP INT QUIT
rm -f ${floppybase}?${suffix}
+# Try to accurately summarise free space
+#
+[ "$files" = "boot netbsd" ] && {
+ set -- $(ls -ln boot)
+ boot_size=$5
+ boot_pad=$(($(roundup $boot_size 512) * 512 - $boot_size))
+ set -- $(ls -ln netbsd)
+ netbsd_size=$5
+ netbsd_pad=$(($(roundup $netbsd_size 512) * 512 - $netbsd_size))
+ echo Free space: boot $boot_pad, netbsd $netbsd_pad, \
+ at end $(($maxdisks * ($floppysize - 16) * 512 \
+ - 512 - $boot_size - $boot_pad \
+ - 512 - $netbsd_size - $netbsd_pad \
+ - 512 * 2))
+}
+
# create tar file
#
dd if=/dev/zero of=${floppy} bs=8k count=1 2>/dev/null
Home |
Main Index |
Thread Index |
Old Index