svn commit: r241575 - head/sys/netinet

2012-10-15 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 15 07:57:55 2012 New Revision: 241575 URL: http://svn.freebsd.org/changeset/base/241575 Log: We don't need to convert ip6_len to host byte order before ip6_output(), the IPv6 stack is working in net byte order. The reason this code worked before is that ip6_o

svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Maxim Sobolev
Author: sobomax Date: Mon Oct 15 08:21:49 2012 New Revision: 241576 URL: http://svn.freebsd.org/changeset/base/241576 Log: Add per-second scheduling into the cron(8). Right now it's only available via the new @every_second shortcut. ENOTIME to implement crontab(5) format extensions to allow

svn commit: r241577 - head/sys/dev/etherswitch/arswitch

2012-10-15 Thread Aleksandr Rybalko
Author: ray Date: Mon Oct 15 12:03:11 2012 New Revision: 241577 URL: http://svn.freebsd.org/changeset/base/241577 Log: Defaulting to id "0" if ar7240_probe(dev) success, fix warning when building with DEBUG. Submitted by: Luiz Otavio O Souza Approved by: adrian (mentor) Modified: he

svn commit: r241578 - in head/sys/dev/etherswitch: . arswitch

2012-10-15 Thread Aleksandr Rybalko
Author: ray Date: Mon Oct 15 12:20:40 2012 New Revision: 241578 URL: http://svn.freebsd.org/changeset/base/241578 Log: Locking for etherswitch framework: * add lock/unlock methods; * add lock/unlock default implementation; * surround switch IOCTLs with locking; * add lock/unlock implemen

svn commit: r241579 - head/sys/dev/etherswitch/arswitch

2012-10-15 Thread Aleksandr Rybalko
Author: ray Date: Mon Oct 15 12:28:14 2012 New Revision: 241579 URL: http://svn.freebsd.org/changeset/base/241579 Log: Mask data to only 16 bits to be sure on write into switch reg. Submitted by: Luiz Otavio O Souza Approved by: adrian (mentor) Modified: head/sys/dev/etherswitch/arswi

svn commit: r241580 - head/sys/cam/scsi

2012-10-15 Thread Eitan Adler
Author: eadler Date: Mon Oct 15 12:33:53 2012 New Revision: 241580 URL: http://svn.freebsd.org/changeset/base/241580 Log: Add support for the USB DISK Pro PMAP. This patch has sit for 6 years in the PR database. PR: usb/96381 Submitted by: jhs Reviewed by: mav Approved

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread John Baldwin
On Sunday, October 14, 2012 11:03:07 am Gleb Smirnoff wrote: > Author: glebius > Date: Sun Oct 14 15:03:06 2012 > New Revision: 241546 > URL: http://svn.freebsd.org/changeset/base/241546 > > Log: > Fix defines in r241245. We actually don't define FreeBSD. > > Reported & tested by: Ole

Re: svn commit: r241556 - in head/sys: kern sys

2012-10-15 Thread John Baldwin
On Sunday, October 14, 2012 3:43:37 pm Konstantin Belousov wrote: > Author: kib > Date: Sun Oct 14 19:43:37 2012 > New Revision: 241556 > URL: http://svn.freebsd.org/changeset/base/241556 > > Log: > Add a KPI to allow to reserve some amount of space in the numvnodes > counter, without actually

svn commit: r241581 - head/sbin/mount

2012-10-15 Thread Eitan Adler
Author: eadler Date: Mon Oct 15 13:20:08 2012 New Revision: 241581 URL: http://svn.freebsd.org/changeset/base/241581 Log: Fix minor nits: use a comma after "i.e." sentences begin on new lines. No .Dd bump for trivial modification. Approved by: wblock MFC after:3 days Modifi

Re: svn commit: r241556 - in head/sys: kern sys

2012-10-15 Thread Andriy Gapon
on 15/10/2012 15:37 John Baldwin said the following: > On Sunday, October 14, 2012 3:43:37 pm Konstantin Belousov wrote: >> Author: kib >> Date: Sun Oct 14 19:43:37 2012 >> New Revision: 241556 >> URL: http://svn.freebsd.org/changeset/base/241556 >> >> Log: >> Add a KPI to allow to reserve some a

