Message-ID: <4DRSK5$C80@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 70, Issue 19
Date: Sat, 31 Jul 2004 12:25:41 +0000
From: Galoisz.bbs@bbs.ustc.edu.cn (���博士)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.mbox.zip!g2news1.google.com!news1.google.com!newshub.sdsu.edu!news-xfer.cox.net!peer02.cox.net!cox.net!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1091276741.A
Lines: 1552
Xref: 74.82.202.154 cn.bbs.comp.unix:1407


Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. Re: new gcc 3.4.2 compiler and ports (Sean McNeil)
   2. Re: 5.2.1 with Linksys WPC54G & NDIS project evil...
      (freeman dyson)
   3. Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
      no	interrupt") (Brian Fundakowski Feldman)
   4. Re: Synaptics Touchpad sample port adopted for current's
      psm.c (Brian Fundakowski Feldman)
   5. Re: ALTQ driver: an(4), ath(4), hme(4), ndis(4), vr(4) and
      wi(4) (Brian Fundakowski Feldman)
   6. Re: Synaptics Touchpad sample port adopted for current's
      psm.c (Daniel O'Connor)
   7. Re: Is there still sufficient reason for hw.ata.atapi_dma
      being 0	by default? (Josh Elsasser)
   8. [current tinderbox] failure on alpha/alpha (FreeBSD Tinderbox)
   9. Re: RFC: Alternate patch to have true new-style rc.d scripts
      inports (without touching localpkg) (Oliver Eikemeier)
  10. Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
      no interrupt") (S?ren Schmidt)
  11. Re: [current tinderbox] failure on alpha/alpha
      (Pawel Jakub Dawidek)
  12. RE: RFC: Alternate patch to have true new-style rc.d scripts
      inports (without touching localpkg) (Rob MacGregor)
  13. Re: [PATCH] ip4/6 jail enhancements (Meno Abels)
  14. [current tinderbox] failure on amd64/amd64 (FreeBSD Tinderbox)
  15. Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
      no interrupt") (Tai-hwa Liang)
  16. Re: RFC: Alternate patch to have true new-style rc.d scripts
      inports (without touching localpkg) (Oliver Eikemeier)
  17. RE: RFC: Alternate patch to have true new-style rc.d scripts
      inports (without touching localpkg) (Rob MacGregor)
  18. [current tinderbox] failure on i386/i386 (FreeBSD Tinderbox)
  19. NDISulator: rtl8180, NDIS buggy driver deleting active buffer
      pool. (quetzal@roks.biz)
  20. Re: RFC: Alternate patch to have true new-style rc.d scripts
      in	ports (without touching localpkg) (Mike Makonnen)
  21. Re: magic sysrq keys functionality (Matthias Andree)
  22. RE: RFC: Alternate patch to have true new-style rc.d scripts
      inports (without touching localpkg) (Garance A Drosihn)
  23. Re: Is there still sufficient reason for hw.ata.atapi_dma
      being 0	by default? (Matthias Andree)
  24. [stephane.wirtel@belgacom.net: Re: [current tinderbox]
      failure on	i386/i386] (Stephane Wirtel)


----------------------------------------------------------------------

Message: 1
Date: Fri, 30 Jul 2004 23:17:39 -0700
From: Sean McNeil <sean@mcneil.com>
Subject: Re: new gcc 3.4.2 compiler and ports
To: "Christopher M. Giordano" <CGiordano@ids.net>
Cc: freebsd-current@freebsd.org
Message-ID: <1091254659.47244.1.camel@server.mcneil.com>
Content-Type: text/plain

On Fri, 2004-07-30 at 22:00, Christopher M. Giordano wrote:
> Sean McNeil wrote:
> > I don't know if anyone is interested in this information, but I thought
> > I'd give a list of ports that I use which will not compile under the new
> > gcc 3.4.2:
> 
> Also:
> 
> multimedia/kmplayer
> 
> After upgrading world to new GCC - and then switching to X.org,
> some of my KDE ports no worky:
> 
> $ ~ >
> $ ~ > kmplayer
> /libexec/ld-elf.so.1: /usr/local/lib/libkdeinit_kmplayer.so: Undefined symbo
l "_ZNSt24__default_alloc_templateILb1ELi0EE12_S_free_listE"
> $ ~ >
> $ ~ > kmamerun
> /libexec/ld-elf.so.1: Undefined symbol "_ZNSt24__default_alloc_templateILb1E
Li0EE12_S_free_listE" referenced from COPY relocation in kmamerun
> $ ~ >
> $ ~ > kugar
> /libexec/ld-elf.so.1: /usr/local/lib/libkofficecore.so.2: Undefined symbol "
_ZNSt24__default_alloc_templateILb1ELi0EE12_S_free_listE"
> $ ~ >
> 
> Looks like maybe a name mangling issue with the new GCC?
> 
> kmamerun was fixed by a recompile, but multimedia/kmplayer
> no longer compiles; I haven't retried kugar [from koffice] yet...

Did you do a portupgrade -af?  I've seen messages about name mangle
changes for 3.4.x, so you most likely need to recompile all C++
libraries.



------------------------------

Message: 2
Date: Fri, 30 Jul 2004 23:32:08 -0700 (PDT)
From: freeman dyson <freemandyson2001@yahoo.com>
Subject: Re: 5.2.1 with Linksys WPC54G & NDIS project evil...
To: Maxim Konovalov <maxim@macomnet.ru>,	Marian Hettwer
	<Mh@kernel32.de>
Cc: freeman dyson <freemandyson2001@yahoo.com>
Message-ID: <20040731063208.96519.qmail@web90109.mail.scd.yahoo.com>
Content-Type: text/plain; charset=us-ascii


aah, thanks, well, the card works fine with noone ( or
not many ) other people on the net... but when it gets
congested... well, I can't get any pings...

no worries, the conference is over...

--- Maxim Konovalov <maxim@macomnet.ru> wrote:

> On Fri, 30 Jul 2004, 09:12+0200, Marian Hettwer
> wrote:
> 
> >
> >
> > Maxim Konovalov wrote:
> > > On Thu, 29 Jul 2004, 11:57-0700, freeman dyson
> wrote:
> > >>I'm Running FreeBSD 5.2.1-RELEASE on a Dell
> Latitude.
> > >>I have a Linksys WPC54G.  I've gotten the
> > >
> > >>anyone have any sugesstions?
> > >
> > >
> > > I see no problems with WPC64G and ath(4) on my
> sony v505bx.  Yes, it
> > > is -CURRENT, not sure about 5.2.1-R.
> > >
> > I guess it was a typo, 'cause the thread is about
> the WPC54G ...
> > However, I was wondering wether it's really
> supported by ath(4) in -CURRENT,
> > because the WPC54G isn't atheros based. It has
> some strange Broadcom Chipset,
> > which is AFAIK not supported by ath.
> > Also the online manpage of ath(4) is not
> mentioning the LinkSys WPC54G. I have
> > FreeBSD 5.2.1 running and it's definitly not
> supported by ath(4).
> 
> Yes, that was supposed to be WPC54AG, sorry for the
> confusion :-|
> 
> -- 
> Maxim Konovalov
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

------------------------------

Message: 3
Date: Sat, 31 Jul 2004 02:44:33 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
	no	interrupt")
To: Nate Lawson <nate@root.org>
Cc: current@freebsd.org
Message-ID: <20040731064433.GD33220@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 30, 2004 at 03:48:52PM -0700, Nate Lawson wrote:
> I've tracked down the source of the memory corruption in -current that
> results when booting with various CD and DVD drives (especially the ones
> that come with Thinkpads including T23, R32, T41, etc.)  The panic is
> obvious when running with INVARIANTS ("memory modified after free") but
> not so obvious in other configurations.  For instance, without
> INVARIANTS, part of the rt_info structure is corrupted on my wireless
> card, resulting in a panic during ifconfig on boot.  This is likely the
> source of other problems, including phk's ACPI panic (again, only
> triggered when booting with the CD drive in the bay.)
> 
> The root problem is that ata_timeout() fires and calls ata_pio_read()
> which overwrites 512 bytes random memory.  There are actually two bugs 
> here that overwrite memory.  The code path is as follows:

