Re: svn commit: r214118 - in head: sbin/geom/class/eli sys/geom/eli

2010-10-21 Thread Rui Paulo
Great work. Might be worth adding the geli commands to /etc/rc.suspend /etc/rc.resume. You could do something that requires the minimum user configuration, like: --- geli list 21 /dev/null if [ $? -eq 0 ]; then geli suspend -a fi --- Regards, -- Rui Paulo

svn commit: r214124 - head/usr.sbin/lpr/lpr

2010-10-21 Thread Edwin Groothuis
Author: edwin Date: Thu Oct 21 06:52:14 2010 New Revision: 214124 URL: http://svn.freebsd.org/changeset/base/214124 Log: Fix printing of files located on ZFS filesystem with an st_dev or st_ino larger than 2**31. From the PR: Printing from a ZFS filesystem using 'lp' fails and

Re: svn commit: r214118 - in head: sbin/geom/class/eli sys/geom/eli

2010-10-21 Thread Pawel Jakub Dawidek
On Thu, Oct 21, 2010 at 07:25:53AM +0100, Rui Paulo wrote: Great work. Might be worth adding the geli commands to /etc/rc.suspend /etc/rc.resume. You could do something that requires the minimum user configuration, like: --- geli list 21 /dev/null if [ $? -eq 0 ]; then geli

svn commit: r214125 - head/sys/kern

2010-10-21 Thread Xin LI
Author: delphij Date: Thu Oct 21 08:57:25 2010 New Revision: 214125 URL: http://svn.freebsd.org/changeset/base/214125 Log: In syscall_module_handler(): all switch branches return, remove unreached code as pointed out in a Chinese forum [1]. [1]

Re: svn commit: r214118 - in head: sbin/geom/class/eli sys/geom/eli

2010-10-21 Thread Garrett Cooper
On Thu, Oct 21, 2010 at 1:55 AM, Pawel Jakub Dawidek p...@freebsd.org wrote: On Thu, Oct 21, 2010 at 07:25:53AM +0100, Rui Paulo wrote: Great work. Might be worth adding the geli commands to /etc/rc.suspend /etc/rc.resume. You could do something that requires the minimum user configuration,

svn commit: r214128 - head/lib/libgeom

2010-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 21 10:36:36 2010 New Revision: 214128 URL: http://svn.freebsd.org/changeset/base/214128 Log: - Simplify gctl_get_handle() a bit. - Prefer 'unsigned int' over 'u_int' in userland code. Modified: head/lib/libgeom/geom_ctl.c Modified: head/lib/libgeom/geom_ctl.c

svn commit: r214129 - head/lib/libgeom

2010-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 21 10:38:14 2010 New Revision: 214129 URL: http://svn.freebsd.org/changeset/base/214129 Log: Remove code duplication by introducing static gctl_param_add() function which is now used by both gctl_ro_param() and gctl_rw_param(). Modified:

svn commit: r214130 - head/sys/dev/mfi

2010-10-21 Thread Sergey Kandaurov
Author: pluknet Date: Thu Oct 21 10:38:52 2010 New Revision: 214130 URL: http://svn.freebsd.org/changeset/base/214130 Log: Update PD state firmware definitions: add copyback, system. Reviewed by: jhb Approved by: avg (mentor) MFC after:1 week Modified:

svn commit: r214131 - head/usr.sbin/mfiutil

2010-10-21 Thread Sergey Kandaurov
Author: pluknet Date: Thu Oct 21 10:46:18 2010 New Revision: 214131 URL: http://svn.freebsd.org/changeset/base/214131 Log: Enable copyback and system PD states. Reviewed by: jhb Approved by: avg (mentor) MFC after:1 week X-MFC-After: r214130 Modified:

Re: svn commit: r214125 - head/sys/kern