Re: svn commit: r241553 - in head/sys/dev/usb: . quirk

2012-10-15 Thread Eitan Adler
On 15 October 2012 02:14, Hans Petter Selasky wrote: > On Sunday 14 October 2012 19:26:45 Eitan Adler wrote: >> Author: eadler >> Date: Sun Oct 14 17:26:45 2012 >> New Revision: 241553 >> URL: http://svn.freebsd.org/changeset/base/241553 >> > >> Modified: head/sys/dev/usb/usbdevs >> ==

svn commit: r241582 - head/sys/rpc/rpcsec_gss

2012-10-15 Thread Rick Macklem
Author: rmacklem Date: Mon Oct 15 13:38:25 2012 New Revision: 241582 URL: http://svn.freebsd.org/changeset/base/241582 Log: Add a comment describing why r241097 was done. Suggested by: rwatson MFC after:1 week Modified: head/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c Modified: head/sys/r

svn commit: r241583 - head/etc/sendmail

2012-10-15 Thread Peter Wemm
Author: peter Date: Mon Oct 15 14:14:21 2012 New Revision: 241583 URL: http://svn.freebsd.org/changeset/base/241583 Log: mx1 -> smarthost.ysv Modified: head/etc/sendmail/freefall.mc Modified: head/etc/sendmail/freefall.mc ==

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Gleb Smirnoff
On Mon, Oct 15, 2012 at 08:34:09AM -0400, John Baldwin wrote: J> On Sunday, October 14, 2012 11:03:07 am Gleb Smirnoff wrote: J> > Author: glebius J> > Date: Sun Oct 14 15:03:06 2012 J> > New Revision: 241546 J> > URL: http://svn.freebsd.org/changeset/base/241546 J> > J> > Log: J> > Fix defines

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Konstantin Belousov
On Mon, Oct 15, 2012 at 06:36:58PM +0400, Gleb Smirnoff wrote: > On Mon, Oct 15, 2012 at 08:34:09AM -0400, John Baldwin wrote: > J> On Sunday, October 14, 2012 11:03:07 am Gleb Smirnoff wrote: > J> > Author: glebius > J> > Date: Sun Oct 14 15:03:06 2012 > J> > New Revision: 241546 > J> > URL: http:

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Jilles Tjoelker
On Mon, Oct 15, 2012 at 06:36:58PM +0400, Gleb Smirnoff wrote: > On Mon, Oct 15, 2012 at 08:34:09AM -0400, John Baldwin wrote: > J> On Sunday, October 14, 2012 11:03:07 am Gleb Smirnoff wrote: > J> > Author: glebius > J> > Date: Sun Oct 14 15:03:06 2012 > J> > New Revision: 241546 > J> > URL: http:

svn commit: r241588 - head/sys/dev/advansys

2012-10-15 Thread John Baldwin
Author: jhb Date: Mon Oct 15 15:26:00 2012 New Revision: 241588 URL: http://svn.freebsd.org/changeset/base/241588 Log: Add locking to the adw(4) driver and mark it MPSAFE. - Use device_printf() and device_get_nameunit() instead of adw_name(). - Remove use of explicit bus space handles and ta

svn commit: r241589 - head/sys/dev/aha

2012-10-15 Thread John Baldwin
Author: jhb Date: Mon Oct 15 15:59:13 2012 New Revision: 241589 URL: http://svn.freebsd.org/changeset/base/241589 Log: Add locking to the aha(4) driver and mark it MPSAFE. - Remove use of explicit bus space handles and tags. Tested by:no one Modified: head/sys/dev/aha/aha.c head/

svn commit: r241590 - head/sys/dev/ahb

2012-10-15 Thread John Baldwin
Author: jhb Date: Mon Oct 15 16:05:02 2012 New Revision: 241590 URL: http://svn.freebsd.org/changeset/base/241590 Log: Add locking to the ahb(4) driver and mark it MPSAFE. - Use device_printf() and device_get_unit() instead of storing the unit number in the softc. - Remove use of explici

svn commit: r241591 - head/sys/dev/aic