Good job identifying it more exactly.  I decided it should just fundamentally

be using GEOM primitives everywhere to move the solutions to all these
side cases into where they're already handled generically... still think
that's probably the right solution, but I'm glad to see this specific
problem fixed.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


------------------------------

Message: 4
Date: Sat, 31 Jul 2004 02:47:45 -0400
From: Brian Fundakowski Feldman <green@FreeBSD.org>
Subject: Re: Synaptics Touchpad sample port adopted for current's
	psm.c
To: Norikatsu Shigemura <nork@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040731064745.GE33220@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Sat, Jul 31, 2004 at 08:51:07AM +0900, Norikatsu Shigemura wrote:
> Hi Synaptics Touchpad user.
> 
> 	I fixed my sample port for support current mouse driver.
> 
> 	TODO:
> 	  update to 1.13.4.
> 	  merge to xorg-server.
> 	  MFC

Do you know a quick way to identify whether the PS/2 mouse is actually
a Synaptics or not?


-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


------------------------------

Message: 5
Date: Sat, 31 Jul 2004 02:50:39 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: ALTQ driver: an(4), ath(4), hme(4), ndis(4), vr(4) and
	wi(4)
To: Max Laier <max@love2party.net>
Cc: freebsd-net@freebsd.org
Message-ID: <20040731065039.GF33220@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Sat, Jul 31, 2004 at 04:34:09AM +0200, Max Laier wrote:
> Hi,
> 
> patch at:
> http://people.freebsd.org/~mlaier/altq_driver2.diff
> 
> If you are maintaining any of the above, please take a look and tell me if y
ou 
> object. ndis(4) maintains code portability to 5.2.1 as requested.
> 
> All drivers were tested as described on:
>   http://people.freebsd.org/~mlaier/ALTQ_driver/
> 
> After this we have ALTQ support for the following NICs:
>   an(4), ath(4), bfe(4), de(4), em(4), fxp(4), hme(4), lnc(4), ndis(4), rl(4
), 
>   sis(4), tun(4), vr(4), wi(4) and xl(4).
> 
> I'll happily add *your* driver to the list if you can do some basic tests as
 
> described on above URL. Please let me know if you want to try a driver not 

> yet patched on the page (or if you run into problems with any patch from 
> there). TIA!

Is there anything non-obvious that needs to be done for the driver at
http://green.homeunix.org/~green/prism54-driver/pff/if_pff.c?  TIA^2.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


------------------------------

Message: 6
Date: Sat, 31 Jul 2004 16:58:18 +0930
From: "Daniel O'Connor" <doconnor@gsoft.com.au>
Subject: Re: Synaptics Touchpad sample port adopted for current's
	psm.c
To: freebsd-current@freebsd.org
Cc: Norikatsu Shigemura <nork@freebsd.org>
Message-ID: <200407311658.18256.doconnor@gsoft.com.au>
Content-Type: Text/Plain;  charset="iso-8859-1"

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 31 Jul 2004 16:17, Brian Fundakowski Feldman wrote:
> Do you know a quick way to identify whether the PS/2 mouse is actually
> a Synaptics or not?

Not without kernel code AFAIK (psm won't let you pass enough to the mouse to 

actually put it into Synaptics mode)

- -- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBC0oS5ZPcIHs/zowRAnEDAJ9Xh2rZaBfNesN4A18hU6gcSisAYQCfcsxE
Q3MsL7jvuOOTSqpNZXftQhs=
=KOZ9
-----END PGP SIGNATURE-----

------------------------------

Message: 7
Date: Fri, 30 Jul 2004 23:09:07 -0400
From: Josh Elsasser <jre@vineyard.net>
Subject: Re: Is there still sufficient reason for hw.ata.atapi_dma
	being 0	by default?
To: Maxim Sobolev <sobomax@portaone.com>
Cc: current@freebsd.org
Message-ID: <20040731030907.GA77313@jade.elsasser.org>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 30, 2004 at 02:59:47PM +0300, Maxim Sobolev wrote:
> Since high-speed CD-RW/DVD-RW recorders (32x - 52x) are commodity now 
> IMO it makes sense to review hw.ata.atapi_dma default of 0, since 
> apparently PIO mode can't support necessary sustained data transfer 
> rates anymore. For example I had had problems burning RWs on 16-24x with 
> several drives in PIO mode, which gone when I've switched to DMA.

Funny, I have a cheap drive that I had problems with when using DMA,
which (mostly) went away when I switched to PIO.  Perhaps the burncd
manpage should mention that you might have to fiddle with
hw.ata.atapi_dma to burn successfully.

 -jre

------------------------------

Message: 8
Date: Sat, 31 Jul 2004 04:55:32 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on alpha/alpha
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<alpha@freebsd.org>
Message-ID: <20040731085532.68C4D7303F@freebsd-current.sentex.ca>

