Re: Revealing secrets in netstart and other shell scripts
On 23 January 2011 c. 10:11:52 Philip Guenther wrote: 2011/1/22 Vadim Zhukov persg...@gmail.com: Just got that: 1. ksh updates it's real argv when set -- is used. Can you give an example of when you see that? I'm not seeing it when I tried: $ cat /tmp/f #!/bin/ksh set -- foo bar baz echo $@ sleep 120 $ /tmp/f blah blah blah blah blah [1] 19109 $ foo bar baz $ ps -p $! -o command COMMAND /bin/ksh /tmp/f blah blah blah blah blah $ O-oh. Sorry. Looks like my imagination run before my mind. :( Sorry again... I found that shift command altered argv, and decided that set -- makes this too. Why did I thought such thing and didn't checked it - don't know. I promise to not to write here before sleep. Sorry again. :( -- Best wishes, Vadim Zhukov A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
Re: Workaround for data corruption issue with ALI M5229 IDE chip used with Sun Blade 100/Netra X1.
On Wed, Jan 12, 2011 at 08:32:12PM -0500, Brad wrote: The following diff is ported from NetBSD (the workaround originated from OpenSolaris) to workaround the issue of data corruption with the ALI M5229 IDE chipset when using UltraDMA. Same workaround is also used by FreeBSD/Linux. This chipset is found in some sparc64 systems such as the Blade 100 and Netra X1. I don't have any such systems but I went digging for this being curious why the nasty hack was added to the kernel configs to disable UltraDMA to workaround this bug and thus penalizing other IDE/SATA controllers that could be in the same system. If you have one of the mentioned systems please test this. Ok with a bit more digging I think I found out why the workaround is not functioning correctly. I found in rev 1.90 of wdc.c jsg@ added the infrastructure to allow for the reset callback but then part of it was reverted by miod@ in rev 1.93 due to an issue with a NULL pointer dereference on some systems and no one bothered to go back and fix it. I brought over the fix for this issue from NetBSD. This needs testing on any IDE/SATA controllers. Index: wdc.c === RCS file: /home/cvs/src/sys/dev/ic/wdc.c,v retrieving revision 1.109 diff -u -p -r1.109 wdc.c --- wdc.c 21 Sep 2010 03:33:32 - 1.109 +++ wdc.c 23 Jan 2011 19:46:03 - @@ -589,6 +589,9 @@ wdcprobe(struct channel_softc *chp) int savedmask = wdcdebug_mask; #endif + if (chp-wdc-reset == NULL) + chp-wdc-reset = wdc_do_reset; + if (chp-_vtbl == 0) { int s = splbio(); chp-_vtbl = wdc_default_vtbl; @@ -628,7 +631,7 @@ wdcprobe(struct channel_softc *chp) } /* reset the channel */ - wdc_do_reset(chp); + chp-wdc-reset(chp); ret_value = __wdcwait_reset(chp, ret_value); WDCDEBUG_PRINT((%s:%d: after reset, ret_value=0x%d\n, -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
兔年紅包袋免費索取-關鍵字[衫皇衫家]%%RANDSTRING
Your friend e/d:d8e fg+ g5d= e!! g5f(ggh(o ii 5e [ h!+ g h!+ e.6 ] %%RANDSTRING ee94g4ehe$'f9i ief6g4 ef;?e e h2;e gi ii 5e bh, i# e f f$h3#e 4d8e. d8 iii! h4if g0i6 ii500ee %%RANDSTRING ee94g4ehe h2;g4e-ii 5e[h!+gh!+e.6]%%RANDSTRING http://tw.myblog.yahoo.com/jw!1K84p1yREQXRDO9YOXH0EfAuoaYkEjm18Q--/article?mid=1 Yahoo!e%f)fe0 d= gfe0.ee3.gf4;f0i+i)c http://tw.fashion.yahoo.com/ g f, f f Yahoo!e%f)
Publlicizza ricerca vendi fai amicizia
Per visionare la news sul sito clicca qui Per comprare, vendere, fare amicizia e pubblicizzare la tua azienda in tutta Italia. un servizio completamente gratuito. Clicca qui remove
route: -iface vs. -interface
I noticed route treats the flags -iface and -interface as synonyms. Almost synonyms. This little diff makes monitor accept -interface as the other commands do. It also makes the manual consistent such that only -iface is used throughout it. Index: src/sbin/route/route.8 === RCS file: /cvs/src/sbin/route/route.8,v retrieving revision 1.66 diff -u -p -r1.66 route.8 --- src/sbin/route/route.8 21 Sep 2010 14:46:40 - 1.66 +++ src/sbin/route/route.8 24 Jan 2011 03:29:47 - @@ -271,7 +271,7 @@ or alternately If the destination is directly reachable via an interface requiring no intermediary system to act as a gateway, the -.Fl interface +.Fl iface modifier should be specified; the gateway given is the address of this host on the common network, indicating the interface to be used for transmission. Index: src/sbin/route/route.c === RCS file: /cvs/src/sbin/route/route.c,v retrieving revision 1.152 diff -u -p -r1.152 route.c --- src/sbin/route/route.c 25 Oct 2010 19:39:55 - 1.152 +++ src/sbin/route/route.c 24 Jan 2011 03:29:47 - @@ -1035,6 +1035,7 @@ monitor(int argc, char *argv[]) af = AF_INET6; break; case K_IFACE: + case K_INTERFACE: filter = ROUTE_FILTER(RTM_IFINFO) | ROUTE_FILTER(RTM_IFANNOUNCE); break;
Re: Workaround for data corruption issue with ALI M5229 IDE chip used with Sun Blade 100/Netra X1.
On Sun, Jan 23, 2011 at 04:27:15PM -0500, Brad wrote: Ok with a bit more digging I think I found out why the workaround is not functioning correctly. I found in rev 1.90 of wdc.c jsg@ added the infrastructure to allow for the reset callback but then part of it was reverted by miod@ in rev 1.93 due to an issue with a NULL pointer dereference on some systems and no one bothered to go back and fix it. I brought over the fix for this issue from NetBSD. This needs testing on any IDE/SATA controllers. FWIW, I tried this patch together with the workaround and a printf added to acer_do_reset on my Blade 150. I'm seeing that - acer_do_reset is beeing called - there are still read errors just after the resets: Jan 23 23:16:12 gilda /bsd: acer_do_reset Jan 23 23:16:13 gilda /bsd: wd0a: DMA error reading fsbn 14097936 of 14097936-14097967 (wd0 bn 14097936; cn 3455 tn 6 sn 6), retrying Jan 23 23:16:13 gilda /bsd: wd0: soft error (corrected) Jan 24 01:30:30 gilda /bsd: acer_do_reset Jan 24 01:30:31 gilda /bsd: wd0a: DMA error reading fsbn 10239004 of 10239004-10239035 (wd0 bn 10239004; cn 2509 tn 8 sn 244), retrying Jan 24 01:30:31 gilda /bsd: wd0: soft error (corrected) Jan 24 01:30:35 gilda /bsd: acer_do_reset Jan 24 01:30:37 gilda /bsd: wd0a: DMA error reading fsbn 10366820 of 10366820-10366851 (wd0 bn 10366820; cn 2540 tn 14 sn 50), retrying Jan 24 01:30:37 gilda /bsd: wd0: soft error (corrected) As far as I'm concerned, I'd stick to UDMA2 for this stupid controller rather than wasting more time on this. -- Matthieu Herrb