recent bin/ksh changes - the ctype cleanups one

2013-12-18 Thread LEVAI Daniel
Hi!

I must say, I'm a bit shy about this, so don't rip my head off, I'm
obviously not trying to question Theo's commit. I just came across this
anomaly:

cvs diff -r 1.26 -r 1.27 vi.c 
@@ -792,8 +792,9 @@ vi_cmd(int argcnt, const char *cmd)
return -1;
if (*cmd == 'c' &&
(cmd[1]=='w' || cmd[1]=='W') &&
-   !isspace(es->cbuf[es->cursor])) {
-   while (isspace(es->cbuf[--ncursor]))
+   !isspace((unsigned 
char)es->cbuf[es->cursor])) {
+   while ((unsigned char)
+   isspace(es->cbuf[--ncursor]))
;
ncursor++;
}

That last cast, before isspace(es->...), at line 796; Isn't that cast supposed
to be inside the isspace() function, right before es->..., just like in the 
line above it?
So like:

--- vi.c.orig   2013-12-18 17:33:03.667236200 +0100
+++ vi.c2013-12-18 17:33:21.810235659 +0100
@@ -793,8 +793,7 @@ vi_cmd(int argcnt, const char *cmd)
if (*cmd == 'c' &&
(cmd[1]=='w' || cmd[1]=='W') &&
!isspace((unsigned 
char)es->cbuf[es->cursor])) {
-   while ((unsigned char)
-   isspace(es->cbuf[--ncursor]))
+   while (isspace((unsigned 
char)es->cbuf[--ncursor]))
;
ncursor++;
}


I admit, the bug I was hunting was not present somehow on OpenBSD, just on
Linux, where I am using this ksh with some modifications and some diffs to make
it compile and work on Linux.
Nevertheless this fixed it for me.
Oh, and the bug was when I entered command mode in vi edit mode, then if
I had something like this in my edit buffer:

$ cd /foo/bar

... then escape to command mode, move to the very beginning of the line,
then press 'c' -> 'w' to delete "one word". Then the previous behaviour
was to delete until before the space, and now after these changes it
would delete the space also.



Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



editline(3): el_source() and .editrc file

2013-01-03 Thread LEVAI Daniel
Hi!

It seems that the editline(3) man page didn't get updated after
el.c r1.7 (some twelve years ago :) ).


Index: editline.3
===
RCS file: /cvs/src/lib/libedit/editline.3,v
retrieving revision 1.32
diff -p -u -r1.32 editline.3
--- editline.3  7 Jul 2011 16:15:47 -   1.32
+++ editline.3  3 Jan 2013 14:41:42 -
@@ -575,8 +575,6 @@ If
 is
 .Dv NULL ,
 try
-.Pa $PWD/.editrc
-then
 .Pa $HOME/.editrc .
 Refer to
 .Xr editrc 5


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



ksh, add 'nobeep' option to disable bell

2012-11-26 Thread LEVAI Daniel
Hi!

I needed an option to disable the bell in ksh, and I copied the idea of
a 'nobeep' option from other shells.


Index: emacs.c
===
RCS file: /cvs/src/bin/ksh/emacs.c,v
retrieving revision 1.46
diff -p -u -r1.46 emacs.c
--- emacs.c 10 Jun 2012 10:15:01 -  1.46
+++ emacs.c 26 Nov 2012 14:25:51 -
@@ -399,7 +399,8 @@ x_insert(int c)
 *  Should allow tab and control chars.
 */
if (c == 0) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
}
str[0] = c;
@@ -421,7 +422,8 @@ static int
 x_do_ins(const char *cp, int len)
 {
if (xep+len >= xend) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return -1;
}
 
@@ -477,7 +479,8 @@ x_del_back(int c)
int col = xcp - xbuf;
 
if (col == 0) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
}
if (x_arg > col)
@@ -493,7 +496,8 @@ x_del_char(int c)
int nleft = xep - xcp;
 
if (!nleft) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
}
if (x_arg > nleft)
@@ -592,7 +596,8 @@ x_bword(void)
char*cp = xcp;
 
if (cp == xbuf) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return 0;
}
while (x_arg--) {
@@ -616,7 +621,8 @@ x_fword(void)
char*cp = xcp;
 
if (cp == xep) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return 0;
}
while (x_arg--) {
@@ -706,7 +712,8 @@ x_mv_back(int c)
int col = xcp - xbuf;
 
if (col == 0) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
}
if (x_arg > col)
@@ -721,7 +728,8 @@ x_mv_forw(int c)
int nleft = xep - xcp;
 
if (!nleft) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
}
if (x_arg > nleft)
@@ -741,7 +749,8 @@ x_search_char_forw(int c)
if (c < 0 ||
((cp = (cp == xep) ? NULL : strchr(cp + 1, c)) == NULL &&
(cp = strchr(xbuf, c)) == NULL)) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
}
}
@@ -760,7 +769,8 @@ x_search_char_back(int c)
if (p-- == xbuf)
p = xep;
if (c < 0 || p == cp) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
}
if (*p == c)
@@ -818,7 +828,8 @@ x_load_hist(char **hp)
int oldsize;
 
if (hp < history || hp > histptr) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return;
}
x_histp = hp;
@@ -902,7 +913,8 @@ x_search_hist(int c)
/* add char to pattern */
/* overflow check... */
if (p >= &pat[sizeof(pat) - 1]) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
continue;
}
*p++ = c, *p = '\0';
@@ -943,7 +955,8 @@ x_search(char *pat, int sameline, int of
return i;
}
}
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
x_histp = histptr;
return -1;
 }
@@ -1082,11 +1095,13 @@ x_transpose(int c)
 * to the one they want.
 */
