[OpenAFS-devel] automatically spawning afsd from kernelspace?

Troy Benjegerdes hozer@hozed.org
Wed, 18 May 2005 00:32:07 -0500


On Tue, May 17, 2005 at 10:04:38PM -0700, Russ Allbery wrote:
> Adam Megacz <adam@megacz.com> writes:
> 
> > Is there any reason (other than that nobody's done it yet) that
> > libafs.ko couldn't spawn afsd itself when needed (ie when /afs gets
> > mounted)?
> 
> > This would (IMHO) eliminate the need for a lot of
> > distribution-specific /etc/init.d stuff.  Default afsd options could
> > be compiled into the kernel and overridden with bootprompt parameters
> > or "echo [options] > /proc/afs/afsd_options".
> 
> Honestly, I like the current method of passing options to the kernel
> better.  I'm not sure how this would eliminate the need for a lot of
> distribution-specific /etc/init.d stuff; most of the cruft in the init
> script revolves around loading the kernel module and setting the options,
> and both would still be needed regardless of what mechanism you want to
> use to pass the options to the kernel.

Frankly, the /etc/init.d scripts are crap, and should be thrown away and
re-written from scratch, ideally with some in-line docs on tuning
parameters.

Loading the module should consist of 'modprobe openafs', not the several
hacks there of are looking in several different places. And no, I don't
have time to re-write them, I'm just being a whiner right now.