TB --- 2004-07-31 08:00:00 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-31 08:00:00 - starting CURRENT tinderbox run for alpha/alpha
TB --- 2004-07-31 08:00:00 - checking out the source tree
TB --- 2004-07-31 08:00:00 - cd /home/tinderbox/sandbox/CURRENT/alpha/alpha
TB --- 2004-07-31 08:00:00 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-07-31 08:05:17 - building world (CFLAGS=-O -pipe)
TB --- 2004-07-31 08:05:17 - cd /home/tinderbox/sandbox/CURRENT/alpha/alpha/sr
c
TB --- 2004-07-31 08:05:17 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
[...]
cc -fpic -DPIC -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -I/tinderbox/CURRENT/alpha
/alpha/src/sbin/geom/class/label/../.. -Wsystem-headers -Werror -Wall -Wno-for
mat-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-t
ype -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscrip
ts -Winline -Wnested-externs -Wredundant-decls -c /tinderbox/CURRENT/alpha/alp
ha/src/sbin/geom/class/label/geom_label.c -o geom_label.So
cc -fpic -DPIC -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -I/tinderbox/CURRENT/alpha
/alpha/src/sbin/geom/class/label/../.. -Wsystem-headers -Werror -Wall -Wno-for
mat-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-t
ype -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscrip
ts -Winline -Wnested-externs -Wredundant-decls -c /tinderbox/CURRENT/alpha/alp
ha/src/sbin/geom/class/label/../../misc/subr.c -o subr.So
building shared library geom_label.so.1
gzip -cn /tinderbox/CURRENT/alpha/alpha/src/sbin/geom/class/label/glabel.8 > g
label.8.gz
===> sbin/geom/class/mirror
cc -fpic -DPIC -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -I/tinderbox/CURRENT/alpha
/alpha/src/sbin/geom/class/mirror/../.. -Wsystem-headers -Werror -Wall -Wno-fo
rmat-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-
type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscri
pts -Winline -Wnested-externs -Wredundant-decls -c /tinderbox/CURRENT/alpha/al
pha/src/sbin/geom/class/mirror/geom_mirror.c -o geom_mirror.So
cc -fpic -DPIC -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -I/tinderbox/CURRENT/alpha
/alpha/src/sbin/geom/class/mirror/../.. -Wsystem-headers -Werror -Wall -Wno-fo
rmat-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-
type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscri
pts -Winline -Wnested-externs -Wredundant-decls -c /tinderbox/CURRENT/alpha/al
pha/src/sbin/geom/class/mirror/../../misc/subr.c -o subr.So
make: don't know how to make /home/tinderbox/sandbox/CURRENT/alpha/alpha/obj/a
lpha/tinderbox/CURRENT/alpha/alpha/src/i386/lib/geom/libmd.a. Stop
*** Error code 2

Stop in /tinderbox/CURRENT/alpha/alpha/src/sbin/geom/class.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src/sbin/geom.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src/sbin.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src.
TB --- 2004-07-31 08:55:32 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-07-31 08:55:32 - ERROR: failed to build world
TB --- 2004-07-31 08:55:32 - tinderbox aborted


------------------------------

Message: 9
Date: Sat, 31 Jul 2004 11:12:20 +0200
From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Subject: Re: RFC: Alternate patch to have true new-style rc.d scripts
	inports (without touching localpkg)
To: Mike Makonnen <mtm@identd.net>, current@FreeBSD.org
Cc: freebsd-rc@freebsd.org
Message-ID: <410B6274.10609@fillmore-labs.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Mike Makonnen wrote:

> On Wed, Jul 28, 2004 at 05:16:18PM +0200, Oliver Eikemeier wrote:
>> Appended is an alternate patch to have true new-style rc.d scripts in
>> ports. Scripts in ${local_startup} are processed as follows:
>>
>> - scripts ending in .sh are treated as old-style scripts, which means
>> they need to have it's executable bit set to be considered by localpkg
>> as before. Whether they partially use rc.subr features or not isn't
>> relevant. They are executed in lexicographical order like specified in
>> rc(8).
>>
>> - scripts without any extension participate in a system wide 
>> rcorder(8).
>> To enable diskless booting and remote mounting they are not executed
>> before a configurable barrier script ${rclocal_barrier} is executed,
>> which is PORTS is this patch. Whether or not the script is has it's
>> executable bit set is not examined.
>
> I appreciate the effort you are putting into this. However, these hacks
> will only end up confusing users to no-end.

I don't think so. The patch is completely backwards compatible, which 
means everything will run as it did before. Why should anyone be 
confused by that?

> Don't forget that it is
> not only ports scripts that go in /usr/local/etc/rc.d. Lots of users
> also choose to put their local scripts there instead of /etc/rc.d. This
> means that their scripts will behave differently depending on whether
> they put them in /etc/rc.d or /usr/local/etc/rc.d.

As stated above: everything users did before will continue to work. 
Besides, the patch finally unifies /etc/rc.d and /usr/local/etc/rc.d in 
the most important aspect: participating in rcorder(8). A new-style 
script will do the same, no matter whether put in /etc/rc.d or 
/usr/local/etc/rc.d. Legacy script were never executed when put in 
/etc/rc.d, and won't after this patch. I can't really follow your 
argument here.

> Also, it's not
> a good idea to bar the possibility that a future port might need
> to be sourced in it's parent shell (i.e in /etc/rc).

I consider this to be dangerous. When we ever need such a functionality, 
we should choose a less prominent extension that `.sh' for that, or scan 
for a special keyword.

> Also, a sysadmin
> might have a local script in /usr/local/etc/rc.d that may for example,
> load a different rc.conf depending on circumstances.

{He,She} might, although I consider such a functionality to be exotic 
and fragile. Anyway, /etc/rc.d could be used for that purpose.

> Additionally,
> if ports rc.d scripts are going to participate in the boot rcorder(8)ing
> then they need to behave like the base system rc.d script.

Jup, that is the purpose of this patch.

> To do otherwise
> would be too confusing. IMO your patch contravenes the general policy of
> "mechanisms, not policy."

Ehm, what does that mean? A policy that states `no policies'?

> As far as including ports in the boot ording process:
>
> I think the last patch in your PR is preferable to this version. This
> version essentially makes it very likely that changing rclocal_barrier
> will break the boot. This is because by a changing rclocal_barrier the
> user is likely to break the REQUIRE and BEFORE relationships between 
> ports
> and base system rc.d scripts so that it's possible that a ports rc.d
> script is sourced after a script it specified in its
> BEFORE line.

The new patch is slightly improved, but we could substitute 
rclocal_barrier by PORTS everywhere. It was just meant as an additional 
safety measure, but when we don't need it: s/\${rclocal_barrier}/PORTS/g.
Filtering out the .sh scripts solves the problems mentioned in the PR and 
avoids the recent breakage.

> Additionaly, if we have rc.d/PORTS this knob is simply
> redundant. I think the best solution is the one in your PR. Have
> all ports rc.d scripts REQUIRE the PORTS service and if the user wants
> to change the position in which ports scripts are sourced, then he
> should simply edit rc.d/PORTS and place it where he wants.

Ok, I have absolutely no problem with s/\${rclocal_barrier}/PORTS/g.

> Here is the solution I would support:
> 1. Ports and base system rc.d scripts behave the same:
>    .sh scripts are sourced in the current shell, others in a subshell.
>    (Basically, what I committed)

