From owner-freebsd-fs@FreeBSD.ORG Tue Jul 25 15:13:11 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2957416A4DD for ; Tue, 25 Jul 2006 15:13:11 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id A253D43D45 for ; Tue, 25 Jul 2006 15:13:10 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id DD2612086; Tue, 25 Jul 2006 17:13:05 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id CF1112082; Tue, 25 Jul 2006 17:13:05 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id A629433C31; Tue, 25 Jul 2006 17:13:05 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Shane Adams References: <20060724185205.17021.qmail@web31812.mail.mud.yahoo.com> Date: Tue, 25 Jul 2006 17:13:05 +0200 In-Reply-To: <20060724185205.17021.qmail@web31812.mail.mud.yahoo.com> (Shane Adams's message of "Mon, 24 Jul 2006 11:52:05 -0700 (PDT)") Message-ID: <86wta1en0e.fsf@xps.des.no> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: Advice for hacking on ufs/ffs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 15:13:11 -0000 Shane Adams writes: > I'm a programmer that is new to kernel development. I'm interested > in hacking around on UFS and FFS. I only have one machine so I > copied the complete sys/ufs code to a new directory under fs, and > changed a few things to get it to compile and mount. Everything > works, and I was ready to start hacking without worrying so much > about screwing up my system. > > Naturally I've rebooted the machine a few times since then, and I > was wondering if anyone has advice for a fledgling kernel > programmer. (Best practices) Get a test machine with a PXE-capable network adapter, and set up your workstation as bootp / dhcp and NFS server. Having a dedicated test box will save time as you won't have to reboot your workstation to test your code, and setting it up diskless will help even further. A serial console cable will help even more, as it will save you from moving from one keyboard to another and will give you a scrollback of the test machine's console from which you can copy / paste error messages, backtraces etc. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no