2012-10-15 Thread John Baldwin
Author: jhb Date: Mon Oct 15 16:09:59 2012 New Revision: 241591 URL: http://svn.freebsd.org/changeset/base/241591 Log: Add locking to the aic(4) driver and mark it MPSAFE. - Move 'free_scbs' into the softc rather than having it be a global list and convert it to an SLIST instead of a hand-

svn commit: r241592 - head/sys/dev/buslogic

2012-10-15 Thread John Baldwin
Author: jhb Date: Mon Oct 15 16:13:55 2012 New Revision: 241592 URL: http://svn.freebsd.org/changeset/base/241592 Log: Add locking to the bt(4) driver and mark it MPSAFE. - Use device_printf() and device_get_unit() instead of storing the unit number in the softc. - Remove use of explicit

svn commit: r241593 - head/sys/dev/dpt

2012-10-15 Thread John Baldwin
Author: jhb Date: Mon Oct 15 16:29:08 2012 New Revision: 241593 URL: http://svn.freebsd.org/changeset/base/241593 Log: Add locking to the dpt(4) driver and mark it MPSAFE. - Use device_printf() and device_get_unit() instead of storing the unit number in the softc. - Remove use of explici

svn commit: r241595 - head/share/misc

2012-10-15 Thread Eitan Adler
Author: eadler Date: Mon Oct 15 17:10:41 2012 New Revision: 241595 URL: http://svn.freebsd.org/changeset/base/241595 Log: Add my new association with bcr and jkois. Thanks! MFC after:3 days Modified: head/share/misc/committers-doc.dot Modified: head/share/misc/committers-doc.do

svn commit: r241596 - head/release

2012-10-15 Thread Ed Maste
Author: emaste Date: Mon Oct 15 17:19:47 2012 New Revision: 241596 URL: http://svn.freebsd.org/changeset/base/241596 Log: Exclude potential circular symlink This does not occur with normal release builds but can happen when reusing these release parts for other purposes. Modified: head

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Bruce Evans
On Mon, 15 Oct 2012, Jilles Tjoelker wrote: On Mon, Oct 15, 2012 at 06:36:58PM +0400, Gleb Smirnoff wrote: On Mon, Oct 15, 2012 at 08:34:09AM -0400, John Baldwin wrote: J> On Sunday, October 14, 2012 11:03:07 am Gleb Smirnoff wrote: J> > Author: glebius J> > Date: Sun Oct 14 15:03:06 2012 J> >

svn commit: r241597 - head/sys/kern

