From 1e92db558a09ecba4bd9456b48b5334ed8a67bf8 Mon Sep 17 00:00:00 2001 From: fvdl Date: Fri, 20 Oct 2000 21:49:00 +0000 Subject: [PATCH] Add a little gdb script to switch off FFS clustering. This avoids buffer cache lockups in INSTALL_TINY (it has very little buffers to spare). This is the least intrusive way of fixing that. --- distrib/i386/floppies/kernel-ramdisk/Makefile | 3 ++- distrib/i386/floppies/kernel-ramdisk/nocluster.gdb | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 distrib/i386/floppies/kernel-ramdisk/nocluster.gdb diff --git a/distrib/i386/floppies/kernel-ramdisk/Makefile b/distrib/i386/floppies/kernel-ramdisk/Makefile index cf0e261dade3..a869334e379c 100644 --- a/distrib/i386/floppies/kernel-ramdisk/Makefile +++ b/distrib/i386/floppies/kernel-ramdisk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2000/09/27 16:04:14 fvdl Exp $ +# $NetBSD: Makefile,v 1.2 2000/10/20 21:49:00 fvdl Exp $ TOP= ${.CURDIR}/.. @@ -39,6 +39,7 @@ netbsd.INSTALL_LAPTOP.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_LAPTOP/netbsd ${RAMDISK netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T} cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp + gdb --write -batch -x ${.CURDIR}/nocluster.gdb netbsd.tmp ${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_T} nm netbsd.tmp > netbsd.INSTALL_TINY.symbols ${STRIP} netbsd.tmp diff --git a/distrib/i386/floppies/kernel-ramdisk/nocluster.gdb b/distrib/i386/floppies/kernel-ramdisk/nocluster.gdb new file mode 100644 index 000000000000..f4cb9dcc06bc --- /dev/null +++ b/distrib/i386/floppies/kernel-ramdisk/nocluster.gdb @@ -0,0 +1,2 @@ +set doclusterwrite=0 +set doclusterread=0