ports .sh script shouldn't be sourced in the current shell, since these 
are old-style startup scripts that won't work with the changed semantics 
(as we had to observe recently). When you insist on being able to source 
ports scripts, let's change the extension to something less dangerous, 
like `.rc', `.src' or whatever you like. We could even do this with the 
base scripts, for the sake of uniformity.

> 2. Sourcing of ports rc.d scripts with the base sytem scripts to be
>    put behind a knob. If the knob is enabled rc.d/localpkg does not
>    run rc.d scripts in the local_startup directories. If it is turned
>    off, then rc.d/localpkg does ports rc.d scripts in addition to the
>    legacy scripts.

I see no reason why localpkg should do rc.d scripts. It was always meant 
to execute old-style scripts, and this behavior shouldn't be changed. 
Why do you want to introduce a semantic split here, that you seem to try 
to avoid above?

> 3. An /etc/rc.d/PORTS scripts that all ports rc.d scripts must REQUIRE.
>    My inclination is to put it right after rc.d/mountcritremote. This
>    probably gives the best  useful:safe ratio.

Fine with me.

> It was mentioned in another thread that this would break compatibility
> with people running a prior 5.x release (-current does not qualify for
> backwards compatibility in my book). Since we are talking about four
> releases (5.0, 5.1, 5.2, 5.2.1) it should be easy enough to provide
> patches for their rc.d/localpkg scripts. The patch could be a "required
> upgrade" (we still have those I believe) for those people.

It's easy not to break backwards compatibility, so why should we do 
this, especially shortly before going -STABLE? I can't see what the real 
benefits of this approach are. Old style scripts rely on documented 
behavior in rc(8), so there is no reason to break them.

-Oliver





------------------------------

Message: 10
Date: Sat, 31 Jul 2004 11:10:10 +0200
From: S?ren Schmidt<sos@DeepCore.dk>
Subject: Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
	no interrupt")
To: Nate Lawson <nate@root.org>
Cc: current@freebsd.org
Message-ID: <410B61F2.90504@DeepCore.dk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Nate Lawson wrote:
> I've tracked down the source of the memory corruption in -current that
> results when booting with various CD and DVD drives (especially the ones
> that come with Thinkpads including T23, R32, T41, etc.)  The panic is
> obvious when running with INVARIANTS ("memory modified after free") but
> not so obvious in other configurations.  For instance, without
> INVARIANTS, part of the rt_info structure is corrupted on my wireless
> card, resulting in a panic during ifconfig on boot.  This is likely the
> source of other problems, including phk's ACPI panic (again, only
> triggered when booting with the CD drive in the bay.)

OK, first thanks for digging into this!

> The root problem is that ata_timeout() fires and calls ata_pio_read()
> which overwrites 512 bytes random memory.  There are actually two bugs 
> here that overwrite memory.  The code path is as follows:
> 
> 1. ata runs an IDENTIFY command on each drive.  It reaches this stack:
> 
> ata_getparam()
> ata_identify_devices()
> ata_boot_attach()
> 
> 2. ata_getparam() allocates a request and runs it:
> ata_alloc_request()
> loop on retries (2 max)
> fill out an immediate read request for 512 bytes (DEV_BSIZE)
> *** Bug 1: transfersize is 512 bytes but sizeof(struct ata_request) is 
> much less (~80 bytes).
> ata_queue_request() starts the request and arms a timeout

Its correct to allocate via ata_alloc_request, the data is *not* put 
into the request, but into another memory area (atadev->param) so this 
is not a bug.

> 3. Completion for first request results in FAILURE - no interrupt. 
> ata_completed() calls ata_generic_interrupt() which calls ata_pio_read()
> *** Bug 1: here's where the 512 - sizeof(struct ata_request) bytes 
> following "request" are overwritten.

See above, the data hits the malloc'd buffer (atadev->param) *not* the 
request.

> . The completion code also updates request->donecount (an 
> upward-counting residual) from 0 to 512 after the request has been 
> completed.
> 
> 4. ata_getparam runs through the loop again and starts another identify
> *** Bug 2: donecount is now 512 so ata_pio_read() will write on 
> request->data + 512 with 512 bytes.  Whatever follows request->data + 
> 512 is overwritten.

Thats the real bug, donecount should be reset on retry..

> @@ -561,11 +561,12 @@
>  		request->data = (caddr_t)atadev->param;
>  		request->bytecount = sizeof(struct ata_params);
>  		request->transfersize = DEV_BSIZE;
> +		request->donecount = 0;
>  		ata_queue_request(request);
>  		if (!(error = request->result))
>  		    break;
>  	    }

This part should be all thats needed IMHO...

-S�ren

------------------------------

Message: 11
Date: Sat, 31 Jul 2004 11:11:31 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: [current tinderbox] failure on alpha/alpha
To: FreeBSD Tinderbox <tinderbox@freebsd.org>
Cc: alpha@freebsd.org
Message-ID: <20040731091131.GB39839@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"

On Sat, Jul 31, 2004 at 04:55:32AM -0400, FreeBSD Tinderbox wrote:
+> ===> sbin/geom/class/mirror
+> cc -fpic -DPIC -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -I/tinderbox/CURRENT/al
pha/alpha/src/sbin/geom/class/mirror/../.. -Wsystem-headers -Werror -Wall -Wno
-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wretu
rn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subs
cripts -Winline -Wnested-externs -Wredundant-decls -c /tinderbox/CURRENT/alpha
/alpha/src/sbin/geom/class/mirror/geom_mirror.c -o geom_mirror.So
+> cc -fpic -DPIC -O -pipe -mcpu=ev4 -mtune=ev5 -mieee -I/tinderbox/CURRENT/al
pha/alpha/src/sbin/geom/class/mirror/../.. -Wsystem-headers -Werror -Wall -Wno
-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wretu
rn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subs
cripts -Winline -Wnested-externs -Wredundant-decls -c /tinderbox/CURRENT/alpha
/alpha/src/sbin/geom/class/mirror/../../misc/subr.c -o subr.So
+> make: don't know how to make /home/tinderbox/sandbox/CURRENT/alpha/alpha/ob
j/alpha/tinderbox/CURRENT/alpha/alpha/src/i386/lib/geom/libmd.a. Stop
+> *** Error code 2

I'm working on fix, sorry guys.

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040731/
4703b9a1/attachment-0001.bin

------------------------------

Message: 12
Date: Sat, 31 Jul 2004 10:12:28 +0100
From: "Rob MacGregor" <freebsd.macgregor@blueyonder.co.uk>
Subject: RE: RFC: Alternate patch to have true new-style rc.d scripts
	inports (without touching localpkg)
To: <current@freebsd.org>
Cc: freebsd-rc@freebsd.org
Message-ID: <200407310912.i6V9CQVJ011571@the-macgregors.org>
Content-Type: text/plain;	charset="us-ascii"

