Re: Newer snaps throw kernel panic...

2006-05-21 Thread Miod Vallat
> I've got a server that has been running fine with a bsd.mp kernel 
> from Apr 23.  I took it up to -current on May 19th and it threw a panic on 
> boot.  I booted from the old kernel and it was fine, so I cvsuped the 
> source and built -current again.  Same thing.

This should be fixed with sys/dev/ic/wdc.c r 1.93.

Miod



Re: The danger of 3.

2006-05-21 Thread SkyBlueshoes

What an appalling display of creativity...

SkyBlueshoes

Galatians 2:20 - I am crucified with Christ: nevertheless I live; yet 
not I, but Christ liveth in me: and the life which I now live in the 
flesh I live by the faith of the Son of God, who loved me, and gave 
himself for me.  -KJV-


Christopher Chaney wrote:

Now since I was betrayed by the Christians,
one should never wonder in a chance of ten,
why I refuse to play pretend with them,
on the power of two, bearing witness to the wandering
obsidian Jew, fuck what you think you knew.

Too, the power of thought, one or zero, bank runs
expected soon, since human souls are bought.

Three in question, misdirection, inflection, playing
hate conception, mind control, Orwellian proles, the
issue is a trinity, man-made Divinity.

Four the legacy of Moors to Moore, alphanumeric
science resistance alliance, now listen, no longer
wishing for the promises of nuclear fission, fusion
illegality, abnormal corporate reality.

You wonder why I don4t give a damn, I fled Americans
for reasons many foreigners won4t understand. Fuck
UNCLE SAM, treat these words with care, if you dare
repeat them, expect dissidence from Pakistan.

Now who I am, is a known quantity, we as Black men in
this world are no longer free.

Prepare for war, on the basis of FOUR, elemental
magick old as time, of alchemy I rhyme.

Should I cry at the end of time, it's do or die, your
mind will fry, eight steps to perfection, biowarfare
terror inspection-infections ever-present and planned
ahead of the hour, the populace is dour, and this
planet the corrupt will scour.

You say I live, my soul dead, my mind riven to give,
schizoid chemical imbalance, city slicker like
Palance, an American outlaw, above your false laws,
the Fight Club is here to stay, recall every term I
say.

If its you versus them, prepare to kill them.

If its them versus you, plan everything you do.

If its love you seek, you should expect to find the
weak.

If its hate you embrace, your demographic is
commonplace.

If its knowledge you are after, heist a college
hereafter.

If its time and you know youre at the end of the line,
design weaponry now and pass it on to your kin in
time.

In Paris I blast first, maquis verse while driving
your Germanic hearse, its your corpse inside, and I
smile as I ride, its your deliverance to the grave and
I
never behaved.

The five colors represent the magick well, avoid
counterfeit elements that enemies sell.

I speak of secrets known only to a few, expect aerial
warfare so anti-aircraft missiles are due.

This is no bullshit, their Eye in the Sky, they will
militarize space, elitist ideology is commonplace.

No middle class, the poor are dead and they know it,
If you have money, equity, or wealth, you are wise
not to show it.

Greenhouses are the breath of life, expect
intracommunal strife from external infiltration, the
Beast of Babylon is everywhere, American nation.

The sound of Death is a series of tones, rites held
sacred by Masons, Illuminati, and the Skull and Bones.

Yale is a crypt, thusly, my words descript. Rip the
fabric of their propaganda, escape from their veranda.

The Calls are known, but, they refuse access to the
throne, we are as Kings in a time of distress, the
Darkness they shall bless.

This is a thieve's world, and may the best team win,
if you have their gold you are given reason to grin.

The money is assets and water, chemistry and matter
sold like LSD blotter at the local supermarket--its
their methodology of mind control, clean up your
brain, or you will be under their control.

Their single eye is real, reptilian disguise I surmise
in uniform fashion, use chloroform for blasting.

In the last times, there are no more laws to follow,
their morality is hollow on the Sixth Day, you may
not ever see the morrow.

Subliminal suggestion from the media I shun
as a criminal objective, fear their Clear Skies
Initiative, this missive real and their intent feral,
to avoid retinal scanning wear lenses known as
scleral.