2010-10-21 Thread John Baldwin
On Thursday, October 21, 2010 4:57:25 am Xin LI wrote: Author: delphij Date: Thu Oct 21 08:57:25 2010 New Revision: 214125 URL: http://svn.freebsd.org/changeset/base/214125 Log: In syscall_module_handler(): all switch branches return, remove unreached code as pointed out in a Chinese

svn commit: r214132 - in head: lib/libc/sys sbin/fsirand sbin/ipfw sbin/restore share/man/man4 share/man/man5 share/man/man9 usr.bin/mesg usr.sbin/mtest

2010-10-21 Thread Ulrich Spoerlein
Author: uqs Date: Thu Oct 21 12:27:13 2010 New Revision: 214132 URL: http://svn.freebsd.org/changeset/base/214132 Log: mdoc: make pages render with mandoc It's a bit more pedantic regarding .Bl list elements. This has an added benefit of unbreaking the ipfw(8) manpage, where groff was

svn commit: r214133 - head/sys/geom/eli

2010-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 21 12:58:26 2010 New Revision: 214133 URL: http://svn.freebsd.org/changeset/base/214133 Log: Fix a bug introduced in r213067 where we use authentication key before initializing it. Modified: head/sys/geom/eli/g_eli.c Modified: head/sys/geom/eli/g_eli.c

svn commit: r214134 - head/lib/libc/gen

2010-10-21 Thread Ed Schouten
Author: ed Date: Thu Oct 21 15:10:35 2010 New Revision: 214134 URL: http://svn.freebsd.org/changeset/base/214134 Log: Fix error handling logic of pututxline(3). Instead of only returning NULL when the entry is invalid and can't be matched against the current database, also return it when

svn commit: r214135 - head/tools/tools/syscall_timing

2010-10-21 Thread Robert Watson
Author: rwatson Date: Thu Oct 21 16:08:31 2010 New Revision: 214135 URL: http://svn.freebsd.org/changeset/base/214135 Log: Improve the structure and implementation of the syscall_timing microbenchmark suite: - Use common benchmark_start/benchmark_stop routines to simplify individual

svn commit: r214136 - in head/sys: net sys

2010-10-21 Thread Sergey Kandaurov
Author: pluknet Date: Thu Oct 21 16:20:48 2010 New Revision: 214136 URL: http://svn.freebsd.org/changeset/base/214136 Log: Reshuffle SIOCGIFCONF32 handler from r155224. - move all the chunks into one file, which allows to hide SIOCGIFCONF32 global definition as well. - replace

svn commit: r214137 - head/usr.bin/unzip

2010-10-21 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 21 17:05:15 2010 New Revision: 214137 URL: http://svn.freebsd.org/changeset/base/214137 Log: Make it possible to read input from stdin. Without this change I don't see a way to unpack a multivolume archive without wasting disk space for a temporary file.

svn commit: r214138 - head/usr.sbin/pc-sysinstall/backend

2010-10-21 Thread Warner Losh
Author: imp Date: Thu Oct 21 17:14:44 2010 New Revision: 214138 URL: http://svn.freebsd.org/changeset/base/214138 Log: This small patch updates the geli setkey flags pc-sysinstall uses when saving a users passphrase, to make it work in HEAD with recent geli improvements. Submitted by:

svn commit: r214139 - head/usr.sbin/pc-sysinstall/backend

2010-10-21 Thread Warner Losh
Author: imp Date: Thu Oct 21 17:20:37 2010 New Revision: 214139 URL: http://svn.freebsd.org/changeset/base/214139 Log: This is an updated patch to the last patch to do this which fixes a local variable issue. This patch decompresses compressed images to the stdout when writing to a device

svn commit: r214141 - head/usr.sbin/pc-sysinstall/backend-query

2010-10-21 Thread Warner Losh
Author: imp Date: Thu Oct 21 17:23:48 2010 New Revision: 214141 URL: http://svn.freebsd.org/changeset/base/214141 Log: This patch will only list components if the directory exists. The directory exist on PC-BSD but not FreeBSD, so an extra check is made. Submitted by: John Hixson PR:

svn commit: r214142 - head/tools/tools/syscall_timing

2010-10-21 Thread Robert Watson
Author: rwatson Date: Thu Oct 21 17:27:39 2010 New Revision: 214142 URL: http://svn.freebsd.org/changeset/base/214142 Log: Further enhancements to syscall_timing: - Use getopt rather than hand-parsed arguments - Allow iterations to be specified and/or a new number of seconds bound on

svn commit: r214143 - head/usr.sbin/pc-sysinstall/backend

2010-10-21 Thread Warner Losh
Author: imp Date: Thu Oct 21 17:29:18 2010 New Revision: 214143 URL: http://svn.freebsd.org/changeset/base/214143 Log: Left over from prior patch removed. Submitted by: John Hixon PR: 151442 (but the patch was backwards there) Modified:

svn commit: r214144 - head/sys/vm

2010-10-21 Thread John Baldwin
Author: jhb Date: Thu Oct 21 17:29:32 2010 New Revision: 214144 URL: http://svn.freebsd.org/changeset/base/214144 Log: - Make 'vm_refcnt' volatile so that compilers won't be tempted to treat its value as a loop invariant. Currently this is a no-op because 'atomic_cmpset_int()' clobbers

svn commit: r214145 - head/tools/tools/syscall_timing

2010-10-21 Thread Robert Watson
Author: rwatson Date: Thu Oct 21 17:35:08 2010 New Revision: 214145 URL: http://svn.freebsd.org/changeset/base/214145 Log: Fix bug in recent syscall_timing change: measure the number of iterations each loop, rather than once up front. The distinction is unimportant when doing a fix

svn commit: r214146 - head/sys/dev/pci

2010-10-21 Thread John Baldwin
Author: jhb Date: Thu Oct 21 17:46:23 2010 New Revision: 214146 URL: http://svn.freebsd.org/changeset/base/214146 Log: Clarify a misleading comment. The test in pci_reserve_map() was meant to ignore BARs that are invalid due to having a size of zero, not to ignore BARs with an existing

Re: svn commit: r214144 - head/sys/vm

2010-10-21 Thread Ed Schouten
Hi John, * John Baldwin j...@freebsd.org, 20101021 19:29: + if (atomic_fetchadd_int(vm-vm_refcnt, -1) == 1) vmspace_dofree(vm); Not that it's that useful, but maybe it would be good to use refcount_release() here? -- Ed Schouten e...@80386.nl WWW: http://80386.nl

svn commit: r214147 - head/lib/libc/stdlib

2010-10-21 Thread Benedict Reuschling
Author: bcr (doc committer) Date: Thu Oct 21 18:21:19 2010 New Revision: 214147 URL: http://svn.freebsd.org/changeset/base/214147 Log: Sync with OpenBSD rev. 1.13: strtonum does not require limits.h Obtained from: OpenBSD Discussed with: ru@ MFC after: 5 days Modified:

svn commit: r214148 - head/lib/libc/stdlib

2010-10-21 Thread Benedict Reuschling
Author: bcr (doc committer) Date: Thu Oct 21 18:30:48 2010 New Revision: 214148 URL: http://svn.freebsd.org/changeset/base/214148 Log: Document strtonum()s behavior of setting errno to 0 when no error is found. PR: docs/143330 Submitted by: Efstratios Karatzas (gpf dot kira

Re: svn commit: r214144 - head/sys/vm

2010-10-21 Thread John Baldwin
On Thursday, October 21, 2010 2:19:21 pm Ed Schouten wrote: Hi John, * John Baldwin j...@freebsd.org, 20101021 19:29: + if (atomic_fetchadd_int(vm-vm_refcnt, -1) == 1) vmspace_dofree(vm); Not that it's that useful, but maybe it would be good to use refcount_release() here

