Hi all,

I saw (somewhere) nobody is working on softraid support in /etc/rc, so I 
wrote a 
little diff, heavily inspired by the code currently in rc (why reinvent 
the wheel after all

Some decisions I've made during the writing:

* it is better to have softraid.conf as a command line as there is 
(imho) a lot of options (according to bioctl(8)). So there is:
/var (will explain further)
-F -c C -l /dev/wd0e softraid0 (bioctl arguments (without bioctl))
* the first line of each item in softraid.conf is a comment - I think 
it's better to have the comments on separate line than have e.g.
some comment : -c C -l /dev/wd0e softraid0

What I'm not sure:

* If the patch is ok (do you apply to /etc/rc directly 
or /usr/src/etc/rc?)
* If the softraid_conf() and softraid_conf are placed correctly (I hope 
they are :-))
* is softraid_conf good name, or should it rather be bioctl_conf (as the 
command is bioctl)?

Don't be afraid of -F switcher of bioctl, i'm sending the patch for 
bioctl in another mail.

Could anyone please take a look and write what's wrong/right, please?

Thanks,
Merlyn


-- 
merlyn <[email protected]>
OpenBSD ufo.merlyn.cz 4.8 GENERIC#1 i386
# comment
# bioctl arguments (without bioctl itself)
#
# Examples
# /nfs - help: writen on the table
# -F -c 1 -l /dev/sd2e,/dev/sd3e,/dev/sd4e,/dev/sd5e softraid0
#
# Write password for my privat data
# -F -c C -l /dev/sd2e softraid0
#
# -F is highly recommended

[demime 1.01d removed an attachment of type text/x-diff which had a name of 
patch_rc.patch]

Reply via email to