You should expect to die, if youre naive enough to ask
why, their money you will buy as the currency of life
fades, NYC modus operandi operatic Helga thrives.

Perfect dark alias from E3 to C4, attack without
hesitation once these bitches enter your door.

"The Score" was in 96, the time is sick now, amusement
for sale like peace proffered in the last days, there
shall be Hell to pay.

Labyrinthine alien circuitry and nanotechnology do not
wait for Congressional approval, as a matter of course

prepare for cadaver removal.

KID A everpresent represents TEAM C, TEAM C is dead,
but beware TEAM B, TEAM B is here, but, by default
A wins, TEAM A is dying for unnatural sins.

They are after money like the Gs of old, become borne
of heart, or stay frozen in the cold.

My information light itself, starmaps for the chosen,
but our war is real, if you lack power and strength
then
pain you are guaranteed to feel.

Some call upon Jesus like he actually needs us, that
is a

Re: Raid 1 and 2 Disks: kernel panic with "init: not found" when reboot into broken mirror

2006-05-21 Thread ip

On 5/20/06, Joachim Schipper <[EMAIL PROTECTED]> wrote:

>
>...
>Kernelized RAIDFrame activated
>dkcsum wd0 matches BIOS drive 0x80
>dkcsum wd1 matches BIOS drive 0x81
>root on wd1a
>rootdev=0x10 rrootdev=0x320 rawdev=0x312
>warning: /dev/console does not exist
>init: not found
>panic: no init
>...
>ddb>
>

This looks like the RAID is not autoconfiguring at all. Maybe you didn't
build the kernel with the proper options, or maybe you forgot raidctl -A
root?

Joachim



Hi joachim,
it seems so, but I haven't forgotten the above command
and the kernel config file options are:

# GENERIC.RAID
  include "arch/i386/conf/GENERIC"
  option RAID_AUTOCONFIG
  pseudo-device raid 4

However, this week I will re-start from zero and I'll write you,
thanks ;-)

 ip



Re: ServeRAID 4M

2006-05-21 Thread Anton Maksimenkov

Aside from the other comments, I'll add that aac(4) was disabled because
it was buggy and Adaptec wouldn't provide documentation.
Theo was quite clear about this at the time, see the 3.8 release notes.


Ok, I remember about situation with Adaptec... But what with "isp"
driver (from FreeBSD)? After  some "researches" I think that aac(4) is
not the way for ServeRAID 4M, but "isp" is.

--
engineer



Newer snaps throw kernel panic...

2006-05-21 Thread Jeff Ross

Hi all,

I've got a server that has been running fine with a bsd.mp kernel 
from Apr 23.  I took it up to -current on May 19th and it threw a panic on 
boot.  I booted from the old kernel and it was fine, so I cvsuped the 
source and built -current again.  Same thing.


Here is the tail end of the dmesg (bsd.MP) on the screen:

pciide0: couldn't map native pci interrupt
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckpc0: using irq1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq12 for aux slot
wsmouse0 at psm0 mux0
uvm_fault(0xd07045e0, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at  wdcprobe+0xf4:  call   *0x68(%eax)
ddb{0}

ps output is

   PID   PPID   PGRPUID  SFLAGS   WAIT COMMAND
*0 -1  0  0  7  0x80204swapper

trace output is:

wdcprobe(d0836310,0,0,0) at wdcprobe+0xf4
wdc_isa_probe(d2c89600,d2c8b000,d0836e820,d06c29ec) at wdc_isa_probe(0xa9)
isascan(d2c89600,d2c8b000,4,1) at isascan+0xf9
config_scan(d0553e68,d2c89600,d0836e80,0,d0836e80) at config_scan+0xaf
config_attach(d2bc5fc0,d06c2764,d0836e80,d0477c48) at config_attach+0xef
mainbus_attach(0,d2bc5fc0,0,0,d0836ef0) at mainbus_attach+0x12d
config_attach(0,d06c1468,0,0,d07046c0) at config_attach+0xef
config_rootfound(d06553dc,0,d0836f38,d0448acd) at config_rootfound+0x27
cpu_configure(0,1,3,0,0) at cpu_configure+0x24
main(0,0,0,0,0) at main+0x372)

Booting from a /bsd single processor throws the same kernel panic.

