| From | Sent On | Attachments |
|---|---|---|
| Shane Adams | Jul 24, 2006 6:51 pm | |
| Eric Anderson | Jul 24, 2006 7:06 pm | |
| Shane Adams | Jul 24, 2006 7:11 pm | |
| Shane Adams | Jul 24, 2006 7:41 pm | |
| Eric Anderson | Jul 24, 2006 7:50 pm | |
| Dag-Erling Smørgrav | Jul 25, 2006 3:12 pm | |
| Eric Anderson | Jul 25, 2006 4:12 pm | |
| Shane Adams | Jul 25, 2006 5:54 pm | |
| Rick C. Petty | Jul 25, 2006 6:33 pm | |
| Eric Anderson | Jul 25, 2006 6:39 pm | |
| Dag-Erling Smørgrav | Jul 25, 2006 6:49 pm | |
| Dag-Erling Smørgrav | Jul 27, 2006 7:14 am | |
| Rick C. Petty | Jul 27, 2006 5:54 pm | |
| Oliver Fromme | Jul 28, 2006 9:27 am | |
| Rick C. Petty | Jul 28, 2006 3:10 pm | |
| Shane Adams | Aug 1, 2006 8:54 pm | |
| Eric Anderson | Aug 2, 2006 3:44 am |
| Subject: | Advice for hacking on ufs/ffs | |
|---|---|---|
| From: | Shane Adams (adam...@yahoo.com) | |
| Date: | Jul 24, 2006 7:11:23 pm | |
| List: | org.freebsd.freebsd-fs | |
Ah that makes sense, using an emulator so you can remote debug and step through
the code. Nice. I had not heard of qemu, but I will check it out and see if i
can get a similar setup working. nice suggestions thank you!
I have debian running under vmware on my windows laptop, I wonder if I can
remote debug what that platform. Something to look into.
Cheers, Shane
----- Original Message ---- From: Eric Anderson <ande...@centtech.com> To: Shane Adams <adam...@yahoo.com> Cc: free...@freebsd.org Sent: Monday, July 24, 2006 12:06:47 PM Subject: Re: Advice for hacking on ufs/ffs
On 07/24/06 13:52, Shane Adams wrote:
Hello,
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)
I read someplace that the UFS (some revision of the code) was written in
userland then ported to the kernel. Is that how McKusick implemented
softupdates or snapshots? The code is so dense I have trouble fathoming writing
that much code in the mannor in which I've been tackling it.
When I make a mistake, the machine freeze's, then reboots. I don't seem to get
a kernel dump (or I'm not looking in the right location).
Anway, kind of a broad question I know, just looking for a few tips!
Cheers, Shane
Hi Shane! I'm in the same situation, and what I've done, is have a local copy of the cvs repo, then I check out (and/or update) a working copy into a separate directory, work on it, make changes, etc. Then I build (or build world, or whatever I need), and install to a mdconfig'ed disk image. Then, I boot qemu using that image, and run my tests, do debugging from the debugger, etc. I also nfs mount (using tap devices) the /usr/src in qemu from my separate checked out src tree on my local machine, so I can boot the qemu machine, and do buildworlds inside it (although it's slower).
This seem to work very well for me, and I do all my development on my laptop while on-the-go. I too am tinkering with filesystems.
Eric
--
------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't.
------------------------------------------------------------------------





