LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ipvs-0.9.5 single patch against kernel 2.4.12

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ipvs-0.9.5 single patch against kernel 2.4.12
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Sun, 21 Oct 2001 21:18:03 +0800 (CST)
On Sat, 20 Oct 2001, Roberto Nibali wrote:

> Hello Wensong,
>
> > The single patch of ipvs 0.9.5 against kernel 2.4.12 is available at
> > http://linux-vs.org/software/kernel/linux-2.4.12-ipvs-0.9.5.patch.gz
>
> s/kernel/kernel-2.4/
>

Sorry for this mistake.

>
> How about the ipvsadm -h for systems that have no ipvs built and/or
> loaded? As a cheatsheet or reference.
>

Sorry that I don't like the code is patched in this way (the code doesn't
look well organized. :))). If people want to see "ipvsadm -h" for
brief instructions, they usually have had ipvs built, and can see "man
ipvsadm" for detailed info. :)

Cheers,

Wensong


> --- ipvs-0.9.4/ipvs/ipvsadm/ipvsadm.c   Tue Sep 18 17:42:54 2001
> +++ ipvs-0.9.4-ratz/ipvs/ipvsadm/ipvsadm.c      Thu Oct 18 08:02:18 2001
> @@ -281,6 +281,14 @@
>  {
>         int result;
>
> +       /* allow print help even if ipvs modules are not compiled or loadable 
> */
> +       if (argc == 2) {
> +               if ( strncmp(argv[1], "-h", strlen(argv[1])) == 0 || \
> +                    strncmp(argv[1], "--help", strlen(argv[1])) == 0 ){
> +                       usage_exit(argv[0], 0);
> +               }
> +       }
> +
>         if (ipvs_init()) {
>                 /* try to insmod the ip_vs module if ipvs_init failed */
>                 if (modprobe_ipvs() || ipvs_init())
>
>
> Best regards,
> Roberto Nibali, ratz
>
>



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