Here is the dmesg from the last good kernel:

OpenBSD 3.9-current (GENERIC.MP) #0: Sun Apr 23 10:14:48 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 1 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
real mem  = 2146988032 (2096668K)
avail mem = 1952911360 (1907140K)
using 4278 buffers containing 107450368 bytes (104932K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(47) BIOS, date 03/30/01, BIOS32 rev. 0 @ 0xfd85e
apm at bios0 function 0x15 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd7c0/0x840
pcibios0: PCI BIOS has 11 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks OSB4" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x1800 0xc9800/0x5400
mainbus0: Intel MP Specification (Version 1.4) (INTELSTL2)
cpu0 at mainbus0: apid 3 (boot processor)
cpu0: apic clock running at 133 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class) 1 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
mainbus0: bus 0 is type PCI 
mainbus0: bus 1 is type PCI 
mainbus0: bus 2 is type ISA 
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 11, 16 pins

ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 11, 16 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x06
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x06
pci1 at pchb1 bus 1
ahc0 at pci1 dev 4 function 0 "Adaptec AIC-7899 U160" rev 0x01: irq 9
scsibus0 at ahc0: 16 targets
ahc1 at pci1 dev 4 function 1 "Adaptec AIC-7899 U160" rev 0x01: irq 5
scsibus1 at ahc1: 16 targets
st0 at scsibus1 targ 3 lun 0:  SCSI2 1/sequential removable
st0: density code 0x13, variable blocks, write-enabled
vga1 at pci0 dev 2 function 0 "ATI Mach64 GV" rev 0x7a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x08, i82559: irq 10, address 
00:d0:b7:b8:0a:d1
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
ahc2 at pci0 dev 7 function 0 "Adaptec AHA-29160 U160" rev 0x02: apic 5 int 7 
(irq 9)
scsibus2 at ahc2: 16 targets
sd0 at scsibus2 targ 0 lun 0:  SCSI3 0/direct fixed
sd0: 17501MB, 19036 cyl, 4 head, 470 sec, 512 bytes/sec, 35843670 sec total
sd1 at scsibus2 targ 1 lun 0:  SCSI3 0/direct fixed
sd1: 17501MB, 19036 cyl, 4 head, 470 sec, 512 bytes/sec, 35843670 sec total
sd2 at scsibus2 targ 2 lun 0:  SCSI3 0/direct fixed
sd2: 17501MB, 19036 cyl, 4 head, 470 sec, 512 bytes/sec, 35843670 sec total
sd3 at scsibus2 targ 3 lun 0:  SCSI3 0/direct fixed
sd3: 17501MB, 19036 cyl, 4 head, 470 sec, 512 bytes/sec, 35843670 sec total
puc0 at pci0 dev 9 function 0 "US Robotics 3CP5610" rev 0x01: com
pccom3 at puc0 port 0 apic 5 int 9 (irq 11): ns16550a, 16 byte fifo
piixpm0 at pci0 dev 15 function 0 "ServerWorks OSB4" rev 0x50
iic0 at piixpm0
pciide0 at pci0 dev 15 function 1 "ServerWorks OSB4 IDE" rev 0x00: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus3 at atapiscsi0: 2 targets
cd0 at scsibus3 targ 0 lun 0:  SCSI0 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: couldn't map native-PCI interrupt

Re: via vt6103 vlan support

2006-05-21 Thread Stuart Henderson
On 2006/05/22 05:39, Raja Subramanian wrote:
> The vlan(4) man page does not mention this chip.  I googled, and
> grepped through /usr/src/sys, but could not arrive at a conclusion.

"If the IFCAP_VLAN_MTU capability is set on a vlan parent, vlan assumes
that the Ethernet chip on the parent can handle oversized frames."

given the output of "grep IFCAP_VLAN_MTU /sys/dev/pci/* /sys/dev/ic/*",
I'd say probably not I haven't been really impressed by the vr
nics, you might want to choose cases that fit at least one PCI slot
so you have the option of fitting a riser and something like fxp(4)
or sk(4) for VLANs/heavier traffic etc in case you don't like the
vr(4). (pretty much any gigabit nic is likely to be acceptable -
OpenBSD supports most of them - but sk(4) out of preference).