svn commit: r214149 - head/sys/fs/nfsserver

2010-10-21 Thread Rick Macklem
Author: rmacklem Date: Thu Oct 21 18:49:12 2010 New Revision: 214149 URL: http://svn.freebsd.org/changeset/base/214149 Log: Modify the experimental NFS server in a manner analagous to r214049 for the regular NFS server, so that it will not do a VOP_LOOKUP() of .. when at the root of a file

svn commit: r214151 - head/tools/tools/syscall_timing

2010-10-21 Thread Robert Watson
Author: rwatson Date: Thu Oct 21 19:01:59 2010 New Revision: 214151 URL: http://svn.freebsd.org/changeset/base/214151 Log: Further syscall_timing improvements: allow an arbitrary path string argument to be passed on the command line, allowing file-related tests to be pointed at wherever

svn commit: r214154 - head/tools/tools/syscall_timing

2010-10-21 Thread Robert Watson
Author: rwatson Date: Thu Oct 21 19:03:24 2010 New Revision: 214154 URL: http://svn.freebsd.org/changeset/base/214154 Log: Add Cambridge/Google tag since the copyright has been updated. MFC after:2 weeks Modified: head/tools/tools/syscall_timing/syscall_timing.c Modified:

Re: svn commit: r214125 - head/sys/kern

2010-10-21 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/21/10 04:46, John Baldwin wrote: On Thursday, October 21, 2010 4:57:25 am Xin LI wrote: Author: delphij Date: Thu Oct 21 08:57:25 2010 New Revision: 214125 URL: http://svn.freebsd.org/changeset/base/214125 Log: In

svn commit: r214158 - in head/sys: kern sys

2010-10-21 Thread John Baldwin
Author: jhb Date: Thu Oct 21 19:17:40 2010 New Revision: 214158 URL: http://svn.freebsd.org/changeset/base/214158 Log: - When disabling ktracing on a process, free any pending requests that may be left. This fixes a memory leak that can occur when tracing is disabled on a process via

svn commit: r214160 - head/sys/dev/iwi

2010-10-21 Thread Bernhard Schmidt
Author: bschmidt Date: Thu Oct 21 19:28:52 2010 New Revision: 214160 URL: http://svn.freebsd.org/changeset/base/214160 Log: Instead of calling return when reaching the end of the assoc notification break the loop instead. We want to run the code after the while loop to set an associd and

svn commit: r214162 - head/sys/dev/iwi

2010-10-21 Thread Bernhard Schmidt
Author: bschmidt Date: Thu Oct 21 19:30:55 2010 New Revision: 214162 URL: http://svn.freebsd.org/changeset/base/214162 Log: The firmware always sets bit 14 and 15, to get the real associd we need to clear those bits. MFC after:1 week Modified: head/sys/dev/iwi/if_iwi.c Modified:

svn commit: r214163 - head/sys/geom/eli

2010-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 21 19:44:28 2010 New Revision: 214163 URL: http://svn.freebsd.org/changeset/base/214163 Log: Free opencrypto sessions on suspend, as they also might keep encryption keys. Modified: head/sys/geom/eli/g_eli.c head/sys/geom/eli/g_eli.h Modified:

Re: svn commit: r214125 - head/sys/kern

2010-10-21 Thread John Baldwin
On Thursday, October 21, 2010 3:08:12 pm Xin LI wrote: On 10/21/10 04:46, John Baldwin wrote: On Thursday, October 21, 2010 4:57:25 am Xin LI wrote: Author: delphij Date: Thu Oct 21 08:57:25 2010 New Revision: 214125 URL: http://svn.freebsd.org/changeset/base/214125 Log: In

svn commit: r214174 - head/usr.bin/unzip