> -----Original Message-----
> From: owner-freebsd-current@freebsd.org 
> [mailto:owner-freebsd-current@freebsd.org] On Behalf Of 
> Oliver Eikemeier
> 
> I don't think so. The patch is completely backwards compatible, which 
> means everything will run as it did before. Why should anyone be 
> confused by that?

However, everybody who's used to disabling scripts by changing the name such
that it doesn't end in .sh is going to be badly bitten by this.  Suddenly all

those "disabled" startup scripts will run.

> As stated above: everything users did before will continue to work. 

Except of course, disabling scripts by renaming them :)

> Besides, the patch finally unifies /etc/rc.d and 
> /usr/local/etc/rc.d in 
> the most important aspect: participating in rcorder(8). A new-style 
> script will do the same, no matter whether put in /etc/rc.d or 
> /usr/local/etc/rc.d.

Which is one thing I would like to see.

> > Additionally,
> > if ports rc.d scripts are going to participate in the boot 
> rcorder(8)ing
> > then they need to behave like the base system rc.d script.
> 
> Jup, that is the purpose of this patch.

Why not simply (yeah, I know, it'll be far from simple to implement) treat any

sh scripts that have the FreeBSD keyword as being new style, and others as
being old style?

Just my .02<insert currency symbol> worth :)

-- 
 Rob | Oh my God! They killed init! You bastards! 


------------------------------

Message: 13
Date: Sat, 31 Jul 2004 11:31:47 +0200
From: Meno Abels <meno.abels@gmail.com>
Subject: Re: [PATCH] ip4/6 jail enhancements
To: Max Laier <max@love2party.net>
Cc: meno.abels@adviser.com
Message-ID: <344de287040731023168dd6b24@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

Hello,

I can, sorry my fault, I miss this every time I submit something to
freebsd. In other projects where I working they don't like unified
patches. So sometime I get confused.
I put the patch as a followup to the gnats so everything is in its place.
Watch out there are now to peaces of diff one for the kernel part and one
for the userland.

regards

meno


On Sat, 31 Jul 2004 04:47:26 +0200, Max Laier <max@love2party.net> wrote:
> 
> 
> On Saturday 31 July 2004 01:05, Meno Abels wrote:
> > Hello,
> >
> > i submit last week a patch to the jail code which enables
> > the option to have multiple ip numbers (ip4 and ip6) assigned
> > to a jail.
> > Out of my view this patch isn't received any attention until today
> > by any freebsd member or mailing list user.
> > It could that I chosen the wrong channel to submit it by a
> > standard pr.
> > I worked in -CURRENT so it could be better to submit the
> > work to these mailing list. What I now try.
> > I'am not really familiar with the processes behind the scenes.
> > So I try to point to my work, and asks if somebody is willing to
> > try it. It would be nice to get a feedback-:)
> > So I give the link to the orignal pr
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=69064
> > this includes the patch to -CURRNT. What hopefully works until
> > one week progress in -CURRENT.
> 
> Can you re-produce this an unified diff, please? They are much more noise
> protected than the plain diff format. Submitt it as a followup here or to
> gnats. Just let's make sure that your work isn't lost!
> 
> This is certainly something of great interest! Various developers have had
> similar plans, not sure about their status, though.
> 
> --
> /"\  Best regards,                      | mlaier@freebsd.org
> \ /  Max Laier                          | ICQ #67774661
>  X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
> / \  ASCII Ribbon Campaign              | Against HTML Mail and News
> 
> 
>

------------------------------

Message: 14
Date: Sat, 31 Jul 2004 05:42:20 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on amd64/amd64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<amd64@freebsd.org>
Message-ID: <20040731094220.3584F7303F@freebsd-current.sentex.ca>

TB --- 2004-07-31 08:55:32 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-31 08:55:32 - starting CURRENT tinderbox run for amd64/amd64
TB --- 2004-07-31 08:55:32 - checking out the source tree
TB --- 2004-07-31 08:55:32 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64
TB --- 2004-07-31 08:55:32 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-07-31 09:01:10 - building world (CFLAGS=-O -pipe)
TB --- 2004-07-31 09:01:10 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64/sr
c
TB --- 2004-07-31 09:01:10 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
[...]
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/
label/../.. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototy
pes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-str
ings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-extern
s -Wredundant-decls -c /tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/labe
l/geom_label.c -o geom_label.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/
label/../.. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototy
pes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-str
ings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-extern
s -Wredundant-decls -c /tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/labe
l/../../misc/subr.c -o subr.So
building shared library geom_label.so.1
gzip -cn /tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/label/glabel.8 > g
label.8.gz
===> sbin/geom/class/mirror
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/
mirror/../.. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-protot
ypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-st
rings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-exter
ns -Wredundant-decls -c /tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/mir
ror/geom_mirror.c -o geom_mirror.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/
mirror/../.. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-protot
ypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-st
rings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-exter
ns -Wredundant-decls -c /tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class/mir
ror/../../misc/subr.c -o subr.So
make: don't know how to make /home/tinderbox/sandbox/CURRENT/amd64/amd64/obj/a
md64/tinderbox/CURRENT/amd64/amd64/src/i386/lib/geom/libmd.a. Stop
*** Error code 2

Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin/geom/class.
*** Error code 1

Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin/geom.
*** Error code 1

Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin.
*** Error code 1

Stop in /tinderbox/CURRENT/amd64/amd64/src.
*** Error code 1

Stop in /tinderbox/CURRENT/amd64/amd64/src.
*** Error code 1

Stop in /tinderbox/CURRENT/amd64/amd64/src.
TB --- 2004-07-31 09:42:19 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-07-31 09:42:19 - ERROR: failed to build world
TB --- 2004-07-31 09:42:19 - tinderbox aborted


------------------------------

Message: 15
Date: Sat, 31 Jul 2004 17:47:15 +0800 (CST)
From: Tai-hwa Liang <avatar@mmlab.cse.yzu.edu.tw>
Subject: Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
	no interrupt")
To: S?ren Schmidt<sos@DeepCore.dk>
Cc: current@freebsd.org
Message-ID: <04073117462818.89117@www.mmlab.cse.yzu.edu.tw>
Content-Type: TEXT/PLAIN; charset=ISO-8859-1

On Sat, 31 Jul 2004, [ISO-8859-1] S�ren Schmidt wrote:
[...]
> Thats the real bug, donecount should be reset on retry..
>
> > @@ -561,11 +561,12 @@
> >  		request->data = (caddr_t)atadev->param;
> >  		request->bytecount = sizeof(struct ata_params);
> >  		request->transfersize = DEV_BSIZE;
> > +		request->donecount = 0;
> >  		ata_queue_request(request);
> >  		if (!(error = request->result))
> >  		    break;
> >  	    }
>
> This part should be all thats needed IMHO...

I've tested this, and it worked on my T40.

------------------------------