The danger of 3.

2006-05-21 Thread Christopher Chaney
Now since I was betrayed by the Christians,
one should never wonder in a chance of ten,
why I refuse to play pretend with them,
on the power of two, bearing witness to the wandering
obsidian Jew, fuck what you think you knew.

Too, the power of thought, one or zero, bank runs
expected soon, since human souls are bought.

Three in question, misdirection, inflection, playing
hate conception, mind control, Orwellian proles, the
issue is a trinity, man-made Divinity.

Four the legacy of Moors to Moore, alphanumeric
science resistance alliance, now listen, no longer
wishing for the promises of nuclear fission, fusion
illegality, abnormal corporate reality.

You wonder why I don4t give a damn, I fled Americans
for reasons many foreigners won4t understand. Fuck
UNCLE SAM, treat these words with care, if you dare
repeat them, expect dissidence from Pakistan.

Now who I am, is a known quantity, we as Black men in
this world are no longer free.

Prepare for war, on the basis of FOUR, elemental
magick old as time, of alchemy I rhyme.

Should I cry at the end of time, it's do or die, your
mind will fry, eight steps to perfection, biowarfare
terror inspection-infections ever-present and planned
ahead of the hour, the populace is dour, and this
planet the corrupt will scour.

You say I live, my soul dead, my mind riven to give,
schizoid chemical imbalance, city slicker like
Palance, an American outlaw, above your false laws,
the Fight Club is here to stay, recall every term I
say.

If its you versus them, prepare to kill them.

If its them versus you, plan everything you do.

If its love you seek, you should expect to find the
weak.

If its hate you embrace, your demographic is
commonplace.

If its knowledge you are after, heist a college
hereafter.

If its time and you know youre at the end of the line,
design weaponry now and pass it on to your kin in
time.

In Paris I blast first, maquis verse while driving
your Germanic hearse, its your corpse inside, and I
smile as I ride, its your deliverance to the grave and
I
never behaved.

The five colors represent the magick well, avoid
counterfeit elements that enemies sell.

I speak of secrets known only to a few, expect aerial
warfare so anti-aircraft missiles are due.

This is no bullshit, their Eye in the Sky, they will
militarize space, elitist ideology is commonplace.

No middle class, the poor are dead and they know it,
If you have money, equity, or wealth, you are wise
not to show it.

Greenhouses are the breath of life, expect
intracommunal strife from external infiltration, the
Beast of Babylon is everywhere, American nation.

The sound of Death is a series of tones, rites held
sacred by Masons, Illuminati, and the Skull and Bones.

Yale is a crypt, thusly, my words descript. Rip the
fabric of their propaganda, escape from their veranda.

The Calls are known, but, they refuse access to the
throne, we are as Kings in a time of distress, the
Darkness they shall bless.

This is a thieve's world, and may the best team win,
if you have their gold you are given reason to grin.

The money is assets and water, chemistry and matter
sold like LSD blotter at the local supermarket--its
their methodology of mind control, clean up your
brain, or you will be under their control.

Their single eye is real, reptilian disguise I surmise
in uniform fashion, use chloroform for blasting.

In the last times, there are no more laws to follow,
their morality is hollow on the Sixth Day, you may
not ever see the morrow.

Subliminal suggestion from the media I shun
as a criminal objective, fear their Clear Skies
Initiative, this missive real and their intent feral,
to avoid retinal scanning wear lenses known as
scleral.

You should expect to die, if youre naive enough to ask
why, their money you will buy as the currency of life
fades, NYC modus operandi operatic Helga thrives.

Perfect dark alias from E3 to C4, attack without
hesitation once these bitches enter your door.

"The Score" was in 96, the time is sick now, amusement
for sale like peace proffered in the last days, there
shall be Hell to pay.

Labyrinthine alien circuitry and nanotechnology do not
wait for Congressional approval, as a matter of course

prepare for cadaver removal.

KID A everpresent represents TEAM C, TEAM C is dead,
but beware TEAM B, TEAM B is here, but, by default
A wins, TEAM A is dying for unnatural sins.

They are after money like the Gs of old, become borne
of heart, or stay frozen in the cold.

