Subject: adding a filesystem
To: None <tech-kern@netbsd.org>
From: Valentin Pepelea <valentin@netcom.com>
List: tech-kern
Date: 12/05/1998 19:12:45
I've got a bug that's driving me up the wall. In order to avoid killing my own
harddrive with filesystem enhancements, I've created a new one by copying the
ufs/ffs tree to jfs/jffs. "j" stands for "Jesus", as divine help is required
to keep peace on earth. Basically, all the "ufs" references are renamed as
"jfs" and "ffs" as "jffs". I have also added a MOUNT_JFFS entry to mount.h and
vfs_syscalls.c. Fine.

In fstab, both / and /usr are defined as ffs type. The disklabel also
identifies those two as 4.2BSD.

After recompiling the kernel and /usr/src/sbin and installing & rebooting,
Mounting a third partition as either ffs or jffs works fine without confusion,
But when booting, the kernel says root is of jffs type. mount also tells me
that / is of jffs type while /usr is of the correct ffs type. WTF? Jesus?

Well, where does the kernel get its filesystem information? Neither fstab nor
the disklabel says that root is of jffs type. Did I miss something?

Valentin