Message: 16
Date: Sat, 31 Jul 2004 11:53:37 +0200
From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Subject: Re: RFC: Alternate patch to have true new-style rc.d scripts
	inports (without touching localpkg)
To: Rob MacGregor <freebsd.macgregor@blueyonder.co.uk>
Cc: freebsd-rc@freebsd.org
Message-ID: <7EB1AC8B-E2D7-11D8-9C56-00039312D914@fillmore-labs.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Rob MacGregor wrote:

>> -----Original Message-----
>> From: owner-freebsd-current@freebsd.org
>> [mailto:owner-freebsd-current@freebsd.org] On Behalf Of
>> Oliver Eikemeier
>>
>> I don't think so. The patch is completely backwards compatible, which
>> means everything will run as it did before. Why should anyone be
>> confused by that?
>
> However, everybody who's used to disabling scripts by changing the name 
> such
> that it doesn't end in .sh is going to be badly bitten by this.  
> Suddenly all
> those "disabled" startup scripts will run.

Nope, only two kinds of scripts will be run: old-style scripts with a 
`.sh' extension, and new-style rc.d scripts without extension. So you 
should not run into an trouble with scripts renamed to `.old' or 
`.disabled', except when you got into the habit to *remove* the 
extension to disable the scripts. As stated before: localpkg will not be 
touched and continue to work as before.

>> As stated above: everything users did before will continue to work.
>
> Except of course, disabling scripts by renaming them :)

See above.

>> Besides, the patch finally unifies /etc/rc.d and
>> /usr/local/etc/rc.d in
>> the most important aspect: participating in rcorder(8). A new-style
>> script will do the same, no matter whether put in /etc/rc.d or
>> /usr/local/etc/rc.d.
>
> Which is one thing I would like to see.

Especially since we can start some ports early in the startup process.

>>> Additionally,
>>> if ports rc.d scripts are going to participate in the boot
>> rcorder(8)ing
>>> then they need to behave like the base system rc.d script.
>>
>> Jup, that is the purpose of this patch.
>
> Why not simply (yeah, I know, it'll be far from simple to implement) 
> treat any
> .sh scripts that have the FreeBSD keyword as being new style, and 
> others as
> being old style?

This is simple, but wrong IMHO. Recent experience showed us that only 
because a .sh script has a FreeBSD keyword, it does not qualify as a new 
style script. Basically all current scripts rely on the documented 
behaviour in rc(8). To qualify as a new style script they have to be 
rewritten to work with the new semantics, and installed without an 
extension. Blindly changing documented behaviour will cause a major 
breakage.

-Oliver


------------------------------

Message: 17
Date: Sat, 31 Jul 2004 11:19:57 +0100
From: "Rob MacGregor" <freebsd.macgregor@blueyonder.co.uk>
Subject: RE: RFC: Alternate patch to have true new-style rc.d scripts
	inports (without touching localpkg)
To: <current@freebsd.org>
Cc: freebsd-rc@freebsd.org
Message-ID: <200407311019.i6VAJsVs031900@the-macgregors.org>
Content-Type: text/plain;	charset="us-ascii"

> -----Original Message-----
> From: Oliver Eikemeier [mailto:eikemeier@fillmore-labs.com] 
> 
> Nope, only two kinds of scripts will be run: old-style scripts with a 
> `.sh' extension, and new-style rc.d scripts without extension. So you 
> should not run into an trouble with scripts renamed to `.old' or 
> `.disabled', except when you got into the habit to *remove* the 
> extension to disable the scripts.

Ok, I'm confused (but then I haven't had my coffee yet).

You're saying that any script ending in .sh is assumed to be an old style one

and processed that way.  You're also saying that anything else is assumed to
be a new style script, correct?

However, then you say that renaming scripts (new or old?) will be fine, as
long as you rename them to .old or .disabled - anything else will still be run

as if it's a new style script?

I just want to ensure that I don't get bit by this when it goes live :)

-- 
 Rob | Oh my God! They killed init! You bastards! 


------------------------------

Message: 18
Date: Sat, 31 Jul 2004 06:28:26 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on i386/i386
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<i386@freebsd.org>
Message-ID: <20040731102826.1E5D87303F@freebsd-current.sentex.ca>

TB --- 2004-07-31 09:42:20 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-31 09:42:20 - starting CURRENT tinderbox run for i386/i386
TB --- 2004-07-31 09:42:20 - checking out the source tree
TB --- 2004-07-31 09:42:20 - cd /home/tinderbox/sandbox/CURRENT/i386/i386
TB --- 2004-07-31 09:42:20 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-07-31 09:47:54 - building world (CFLAGS=-O -pipe)
TB --- 2004-07-31 09:47:54 - cd /home/tinderbox/sandbox/CURRENT/i386/i386/src

TB --- 2004-07-31 09:47:54 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
[...]
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/i386/i386/src/sbin/geom/class/la
bel/../.. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototype
s -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strin
gs -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs 
-Wredundant-decls -c /tinderbox/CURRENT/i386/i386/src/sbin/geom/class/label/ge
om_label.c -o geom_label.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/i386/i386/src/sbin/geom/class/la
bel/../.. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototype
s -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strin
gs -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs 
-Wredundant-decls -c /tinderbox/CURRENT/i386/i386/src/sbin/geom/class/label/..
/../misc/subr.c -o subr.So
building shared library geom_label.so.1
gzip -cn /tinderbox/CURRENT/i386/i386/src/sbin/geom/class/label/glabel.8 > gla
bel.8.gz
===> sbin/geom/class/mirror
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/i386/i386/src/sbin/geom/class/mi
rror/../.. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototyp
es -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-stri
ngs -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs
 -Wredundant-decls -c /tinderbox/CURRENT/i386/i386/src/sbin/geom/class/mirror/
geom_mirror.c -o geom_mirror.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/i386/i386/src/sbin/geom/class/mi
rror/../.. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototyp
es -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-stri
ngs -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs
 -Wredundant-decls -c /tinderbox/CURRENT/i386/i386/src/sbin/geom/class/mirror/
./../misc/subr.c -o subr.So
make: don't know how to make /home/tinderbox/sandbox/CURRENT/i386/i386/obj/tin
derbox/CURRENT/i386/i386/src/i386/lib/geom/libmd.a. Stop
*** Error code 2

Stop in /tinderbox/CURRENT/i386/i386/src/sbin/geom/class.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/i386/src/sbin/geom.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/i386/src/sbin.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/i386/src.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/i386/src.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/i386/src.
TB --- 2004-07-31 10:28:25 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-07-31 10:28:25 - ERROR: failed to build world
TB --- 2004-07-31 10:28:25 - tinderbox aborted


------------------------------

Message: 19
Date: Sat, 31 Jul 2004 13:41:48 +0300
From: quetzal@roks.biz
Subject: NDISulator: rtl8180, NDIS buggy driver deleting active buffer
	pool.