My information light itself, starmaps for the chosen,
but our war is real, if you lack power and strength
then
pain you are guaranteed to feel.

Some call upon Jesus like he actually needs us, that
is a joke, the Bible was deliberately broke. Choke on
Nicean poison should you so choose, only you can free
yourself, their truth I still refuse.

Your children will perish, Silent Running by Mike and
the Mechanics is wisdom to cherish.

The Sound of Music was a myth, Black equals Death and
that defines the Scythe.

It soun

via vt6103 vlan support

2006-05-21 Thread Raja Subramanian
Hi All,

I'm planning to purchase a bunch of VIA EPIA boards that come
with onboard VIA VT6103 ethernet chips.  I want to setup vlan(4)
interfaces on this NIC and want to know if it works with obsd 3.9.

I would love to hear any feedback from someone who is using
these chips.  I'm especially interested in knowing if the NIC has
any VLAN MTU issues or if it's capable of using the default 1500
bytes on the vlan interfaces.

The vlan(4) man page does not mention this chip.  I googled, and
grepped through /usr/src/sys, but could not arrive at a conclusion.

Thanks in advance!

- Raja



Re: software load balancing

2006-05-21 Thread Need Coffee

On 5/20/06, Chad M Stewart <[EMAIL PROTECTED]> wrote:

I worked with a customer once that had a software based load
balancing solution.  I liked the way it worked.  While I was working
on the box if I was going to take the service down for maintenance I
could tell the local agent and the box was removed from the pool of
servers.

Anyone know of something like this that runs on OpenBSD?


Reminds me of the stuff at http://www.backhand.org/



Re: software load balancing

2006-05-21 Thread Chad M Stewart

On May 21, 2006, at 11:25 AM, Joachim Schipper wrote:



There are various proxies, talking either a specific protocol. Most
should either be able to do failover or be able to be re-configured  
for

a new host very quickly.

A bit of scripting might glue this all together. Was there a specific
application you were thinking of?


Mail, all protocols around it.  While yes these functions can be  
implemented using software on openbsd, I need to use software that  
only runs on Solaris (JES MS).   I've spent much of the last 5 years  
working with some of the largest ISPs and enterprises in the US and  
most have a platform agnostic load balancing solution.   I'm  
searching for something similar that is open source and runs on OpenBSD.


You might be right about using scripts to do it.  If OpenBSD with PF  
is the master then tables could be used and updated accordingly.  If  
I get time & motivation I'll start working on this.


-Chad



Re: software load balancing

2006-05-21 Thread Chad M Stewart

On May 21, 2006, at 10:18 AM, Morten Liebach wrote:


On 2006-05-20 20:48:13 -0400, Chad M Stewart wrote:

I worked with a customer once that had a software based load
balancing solution.  I liked the way it worked.  While I was working
on the box if I was going to take the service down for maintenance I
could tell the local agent and the box was removed from the pool of
servers.


Like Linux with Heartbeat + ldirectord or keepalived?


Never used those but sounds similar, at least in principle.  I don't  
know the exact product name, but I suspect it was http:// 
www.resonate.com/prod_centr_disp.html  -- certainly sounds like it or  
very similar.






Anyone know of something like this that runs on OpenBSD?  The master
controller part on openbsd would be great, with agents for various
other operating systems as well.  carp/pfsync is great, but I'm
thinking of a times when the application that needs to be load
balanced won't run on openbsd, say only on Solaris.


http://www.sane.nl/sane2006/program/abstract.php?eventid=17

That talk was about what you're asking for.  It ran on FreeBSD using
CARP and PF + their own Python app to orchestrate it all, but I'd be
surprised if it wouldn't just work on OpenBSD.

It's not available yet, but it will be published under an open source
license "soon", according to Kostas Zorbadelos who gave the speech.


Thanks, I'll keep an eye out for it.

-Chad



Re: ServeRAID 4M