if (xcp == xbuf) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
} else if (xcp == xep || Flag(FGMACS)) {
if (xcp - xbuf == 1) {
-   x_e_putc(BEL);
+   if (!Flag(FNOBEEP))
+   x_e_putc(BEL);
return KSTD;
}
/* Gosling/Unipress emacs style: Swap two characters before the
@@ -1207,7 +1222,8 @@ x_abort(int c)
 static int
 x_error(int c)
 {
-   x_e_p

Re: iwn(4) support for Intel WiFi Link 1030/Centrino Wireless-N 1030

2012-11-17 Thread LEVAI Daniel
On sze, nov 14, 2012 at 13:44:30 +0100, Mark Kettenis wrote:
> Anybody around with the (currently non-working) Intel WiFi Link 1030
> wireless hardware that can test the following diff?  You'll need an
> up-to-date firmware pckage and a bleeding edge -current tree.
[...]

===> ifconfig error when trying to scan before patch:

iwn0: fatal firmware error
firmware error log:
  error type  = "UNKNOWN" (0x1999)
  program counter = 0x00013638
  source line = 0x012F
  error data  = 0x000100A4
  branch link = 0x0001362C0001362C
  interrupt link  = 0xC15E
  time= 28088
driver status:
  tx ring  0: qid=0  cur=0   queued=0  
  tx ring  1: qid=1  cur=0   queued=0  
  tx ring  2: qid=2  cur=0   queued=0  
  tx ring  3: qid=3  cur=0   queued=0  
  tx ring  4: qid=4  cur=2   queued=0  
  tx ring  5: qid=5  cur=0   queued=0  
  tx ring  6: qid=6  cur=0   queued=0  
  tx ring  7: qid=7  cur=0   queued=0  
  tx ring  8: qid=8  cur=0   queued=0  
  tx ring  9: qid=9  cur=0   queued=0  
  tx ring 10: qid=10 cur=0   queued=0  
  tx ring 11: qid=11 cur=0   queued=0  
  tx ring 12: qid=12 cur=0   queued=0  
  tx ring 13: qid=13 cur=0   queued=0  
  tx ring 14: qid=14 cur=0   queued=0  
  tx ring 15: qid=15 cur=0   queued=0  
  tx ring 16: qid=16 cur=0   queued=0  
  tx ring 17: qid=17 cur=0   queued=0  
  tx ring 18: qid=18 cur=0   queued=0  
  tx ring 19: qid=19 cur=0   queued=0  
  rx ring: cur=2
  802.11 state 0
iwn0: crystal calibration failed
iwn0: could not initialize hardware



===> dmesg before patch:

OpenBSD 5.2-current (GENERIC.MP) #98: Tue Nov 13 13:18:33 MST 2012
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC
real mem  = 3394351104 (3237MB)
avail mem = 3327934464 (3173MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/16/10, SMBIOS rev. 2.6 @ 0xeba00 (56 
entries)
bios0: vendor Dell Inc. version "A07" date 07/18/2011
bios0: Dell Inc. Inspiron N5110
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SSDT HPET SSDT SSDT SSDT SSDT OSFR
acpi0: wakeup devices USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) 
USB7(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) 
RP04(S4) PXSX(S4) RP05(S3) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(S4) 
RP08(S4) PEGP(S4) PEG0(S4) PEGA(S4) PEG1(S4) PEG2(S4) PEG3(S4) BR20(S4) 
HDEF(S4) EHC2(S0) EHC1(S0) LID0(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu2: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu3: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu4: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC
cpu5 at mainbus0: apid 3 (application processor)
cpu5: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu5: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC
cpu6 at mainbus0: apid 5 (application processor)
cpu6: 

Re: DNS options for sppp(4)

2012-10-28 Thread LEVAI Daniel
On cs, okt 25, 2012 at 10:47:04 +0200, Gerhard Roth wrote:
[...]
> > Works for me.
> > Cool feature, I like it :)
> > Thanks!
> > 
> > 
> > Daniel
> > 
> 
> So anybody out there willing to give me an ok?

Sorry if I was too terse.
This was tested and now is being used on two separate i386 machines with
pppoe (different ISPs), running 5.1-stable.


Here are the two dmesgs:


OpenBSD 5.1-stable (GENERIC) #2: Wed Oct 24 21:10:21 CEST 2012
root@host:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.40GHz ("GenuineIntel" 686-class) 2.42 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 1073213440 (1023MB)
avail mem = 1045561344 (997MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/05/02, BIOS32 rev. 0 @ 0xfdb60, SMBIOS 
rev. 2.3 @ 0xf0630 (32 entries)
bios0: vendor American Megatrends Inc. version "V1.2 11" date 11/05/2002
bios0: MICRO-STAR INC. MS-6704
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices USB1(S3) USB2(S3) USB3(S3) EHCI(S3) ICHB(S4) PS2M(S4) 
PS2K(S4) UAR1(S4) MC9_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 133MHz
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (ICHB)
acpicpu0 at acpi0
acpipwrres0 at acpi0: URP1
acpipwrres1 at acpi0: URP2
acpipwrres2 at acpi0: FDDP
acpipwrres3 at acpi0: LPTP
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xd000 0xcd000/0x4800 0xd1800/0x1000 0xe/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82845G Host" rev 0x02
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe000, size 0x400
ppb0 at pci0 dev 1 function 0 "Intel 82845G AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon 9600" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 2 int 16
drm0 at radeondrm0
"ATI Radeon 9600 XT Sec" rev 0x00 at pci1 dev 0 function 1 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x02: apic 2 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x02: apic 2 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x02: apic 2 int 18
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x02: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x82
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel PRO/1000GT (82541GI)" rev 0x05: apic 2 int 
16, address 00:xx:xx:xx:xx:xx
pciide0 at pci2 dev 3 function 0 "CMD Technology SiI3512 SATA" rev 0x01: DMA
pciide0: using apic 2 int 19 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 5
pciide0: port 1: device present, speed: 1.5Gb/s
wd1 at pciide0 channel 1 drive 0: 
wd1: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 7
vge0 at pci2 dev 4 function 0 "VIA VT612x" rev 0x11: apic 2 int 16, address 
00:xx:xx:xx:xx:xx
ciphy0 at vge0 phy 1: CS8201 10/100/1000TX PHY, rev. 1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DB LPC" rev 0x02
ichiic0 at pci0 dev 31 function 3 "Intel 82801DB SMBus" rev 0x02: apic 2 int 17
iic0 at ichiic0
iic0: addr 0x2f 00=00 02=0f 03=00 04=00 06=0f 07=00 08=00 0a=06 0b=00 0c=00 
0d=07 0e=85 0f=00 10=c4 11=10 12=00 13=60 words 00=00ff 01= 02=0fff 03=00ff 
04=00ff 05= 06=0fff 07=00ff
spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC3200CL3.0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x17
lm1 at wbsio0 port 0x290/8: W83627HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root on wd0a (69dbc259cb64de66.a) swap on wd0b dump on wd0b
pppoe0: received unexpected PADO
pppoe0: received unexpected PADO
pppoe0: received unexpected PADO
pppoe0: rece

Re: DNS options for sppp(4)

2012-10-25 Thread LEVAI Daniel
On p, okt 05, 2012 at 13:46:19 +0200, Gerhard Roth wrote:
> Hi,
> 
> I trying to revive part of an old patch that was submitted by mpf
> in 2007. If adds support for DNS server negotiation to the IPCP
> part of sppp(4). If the PPP server provides IP addresses for
> DNS servers, they will appear in the ifconfig(8) output.
> 
> A simple ifstated(8) script could then be used to re-write resolv.conf,
> e.g.
> 
>   # ifconfig pppoe | sed -n 's/^[[:space:]]*dns.:/nameserver/p'
[...]

Works for me.
Cool feature, I like it :)
Thanks!


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: DNS options for sppp(4)

2012-10-25 Thread LEVAI Daniel
On cs, okt 25, 2012 at 10:09:04 +0200, Gerhard Roth wrote:
[...]
> Daniel,
> 
> the patch contained a modification to sys/net/if_sppp.h adding
> 'u_int32_t dns_addrs[2]' to struct sppp. Could you please check
> if that patch applied? In case it did, do a 'make build' so
> that /usr/include/net/if_sppp.h gets updated.

Doh, indeed... My if_sppp.h was still the old one. Sorry.


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: DNS options for sppp(4)

2012-10-25 Thread LEVAI Daniel
On p, okt 05, 2012 at 13:46:19 +0200, Gerhard Roth wrote:
> Hi,
> 
> I trying to revive part of an old patch that was submitted by mpf
> in 2007. If adds support for DNS server negotiation to the IPCP
> part of sppp(4). If the PPP server provides IP addresses for
> DNS servers, they will appear in the ifconfig(8) output.
> 
> A simple ifstated(8) script could then be used to re-write resolv.conf,
> e.g.
> 
>   # ifconfig pppoe | sed -n 's/^[[:space:]]*dns.:/nameserver/p'
[...]


/usr/src/sbin/ifconfig # make clean obj all
rm -f a.out [Ee]rrs mklog core *.core y.tab.h  ifconfig ifconfig.o brconfig.o 
pbkdf2.o  ifconfig.ln brconfig.ln pbkdf2.ln .man-linted ifconfig.8.manlint
/usr/src/sbin/ifconfig/obj -> /usr/obj/sbin/ifconfig
cc -O2 -pipe-DINET6 -I/usr/src/sbin/ifconfig/../bioctl -c 
/usr/src/sbin/ifconfig/ifconfig.c
/usr/src/sbin/ifconfig/ifconfig.c: In function 'sppp_status':
/usr/src/sbin/ifconfig/ifconfig.c:4267: error: 'struct sppp' has no member 
named 'dns_addrs'
/usr/src/sbin/ifconfig/ifconfig.c:4269: error: 'struct sppp' has no member 
named 'dns_addrs'
/usr/src/sbin/ifconfig/ifconfig.c:4270: error: 'struct sppp' has no member 
named 'dns_addrs'
/usr/src/sbin/ifconfig/ifconfig.c:4272: error: 'struct sppp' has no member 
named 'dns_addrs'
*** Error code 1

Stop in /usr/src/sbin/ifconfig (line 92 of /usr/share/mk/sys.mk).




Did I miss some part of the diff?


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh: tab completion fix (again)

2012-09-26 Thread LEVAI Daniel
On cs, szept 27, 2012 at 01:42:25 +0400, Alexander Polakov wrote:
> I sent this diff in 2011 (?) with a bunch of other diffs.
> It fixes tab completion for filenames containing special
> characters like [], () and so.
> 
> This code affects interactive mode only, and I don't know a way
> to do automated testing of this. Suggestions welcome.
[...]

I've been using this (and the other ones) since then. No problems
neither on OpenBSD or Linux.


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh sigwinch

2012-09-05 Thread LEVAI Daniel
On sze, szept 05, 2012 at 07:01:45 -0400, Ted Unangst wrote:
[...]
> > This doesn't work for me inside either urxvt or xterm. I've resized the
> > windows but the end of the line remained more far than the windows'
> > edge. Do I understand correctly that this patch would make ksh always
> > recalculate the editor's line end if a terminal window resize occurs?
> 
> The did we get sigwinch code only runs after you hit enter.  The
[...]

Aha! My bad... It works as advertised after hitting enter.

> If you want the command line to update in realtime to window changes,
> that's a trickier change.

No need, this is perfect :)


Thanks,
Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh sigwinch

2012-09-04 Thread LEVAI Daniel
On k, szept 04, 2012 at 18:15:29 -0400, Ted Unangst wrote:
> I move my windows around and even resize them sometimes.  Sometimes
> ksh catches on, but a lot of the time it doesn't.  The problem is if
> I'm running an editor like vi (kinda common reason why I'd want to
> resize the terminal), sigwinch doesn't get to ksh.  Then when I exit
> the editor, command line editing is all messed.
> 
> Fix is simple.  Pretend we got a sigwinch whenever we do the regular
> mailcheck/jobs notify stuff.  Then the edit code will check the
> current status.
[...]

This doesn't work for me inside either urxvt or xterm. I've resized the
windows but the end of the line remained more far than the windows'
edge. Do I understand correctly that this patch would make ksh always
recalculate the editor's line end if a terminal window resize occurs?


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: [Patch] Virtio drivers for OpenBSD V8

2012-09-04 Thread LEVAI Daniel
On v, szept 02, 2012 at 12:13:33 +0200, Stefan Fritsch wrote:
> On Saturday 01 September 2012, LEVAI Daniel wrote:
> 
> > > I've just started to test this with an OpenBSD guest on a Linux
> > > host. vio0 NIC and the virtio disk work like a charm.
> > > I have a slightly (~10%) better performance with the ide
> > > emulation than with virtio, but nevertheless it works.
> 
> Thanks for testing. How did you test the performance? 

I've just used dd(1) to transfer files on the same disk and partition.


> > Well, weird thing is that some time after I've sent this mail, a
> > few messages appeared in the logs while updating /usr/ports on the
> > guest:
> > 
> > virtio timeout vioblk0: sc_queued 5 vq_num 128
> > vq_avail_idx: 27965 vq_avail->idx: 27965 vq_avail->flags: 1
> > vq_used_idx:  27960 vq_used->idx:  27960 vq_used->flags:  0
> > 
> > 
> > Are these errors or just some debug information for the devs?
> 
> These are just debugging leftovers. I will remove them in the next 
> version.

'mkay.


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: [Patch] Virtio drivers for OpenBSD V8

2012-09-01 Thread LEVAI Daniel
On szo, szept 01, 2012 at 16:00:06 +0200, LEVAI Daniel wrote:
> > Here comes the next revision. Changes from v7:
> [...]
> 
> Hi!
> 
> 
> I've just started to test this with an OpenBSD guest on a Linux host.
> vio0 NIC and the virtio disk work like a charm.
> I have a slightly (~10%) better performance with the ide emulation than
> with virtio, but nevertheless it works.
[...]

Well, weird thing is that some time after I've sent this mail, a few
messages appeared in the logs while updating /usr/ports on the guest:

virtio timeout vioblk0: sc_queued 5 vq_num 128
vq_avail_idx: 27965 vq_avail->idx: 27965 vq_avail->flags: 1
vq_used_idx:  27960 vq_used->idx:  27960 vq_used->flags:  0


Are these errors or just some debug information for the devs?


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: [Patch] Virtio drivers for OpenBSD V8

2012-09-01 Thread LEVAI Daniel
> Here comes the next revision. Changes from v7:
[...]

Hi!


I've just started to test this with an OpenBSD guest on a Linux host.
vio0 NIC and the virtio disk work like a charm.
I have a slightly (~10%) better performance with the ide emulation than
with virtio, but nevertheless it works.

Here is how I use qemu on a Slackware32 -current:

qemu-kvm \
-enable-kvm \
-cpu 
kvm32,+fxsr,+3dnow,+3dnowext,+abm,+cx16,+popcnt,+sse,+sse2,+sse4a,+svm,+ht,+vme,+mmx,+clflush,+pse36,+pat,+cmov,+mca,+pge,+mtrr,+sep,+apic,+cx8,+mce,+pae,+msr,+tsc,+pse,+de,+fpu,+popcnt,+cx16,+monitor,+sse3,+lm,+rdtscp,+pdpe1gb,+fxsr_opt,+mmxext,+nx,+syscall,+lahf_lm
 
-smp 2 \
-m 512 \
-drive 
index=0,media=disk,file=openbsd-"${RELEASE}".img,if=virtio,cache=writeback,format=qcow2
 \
-net nic,model=virtio,macaddr="${MAC_ADDRESS}" -net 
tap,ifname=tap0,script=no,downscript=no \
-curses

Here is a dmesg from the guest:


OpenBSD 5.2-current (GENERIC.MP) #0: Sat Sep  1 15:08:51 CEST 2012
dani...@openbsd.my.domain:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Common 32-bit KVM processor ("AuthenticAMD" 686-class, 512KB L2 cache) 
3.11 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,SVM,ABM,SSE4A
real mem  = 536387584 (511MB)
avail mem = 516661248 (492MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xff046, SMBIOS 
rev. 2.4 @ 0xfd900 (11 entries)
bios0: vendor Bochs version "Bochs" date 01/01/2007
bios0: Bochs Bochs
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
acpihpet0 at acpi0: 1 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 1000MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Common 32-bit KVM processor ("AuthenticAMD" 686-class, 512KB L2 cache) 
3.11 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,SVM,ABM,SSE4A
mpbios0: bus 0 is type PCI   
mpbios0: bus 1 is type ISA   
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
bios0: ROM list: 0xc/0x8c00 0xc9000/0xa00 0xca000/0x2400
vmt0 at mainbus0
vmware: open failed, eax=564d5868, ecx=001e, edx=5658
vmt0: failed to open backdoor RPC channel (TCLO protocol)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 2 int 9
iic0 at piixpm0
iic0: addr 0x19 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 
02= 03= 04= 05= 06= 07=
iic0: addr 0x1b 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 
02= 03= 04= 05= 06= 07=
iic0: addr 0x1c 0f=00 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 
02= 03= 04= 05= 06= 07=
iic0: addr 0x1d 0f=00 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 
02= 03= 04= 05= 06= 07=
iic0: addr 0x1e 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 
02= 03= 04= 05= 06= 07=
iic0: addr 0x1f 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 
02= 03= 04= 05= 06= 07=
iic0: addr 0x29 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 
00= 01= 02= 03= 04= 05= 06= 07=
iic0: addr 0x2b 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 
00= 01= 02= 03= 04= 05= 06= 07=
iic0: addr 0x4c 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 
00= 01= 02= 03= 04= 05= 06= 07=
iic0: addr 0x4e 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 
00= 01= 02= 03= 04= 05= 06= 07=
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00 Virtio 
Network Device
vio0 at virtio0 +MAC -GSO -MrgRXBuf +Status +CtrlVQ +CtrlRX -CtrlVLAN 
-CtrlRXExtra -NotifyOnEmpty +RingIndirectDesc +RingEv

Re: route.8 fix

2012-08-21 Thread LEVAI Daniel
On k, aug 21, 2012 at 15:12:44 +0200, LEVAI Daniel wrote:
> Hi!
> 
> I've stumbled upon this:
> 
> Index: route.8
> ===
> RCS file: /cvs/src/sbin/route/route.8,v
> retrieving revision 1.70
> diff -p -u -r1.70 route.8
> --- route.8   13 Jul 2012 10:15:53 -  1.70
> +++ route.8   21 Aug 2012 13:10:40 -
> @@ -224,7 +224,7 @@ and
>  cause the destination to be interpreted as a network or a host, respectively.
>  Otherwise, type is chosen based on the following rules:
>  .Pp
> -The route is assumed to be to a network if any of the following apply to
> +The route is assumed to be a network if any of the following apply to
>  .Ar destination :
>  .Pp
>  .Bl -bullet -compact
> 

Ah, sorry... english is my second language...


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



route.8 fix

2012-08-21 Thread LEVAI Daniel
Hi!

I've stumbled upon this:

Index: route.8
===
RCS file: /cvs/src/sbin/route/route.8,v
retrieving revision 1.70
diff -p -u -r1.70 route.8
--- route.8 13 Jul 2012 10:15:53 -  1.70
+++ route.8 21 Aug 2012 13:10:40 -
@@ -224,7 +224,7 @@ and
 cause the destination to be interpreted as a network or a host, respectively.
 Otherwise, type is chosen based on the following rules:
 .Pp
-The route is assumed to be to a network if any of the following apply to
+The route is assumed to be a network if any of the following apply to
 .Ar destination :
 .Pp
 .Bl -bullet -compact


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ftp, ignore whitespace at end of Content-Length

2012-05-28 Thread LEVAI Daniel
> As noted on misc, ftp http://www.spamhaus.org/drop/drop.lasso fails due
> to whitespace after the value of the content-length header.
> 
> wget/curl/lynx/w3m all handle this.

This is really useful, thanks!


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: debugging ports issues, use introspection

2012-04-30 Thread LEVAI Daniel

On 28.04.2012 16:24, Marc Espie wrote:

When things fail while building a port, remember you can almost
always check what is really going on.

[...]

Thanks for this cool write-up, again!
I like these informative lectures from time-to-time.
When in trouble creating or building ports, I just
look up the archived ones.


Daniel



Re: systat(1) netstat

2012-01-29 Thread LEVAI Daniel
On Sun, Jan 29, 2012 at 15:46:10 -0500, Okan Demirmen wrote:
> Hi,
> 
> The following small diff does the following:
>  - allows the default to only show all non-listneing scokets, which matches
>the manpage and what netstat(1) does, sans the aflag (-a).
>  - allows one to use 'a' to toggle the above (include listening or not).
>  - implement [r]eset to reset all toggles to default (all/tcp/udp).
>  - document a/n/r/t/u toggles.
> 
> comments/feedback/ok?

Great, works as advertised :) Thanks!


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh history corruption

2011-08-31 Thread LEVAI Daniel
On Wed, Aug 31, 2011 at 14:42:26 -0500, Marco Peereboom wrote:
> Version 4 fixes all reported bugs.
> 
> Some folks have expressed doubt about the simplistic way of updating the
> history file.  Specifically the rewriting of all entries.  I am
> sensitive to that and know a couple of optimizations that can easily be
> applied.  However before I go there I'd like to get a thumbs up or down
> on this approach.  It trashes the binary history file format and
> replaces it with flat text.  Is this something we want?

Great, thanks, works with and without a HISTFILE.

Although, I've never used a history file, if this fixes something then
definitely yes, *but* please reconsider merging the various great
improvements too, that Alexander has created [1] in the past months.
(my favorites are the completion improvements and #8 :) ).

They are stable; I have been testing them since he had posted the diffs
on tech@.


Daniel

[1] http://plhk.ru/trash/ksh/

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh history corruption

2011-08-31 Thread LEVAI Daniel
On Wed, Aug 31, 2011 at 06:57:34 -0500, Marco Peereboom wrote:
> On Wed, Aug 31, 2011 at 11:59:29AM +0200, LEVAI Daniel wrote:
> > On Tue, Aug 30, 2011 at 13:55:57 -0500, Marco Peereboom wrote:
> > > On Tue, Aug 30, 2011 at 11:11:46AM -0500, Marco Peereboom wrote:
> > > > I have had enough of corrupt ksh history so I had a look at the code to
> > > > try to fix it.  The magical code was very magical so I basically deleted
> > > > most of it and made ksh history into a flat text file.  It handles
> > > > multiple ksh instances writing to the same text file with locks just
> > > > like the current ksh does.  I haven't noticed any differences in
> > > > behavior running this.
> > 
> > If one had set HISTFILE='', the old behaviour was to not write a history
> > file, but the "in memory" history was still working.
> > With this patch, if I set HISTFILE='' then there will be no command
> > history at all.
> 
> This is the same with current ksh.

Not for me. Currently if I set HISTFILE to '' then in-memory history
works but it doesn't write to history file (which was my intention when
I've set HISTFILE='').


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh history corruption

2011-08-31 Thread LEVAI Daniel
On Tue, Aug 30, 2011 at 13:55:57 -0500, Marco Peereboom wrote:
> On Tue, Aug 30, 2011 at 11:11:46AM -0500, Marco Peereboom wrote:
> > I have had enough of corrupt ksh history so I had a look at the code to
> > try to fix it.  The magical code was very magical so I basically deleted
> > most of it and made ksh history into a flat text file.  It handles
> > multiple ksh instances writing to the same text file with locks just
> > like the current ksh does.  I haven't noticed any differences in
> > behavior running this.

If one had set HISTFILE='', the old behaviour was to not write a history
file, but the "in memory" history was still working.
With this patch, if I set HISTFILE='' then there will be no command
history at all.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-06-20 Thread LEVAI Daniel
On Sun, Jun 19, 2011 at 15:26:26 -0400, STeve Andre' wrote:
> I hope not.  I've seen this as well.  I want to test this, seeing as
> how I just
> bumped into this.  Can you post the last patch for this?

Alexander has a whole bunch of excelent stuff for ksh in his repo. Seven
patches IIRC, and they really improve the usability of ksh (including
the command completing).
Hope he'll repost them (or the URL for it) soon.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-06-19 Thread LEVAI Daniel
On sze, maj 11, 2011 at 16:13:45 +0200, LEVAI Daniel wrote:
> On Tue, May 10, 2011 at 15:23:52 +0400, Alexander Polakov wrote:
> > * LEVAI Daniel  [110510 14:33]:
> > > On Tue, May 10, 2011 at 12:28:06 +0200, LEVAI Daniel wrote:
[...]
> > > Apperantly, adding ':' to ESCAPEDCHARS solves the problem. Do you think
> > > there is any sideeffect to this?
> > 
> > No, I don't think so. Let's just add it and find out in practice.
> 
> So far so good. I really like this patch. Thanks for it :)
> Is it acceptable in the tree?

Is this really going down the sewers?


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: MSI for em(4)

2011-06-16 Thread LEVAI Daniel
> This is a fairly conservative diff that enables MSI on the newer em(4)
> parts, essentially everything handled by the Linux e1000e driver.
>
> Please test if you have anything that's vaguely recent.

It just works. Although, I only had a chance to test it with a 100Mbit
connection.


Daniel


OpenBSD 4.9-current (GENERIC.MP) #0: Wed Jun 15 15:37:55 CEST 2011
daniell@digidani:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz ("GenuineIntel" 686-class) 1.83 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
real mem  = 2145775616 (2046MB)
avail mem = 2100469760 (2003MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/27/09, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS 
rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version "79ETE5WW (2.25 )" date 08/27/2009
bios0: LENOVO 2007FRG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2400 @ 1.83GHz ("GenuineIntel" 686-class) 1.83 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "93P5030" serial  2444 type LION oem "SONY"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 
0xe/0x1!
cpu0: Enhanced SpeedStep 1829 MHz: speeds: 1833, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82945GM PCIE" rev 0x03: apic 1 int 16
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility X1400" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16
drm0 at radeondrm0
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Analog Devices AD1981HD, 0x/0x, using Analog Devices 
AD1981HD
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 20
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: msi, address 
00:16:41:aa:d2:70
ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 1 int 21
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, MoW2, 
address 00:18:de:65:2d:37
ppb3 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 1 int 22
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 1 int 23
pci5 at ppb4 bus 12
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 17
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 19
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci6 at ppb5 bus 21
cbb0 at pci6 dev 0 function 0 "TI PCI1510 CardBus" rev 0x00: apic 1 int 16
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  A

Re: A step towards support for Message Signaled Interrupts

2011-05-14 Thread LEVAI Daniel
> This diff completes the implementation of PCI "flags", making sure
[...]

Hi!

Forgive my ignorance, but is PR 6523 related to this? Should I try this
with that machine?

(http://marc.info/?l=openbsd-misc&m=126840264605078&w=2)


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-05-11 Thread LEVAI Daniel
On Tue, May 10, 2011 at 15:23:52 +0400, Alexander Polakov wrote:
> * LEVAI Daniel  [110510 14:33]:
> > On Tue, May 10, 2011 at 12:28:06 +0200, LEVAI Daniel wrote:
> > > On Tue, May 10, 2011 at 08:41:48 +0200, LEVAI Daniel wrote:
> > > > On Mon, May 09, 2011 at 23:48:46 +0400, Alexander Polakov wrote:
> > > > > * Alexander Polakov  [110502 18:19]:
> > > > > > Do you mean something like this or I got it all wrong again and we
> > > > > > have to wait another 15 years for someone to dig into this?
> > > > > 
> > > > > That diff was wrong, this one is likely less wrong.
> > > > This is working fine for me.
> > > 
> > > I've just found a usecase where it fails to complete a filename:
> > > 
> > > $ touch 'aaa: bbb ccc'
> > > $ touch 'aaa: bbc ddd'
> > > $ ls -la a
> > > $ ls -la aaa:\ bb
> > > aaa: bbb ccc   aaa: bbc ddd
> > > $ ls -la aaa:\ bbc
> > >   ^^^ nothing happens
> > Apperantly, adding ':' to ESCAPEDCHARS solves the problem. Do you think
> > there is any sideeffect to this?
> 
> No, I don't think so. Let's just add it and find out in practice.

So far so good. I really like this patch. Thanks for it :)
Is it acceptable in the tree?


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-05-10 Thread LEVAI Daniel
On Tue, May 10, 2011 at 12:28:06 +0200, LEVAI Daniel wrote:
> On Tue, May 10, 2011 at 08:41:48 +0200, LEVAI Daniel wrote:
> > On Mon, May 09, 2011 at 23:48:46 +0400, Alexander Polakov wrote:
> > > * Alexander Polakov  [110502 18:19]:
> > > > Do you mean something like this or I got it all wrong again and we
> > > > have to wait another 15 years for someone to dig into this?
> > > 
> > > That diff was wrong, this one is likely less wrong.
> > This is working fine for me.
> 
> I've just found a usecase where it fails to complete a filename:
> 
> $ touch 'aaa: bbb ccc'
> $ touch 'aaa: bbc ddd'
> $ ls -la a
> $ ls -la aaa:\ bb
> aaa: bbb ccc   aaa: bbc ddd
> $ ls -la aaa:\ bbc
>   ^^^ nothing happens
Apperantly, adding ':' to ESCAPEDCHARS solves the problem. Do you think
there is any sideeffect to this?


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-05-10 Thread LEVAI Daniel
On Tue, May 10, 2011 at 08:41:48 +0200, LEVAI Daniel wrote:
> On Mon, May 09, 2011 at 23:48:46 +0400, Alexander Polakov wrote:
> > * Alexander Polakov  [110502 18:19]:
> > > Do you mean something like this or I got it all wrong again and we
> > > have to wait another 15 years for someone to dig into this?
> > 
> > That diff was wrong, this one is likely less wrong.
> This is working fine for me.

I've just found a usecase where it fails to complete a filename:

$ touch 'aaa: bbb ccc'
$ touch 'aaa: bbc ddd'
$ ls -la a
$ ls -la aaa:\ bb
aaa: bbb ccc   aaa: bbc ddd
$ ls -la aaa:\ bbc
  ^^^ nothing happens


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-05-09 Thread LEVAI Daniel
On Mon, May 09, 2011 at 23:48:46 +0400, Alexander Polakov wrote:
> * Alexander Polakov  [110502 18:19]:
> > Do you mean something like this or I got it all wrong again and we
> > have to wait another 15 years for someone to dig into this?
> 
> That diff was wrong, this one is likely less wrong.
This is working fine for me.

The previous diff indeed had something weird with it, because I had to
madly escape '[' characters in the colour codes in my prompt. But
knowing that nearly no one uses coloured prompt except me, I kept my
mouth shut :)



Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-03-28 Thread LEVAI Daniel
On Thu, Mar 24, 2011 at 15:48:56 +0300, Alexander Polakov wrote:
> And just for the archives, a patch that really works as advertised
> (and using it for some time I feel like it *is* a good idea).

One thing I've noticed:

$ touch 'thing [another thing & aaa'
$ touch 'thing [another thing & bbb'
$ ls thing
$ ls thing\ \[another\ thing\ \&\ 

now hitting 'a' or 'b' and then  does nothing. It does not complete
further. However without the '[' character in the filename, it does.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-03-24 Thread LEVAI Daniel
On Thu, Mar 24, 2011 at 16:30:12 +0100, Janjaap van Velthooven wrote:
> On Thu, Mar 24, 2011 at 03:40:56PM +0100, LEVAI Daniel wrote:
> > On Thu, Mar 24, 2011 at 15:48:56 +0300, Alexander Polakov wrote:
> > > And just for the archives, a patch that really works as advertised
> > > (and using it for some time I feel like it *is* a good idea).
> > 
> > It is really working well. Thanks!
> > However, I don't quite understand why '[' needs to be escaped during
> > completion:
> > 
> > $ ls -la [\ ]\ [\ ]\ []\ ][
> > $ ls -la \[\ ]\ \[\ ]\ \[]\ ]\[
> > 
> > these two produce the same result:
> > -rw-r--r--  1 daniell  daniell  0 Mar 24 15:38:38 2011 [ ] [ ] [] ][
> 
> for the following for example:
> 
> $ touch adef '[abc]def'
> $ ls [abc]def
> adef
> $ ls \[abc]def
> [abc]def
> $
Oh, how marvelous! Thanks!


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh completion

2011-03-24 Thread LEVAI Daniel
On Thu, Mar 24, 2011 at 15:48:56 +0300, Alexander Polakov wrote:
> And just for the archives, a patch that really works as advertised
> (and using it for some time I feel like it *is* a good idea).

It is really working well. Thanks!
However, I don't quite understand why '[' needs to be escaped during
completion:

$ ls -la [\ ]\ [\ ]\ []\ ][
$ ls -la \[\ ]\ \[\ ]\ \[]\ ]\[

these two produce the same result:
-rw-r--r--  1 daniell  daniell  0 Mar 24 15:38:38 2011 [ ] [ ] [] ][


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: stat(1) -x option shows no setuid/setgid - patch

2010-10-06 Thread LEVAI Daniel
On Tue, Oct 05, 2010 at 14:46:42 -0700, Philip Guenther wrote:
> On Sat, 2 Oct 2010, LEVAI Daniel wrote:
[...]
> > Mode: (104555/-r-sr-xr-x)
> >^^^
> 
> Hmm, that doesn't match the Linux/GNU stat behavior, which doesn't show 
> the file-type bits, bits which no sane program looks at except via the 
> macros in .  Might I suggest instead this diff?
[...]
> $ obj/stat -x /usr/bin/passwd ./foo /dev/null
>   File: "/usr/bin/passwd"
>   Size: 26280FileType: Regular File
>   Mode: (4555/-r-sr-xr-x) Uid: (0/root)  Gid: (7/ bin)
[...]

That makes more sense, indeed!


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



stat(1) -x option shows no setuid/setgid - patch

2010-10-02 Thread LEVAI Daniel
Hi!

I noticed that executin stat -x on a setuid or setgid file don't display
the setuid/setgid mode in the numeric Mode: field:

$ /usr/bin/stat -x /usr/bin/passwd  
   
File: "/usr/bin/passwd"
Size: 22484FileType: Regular File
Mode: (0555/-r-sr-xr-x) [...]
   ^


This patch solves it by removing some format characters:


Index: stat.c
===
RCS file: /cvs/src/usr.bin/stat/stat.c,v
retrieving revision 1.16
diff -p -u -r1.16 stat.c
--- stat.c  1 Sep 2010 06:35:05 -   1.16
+++ stat.c  2 Oct 2010 17:35:17 -
@@ -60,7 +60,7 @@
 #define LINUX_FORMAT \
"  File: \"%N\"%n" \
"  Size: %-11z  FileType: %HT%n" \
-   "  Mode: (%04OLp/%.10Sp) Uid: (%5u/%8Su)  Gid: (%5g/%8Sg)%n" \
+   "  Mode: (%p/%.10Sp) Uid: (%5u/%8Su)  Gid: (%5g/%8Sg)%n" \
"Device: %Hd,%Ld   Inode: %iLinks: %l%n" \
"Access: %Sa%n" \
"Modify: %Sm%n" \


After this:
$ /usr/bin/stat -x /usr/bin/passwd 
File: "/usr/bin/passwd"
Size: 22484FileType: Regular File
Mode: (104555/-r-sr-xr-x)
   ^^^


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: Looking for testers for a simple X test

2010-09-01 Thread LEVAI Daniel
On Wed, Sep 01, 2010 at 06:30:05 -0400, Kenneth R Westerback wrote:
> On Wed, Sep 01, 2010 at 09:35:17AM +0200, LEVAI Daniel wrote:
[...]
> > However, using this option, after starting firefox everything gets
> > extremely laggy, and I can interact with my machine with the keyboard or
> > mouse with 4 seconds intervals. After commenting this option, the
> > behaviour returns to the usual.
> 
> I have seen something similar on my testing on an older Dell with
> Intel 845GM as I recall. The mouse and keyboard are unresponsive
> while loading a busy page with many ads. I put this down to those
> particular stations deliberately defeating DNS resolution of many
> ad generating sites, but I couldn't confirm that with the single
> test I tried so far.

My laggyness was before loading any page. I just started mozilla, and it
showed the about:blank page.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: Looking for testers for a simple X test

2010-09-01 Thread LEVAI Daniel
On Mon, Aug 30, 2010 at 23:31:25 +0200, Mark Kettenis wrote:
> The Xorg xserver runs a scary amount of code in a signal handler.
> It's supposed to make your mouse cursor move more smoothly, but I
> can't spot the difference when I disable that "feature".  Instead,
> this "feature" breaks certain multi-card setups and god knows what.
> 
> So we're considering switching this off by default.  Before we do
> that, we'd like to do some wider testing.  If you're regularly sitting
> behind an OpenBSD machine running X, can you add the following lines
> to /etc/X11/xorg.conf (or create one with these lines):
> 
> Section "ServerFlags"
>   Option "UseSIGIO" "false"
> EndSection
> 
> and restart X.  Let me know if you observe any significant changes in
> behaviour.

My cursor acts as usual. It occasionally turns into a big vertical
arrow-like thing, and I got the well known radeonhd bug [1] - "The
cursor shows weird corruptions at some points of the screen", although
I'm not using the radeonhd driver.

However, using this option, after starting firefox everything gets
extremely laggy, and I can interact with my machine with the keyboard or
mouse with 4 seconds intervals. After commenting this option, the
behaviour returns to the usual.


Daniel


[1] - https://bugs.freedesktop.org/show_bug.cgi?id=13405


-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: re(4) diff needs testing.

2010-04-12 Thread LEVAI Daniel
On Sat, Apr 10, 2010 at 08:46:16PM -0400, Brad wrote:
> Please test the following diff with any re(4) adapters.
> This is an adaption of some code from FreeBSD to help with
> identification of certain chipsets. Just make sure the
> driver still attaches Ok. There should be no change
> with the dmesg info printed. Let me know if there is.
> 
> Please provide me with a dmesg.
I've tried it with a Linksys PCM1000 Gigabit PC-Card in a Lenovo
Thinkpad T60, but no luck. Don't worry, it didn't work before this
either :), but I thought I'd try it nevertheless. This card is bugging
since I've got it, because I always get this when I insert it:

re0 at cardbus0 dev 0 function 0 "Realtek 8169" rev 0x10: RTL8169/8110SB 
(0x1000), irq 11, address 00:12:17:f0:c8:21
re0: PHY write failed
re0: PHY write failed
re0: PHY read failed
re0: no PHY found!

About a year ago Martynas had tried to vivify it, but had no luck with it.
He told me Linux has some magic to initialize it.
So anyway, still no luck :)


Dani


:r ~/dmesg.boot_re_patch:
OpenBSD 4.7-current (GENERIC.MP) #0: Mon Apr 12 12:16:39 CEST 2010
dani...@digidani:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz ("GenuineIntel" 686-class) 1.83 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
real mem  = 2145808384 (2046MB)
avail mem = 2070093824 (1974MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/27/09, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS 
rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version "79ETE5WW (2.25 )" date 08/27/2009
bios0: LENOVO 2007FRG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2400 @ 1.83GHz ("GenuineIntel" 686-class) 1.83 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4511" serial 21826 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 
0xe/0x1!
cpu0: Enhanced SpeedStep 1829 MHz: speeds: 1833, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82945GM PCIE" rev 0x03: apic 1 int 16 (irq 
11)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility X1400" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at radeondrm0
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: apic 1 int 
17 (irq 11)
azalia0: RIRB time out
azalia0: codecs: Analog Devices AD1981HD, 0x/0x, using Analog Devices 
AD1981HD
azalia0: RIRB time out
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 20 
(irq 11)
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: apic 1 int 
16 (irq 11), address 00:16:41:aa:d2:70
ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 1 int 21 
(irq 11)
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: apic 1 int 
17 (irq 11), MoW2, address 00:18:de:65:2d:37
ppb3 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 1 int 22 
(irq 11)
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 1 int 23 
(irq 11)
pci5 at ppb4 bus 12
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 16 
(irq 11)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 17 
(irq 11)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18 
(irq 11)

Re: disklabel - 'P' option

2010-04-07 Thread LEVAI Daniel
On Wed, Apr 07, 2010 at 11:21:49AM +, Mark Lumsden wrote:
> I press 'p' then  after everything I do in disklabel.
> 
> 'P' automatically prints out the equivalent of 'p' after each command and 
> saves on finger wear and tear.
> 
> like/dislike?
Neat!


Dani

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



ksh man diff (mknod)

2010-03-26 Thread LEVAI Daniel
Hi!


I've noticed that ksh's man page mentions mknod's b(lock) and c(har)
device parameters as optional, but they are mandatory. Does the following
diff make sense?:

--- ksh.1.old   2010-02-26 18:54:15.0 +0100
+++ ksh.1   2010-03-26 20:38:44.601680717 +0100
@@ -3331,7 +3331,7 @@
 .Ic mknod
 .Op Fl m Ar mode
 .Ar name
-.Op Cm b | Cm c
+.Cm b | c
 .Ar major minor
 .Xc
 .It Xo


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: ksh file completion bug

2010-02-24 Thread LEVAI Daniel
Hi!

Thanks to all who have replied.
I'm really baffled with this. I've upgraded to a more recent snapshot,
and it has gone away since. However I'm not really sure that the error was in 
the previous
snapshot, in fact it was probably a PEBKAC, but I've no idea what could've been 
the problem.
Anyway, sorry for the noise.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



ksh file completion bug

2010-02-22 Thread LEVAI Daniel
Hi!

With ksh's Vi edit mode I've experienced the following:
If a file's size is exactly 2GiB or more, pdksh fails to complete its name
during filename completion (eg.: hitting TAB or CTRL+e or whatever).
If the file's size is just one byte short of the 2 gigs, then the completion
works fine.

Quick way to test it:
$ dd if=/dev/zero of=./2GiB bs=1024 count=2097152
$ ls -la 2G ... => nothing


Daniel


ps.: this is under -current and i386

-- 
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: aucat on low latency setups

2010-01-18 Thread LEVAI Daniel
On Saturday 16 January 2010 18.11.50 Alexandre Ratchov wrote:
> Hi,
>
> The diff below allows aucat to use only two audio blocks,
> which lowers the server-side latency. The diff should not
> impact stability, actually it should slightly improve it.
> Yeah, I know, improved stablility with smaller buffers might
> sound surprising...
>
> I'd love if people could test this diff to be sure it breaks
> nothing. I'm mostly interrested in sound degradation (if
> any) caused by this diff.

I've tried this with -current, and it works the same as before. I guess this
is good news.


Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



/etc/security - patch for don't count lost+found in /var/mail

2009-11-01 Thread LEVAI Daniel
Hi!

/etc/security complains about the lost+found directory in /var/mail. Here is a
diff to ignore a lost+found named directory in /var/mail:

--- security.orig   Wed Aug 13 00:51:28 2008
+++ securitySun Nov  1 09:04:48 2009
@@ -434,7 +434,7 @@
 fi

 # Mailboxes should be owned by user and unreadable.
-ls -l /var/mail | sed 1d | \
+ls -l /var/mail | sed 1d | egrep -v '^d.* lost\+found$' \
 awk '$3 != $9 \
{ print "user " $9 " mailbox is owned by " $3 }
  $1 != "-rw---" \



Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



rcs preserving owners and groups

2009-07-23 Thread LEVAI Daniel
Hi!

Here is a diff, if someone is interested, which adds a new option to rcs'
ci(1) and co(1) to preserve owner and group information across
checkins/checkouts. I was really missing this feature with config files
which have to have uid/gid other than root/wheel and needed to manage the
files as root with rcs.
The man page addition probably could be more elaborate (or not),
and the option name (-O) is just from the top of my head.


Index: usr.bin/rcs/ci.1
===
RCS file: /cvs/src/usr.bin/rcs/ci.1,v
retrieving revision 1.35
diff -N -p -u usr.bin/rcs/ci.1
--- usr.bin/rcs/ci.126 Aug 2007 21:35:43 -  1.35
+++ usr.bin/rcs/ci.123 Jul 2009 08:32:16 -
@@ -23,7 +23,7 @@
 .Sh SYNOPSIS
 .Nm
 .Bk -words
-.Op Fl qV
+.Op Fl qVO
 .Op Fl d Ns Op Ar date
 .Op Fl f Ns Op Ar rev
 .Op Fl I Ns Op Ar rev
@@ -178,6 +178,8 @@ default time zone for
 used in the
 .Fl d
 option.
+.It Fl O
+Preserve owner and group information of files.
 .El
 .Pp
 .Ex -std ci
Index: usr.bin/rcs/ci.c
===
RCS file: /cvs/src/usr.bin/rcs/ci.c,v
retrieving revision 1.205
diff -N -p -u usr.bin/rcs/ci.c
--- usr.bin/rcs/ci.c25 Feb 2009 23:16:20 -  1.205
+++ usr.bin/rcs/ci.c23 Jul 2009 08:32:16 -
@@ -37,7 +37,7 @@
 #include "rcsprog.h"
 #include "diff.h"

-#define CI_OPTSTRING   "d::f::I::i::j::k::l::M::m::N:n:qr::s:Tt::u::Vw:x::z::"
+#define CI_OPTSTRING
"d::f::I::i::j::k::l::M::m::N:n:Oqr::s:Tt::u::Vw:x::z::"
 #define DATE_NOW   -1
 #define DATE_MTIME -2

@@ -98,7 +98,7 @@ void
 checkin_usage(void)
 {
fprintf(stderr,
-   "usage: ci [-qV] [-d[date]] [-f[rev]] [-I[rev]] [-i[rev]]\n"
+   "usage: ci [-qVO] [-d[date]] [-f[rev]] [-I[rev]] [-i[rev]]\n"
"  [-j[rev]] [-k[rev]] [-l[rev]] [-M[rev]] [-mmsg]\n"
"  [-Nsymbol] [-nsymbol] [-r[rev]] [-sstate] [-tstr]\n"
"  [-u[rev]] [-wusername] [-xsuffixes] [-ztz] file ...\n");
@@ -183,6 +183,9 @@ checkin_main(int argc, char **argv)
if (rcs_sym_check(pb.symbol) != 1)
errx(1, "invalid symbol `%s'", pb.symbol);
break;
+   case 'O':
+   base_flags |= PRESERVEOWNER;
+   break;
case 'q':
base_flags |= QUIET;
break;
@@ -585,6 +588,10 @@ checkin_update(struct checkin_params *pb)
/* Strip all the write bits */
pb->file->rf_mode = st.st_mode & ~(S_IWUSR|S_IWGRP|S_IWOTH);

+   /* Preserve the owner and group */
+   pb->file->rf_uid = (pb->flags & PRESERVEOWNER) ? st.st_uid : -1;
+   pb->file->rf_gid = (pb->flags & PRESERVEOWNER) ? st.st_gid : -1;
+
(void)close(workfile_fd);
(void)unlink(pb->filename);

@@ -705,6 +712,10 @@ skipdesc:
/* Strip all the write bits */
pb->file->rf_mode = st.st_mode & ~(S_IWUSR|S_IWGRP|S_IWOTH);

+   /* Preserve the owner and group */
+   pb->file->rf_uid = (pb->flags & PRESERVEOWNER) ? st.st_uid : -1;
+   pb->file->rf_gid = (pb->flags & PRESERVEOWNER) ? st.st_gid : -1;
+
(void)close(workfile_fd);
(void)unlink(pb->filename);

@@ -713,10 +724,9 @@ skipdesc:

/* Do checkout if -u or -l are specified. */
if (((pb->flags & CO_LOCK) || (pb->flags & CO_UNLOCK)) &&
-   !(pb->flags & CI_DEFAULT)) {
+   !(pb->flags & CI_DEFAULT))
checkout_rev(pb->file, pb->newrev, pb->filename, pb->flags,
pb->username, pb->author, NULL, NULL);
-   }

