Hi all,

As promised a couple of days ago, here's the patch set to allow for mounting of md(4) based filesystems at boot time:
http://www.earthmagic.org/~lonewolf/FreeBSD/mdmount.tar.gz


This archive contains a number of files, including four rc.d scripts, a rc.conf diff, a couple of datafiles and some manpages for said data files.

What this allows is to create/mount the various types of md nodes (vnode, malloc, swap) at boot time. I've been trying to think real hard on where in the boot order they need to go in order to provide the most benefit. There have been two conflicting directions; On the one hand there is the want to be able to attach to files residing on remote hosts (via nfs or samba), and on the other there is the need to cater for a swap backed /tmp filesystem. And also not to scribble on the swap before savecore has had a chance to run. I'm not sure I have got the position nailed down, and I'm open to constructive criticism.

To take care of the permissions on a fresh /tmp, I have provided a
'fsperm' script which takes fs=mode pairs in an rc.conf variable and chmod's accordingly.


Also of perhaps dubious validity is the fact that one of the scripts PROVIDE:s 'mountall', in the belief that this will not only provide a missing dependency, but also fill in the gap between mountcritremote and where mountall sits on NetBSD. I'm not terribly fussed either way, it was mainly just a convenient way to get rid of some of the errors rcorder(8) spits out, and make sure that things that depend on 'mountall' actually are run after all the filesystems have been made available.

While I believe that these scripts are somewhat mature (read: hasn't newfs'd the wrong slice yet), the standard disclamer applies, ESPECIALLY SINCE NEWFS(8) IS RUN! Well, under certain circumstances it is, anyway.

Questions, comments, and requests are very welcome. I'd very much like to see this (or something functionally equivalent) added in time for 5.2. As always, it's because it's a personal itch of mine :)
I've tried to make it a more generic scratch so that it'll be useful across the board, however. Seeing as we have such a nifty thing as md(4) (thanks phk!) it's a shame not being able to use it at boot by default.


Since this is my first stab at rcNG scripts (and manpages for that matter), feel free to bash style etc accordingly.

Regards,
/Johny
--
Johny Mattsson - System Designer ,-.   ,-.   ,-.  There is no truth.
http://www.earthmagic.org     _.'  `-'   `-'  There is only perception.

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to