2006-05-21 Thread Joachim Schipper
On Sun, May 21, 2006 at 11:54:21AM +0600, Anton Maksimenkov wrote:
> >Joachim Schipper wrote:
> >> 'not configured' typically means the kernel knows what it is, but
> >> doesn't know what to do with it.
> >More specifically, it means that the kernel knows the PCI device's ID
> >and vendor, but doesn't have a driver to hook it to.
> >FreeBSD supports it with the ips driver and it appears to be non-BLOB;
> >the original commit message also implies that it's actually an Adaptec
> >card, so it might be as easy as hooking it to an existing Adaptec
> >driver.  (I doubt it, but it may be worth a shot.)
> 
> Ok, I uncomment the aac driver in kernel, for testing reasons, and
> rebuild. The card is steel not recognized (by aac). I thinking about
> to try to add it to aac.
> Sad, but writing (porting) ips driver is not my skills... But I want
> to try to add hooks to aac_pci.c and test. WHERE TO GET THE MAGIC
> NUMBER for "pcidevs" file?
> For example, I see there
> product ADP2 SERVERAID  0x0250  ServeRAID
> So I think that my ServeRAID's number is not the "0x0250", but
> how/where can I get it?

Aside from the other comments, I'll add that aac(4) was disabled because
it was buggy and Adaptec wouldn't provide documentation.

Theo was quite clear about this at the time, see the 3.8 release notes.

Joachim



Re: software load balancing

2006-05-21 Thread Joachim Schipper
On Sat, May 20, 2006 at 08:48:13PM -0400, Chad M Stewart wrote:
> I worked with a customer once that had a software based load  
> balancing solution.  I liked the way it worked.  While I was working  
> on the box if I was going to take the service down for maintenance I  
> could tell the local agent and the box was removed from the pool of  
> servers.
> 
> Anyone know of something like this that runs on OpenBSD?  The master  
> controller part on openbsd would be great, with agents for various  
> other operating systems as well.  carp/pfsync is great, but I'm  
> thinking of a times when the application that needs to be load  
> balanced won't run on openbsd, say only on Solaris.

There are various proxies, talking either a specific protocol. Most
should either be able to do failover or be able to be re-configured for
a new host very quickly.

A bit of scripting might glue this all together. Was there a specific
application you were thinking of?

Joachim



Re: ksh: typeset screwing up subsequent parameter's array indices?

2006-05-21 Thread Matthias Kilian
On Sat, May 20, 2006 at 11:59:13PM +0200, Otto Moerbeek wrote:
> How about this? If I see things correctly, the ATEMP allocation should
> be cleaned up automatically Running a little test loop does not
> show a leak. Both bugs are fixed, and array entries are nice integer vals.

Yes, looks fine. Tested with both simple integers and large arrays.

Ciao,
Kili