2012-10-15 Thread Konstantin Belousov
Author: kib Date: Mon Oct 15 18:15:18 2012 New Revision: 241597 URL: http://svn.freebsd.org/changeset/base/241597 Log: Acquire the rangelock for truncate(2) as well. Reported and reviewed by: avg Tested by:pho MFC after:1 week Modified: head/sys/kern/vfs_syscalls.c Modif

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Pawel Jakub Dawidek
On Mon, Oct 15, 2012 at 08:21:50AM +, Maxim Sobolev wrote: > Author: sobomax > Date: Mon Oct 15 08:21:49 2012 > New Revision: 241576 > URL: http://svn.freebsd.org/changeset/base/241576 > > Log: > Add per-second scheduling into the cron(8). Right now it's > only available via the new @every

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Ian Lepore
On Mon, 2012-10-15 at 22:26 +0200, Pawel Jakub Dawidek wrote: > On Mon, Oct 15, 2012 at 08:21:50AM +, Maxim Sobolev wrote: > > Author: sobomax > > Date: Mon Oct 15 08:21:49 2012 > > New Revision: 241576 > > URL: http://svn.freebsd.org/changeset/base/241576 > > > > Log: > > Add per-second sch

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Garrett Cooper
On Mon, Oct 15, 2012 at 1:44 PM, Ian Lepore wrote: > On Mon, 2012-10-15 at 22:26 +0200, Pawel Jakub Dawidek wrote: >> On Mon, Oct 15, 2012 at 08:21:50AM +, Maxim Sobolev wrote: >> > Author: sobomax >> > Date: Mon Oct 15 08:21:49 2012 >> > New Revision: 241576 >> > URL: http://svn.freebsd.org/c

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Ian Lepore
On Mon, 2012-10-15 at 13:52 -0700, Garrett Cooper wrote: > On Mon, Oct 15, 2012 at 1:44 PM, Ian Lepore > wrote: > > On Mon, 2012-10-15 at 22:26 +0200, Pawel Jakub Dawidek wrote: > >> On Mon, Oct 15, 2012 at 08:21:50AM +, Maxim Sobolev wrote: > >> > Author: sobomax > >> > Date: Mon Oct 15 08:21

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Garrett Cooper
On Mon, Oct 15, 2012 at 2:18 PM, Ian Lepore wrote: > On Mon, 2012-10-15 at 13:52 -0700, Garrett Cooper wrote: >> On Mon, Oct 15, 2012 at 1:44 PM, Ian Lepore >> wrote: >> > On Mon, 2012-10-15 at 22:26 +0200, Pawel Jakub Dawidek wrote: >> >> On Mon, Oct 15, 2012 at 08:21:50AM +, Maxim Sobolev w

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/15/12 13:52, Garrett Cooper wrote: > On Mon, Oct 15, 2012 at 1:44 PM, Ian Lepore > wrote: >> On Mon, 2012-10-15 at 22:26 +0200, Pawel Jakub Dawidek wrote: >>> On Mon, Oct 15, 2012 at 08:21:50AM +, Maxim Sobolev wrote: Author: sobomax

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Bruce Cran
On 15/10/2012 22:18, Ian Lepore wrote: In 1987 I would have been outraged at waking up at 1hz needlessly. Sitting here typing on a machine that's doing 12,000 interrupts/sec just to maintain clocks, and top shows interrupts using 0.0% cpu, it's hard to get too upset about a 1hz loop anymore. Pe

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Gleb Smirnoff
On Tue, Oct 16, 2012 at 05:09:31AM +1100, Bruce Evans wrote: B> > On Mon, Oct 15, 2012 at 06:36:58PM +0400, Gleb Smirnoff wrote: B> >> On Mon, Oct 15, 2012 at 08:34:09AM -0400, John Baldwin wrote: B> >> J> On Sunday, October 14, 2012 11:03:07 am Gleb Smirnoff wrote: B> >> J> > Author: glebius B> >>

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/15/12 15:21, Xin Li wrote: > On 10/15/12 13:52, Garrett Cooper wrote: >> On Mon, Oct 15, 2012 at 1:44 PM, Ian Lepore >> wrote: >>> On Mon, 2012-10-15 at 22:26 +0200, Pawel Jakub Dawidek wrote: On Mon, Oct 15, 2012 at 08:21:50AM +, Ma

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Adrian Chadd
Why not sleep for the amonut of time needed before the next event? adrian On 15 October 2012 01:21, Maxim Sobolev wrote: > Author: sobomax > Date: Mon Oct 15 08:21:49 2012 > New Revision: 241576 > URL: http://svn.freebsd.org/changeset/base/241576 > > Log: > Add per-second scheduling into th

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Eitan Adler
On 15 October 2012 18:45, Adrian Chadd wrote: > Why not sleep for the amonut of time needed before the next event? If the crontab changes in the meantime. If the next event is in a week, but you modify the crontab, you don't want to sleep until next event. Why we stat the file every quantum inst

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Adrian Chadd
On 15 October 2012 16:10, Eitan Adler wrote: > On 15 October 2012 18:45, Adrian Chadd wrote: >> Why not sleep for the amonut of time needed before the next event? > > If the crontab changes in the meantime. If the next event is in a week, > but you modify the crontab, you don't want to sleep unti

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Garrett Cooper
On Mon, Oct 15, 2012 at 3:23 PM, Gleb Smirnoff wrote: > On Tue, Oct 16, 2012 at 05:09:31AM +1100, Bruce Evans wrote: > B> > On Mon, Oct 15, 2012 at 06:36:58PM +0400, Gleb Smirnoff wrote: > B> >> On Mon, Oct 15, 2012 at 08:34:09AM -0400, John Baldwin wrote: > B> >> J> On Sunday, October 14, 2012 11

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Bruce Cran
On 16/10/2012 00:26, Adrian Chadd wrote: Maybe crontab should be using a command via a socket to reload, rather than stat'ing files.. Or kqueue? -- Bruce Cran ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Eitan Adler
On 15 October 2012 19:26, Adrian Chadd wrote: > On 15 October 2012 16:10, Eitan Adler wrote: >> On 15 October 2012 18:45, Adrian Chadd wrote: >>> Why not sleep for the amonut of time needed before the next event? >> >> If the crontab changes in the meantime. If the next event is in a week, >> bu

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/15/12 17:23, Eitan Adler wrote: > On 15 October 2012 19:26, Adrian Chadd wrote: >> On 15 October 2012 16:10, Eitan Adler >> wrote: >>> On 15 October 2012 18:45, Adrian Chadd >>> wrote: Why not sleep for the amonut of time needed before

