Re: Why is TUNABLE_INT discouraged?

2010-08-09 Thread Dag-Erling Smørgrav
Ivan Voras writes: > Dag-Erling Smørgrav writes: > > Not sure what you mean. The original issue was that someone had used > > TUNABLE_INT() for something that was actually a memory address. I > > changed it to TUNABLE_ULONG(). Of course, if your tunable is a boolean > > value or something like

Re: Why is TUNABLE_INT discouraged?

2010-08-09 Thread Dag-Erling Smørgrav
Garrett Cooper writes: > Why would someone express a tunable in a memory address (not being > sarcastic... I just don't see why it makes sense right now, but if > there's a valid reason I'm more than happy to be educated :)..)? A few examples: hw.acpi.host_mem_start hw.pci.host_mem_start hw.phys

Re: glabel "force sectorsize" patch

2010-08-09 Thread Dag-Erling Smørgrav
Marius Nünnerich writes: > I did not think of a new GEOM class that looks like glabel but one > that has no metadata stored on disk . It is then activated and > controlled by loader.conf variables. (Maybe like gnop? If I remember > correctly, I did not take a look at that class for ages). As you

Re: glabel "force sectorsize" patch

2010-08-09 Thread Ivan Voras
On 9 August 2010 10:51, Dag-Erling Smørgrav wrote: > Marius Nünnerich writes: >> I did not think of a new GEOM class that looks like glabel but one >> that has no metadata stored on disk . It is then activated and >> controlled by loader.conf variables. (Maybe like gnop? If I remember >> correctl

real memory falsely reports 8G, BIOS & avail memory reports 1G

2010-08-09 Thread Julian H. Stacey
Hi hack...@freebsd.org A laptop here emits a puzzlingly dmesg to both 8.1-RC2 & 8.1-RELEASE: real memory = 8572108800 (8175 MB) avail memory = 1018789888 (971 MB) BIOS reckons it has 1G. No panel to unscrew to inspect memory. I don't beleive 8G. If this is a bug in FreeBSD detect

Re: glabel "force sectorsize" patch

2010-08-09 Thread Dag-Erling Smørgrav
Ivan Voras writes: > Dag-Erling Smørgrav writes: > > Marius Nünnerich writes: > > > I did not think of a new GEOM class that looks like glabel but one > > > that has no metadata stored on disk . It is then activated and > > > controlled by loader.conf variables. (Maybe like gnop? If I > > > reme

Re: real memory falsely reports 8G, BIOS & avail memory reports 1G

2010-08-09 Thread Julian H. Stacey
> A laptop here emits a puzzlingly dmesg to both 8.1-RC2 & 8.1-RELEASE: > real memory = 8572108800 (8175 MB) > avail memory = 1018789888 (971 MB) > BIOS reckons it has 1G. No panel to unscrew to inspect memory. > I don't beleive 8G. PS sysctl -a | grep mem vm.kmem_size_scale: 3 v

Re: glabel "force sectorsize" patch

2010-08-09 Thread Ivan Voras
On 9 August 2010 14:37, Dag-Erling Smørgrav wrote: > Ivan Voras writes: >> Dag-Erling Smørgrav writes: >> > Marius Nünnerich writes: >> > > I did not think of a new GEOM class that looks like glabel but one >> > > that has no metadata stored on disk . It is then activated and >> > > controlled

Re: Improvement for Distributed Audit Project

2010-08-09 Thread Janne Snabb
On Thu, 29 Jul 2010, Sergio Ligregni wrote: > /* >* We have these posibilities, only the first one is allowed >* 20100619223115.20100619223131 20100619223131.not_terminated >* current >*/ > if (strlen(path) == 29 && path[14] == '.' && isdigit(path[15])) { > /* XXX To improv

Re: Improvement for Distributed Audit Project

2010-08-09 Thread jhell
On 08/09/2010 13:24, Janne Snabb wrote: > On Thu, 29 Jul 2010, Sergio Ligregni wrote: > >> /* >>* We have these posibilities, only the first one is allowed >>* 20100619223115.20100619223131 20100619223131.not_terminated >>* current >>*/ >> if (strlen(path) == 29 && path[14] ==

tiny sys/sys/signal.h cleanup

2010-08-09 Thread Alexander Best
hi there, just wanted to get some feedback for this tiny patch and if people think it makes sense. cheers. alex -- a13x Index: sys/sys/signal.h === --- sys/sys/signal.h (revision 24) +++ sys/sys/signal.h (working copy) @@ -47,6