I have been constructing a filesystem. The filesystem automatically registers at boot as the driver registers with the kernel using "register_filesystem" During the kernel's do_mount() phase, the boot process tries to mount /dev/root. I did not want the filesystem active until the system is already running. This filesystem is more like a utility filesystem and should not try to mount anything until the system boot sequence has finished. Is there a flag to disable this seemingly automatic attempt to mount /dev/root when I register the filesystem with the kernel? I assume there is good reason it tries to mount /dev/root?
-Matt
solution
The kernel seems to check file systems against the device based on the order specified in the kernel tree's Makefile (linux-xxxx/fs/Makefile). Since I placed my home-brew filesystem Makefile-build-target in the Makefile before the actual filesystem of the disk that was booting, my filesystem was called first to see if it could read the superblock of the booting device. Solution was to place the filesystem target in the Makefile after the actual filesystem of the drive booting. This should not kill the system no matter what filesystem is being booted, however my fs requires some unique features that might only be available after a base filesystem has loaded, thus I need the device to properly sync with its native filesystem before mine should be used.
-Matt