To: freebsd-current@freebsd.org
Cc: wpaul@freebsd.org
Message-ID: <20040731104148.GA671@roks.biz>
Content-Type: text/plain; charset=us-ascii

Hi, freebsd users. Hi, Bill.
	I have a few problem when try to run Micronet Wirless LAN 
PCI Adapter based on RealTek 8180 chip on my FreeBSD 5.2.1-p9. 
I use this instruction to build modules but with latest XP driver from: 
http://www.realtek.com.tw/downloads/downloads1-3.aspx?Keyword=8180

=======================[quote]========================================
To build:
  cd /usr/src/sys/modules/ndis
  make clean
  make
  make install
  cd /usr/src/usr.sbin/ndiscvt
  make clean
  make
  make install
  cd /usr/src/sys/modules/if_ndis
  make clean
  # be sure to copy your drivers here at some point!
  # I had mine on CD, so I used these steps.
  mount /cdrom
  cp /cdrom/W* .
  umount /cdrom
  /usr/sbin/ndiscvt -i W70N51.INF -s W70N51.SYS -o ndis_driver_data.h
  make
  make install
I'm not sure where I got the W70N51 values. I think I ran XP on my 
box and found out that way. I think it was from
I did encounter one issue under 5.2.1, which may have been fixed by now:
  [root@laptop:/sys/modules/if_ndis] # make
  Warning: Object directory not changed from original 
/usr/src/sys/modules/if_ndis
  make: don't know how to make pccarddevs.h. Stop
The solution is to remove references to pccarddevs.h from
/usr/src/sys/modules/if_ndis/Makefile.
After compiling, you need to load the modules:
  kldload ndis
  kldload if_ndis
Then you can view any associated stations with this command:
  wicontrol -i ndis0 -l
To load those kernel modules at boot time, add these entries 
to /boot/loader.conf:
  ndis_load="YES"
  if_ndis_load="YES" 
========================[quote]=========================================

In time of configuration (and on boot time) i see this message after
command:
ifconfig ndis0 inet x.x.x.x netmask 0xffffff00 ssid myssid up 
NDIS: buggy driver deleting active buffer pool!
NDIS: buggy driver deleting active buffer pool!

wicontrol -l ndis0 -l 
show "0 channels"

Also i try XP driver from native CD but with no luck.  

Best regards and sorry for my english,	
		   Nikolay Pavlov.

------------------------------

Message: 20
Date: Sat, 31 Jul 2004 13:49:34 +0300
From: Mike Makonnen <mtm@identd.net>
Subject: Re: RFC: Alternate patch to have true new-style rc.d scripts
	in	ports (without touching localpkg)
To: current@freebsd.org
Cc: freebsd-rc@freebsd.org
Message-ID: <20040731104933.GA1312@rogue.acs-et.com>
Content-Type: text/plain; charset=us-ascii

On Sat, Jul 31, 2004 at 11:12:20AM +0200, Oliver Eikemeier wrote:
> Mike Makonnen wrote:
> 
> >
> >I appreciate the effort you are putting into this. However, these hacks
> >will only end up confusing users to no-end.
> 
> I don't think so. The patch is completely backwards compatible, which 
> means everything will run as it did before. Why should anyone be 
> confused by that?

They will be confused because base system and ports rc.d scripts will
not behave the same. If a script in /etc/rc.d has a .sh extension in
/etc/rc.d it gets sourced in the same shell. If they put the script in
/usr/local/etc/rc.d it doesn't.

> 
> >Don't forget that it is
> >not only ports scripts that go in /usr/local/etc/rc.d. Lots of users
> >also choose to put their local scripts there instead of /etc/rc.d. This
> >means that their scripts will behave differently depending on whether
> >they put them in /etc/rc.d or /usr/local/etc/rc.d.
> 
> As stated above: everything users did before will continue to work. 
> Besides, the patch finally unifies /etc/rc.d and /usr/local/etc/rc.d in 
> the most important aspect: participating in rcorder(8). A new-style 
> script will do the same, no matter whether put in /etc/rc.d or 
> /usr/local/etc/rc.d.

Except if it has a .sh extension.

> Legacy script were never executed when put in 
> /etc/rc.d, and won't after this patch. I can't really follow your 
> argument here.

I'm not talking about legacy scripts. I mean local rc.d scripts.

> 
> >Also, it's not
> >a good idea to bar the possibility that a future port might need
> >to be sourced in it's parent shell (i.e in /etc/rc).
> 
> I consider this to be dangerous. When we ever need such a functionality, 
> we should choose a less prominent extension that `.sh' for that, or scan 
> for a special keyword.

sh is what we have and that's what we should go with. Changing it to
something else would be a gratuitous change and digression from NetBSD
for the sake of compatibility with a non-STABLE branch.

> 
> >Also, a sysadmin
> >might have a local script in /usr/local/etc/rc.d that may for example,
> >load a different rc.conf depending on circumstances.
> 
> {He,She} might, although I consider such a functionality to be exotic 
> and fragile. Anyway, /etc/rc.d could be used for that purpose.

You have no way of knowing what users want to do or what their circumstances
are. This would be be an instance of enforcing policy instead of
providing mechanisms for users to do what they want.

> 
> >Additionally,
> >if ports rc.d scripts are going to participate in the boot rcorder(8)ing
> >then they need to behave like the base system rc.d script.
> 
> Jup, that is the purpose of this patch.
> 
> >To do otherwise
> >would be too confusing. IMO your patch contravenes the general policy of
> >"mechanisms, not policy."
> 
> Ehm, what does that mean? A policy that states `no policies'?

It means you should not preclude users putting local rc.d scripts with
sh extenstions in /usr/local/etc/rc.d. By barring it you are enforcing
a policy (your idea of what they should do). Whereas if rc.d scripts
in /usr/local/etc/rc.d behaved just like they do in /etc/rc.d, then
users can put their scripts wherever they think is appropriate for
their circumstances.

> 
> ports .sh script shouldn't be sourced in the current shell, since these 
> are old-style startup scripts that won't work with the changed semantics 
> (as we had to observe recently).

The people that will be affected by this are the people that run -CURRENT
or a prior 5.x release. We don't have to (and we shouldn't) provide
backwards compatibility for -CURRENT user. For those running a prior
5.x release we can provide patches to their rc.d/localpkg.

> 
> >2. Sourcing of ports rc.d scripts with the base sytem scripts to be
> >   put behind a knob. If the knob is enabled rc.d/localpkg does not
> >   run rc.d scripts in the local_startup directories. If it is turned
> >   off, then rc.d/localpkg does ports rc.d scripts in addition to the
> >   legacy scripts.
> 
> I see no reason why localpkg should do rc.d scripts. It was always meant 
> to execute old-style scripts, and this behavior shouldn't be changed. 
> Why do you want to introduce a semantic split here, that you seem to try 
> to avoid above?