[...]
> Index: var.c
> ===
> RCS file: /cvs/src/bin/ksh/var.c,v
> retrieving revision 1.29
> diff -u -p -r1.29 var.c
> --- var.c 13 Mar 2006 08:21:37 -  1.29
> +++ var.c 20 May 2006 21:54:12 -
> @@ -293,7 +293,7 @@ str_val(struct tbl *vp)
>   else {  /* integer source */
>   /* worst case number length is when base=2, so use BITS(long) */
>   /* minus base # numbernull */
> - static char strbuf[1 + 2 + 1 + BITS(long) + 1];
> + char strbuf[1 + 2 + 1 + BITS(long) + 1];
>   const char *digits = (vp->flag & UCASEV_AL) ?
>   "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" :
>   "0123456789abcdefghijklmnopqrstuvwxyz";
> @@ -322,6 +322,8 @@ str_val(struct tbl *vp)
>   *--s = '-';
>   if (vp->flag & (RJUST|LJUST)) /* case already dealt with */
>   s = formatstr(vp, s);
> + else
> + s = str_save(s, ATEMP);
>   }
>   return s;
>  }
> @@ -1107,12 +1109,10 @@ arraysearch(struct tbl *vp, int val)
>   size_t namelen = strlen(vp->name) + 1;
>  
>   vp->flag |= ARRAY|DEFINED;
> -
> + vp->index = 0;
>   /* The table entry is always [0] */
> - if (val == 0) {
> - vp->index = 0;
> + if (val == 0)
>   return vp;
> - }
>   prev = vp;
>   curr = vp->u.array;
>   while (curr && curr->index < val) {



Re: XF4.tar.gz in "/usr" or "/usr/src"?

2006-05-21 Thread Tobias Weisserth
Hi,

On Saturday, 20. May 2006 12:06, Joachim Schipper wrote:

> Ultimately, it doesn't matter where you keep X. My tree lives under
> /usr/src/XF4, with a symlink from /usr/XF4 just to be sure.
>
> I'm fairly certain both things work; the canonical way, though, is to
> put XF4 under /usr.

I solved this out by reading the documentation on the OpenBSD website 
concerning rebuilding OpenBSD from source: 
http://www.openbsd.org/faq/faq5.html#Xbld

First, I extracted XF4.tar.gz in /usr (like the OpenBSD FAQ suggests) and made 
a symbolic link in /usr/src similar to like you suggested (since this can't 
be bad).

I then patched the source with the patch:

Apply by doing:
cd /usr/src/XF4
patch -p0 < 002_xorg.patch

And then rebuild and install X:
make build

But instead of following the patch instructions to rebuild and install X which 
in my opinion just suck, I reread the FAQ from above and followed those 
instructions and everything worked out fine.

* First I installed the "tcl" and "tk" packages.
* Then, I followed this:

# rm -rf /usr/Xbld
# mkdir -p /usr/Xbld
# cd /usr/Xbld 
# lndir ../XF4
   [...lots of output...]
# make build
   [...lots of output...]

This is what the patch should have been including, not the really mistakable 
instructions, which suggest that the source is located in /usr/src/XF4 
instead of /usr/XF4 (as described in the FAQ, which a user is probably going 
to follow) and that all that is required to build X is running "make build".

I'm going to mistrust the instructions from the patches from now on. The FAQ 
is the most valuable source of information I have found so far.

kind regards,
Tobias Weisserth



Re: software load balancing

2006-05-21 Thread Morten Liebach
On 2006-05-20 20:48:13 -0400, Chad M Stewart wrote:
> I worked with a customer once that had a software based load  
> balancing solution.  I liked the way it worked.  While I was working  
> on the box if I was going to take the service down for maintenance I  
> could tell the local agent and the box was removed from the pool of  
> servers.

Like Linux with Heartbeat + ldirectord or keepalived?

> Anyone know of something like this that runs on OpenBSD?  The master  
> controller part on openbsd would be great, with agents for various  
> other operating systems as well.  carp/pfsync is great, but I'm  
> thinking of a times when the application that needs to be load  
> balanced won't run on openbsd, say only on Solaris.

http://www.sane.nl/sane2006/program/abstract.php?eventid=17

That talk was about what you're asking for.  It ran on FreeBSD using
CARP and PF + their own Python app to orchestrate it all, but I'd be
surprised if it wouldn't just work on OpenBSD.

It's not available yet, but it will be published under an open source
license "soon", according to Kostas Zorbadelos who gave the speech.

Hope this helps
 Morten

-- 
http://m.mongers.org/weblog/ -- http://flickr.com/photos/morten_liebach/



Re: ServeRAID 4M

2006-05-21 Thread Stuart Henderson
On 2006/05/21 11:54, Anton Maksimenkov wrote:
> Ok, I uncomment the aac driver in kernel, for testing reasons, and
> rebuild. The card is steel not recognized (by aac). I thinking about
> to try to add it to aac.

I don't think your card is an aac.

> WHERE TO GET THE MAGIC NUMBER for "pcidevs" file?

It's already in there, that's where the name in dmesg comes from.



Re: xmms does not run smoothly

2006-05-21 Thread Antoine Jacoutot

On Sun, 21 May 2006, Martin Toft wrote:
Actually, I already use the option "read info on load", so I do not 
experience freezes when scrolling my playlist. However, the freezes appear 
frequently anyway, e.g. when xmms opens a dialog that reads directory 
information from the disk, and therefore still annoys me. I suspect "my 
version" of the problem is a bit different from what other people report, 
since the execution of heavy programs, such as Mozilla Firefox and 
Thunderbird, also disturbs xmms and causes short lags in the sound.


I've been experiencing the exact same problem you describe. I've never 
looked for a solution though since I always took OpenBSD for a server 
operating system. I have a Linux box lying around for when I want to 
listen to music, play videos...


Maybe the new kernel threads will make the problem go away, I have no 
idea.


Regards,

--
Antoine