svn commit: r241600 - in head: . sys/conf sys/dev/mmc sys/dev/sdhci sys/modules sys/modules/sdhci sys/modules/sdhci_pci

2012-10-15 Thread Oleksandr Tymoshenko
@@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 10 disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20121015: + The sdhci driver was split in two parts: sdhci (generic SD Host + Controller logic) a

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Maxim Sobolev
On 10/15/2012 6:07 PM, Xin Li wrote: Because it's not guaranteed to work on every filesystems? But yes I think it would be a good idea to implement it and use it when all filesystems used to store crontabs supports it. I considered it, but it seems inadequate for things like: # mv /etc /etc.o

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Maxim Sobolev
On 10/15/2012 4:26 PM, Adrian Chadd wrote: Maybe crontab should be using a command via a socket to reload, rather than stat'ing files.. Simple signal would do. kqueuing the file is not as easy, but this would complicate logic as you would need to look at renames, removes etc. I really doubt t

svn commit: r241602 - head/share/examples/csh

2012-10-15 Thread Eitan Adler
Author: eadler Date: Tue Oct 16 02:52:30 2012 New Revision: 241602 URL: http://svn.freebsd.org/changeset/base/241602 Log: Add a bunch more example completions. Submitted by: wblock Approved by: cperciva (implicit) MFC after:3 days Modified: head/share/examples/csh/dot.cshrc Mod

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Bruce Evans
On Mon, 15 Oct 2012, Ian Lepore wrote: On Mon, 2012-10-15 at 13:52 -0700, Garrett Cooper wrote: On Mon, Oct 15, 2012 at 1:44 PM, Ian Lepore wrote: On Mon, 2012-10-15 at 22:26 +0200, Pawel Jakub Dawidek wrote: On Mon, Oct 15, 2012 at 08:21:50AM +, Maxim Sobolev wrote: ... Log: Add per

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Bruce Evans
On Mon, 15 Oct 2012, Garrett Cooper wrote: On Mon, Oct 15, 2012 at 3:23 PM, Gleb Smirnoff wrote: On Tue, Oct 16, 2012 at 05:09:31AM +1100, Bruce Evans wrote: B> > On Mon, Oct 15, 2012 at 06:36:58PM +0400, Gleb Smirnoff wrote: [>]* B> >> I have used this construction several times already wit

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Pedro Giffuni
On 10/15/2012 22:01, Bruce Evans wrote: On Mon, 15 Oct 2012, Ian Lepore wrote: On Mon, 2012-10-15 at 13:52 -0700, Garrett Cooper wrote: ... In 1987 I would have been outraged at waking up at 1hz needlessly. Sitting here typing on a machine that's doing 12,000 interrupts/sec just to maintain

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Adrian Chadd
Gah, I think there's quite a lot of push back on this. Maxim, would you please consider reverting this patch? Can we have a discussion on the best way to do this, taking various things like embedded and power-saving systems into effect? Thanks, Adrian __

Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

2012-10-15 Thread Valentin Nechayev
Mon, Oct 15, 2012 at 15:45:37, adrian wrote about "Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib": > Why not sleep for the amonut of time needed before the next event? If you do this for all events listed currently in all crontabs, you need event engine. Currently request t