This feature MUST be put behind a knob. It
might have been okay if we had discussed this earlier in the 5-CURRENT
lifecycle, but not just before 5-STABLE. We need more time to evaluate
the impact of ordering ports rc.d scripts with the base system scripts.
Two weeks is not enough time.

> >It was mentioned in another thread that this would break compatibility
> >with people running a prior 5.x release (-current does not qualify for
> >backwards compatibility in my book). Since we are talking about four
> >releases (5.0, 5.1, 5.2, 5.2.1) it should be easy enough to provide
> >patches for their rc.d/localpkg scripts. The patch could be a "required
> >upgrade" (we still have those I believe) for those people.
> 
> It's easy not to break backwards compatibility, so why should we do 
> this, especially shortly before going -STABLE? I can't see what the real 
> benefits of this approach are. Old style scripts rely on documented 
> behavior in rc(8), so there is no reason to break them.

How does what I committed break old-style scripts? It only breaks improperly
written rc.d scripts. (BTW I don't blame the maintainers for writing them
improperly-- they were relying on a buggy version of rc.d/localpkg)

The crux of my problem with your patch is this:

   You are proposing changing the behavior of rc.d for the sake of backwards
   compatibility with -CURRENT. Am I the only one who thinks this is crazy?


Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F
55
mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !

------------------------------

Message: 21
Date: Sat, 31 Jul 2004 12:51:08 +0200
From: Matthias Andree <ma@dt.e-technik.uni-dortmund.de>
Subject: Re: magic sysrq keys functionality
To: Matthias Andree <ma@dt.e-technik.uni-dortmund.de>
Cc: Scott Long <scottl@FreeBSD.ORG>
Message-ID: <m3llh0sb4z.fsf@merlin.emma.line.org>
Content-Type: text/plain; charset=us-ascii

John-Mark Gurney <gurney_j@resnet.uoregon.edu> writes:

> Matthias Andree wrote this message on Wed, Jul 28, 2004 at 11:44 +0200:
>> Makes me wonder about efficiency (write latency).
>> 
>> I admit I'm not familiar with how the buffers are scheduled in
>> particular, if there are "write batches" or something.
>> 
>> If however softdep needs to wait for individual blocks, real tagged
>> queueing (with ordered tags in the right places and such) might be
>> faster because the drive can then decide for itself in which order the
>> blocks are written to the disks fastest, without violating any of the
>> ordering assumptions softupdates code relies on.
>
> As another person said much more clearly...  Softdep really does
> dependancy tracking...  As long as there are no outstanding writes
> that it needs (like it can't write a data block till the block is
> marked as in use, nor can it update the inode that the file uses that
> data block, till the data is writen to disk) are still out standing,
> it will submit the write request...  so, if two blocks are not related
> and have no oustanding dependancies, they will be scheduled and written
> in parallel...  and let the real tag queueing do it's work...

I understand what softdep is doing, and I'm wondering about
performance. An algorithm as you describe it cannot write two adjacent
blocks in one rotation, let's assume block 171 depends on block 170, it
would do:

schedule block 170 for write
wait until 170 is ack'd
schedule block 171 for write

With TCQ awareness, it could do instead:

queue block 170 for write
queue ordered tag
queue 171 for write

Whether the first or the second approach is faster with concurrent
access, I cannot say, for I cannot benchmark the latter option as it
isn't implemented and I cannot do it.

-- 
Matthias Andree

Encrypted mail welcome: my GnuPG key ID is 0x052E7D95 (PGP/MIME preferred)

------------------------------

Message: 22
Date: Sat, 31 Jul 2004 07:06:01 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: RE: RFC: Alternate patch to have true new-style rc.d scripts
	inports (without touching localpkg)
To: "Rob MacGregor" <freebsd.macgregor@blueyonder.co.uk>,
	<current@freebsd.org>
Cc: freebsd-rc@freebsd.org
Message-ID: <p06110421bd312cf302b4@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 10:12 AM +0100 7/31/04, Rob MacGregor wrote:
>  > -----Original Message-----
>>  From: owner-freebsd-current@freebsd.org
>>  [mailto:owner-freebsd-current@freebsd.org] On Behalf Of
>>  Oliver Eikemeier
>>
>  > I don't think so. The patch is completely backwards compatible,
>  > which means everything will run as it did before. Why should
>  > anyone be confused by that?
>
>However, everybody who's used to disabling scripts by changing
>the name such that it doesn't end in .sh is going to be badly
>bitten by this.  Suddenly all those "disabled" startup scripts
>will run.
>
>  > As stated above: everything users did before will continue to
>  > work.
>
>Except of course, disabling scripts by renaming them :)

I seem to remember that the safe way to disable scripts was
to change the permissions on them so they were not executable.
This was considered better than renaming them, because the
file remained at the location it was installed at.  This
meant it would still be removed if the package was removed,
for instance.

Is that no longer true?

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

------------------------------

Message: 23
Date: Sat, 31 Jul 2004 12:47:04 +0200
From: Matthias Andree <ma@dt.e-technik.uni-dortmund.de>
Subject: Re: Is there still sufficient reason for hw.ata.atapi_dma
	being 0	by default?
To: S?renSchmidt <sos@DeepCore.dk>
Cc: Maxim Sobolev <sobomax@portaone.com>
Message-ID: <m3pt6csbbr.fsf@merlin.emma.line.org>
Content-Type: text/plain; charset=iso-8859-15

S�ren Schmidt <sos@DeepCore.dk> writes:

> Actually not, most if not all modern fast burners implements some sort
> of "burn proof" ie no coasters at all due to buffer underruns...

These modes still generate a small burst error because a few pits and
lands will be spoilt, particularly with older "burn proof" drives. It's
best to avoid buffer underruns even with "burn proof" turned on, for
quality's sake.

-- 
Matthias Andree

Encrypted mail welcome: my GnuPG key ID is 0x052E7D95 (PGP/MIME preferred)

------------------------------

Message: 24
Date: Sat, 31 Jul 2004 13:17:35 +0200
From: Stephane Wirtel <stephane.wirtel@belgacom.net>
Subject: [stephane.wirtel@belgacom.net: Re: [current tinderbox]
	failure on	i386/i386]
To: freebsd-current@freebsd.org
Message-ID: <20040731111735.GB38435@nunuche.lan>
Content-Type: text/plain; charset="us-ascii"

An embedded message was scrubbed...
From: Stephane Wirtel <stephane.wirtel@belgacom.net>
Subject: Re: [current tinderbox] failure on i386/i386
Date: Sat, 31 Jul 2004 13:17:09 +0200
Size: 613
Url: http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040731/a
a383dd1/attachment-0001.mht

------------------------------

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

End of freebsd-current Digest, Vol 70, Issue 19
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]