LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: advice needed from kernel programmers for LVS patch

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: advice needed from kernel programmers for LVS patch
From: "Jacob Coby" <jcoby@xxxxxxxxxxxxxxx>
Date: Tue, 17 Jun 2003 11:12:59 -0400
> If anybody could offer some advice, or point me in the right direction, as
> to where I could find out all the inserted code that would need to be
added
> to IPVS (ie, the antefacto patch which patches the IPVS and kernel
source),
> this would be really helpful for everyone.  I've looked over the IPVS
source
> code myself, and found where the other IPVS sysctls are added, but I just
> don't understand it well enough to know what I'm doing.

I didn't see your question answered, so I thought I'd chime in with a bit of
help.

http://www.tldp.org/LDP/lkmpg/

It is a bit old, but it should at least point you in the right direction.

specifically, look into proc_register and the procfile_read(char *buffer,
char *buffer_location, off_t offset, int buffer_length, int zero) callback.
You basically just want a static char *antefacto_ident (which is set to
"antefacto-2.4.19-1.0.7" at compile time) and set *buffer_location=ident in
the callback, returning strlen(ident).

You'll want to work with the antefacto patch applied, and generate another
patch from the antefacto-patched source.  That way, hopefully, you should be
able to apply antefacto and then antefacto-ident (or whatever you call it)
in order to the vanilla kernel without issues.

-Jacob

<Prev in Thread] Current Thread [Next in Thread>