if (!(pb->flags & QUIET)) {
fprintf(stderr, "initial revision: %s\n",
Index: usr.bin/rcs/co.1
===
RCS file: /cvs/src/usr.bin/rcs/co.1,v
retrieving revision 1.28
diff -N -p -u usr.bin/rcs/co.1
--- usr.bin/rcs/co.131 May 2007 19:20:14 -  1.28
+++ usr.bin/rcs/co.123 Jul 2009 08:32:17 -
@@ -23,7 +23,7 @@
 .Sh SYNOPSIS
 .Nm
 .Bk -words
-.Op Fl TV
+.Op Fl TVO
 .Op Fl d Ns Ar date
 .Op Fl f Ns Op Ar rev
 .Op Fl I Ns Op Ar rev
@@ -132,6 +132,8 @@ default time zone for
 used in the
 .Fl d
 option.
+.It Fl O
+Preserve owner and group information of files.
 .El
 .Pp
 .Ex -std co
Index: usr.bin/rcs/co.c
===
RCS file: /cvs/src/usr.bin/rcs/co.c,v
retrieving revision 1.110
diff -N -p -u usr.bin/rcs/co.c
--- usr.bin/rcs/co.c25 Feb 2009 23:16:20 -  1.110
+++ usr.bin/rcs/co.c23 Jul 2009 08:32:18 -
@@ -36,7 +36,7 @@
 #include "rcsprog.h"
 #include "diff.h"

-#define CO_OPTSTRING   "d:f::I::k:l::M::p::q::r::s:Tu::Vw::x::z::"
+#define CO_OPTSTRING   "d:f::I::k:l::M::Op::q::r::s:Tu::Vw::x::z::"

 static voidcheckout_err_nobranch(RCSFILE *, const char *, const char *,
 const char *, int);
@@ -93,6 +93,9 @@ c

Re: azalia: use line out jack colors in mixer names

2009-06-23 Thread LEVAI Daniel
On Tuesday 23 June 2009 03.39.55 Jacob Meuser wrote:
> this is looking good but more test reports are always nice.

It is working okay here. ThinkPad T60.

[...]
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: apic 1
int 17 (irq 11
)
azalia0: RIRB time out
azalia0: codecs: Analog Devices AD1981HD, 0x/0x, using Analog Devices
AD1981HD
azalia0: RIRB time out
audio0 at azalia0
[...]

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



add long option names to mount_nfs' man page

2009-06-13 Thread LEVAI Daniel
Hi!

If anyone is interested, here is a patch to mount_nfs' man page, to include
mount_nfs(8) parameters' long versions (the fstab(5) style long versions).
Perhaps referring to the options as "long versions" is not quite right, but
I couldn't come up with anything different.


Index: mount_nfs.8
===
RCS file: /cvs/src/sbin/mount_nfs/mount_nfs.8,v
retrieving revision 1.39
diff -u -r1.39 mount_nfs.8
--- mount_nfs.8 6 Jun 2009 20:58:50 -   1.39
+++ mount_nfs.8 13 Jun 2009 12:10:54 -
@@ -70,22 +70,26 @@
 .Bl -tag -width Ds
 .It Fl 2
 Use the NFS Version 2 protocol.
+The long version of this option is "nfsv2".
 .It Fl 3
 Use the NFS Version 3 protocol.
 The default is to try version 3 first, and
 fall back to version 2 if the mount fails.
+The long version of this option is "nfsv3".
 .It Fl a Ar maxreadahead
 Set the read-ahead count to the specified value.
 This may be in the range of 0\-4, and determines how many blocks
 will be read ahead when a large file is being read sequentially.
 Trying a value greater than 1 for this is suggested for
 mounts with a large bandwidth-delay product.
+The long version of this option is "readahead".
 .It Fl b
 If an initial attempt to contact the server fails, fork off a child to keep
 trying the mount in the background.
 Useful for
 .Xr fstab 5 ,
 where the file system mount is not critical to multiuser operation.
+The long version of this option is "bg".
 .It Fl c
 For UDP mount points, do not do a
 .Xr connect 2 .
@@ -94,6 +98,7 @@
 It may also be required for servers
 with more than one IP address (only necessary if replies come from
 an address other than the one specified in the mount request).
+The long version of this option is "noconn".
 .It Fl d
 Turn off the dynamic retransmit timeout estimator.
 This may be useful for UDP mounts that exhibit high retry rates,
@@ -106,15 +111,18 @@
 group list size of 16, as specified in RFC 1057.
 Try 8, if users in a lot of groups cannot get a response from the mount
 point.
+The long version of this option is "maxgrouplist".
 .It Fl I Ar readdirsize
 Set the readdir read size to the specified value.
 The value should normally be a multiple of
 .Dv DIRBLKSIZ
 that is less than or equal to the read size for the mount.
+The long version of this option is "rdirsize".
 .It Fl i
 Make the mount interruptible, which implies that file system calls that
 are delayed due to an unresponsive server will fail with EINTR when a
 termination signal is posted for the process.
+The long version of this option is "intr".
 .It Fl l
 Used with NFSV3 to specify that the
 .Dq readdir plus
@@ -127,6 +135,7 @@
 Probably
 most useful for client to server network interconnects with a large
 bandwidth-delay product.
+The long version of this option is "rdirplus".
 .It Fl o Ar options
 Options are specified with a
 .Fl o
@@ -170,6 +179,7 @@
 .It Fl R Ar retrycnt
 Set the retry count for doing the mount to the specified value.
 The default is 1.
+The long version of this option is "retrycnt".
 .It Fl r Ar readsize
 Set the read data size to the specified value.
 It should normally be a power of 2 greater than or equal to 1024.
@@ -185,15 +195,18 @@
 See the
 .Fl w
 option as well.
+The long version of this option is "rsize".
 .It Fl s
 A soft mount, which implies that file system calls will fail
 after
 .Ar retrans
 round trip timeout intervals have been reached (see
 .Fl x ) .
+The long version of this option is "soft".
 .It Fl T
 Use TCP instead of UDP.
 Note that TCP may not be supported by some very old NFS servers.
+The long version of this option is "tcp".
 .It Fl t Ar timeout
 Set the initial retransmit timeout to the specified value in milliseconds.
 May be useful for fine tuning UDP mounts over internetworks
@@ -207,11 +220,13 @@
 option should be specified when using this option to manually
 tune the timeout
 interval.)
+The long version of this option is "timeo".
 .It Fl U
 Force the mount protocol to use UDP, even for TCP NFS mounts.
 (Necessary for some old
 .Bx
 servers.)
+The long version of this option is "udp".
 .It Fl w Ar writesize
 Set the write data size to the specified value.
 Ditto the comments w.r.t. the
@@ -225,9 +240,11 @@
 .Fl w
 options should only be used as a last ditch effort at improving performance
 when mounting servers that do not support TCP mounts.
+The long version of this option is "wsize".
 .It Fl x Ar retrans
 Set the retransmit timeout count for soft mounts to the specified value.
 Defaults to 10.
+The long version of this option is "retrans".
 .El
 .Pp
 In versions prior to



Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: ksh vi mode werase (^W) handling

2009-06-09 Thread LEVAI Daniel
On Tuesday 09 June 2009 19.47.48 you wrote:
> The problem was just as you desribed. Below is a diff to restore 'B' and
> do the right thing on ^W. Thanks!
Thank You, for the quick response.

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: ACPI C-States diff

2009-06-09 Thread LEVAI Daniel
On Sunday 07 June 2009 21.48.24 you wrote:
> Sending out an initial attempt at implementing C-states for APCI CPUs.
> The C-states are used to implement the CPU idle loop per CPU.

Crash with i386 SMP.

Screenshots are here:

http://leva.ecentrum.hu/acpi_crash/

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: ACPI C-States diff

2009-06-09 Thread LEVAI Daniel
On Tuesday 09 June 2009 14.46.01 you wrote:
> Can we get some tests on this?
>
I will upload the trace and crash today.

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: ksh vi mode werase (^W) handling

2009-06-09 Thread LEVAI Daniel
> Hi,
>
> Here's a diff to make ksh vi mode handle werase more like vi. It's
> really irritating to have whole paths go away on ^W instead of just the
> last bit.

I think this broke the vi edit so that now you can not go back a whole word
with the B (that is capital B) character in command mode:

Example:
(ksh, vi edit mode)

Typing in a path, like "/some/thing/some/where":
$ ls /some/thing/some/where
If you press ESC, and at the start you press the lower case 'w', then it will
jump to the '/' characters, but if you press the capital 'W', it will jump to
the  characters, so it jumps whole words (just like in vi :). But the
opposite version with the capital 'B' character is not working anymore; it
acts like if you pressed the lower case 'b', so it won't jump back to 
characters, only to '/' characters.

Is this the intended functioning? (I hope not :( )

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: ACPI C-States diff

2009-06-08 Thread LEVAI Daniel
On Sunday 07 June 2009 21.48.24 you wrote:
> Sending out an initial attempt at implementing C-states for APCI CPUs.
> The C-states are used to implement the CPU idle loop per CPU.
>
> Please send dmesgs of booting using this patch.
I can not boot bsd.mp with this patch with a ThinkPad T60; kernel crashes at
acpi0. The non-smp kernel works. I'll attach a link to some pictures
capturing the trace and the crash, but now I have no photo equipment in my
reach.

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: Please test this diff on as many acpi systems as possible

2009-06-08 Thread LEVAI Daniel
On Sunday 07 June 2009 06.23.34 g...@gwk.ca wrote:
> And it works better if you send the actual diff you would like tested
> sorry about this, but please test this one.
I'm experiencing no problem on a ThinkPad T60.

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: nfs retransmission book keeping

2009-05-21 Thread LEVAI Daniel
On Thursday 21 May 2009 01.29.07 you wrote:
> Hi gang...
>
> It would be great if people running NFS (soft, and hard mounts)
> could give this diff a spin. what it does essentially is to redo
> the retransmission booking by keeping count of maximum rexmits in
> one place (the nfsmount structure) and kill deadthresh, (an nqnfs
> left over); that causes a slight behaviour change when printing
> the "not responding" message for dead servers (it does it now
> a tad bit sooner then before (at 4 rexmits, not 9 iirc)).
>
> this diff is first of a few to get the stale/dead nfs mount point
> issued fixed.

$ mount |fgrep nfs
:/mnt/data/music on /mnt/serenity_music type nfs (nodev, nosuid,
read-only, v3, udp, soft, intr, timeo=100)

Working OK with it. Should I do something with it (plug the network out, kill
the nfsd), to further test it?

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1