From owner-freebsd-arch Mon Jun 4 12:49:29 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by hub.freebsd.org (Postfix) with ESMTP id A7BD337B401 for ; Mon, 4 Jun 2001 12:49:26 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from pain10.corp.disney.com (root@pain10.corp.disney.com [153.7.110.100]) by mail.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id f54JmlA26857 for ; Mon, 4 Jun 2001 12:48:47 -0700 (PDT) Received: from [172.30.50.1] by pain.corp.disney.com with ESMTP for freebsd-arch@FreeBSD.ORG; Mon, 4 Jun 2001 12:50:14 -0700 Received: from mercury.fan.fa.disney.com (mercury.fan.fa.disney.com [153.7.119.1]) by louie.fa.disney.com (8.9.2/8.9.2) with ESMTP id MAA29405 for ; Mon, 4 Jun 2001 12:49:14 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from snoopy.fan.fa.disney.com by mercury.fan.fa.disney.com; Mon, 4 Jun 2001 12:49:14 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Jim Pirzyk Organization: Walt Disney Feature Animation To: Poul-Henning Kamp Subject: Re: sysctl interger type max Date: Mon, 4 Jun 2001 12:49:14 -0700 X-Mailer: KMail [version 1.2] Cc: freebsd-arch@FreeBSD.ORG References: <61282.991683835@critter> In-Reply-To: <61282.991683835@critter> MIME-Version: 1.0 Message-Id: <01060412491406.00744@snoopy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 04 June 2001 12:43 pm, Poul-Henning Kamp wrote: > In message <01060412361804.00744@snoopy>, Jim Pirzyk writes: > >On Monday 04 June 2001 12:26 pm, Poul-Henning Kamp wrote: > >> In message <01060412242703.00744@snoopy>, Jim Pirzyk writes: > >> >In sysctl(8), you can set an integer type, but the max value > >> >an int can be is 2 * N-1 where N is the size of int. This leads > >> >to a problem when trying to set kern.hostid and the number is > >> >greater that 2GB on an IA32 system. So my question is should > >> >CTLTYPE_INT be treated as a long or some other larger numeric > >> >number? Or should we declare some CLTYPE_UINT type? > >> > >> We do have an SYSCTL_UINT these days. > > > >Yes for establishing the oid in the kernel, but sysctl command > >line is limited to 2 * 31 bits even if the variable is set to > >CLTYPE_{UINT|LONG|ULONG}. This means you cannot set the variables > >to a possible range of values. > > Then sysctl(8) is obviously broken... Yes, so how should it be fixed? Add another CTLTYPE_* or make CTLTYPE_INT handle say up to 'long long'? - JimP -- --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message