2010-10-21 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 21 20:22:00 2010 New Revision: 214174 URL: http://svn.freebsd.org/changeset/base/214174 Log: Fix typo in last commit. Submitted by: bcr Modified: head/usr.bin/unzip/unzip.1 Modified: head/usr.bin/unzip/unzip.1

svn commit: r214181 - head/sys/kern

2010-10-21 Thread Xin LI
Author: delphij Date: Thu Oct 21 20:31:50 2010 New Revision: 214181 URL: http://svn.freebsd.org/changeset/base/214181 Log: Call chainevh callback when we are invoked with neither MOD_LOAD nor MOD_UNLOAD. This makes it possible to add custom hooks for other module events. Return

svn commit: r214185 - head/tools/tools/syscall_timing

2010-10-21 Thread Robert Watson
Author: rwatson Date: Thu Oct 21 21:08:12 2010 New Revision: 214185 URL: http://svn.freebsd.org/changeset/base/214185 Log: Universally use uintmax_t in syscall_timing; rearrange arithmetic to suffer fewer rounding errors with smaller numbers; fix argc validation so multiple tests run on a

svn commit: r214187 - head/usr.sbin/pc-sysinstall/backend

2010-10-21 Thread Warner Losh
Author: imp Date: Thu Oct 21 22:33:50 2010 New Revision: 214187 URL: http://svn.freebsd.org/changeset/base/214187 Log: Minor tweaks in compression support: o We need an eval here to get the right expansion of the command o bs=128k doesn't work in some cases, so eliminate it and cope with

svn commit: r214188 - head/usr.sbin/pc-sysinstall/backend

2010-10-21 Thread Warner Losh
Author: imp Date: Thu Oct 21 22:46:10 2010 New Revision: 214188 URL: http://svn.freebsd.org/changeset/base/214188 Log: More support for IMAGE installations Modified: head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh Modified: head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh

svn commit: r214189 - head/usr.sbin/pc-sysinstall/backend

2010-10-21 Thread Warner Losh
Author: imp Date: Thu Oct 21 23:08:42 2010 New Revision: 214189 URL: http://svn.freebsd.org/changeset/base/214189 Log: Fix two typos Submitted by: Benedict Reuschling Modified: head/usr.sbin/pc-sysinstall/backend/functions-extractimage.sh Modified:

svn commit: r214191 - head/usr.sbin/pc-sysinstall/backend-query

2010-10-21 Thread Warner Losh
Author: imp Date: Fri Oct 22 00:10:48 2010 New Revision: 214191 URL: http://svn.freebsd.org/changeset/base/214191 Log: Remove unnecessary variable. Submitted by: Alex Kozlov Modified: head/usr.sbin/pc-sysinstall/backend-query/query-langs.sh Modified:

svn commit: r214192 - head/usr.sbin/pc-sysinstall/backend-query

2010-10-21 Thread Warner Losh
Author: imp Date: Fri Oct 22 00:11:55 2010 New Revision: 214192 URL: http://svn.freebsd.org/changeset/base/214192 Log: More simplifications Submitted by: Alex Kozlov Modified: head/usr.sbin/pc-sysinstall/backend-query/disk-info.sh

Re: svn commit: r214137 - head/usr.bin/unzip

2010-10-21 Thread Bruce Evans
On Thu, 21 Oct 2010, Gleb Smirnoff wrote: Log: Make it possible to read input from stdin. Without this change I don't see a way to unpack a multivolume archive without wasting disk space for a temporary file. What's wrong with the canonical cat foo*.zip | unzip /dev/stdin? This is

svn commit: r214194 - in head/libexec/rtld-elf: . ia64

2010-10-21 Thread Marcel Moolenaar
Author: marcel Date: Fri Oct 22 04:43:04 2010 New Revision: 214194 URL: http://svn.freebsd.org/changeset/base/214194 Log: Unbreak ia64. With r169630 I disabled symbol versioning because it broke rtld. With r211706 rtld got broken for ia64 powerpc64. It was fixed for powerpc64 with