svn commit: r243994 - head/sys/kern

2012-12-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Dec 7 22:15:51 2012 New Revision: 243994 URL: http://svnweb.freebsd.org/changeset/base/243994 Log: - Make socket_zone static - it is used only in this file. - Update maxsockets on uma_zone_set_max(). Obtained from:WHEEL Systems Modified:

svn commit: r243995 - head/sys/kern

2012-12-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Dec 7 22:19:41 2012 New Revision: 243995 URL: http://svnweb.freebsd.org/changeset/base/243995 Log: Style cleanups. Modified: head/sys/kern/kern_mbuf.c Modified: head/sys/kern/kern_mbuf.c ==

svn commit: r243996 - head/sys/kern

2012-12-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Dec 7 22:22:04 2012 New Revision: 243996 URL: http://svnweb.freebsd.org/changeset/base/243996 Log: More style cleanups. Modified: head/sys/kern/kern_mbuf.c Modified: head/sys/kern/kern_mbuf.c

svn commit: r243997 - head/sys/kern

2012-12-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Dec 7 22:23:53 2012 New Revision: 243997 URL: http://svnweb.freebsd.org/changeset/base/243997 Log: Make use of the fact that uma_zone_set_max(9) already returns actual limit set. Modified: head/sys/kern/kern_mbuf.c Modified: head/sys/kern/kern_mbuf.c

svn commit: r243998 - in head: share/man/man9 sys/vm

2012-12-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Dec 7 22:27:13 2012 New Revision: 243998 URL: http://svnweb.freebsd.org/changeset/base/243998 Log: Implemented uma_zone_set_warning(9) function that sets a warning, which will be printed once the given zone becomes full and cannot allocate an item. The warning will

svn commit: r243999 - head/sys/kern

2012-12-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Dec 7 22:30:30 2012 New Revision: 243999 URL: http://svnweb.freebsd.org/changeset/base/243999 Log: Configure UMA warnings for the following zones: - unp_zone: kern.ipc.maxsockets limit reached - socket_zone: kern.ipc.maxsockets limit reached - zone_mbuf:

Re: svn commit: r243895 - head/usr.sbin/pw

2012-12-05 Thread Pawel Jakub Dawidek
(file, crontab -u %s -r, pwd-pw_name); system(file); -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl

svn commit: r243861 - head/libexec/rtld-elf

2012-12-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Dec 4 12:39:26 2012 New Revision: 243861 URL: http://svnweb.freebsd.org/changeset/base/243861 Log: Change /usr/libexec/ld-elf.so.1 to point at ../../libexec/ld-elf.so.1 instead of /libexec/ld-elf.so.1. Below in the Makefile we execute 'chflags noschg

svn commit: r243862 - head/libexec/rtld-elf

2012-12-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Dec 4 12:51:33 2012 New Revision: 243862 URL: http://svnweb.freebsd.org/changeset/base/243862 Log: Do not change entire BINDIR, it might be needed later, just change symlink target. MFC after:2 weeks Modified: head/libexec/rtld-elf/Makefile Modified:

svn commit: r243864 - head/libexec/rtld-elf

2012-12-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Dec 4 14:36:01 2012 New Revision: 243864 URL: http://svnweb.freebsd.org/changeset/base/243864 Log: Use absolute path for /usr/libexec/ld-elf.so.1 symlink. Requested by: kan, kib Use -h flags for chflags, so we won't remove 'schg' flag from system's

Re: svn commit: r243762 - head/sys/cddl/contrib/opensolaris/uts/common/fs

2012-12-02 Thread Pawel Jakub Dawidek
bugs in the past. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgpNWN1t8Sura.pgp Description: PGP signature

svn commit: r243715 - head/crypto/openssl/crypto/rand

2012-11-30 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Nov 30 22:23:23 2012 New Revision: 243715 URL: http://svnweb.freebsd.org/changeset/base/243715 Log: Allow OpenSSL to use arc4random(3) on FreeBSD. arc4random(3) was modified some time ago to use sysctl instead of /dev/random to get random data, so is now much better

svn commit: r243719 - head/sys/kern

2012-11-30 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Nov 30 22:49:28 2012 New Revision: 243719 URL: http://svnweb.freebsd.org/changeset/base/243719 Log: IFp4 @208450: Remove redundant call to AUDIT_ARG_UPATH1(). Path will be remembered by the following NDINIT(AUDITVNODE1) call. Sponsored by: FreeBSD Foundation

svn commit: r243720 - head/sys/security/audit

2012-11-30 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Nov 30 22:52:35 2012 New Revision: 243720 URL: http://svnweb.freebsd.org/changeset/base/243720 Log: IFp4 @208381: For VOP_GETATTR() we just need vnode to be shared-locked. Sponsored by: FreeBSD Foundation (auditdistd) MFC after:2 weeks Modified:

svn commit: r243722 - head/sys/security/audit

2012-11-30 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Nov 30 22:59:20 2012 New Revision: 243722 URL: http://svnweb.freebsd.org/changeset/base/243722 Log: IFp4 @208382: Currently on each record write we call VFS_STATFS() to get available space on the file system as well as VOP_GETATTR() to get trail file size. We

svn commit: r243723 - head/sys/security/audit

2012-11-30 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Nov 30 23:03:51 2012 New Revision: 243723 URL: http://svnweb.freebsd.org/changeset/base/243723 Log: IFp4 @208383: Currently when we discover that trail file is greater than configured limit we send AUDIT_TRIGGER_ROTATE_KERNEL trigger to the auditd daemon once. If

svn commit: r243726 - in head/sys: kern security/audit

2012-11-30 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Nov 30 23:18:49 2012 New Revision: 243726 URL: http://svnweb.freebsd.org/changeset/base/243726 Log: IFp4 @208451: Fix path handling for *at() syscalls. Before the change directory descriptor was totally ignored, so the relative path argument was appended to

svn commit: r243727 - head/sys/security/audit

2012-11-30 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Nov 30 23:21:55 2012 New Revision: 243727 URL: http://svnweb.freebsd.org/changeset/base/243727 Log: IFp4 @208452: Audit handling for missing events: - AUE_READLINKAT - AUE_FACCESSAT - AUE_MKDIRAT - AUE_MKFIFOAT - AUE_MKNODAT - AUE_SYMLINKAT Sponsored

svn commit: r243669 - head/sys/net

2012-11-29 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Nov 29 08:06:23 2012 New Revision: 243669 URL: http://svnweb.freebsd.org/changeset/base/243669 Log: - Use more appropriate loop (do { } while()) when generating ethernet address for bridge interface. - If we found a collision we can break the loop - only one

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

2012-11-29 Thread Pawel Jakub Dawidek
* of the change so that they can update their dependent limits as required. */ -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgpr9xl1wZ8Pa.pgp

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

2012-11-29 Thread Pawel Jakub Dawidek
On Thu, Nov 29, 2012 at 09:52:08AM +0100, Pawel Jakub Dawidek wrote: On Fri, Oct 19, 2012 at 10:15:32AM +, Andre Oppermann wrote: Author: andre Date: Fri Oct 19 10:15:32 2012 New Revision: 241726 URL: http://svn.freebsd.org/changeset/base/241726 Log: Move UMA socket zone

svn commit: r243607 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:11:54 2012 New Revision: 243607 URL: http://svnweb.freebsd.org/changeset/base/243607 Log: Style fixes (mostly whitespaces). Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c

svn commit: r243608 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:15:58 2012 New Revision: 243608 URL: http://svnweb.freebsd.org/changeset/base/243608 Log: More style fixes. Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ==

svn commit: r243609 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:16:48 2012 New Revision: 243609 URL: http://svnweb.freebsd.org/changeset/base/243609 Log: Allow to modify kern.sugid_coredump and kern.corefile from loader.conf. Obtained from:WHEEL Systems Modified: head/sys/kern/kern_sig.c Modified:

svn commit: r243610 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:22:40 2012 New Revision: 243610 URL: http://svnweb.freebsd.org/changeset/base/243610 Log: Allow to use kill(2) in capability mode, but process can send a signal only to himself. For example abort(3) at first tries to do kill(getpid(), SIGABRT) which was

svn commit: r243611 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:25:03 2012 New Revision: 243611 URL: http://svnweb.freebsd.org/changeset/base/243611 Log: Regenerate after r243610. Modified: head/sys/kern/init_sysent.c Modified: head/sys/kern/init_sysent.c

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

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:32:35 2012 New Revision: 243612 URL: http://svnweb.freebsd.org/changeset/base/243612 Log: - Add NOCAPCHECK flag to namei that allows lookup to work even if the process is in capability mode. - Add VN_OPEN_NOCAPCHECK flag for vn_open_cred() to will ne

svn commit: r243613 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:38:11 2012 New Revision: 243613 URL: http://svnweb.freebsd.org/changeset/base/243613 Log: Add kern.capmode_coredump sysctl/tunable to allow processes in capability mode to dump core. Reviewed by: rwatson Obtained from:WHEEL Systems MFC after:

svn commit: r243617 - head/usr.bin/passwd

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 16:23:12 2012 New Revision: 243617 URL: http://svnweb.freebsd.org/changeset/base/243617 Log: Respect NO_FSCHG and don't set 'schg' flag on passwd/yppasswd is defined. MFC after:2 weeks Modified: head/usr.bin/passwd/Makefile Modified:

Re: svn commit: r243524 - in head: cddl/contrib/opensolaris/cmd/ztest sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys

2012-11-25 Thread Pawel Jakub Dawidek
. IllumOS 13887:196932ec9e6a and 13888:7204b3392a58 3236 zio nop-write This is a nice change, although I don't understand why it depends on compression being turned on. It won't save any space. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer

Re: svn commit: r243142 - in head/sys: fs/nfsclient kern sys

2012-11-25 Thread Pawel Jakub Dawidek
On Sun, Nov 25, 2012 at 06:21:52PM +0200, Konstantin Belousov wrote: On Sat, Nov 24, 2012 at 11:24:08PM +0100, Pawel Jakub Dawidek wrote: I think we should move zpfind_locked() under 'pid = PID_MAX': sx_slock(allproc_lock); if (pid = PID_MAX) { p = pfind_locked(pid

svn commit: r243528 - head/sys/kern

2012-11-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Nov 25 19:31:42 2012 New Revision: 243528 URL: http://svnweb.freebsd.org/changeset/base/243528 Log: Look for zombie process only if we were given process id. Reviewed by: kib MFC after:2 weeks X-MFC-after-or-with: 243142 Modified:

Re: svn commit: r243142 - in head/sys: fs/nfsclient kern sys

2012-11-24 Thread Pawel Jakub Dawidek
) { p = pfind_tid_locked(pid); } else { p = NULL; } sx_sunlock(allproc_lock); if (p == NULL) return (ESRCH); -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http

Re: svn commit: r243320 - head/usr.bin/cut

2012-11-21 Thread Pawel Jakub Dawidek
and tabs count as one single field separator. That's very useful. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgpbEA1d9BfuP.pgp Description

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

2012-11-21 Thread Pawel Jakub Dawidek
not rearm the callout if it is already armed and the ticks is negative. Otherwise rearm it to fire in abs(ticks) ticks in the future. Can you document that in taskqueue(9)? -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http

svn commit: r243224 - svnadmin/conf

2012-11-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Nov 18 12:57:32 2012 New Revision: 243224 URL: http://svnweb.freebsd.org/changeset/base/243224 Log: Welcome Steven Hartland (smh) as a new src committer. I'll be Steven's mentor with avg@ as co-mentor. Steven is (and hopefully will be:)) working on storage-related

Re: svn commit: r242620 - head/bin/sh

2012-11-05 Thread Pawel Jakub Dawidek
cmdtype; /* index identifying command */ + signed char cmdtype;/* index identifying command */ Why not simply 'char'? char rehash;/* if set, cd done since entry created */ char cmdname[]; /* name of command */ }; -- Pawel Jakub Dawidek

Re: svn commit: r242511 - head/sbin/fsck_msdosfs

2012-11-04 Thread Pawel Jakub Dawidek
Sat Nov 3 09:18:37 2012 (r242511) @@ -68,6 +68,7 @@ checkfilesys(const char *fname) if (dosfs 0) { perr(Can't open `%s', fname); + printf(\n); Why not just add \n to perr()? Doesn't perr() print at stderr, not stdout? -- Pawel Jakub Dawidek

Re: svn commit: r242512 - head/lib/libc/net

2012-11-04 Thread Pawel Jakub Dawidek
for you, so all those three are redundant. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgphYrM4MOd7y.pgp Description: PGP signature

svn commit: r242593 - head/sbin/hastd

2012-11-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Nov 5 00:38:14 2012 New Revision: 242593 URL: http://svnweb.freebsd.org/changeset/base/242593 Log: Revert r228695. We use __func__ here as a format to distinguish between abort and assert. It would be cleaner to use NULL or here, but gcc complains in both cases.

Re: svn commit: r242439 - in head/sys: dev/null geom kern sys

2012-11-02 Thread Pawel Jakub Dawidek
); } -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgpPt4GNXdbtJ.pgp Description: PGP signature

Re: svn commit: r242451 - head/sbin/dumpon

2012-11-02 Thread Pawel Jakub Dawidek
[...] +dumpon -l); [...] + if (verbose) { + printf(kernel dumps on ); + } [...] Using -v in addition to -l seems to be changing the output, but neither manual page nor usage mentions it. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD

Re: svn commit: r242097 - head/sys/fs/smbfs

2012-10-27 Thread Pawel Jakub Dawidek
-uio_offset, uiop-uio_resid); + SMBVDEBUG(ofs=%d,resid=%zd\n,(int)uiop-uio_offset, uiop-uio_resid); While you are here, you may want to change the code to use %jd for uio_offset and cast it to (intmax_t). -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer

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

2012-10-27 Thread Pawel Jakub Dawidek
to the previous 60-seconds scheduling method unless there is any @every_second entries to conserve CPU cycles and power. On behalf of Mother Earth thank you:) -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I

Re: svn commit: r241896 - in head: . cddl/contrib/opensolaris/lib/libzpool/common/sys share/man/man9 sys/cam/ctl sys/cddl/compat/opensolaris/kern sys/cddl/compat/opensolaris/sys sys/cddl/contrib/opens

2012-10-23 Thread Pawel Jakub Dawidek
; - vfslocked = VFS_LOCK_GIANT(vp-v_mount); *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl

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

2012-10-15 Thread Pawel Jakub Dawidek
; -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgpaiFdgspcVj.pgp Description: PGP signature

Re: svn commit: r241498 - head/sys/i386/xen

2012-10-13 Thread Pawel Jakub Dawidek
Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgpUdMvAhNbDU.pgp Description: PGP signature

Re: svn commit: r241373 - head/lib/libc/stdlib

2012-10-11 Thread Pawel Jakub Dawidek
/libc_arc4random.c.patch -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgp1TnfErVY2R.pgp Description: PGP signature

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

2012-10-06 Thread Pawel Jakub Dawidek
ICRNL */ return (c); -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgpvP05TGTag7.pgp Description: PGP signature

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

2012-10-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 1 05:43:24 2012 New Revision: 241083 URL: http://svn.freebsd.org/changeset/base/241083 Log: - Enforce CAP_MKFIFO on mkfifoat(2), not on mknodat(2). Without this change mkfifoat(2) was not restricted. - Introduce CAP_MKNOD and enforce it on mknodat(2).

svn commit: r241022 - head/sys/geom

2012-09-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Sep 28 08:22:51 2012 New Revision: 241022 URL: http://svn.freebsd.org/changeset/base/241022 Log: Remove the topology lock from disk_gone(), it might be called with regular mutexes held and the topology lock is an sx lock. The topology lock was there to protect

svn commit: r241000 - head/sys/kern

2012-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 27 16:43:23 2012 New Revision: 241000 URL: http://svn.freebsd.org/changeset/base/241000 Log: Revert r240931, as the previous comment was actually in sync with POSIX. I have to note that POSIX is simply stupid in how it describes O_EXEC/fexecve and friends. Yes,

Re: svn commit: r240822 - head/sys/geom

2012-09-27 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 09:45:41PM +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012 at 01:21:17PM -0600, Kenneth D. Merry wrote: Ahh. How about using LIST_FOREACH_SAFE? Would that address the problem at hand? Are there any other races in there? It depends. If one geom can hold

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: On Sat, Sep 22, 2012 at 12:41:49 +, Pawel Jakub Dawidek wrote: Log: Use the topology lock to protect list of providers while withering them. It is possible that provider is destroyed while we are iterating over

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
-current I got stable panic at the very last stage of reboot (after buffers syncing): reboot after panic: mutex Giant owned at ../../../geom/geom_disk.c:638 using just plain AHCI disks perhaps attached to CAM. Yes, that looks very related. Stay tuned. -- Pawel Jakub Dawidek

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Pawel Jakub Dawidek
; /* per-softc mutex */ + struct cvtap_cv;/* protect ref'd dev destroy */ }; So maybe there is no need to add it?:) -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 09:54:43AM +0200, Pawel Jakub Dawidek wrote: On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: [...] Note: if_tun had the same issue, addressed in SVN revisions r186391, r186483 and r186497. The use of the condvar there appears to be redundant

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 11:29:17AM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 09:20:06 +0200, Pawel Jakub Dawidek wrote: On Tue, Sep 25, 2012 at 05:37:12PM -0600, Kenneth D. Merry wrote: On Sat, Sep 22, 2012 at 12:41:49 +, Pawel Jakub Dawidek wrote: Log: Use

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 01:21:17PM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 20:53:39 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012 at 11:29:17AM -0600, Kenneth D. Merry wrote: Here is what CAM needs at each step: 1. When a device goes away, we need a method

Re: svn commit: r240822 - head/sys/geom

2012-09-26 Thread Pawel Jakub Dawidek
On Wed, Sep 26, 2012 at 01:58:20PM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 21:45:41 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012 at 01:21:17PM -0600, Kenneth D. Merry wrote: On Wed, Sep 26, 2012 at 20:53:39 +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 26, 2012

svn commit: r240927 - head/sys/kern

2012-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 25 20:48:49 2012 New Revision: 240927 URL: http://svn.freebsd.org/changeset/base/240927 Log: O_EXEC flag is not part of the O_ACCMODE mask, check it separately. If O_EXEC is provided don't require CAP_READ/CAP_WRITE, as O_EXEC is mutually exclusive to

svn commit: r240928 - head/sys/kern

2012-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 25 20:58:15 2012 New Revision: 240928 URL: http://svn.freebsd.org/changeset/base/240928 Log: Require CAP_CREATE on directory descriptor for linkat(2). Sponsored by: FreeBSD Foundation MFC after:2 weeks Modified: head/sys/kern/vfs_syscalls.c Modified:

svn commit: r240929 - head/sys/kern

2012-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 25 20:59:12 2012 New Revision: 240929 URL: http://svn.freebsd.org/changeset/base/240929 Log: Require CAP_CREATE on directory descriptor for symlinkat(2). Sponsored by: FreeBSD Foundation MFC after:2 weeks Modified: head/sys/kern/vfs_syscalls.c Modified:

svn commit: r240930 - head/sys/kern

2012-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 25 21:00:36 2012 New Revision: 240930 URL: http://svn.freebsd.org/changeset/base/240930 Log: Require CAP_DELETE on directory descriptor for unlinkat(2). Sponsored by: FreeBSD Foundation MFC after:2 weeks Modified: head/sys/kern/vfs_syscalls.c Modified:

svn commit: r240931 - head/sys/kern

2012-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 25 21:11:40 2012 New Revision: 240931 URL: http://svn.freebsd.org/changeset/base/240931 Log: We cannot open file for reading and executing (O_RDONLY | O_EXEC). Well, in theory we can pass those two flags, because O_RDONLY is 0, but we won't be able to read from a

svn commit: r240936 - head/sys/kern

2012-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 25 21:31:17 2012 New Revision: 240936 URL: http://svn.freebsd.org/changeset/base/240936 Log: vn_write() always expects FOF_OFFSET flag, which is asserted at the begining, so there is no need to check for it. Sponsored by: FreeBSD Foundation MFC after:2

svn commit: r240940 - head/sys/kern

2012-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 25 22:15:59 2012 New Revision: 240940 URL: http://svn.freebsd.org/changeset/base/240940 Log: Fix freebsd32_kmq_timedreceive() and freebsd32_kmq_timedsend() to use getmq_read() and getmq_write() respectively, just like sys_kmq_timedreceive() and sys_kmq_timedsend().

svn commit: r240868 - in head: cddl/lib/libzpool sys/cddl/compat/opensolaris/sys sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys sys/modules/zfs

2012-09-23 Thread Pawel Jakub Dawidek
+ */ +/* + * Copyright (c) 2012 Pawel Jakub Dawidek pa...@dawidek.net. + * All rights reserved. + */ + +#ifndef _SYS_TRIM_MAP_H +#define_SYS_TRIM_MAP_H + +#include sys/avl.h +#include sys/list.h +#include sys/spa.h + +#ifdef __cplusplus +extern C { +#endif + +extern void trim_map_create(vdev_t *vd); +extern

svn commit: r240870 - in head: cddl/contrib/opensolaris/cmd/zfs cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2012-09-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Sep 23 20:12:10 2012 New Revision: 240870 URL: http://svn.freebsd.org/changeset/base/240870 Log: It is possible to recursively destroy snapshots even if the snapshot doesn't exist on a dataset we are starting from. For example if we have the following configuration:

svn commit: r240822 - head/sys/geom

2012-09-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 22 12:41:49 2012 New Revision: 240822 URL: http://svn.freebsd.org/changeset/base/240822 Log: Use the topology lock to protect list of providers while withering them. It is possible that provider is destroyed while we are iterating over the list. Reported by:

svn commit: r240823 - head/sbin/devd

2012-09-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 22 12:42:51 2012 New Revision: 240823 URL: http://svn.freebsd.org/changeset/base/240823 Log: Use O_CLOEXEC for open instead of separate fcntl(2) call. Modified: head/sbin/devd/devd.cc Modified: head/sbin/devd/devd.cc

svn commit: r240829 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2012-09-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 22 17:32:40 2012 New Revision: 240829 URL: http://svn.freebsd.org/changeset/base/240829 Log: As in r226967, r226987 and r232401 changes to UFS and TMPFS remove cache entries associated with the source and the target of rename(). MFC after:1 week Modified:

svn commit: r240830 - head/sys/contrib/rdma

2012-09-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 22 17:41:56 2012 New Revision: 240830 URL: http://svn.freebsd.org/changeset/base/240830 Log: Fix an obvious typo. Modified: head/sys/contrib/rdma/rdma_addr.c Modified: head/sys/contrib/rdma/rdma_addr.c

svn commit: r240832 - head/share/man/man4

2012-09-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 22 17:46:53 2012 New Revision: 240832 URL: http://svn.freebsd.org/changeset/base/240832 Log: Make the example a bit more pretty. Modified: head/share/man/man4/ip6.4 Modified: head/share/man/man4/ip6.4

svn commit: r240833 - head/contrib/groff/tmac

2012-09-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 22 17:47:37 2012 New Revision: 240833 URL: http://svn.freebsd.org/changeset/base/240833 Log: Add libsbuf. Modified: head/contrib/groff/tmac/doc-syms Modified: head/contrib/groff/tmac/doc-syms

svn commit: r240834 - head/sys/sys

2012-09-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 22 17:49:25 2012 New Revision: 240834 URL: http://svn.freebsd.org/changeset/base/240834 Log: Add rounddown2() macro similar to the roundup2() macro. Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

Re: svn commit: r240698 - head/cddl/contrib/opensolaris/cmd/zfs

2012-09-20 Thread Pawel Jakub Dawidek
jailid filesystem\n)); + return (gettext(\tunjail jailid|jailname filesystem\n)); case HELP_LIST: return (gettext(\tlist [-rH][-d max] [-o property[,...]] [-t type[,...]] [-s property] ...\n -- Pawel Jakub Dawidek http

Re: svn commit: r240698 - head/cddl/contrib/opensolaris/cmd/zfs

2012-09-20 Thread Pawel Jakub Dawidek
On Thu, Sep 20, 2012 at 11:38:43PM +0200, Baptiste Daroussin wrote: On Thu, Sep 20, 2012 at 11:17:01PM +0200, Pawel Jakub Dawidek wrote: On Wed, Sep 19, 2012 at 04:28:38PM +, Baptiste Daroussin wrote: Author: bapt Date: Wed Sep 19 16:28:38 2012 New Revision: 240698 URL: http

svn commit: r240359 - stable/9/sys/modules/zfs

2012-09-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 11 10:07:55 2012 New Revision: 240359 URL: http://svn.freebsd.org/changeset/base/240359 Log: MFC r226738: Don't look for includes in userland directories. There is no need for it and it breaks building the kernel without userland sources. Reported by:

svn commit: r240363 - releng/9.1/sys/modules/zfs

2012-09-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 11 13:58:03 2012 New Revision: 240363 URL: http://svn.freebsd.org/changeset/base/240363 Log: MFC r226738: Don't look for includes in userland directories. There is no need for it and it breaks building the kernel without userland sources. Reported by:

Re: svn commit: r226604 - head/lib/libc/stdio

2012-08-27 Thread Pawel Jakub Dawidek
is equivalent to O_EXCL. Apart from adding the 'x' mode option this change heavly modifies manual page. For example you removed information that the 'w' option truncates the file to zero length. I had to look at the code to figure it out. Why those changes to manual page were made? -- Pawel Jakub

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

2012-08-10 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 10 18:43:29 2012 New Revision: 239184 URL: http://svn.freebsd.org/changeset/base/239184 Log: Always initialize sc_ekey, because as of r238116 it is always used. If GELI provider was created on FreeBSD HEAD r238116 or later (but before this change), it is using

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

2012-07-19 Thread Pawel Jakub Dawidek
-fd_ofileflags[new] = fdp-fd_ofileflags[old] ~ UF_EXCLOSE; It seems that you forgot to remove the line above, which results in always removing the UF_EXCLOSE flag. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I

Re: svn commit: r238213 - head/sys/geom

2012-07-09 Thread Pawel Jakub Dawidek
nice nor helpful to you. Just wanted to point out your changes are wrong. That's all I can do. This is my last e-mail on the subject. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am

Re: svn commit: r238213 - head/sys/geom

2012-07-08 Thread Pawel Jakub Dawidek
On Sun, Jul 08, 2012 at 12:53:37AM +0200, Edward Tomasz Napierała wrote: Wiadomość napisana przez Pawel Jakub Dawidek w dniu 7 lip 2012, o godz. 23:54: You will also notice that one of those fields were left for more universal method to handle various provider's property changes (ie

Re: svn commit: r238213 - head/sys/geom

2012-07-07 Thread Pawel Jakub Dawidek
; + g_post_event(g_resize_provider_event, hh, M_WAITOK, NULL); -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl pgp3T2FQNL3Os.pgp Description: PGP

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-05 Thread Pawel Jakub Dawidek
. Compare results of those two on some SMP machine: # dd if=/dev/random of=/dev/null bs=1m count=1024 # sh -c 'for i in `jot $(sysctl -n hw.ncpu)`; do dd if=/dev/random of=/dev/null bs=1m count=128 done' -- Pawel Jakub Dawidek http://www.wheelsystems.com

svn commit: r238110 - head/tools/regression/pjdfstest

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:31:53 2012 New Revision: 238110 URL: http://svn.freebsd.org/changeset/base/238110 Log: Recognize 'none' or '0' as no flags. Modified: head/tools/regression/pjdfstest/pjdfstest.c Modified: head/tools/regression/pjdfstest/pjdfstest.c

svn commit: r238111 - in head: include lib/libc/stdio

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:35:07 2012 New Revision: 238111 URL: http://svn.freebsd.org/changeset/base/238111 Log: The register_printf_render_std() function expects regular string. Change argument type from 'const unsigned char *' to 'const char *'. MFC after:2 weeks Modified:

svn commit: r238112 - head/cddl/compat/opensolaris/misc

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:36:26 2012 New Revision: 238112 URL: http://svn.freebsd.org/changeset/base/238112 Log: Fix an obvious typo. MFC after:3 days Modified: head/cddl/compat/opensolaris/misc/deviceid.c Modified: head/cddl/compat/opensolaris/misc/deviceid.c

svn commit: r238113 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:39:29 2012 New Revision: 238113 URL: http://svn.freebsd.org/changeset/base/238113 Log: vdev_io_done stage is not used for ioctls. MFC after:1 week Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio_impl.h Modified:

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

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:43:25 2012 New Revision: 238114 URL: http://svn.freebsd.org/changeset/base/238114 Log: Correct a comment and correct style of a flag check. MFC after:3 days Modified: head/sys/geom/eli/g_eli_key.c Modified: head/sys/geom/eli/g_eli_key.c

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

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:44:39 2012 New Revision: 238115 URL: http://svn.freebsd.org/changeset/base/238115 Log: Correct comment. MFC after:3 days Modified: head/sys/geom/eli/g_eli_key_cache.c Modified: head/sys/geom/eli/g_eli_key_cache.c

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

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:54:17 2012 New Revision: 238116 URL: http://svn.freebsd.org/changeset/base/238116 Log: Use correct part of the Master-Key for generating encryption keys. Before this change the IV-Key was used to generate encryption keys, which was incorrect, but safe - for

svn commit: r238117 - head/sbin/geom/class/eli

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:59:26 2012 New Revision: 238117 URL: http://svn.freebsd.org/changeset/base/238117 Log: Improve description of various key used by GELI. PR: docs/169089 Submitted by: John W. O'Brien j...@saltant.com MFC after:3 days Modified:

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

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 19:51:25 2012 New Revision: 238118 URL: http://svn.freebsd.org/changeset/base/238118 Log: Prefer sysctl to open/read/close for obtaining random data. This method is more sandbox-friendly and also should be faster as only one syscall is needed instead of three.

svn commit: r238119 - head/sys/geom/gate

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 20:16:28 2012 New Revision: 238119 URL: http://svn.freebsd.org/changeset/base/238119 Log: Extend GEOM Gate class to handle read I/O requests directly within the kernel. This will allow HAST to read directly from the local component without even communicating

svn commit: r238120 - head/sbin/hastd

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 20:20:48 2012 New Revision: 238120 URL: http://svn.freebsd.org/changeset/base/238120 Log: Make use of GEOM Gate direct reads feature. This allows HAST to serve reads with native speed of the underlying provider. There are three situations when direct reads are

Re: svn commit: r238029 - in head/sys: compat/linux fs/devfs kern sys ufs/ffs

2012-07-03 Thread Pawel Jakub Dawidek
On Mon, Jul 02, 2012 at 09:01:03PM +, Konstantin Belousov wrote: The already broken ABI emulations, including iBCS and SysV, are not converted (yet). Do people really use that? Why can't we axe those? -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD

svn commit: r237931 - head/sbin/hastd

2012-07-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Jul 1 16:26:07 2012 New Revision: 237931 URL: http://svn.freebsd.org/changeset/base/237931 Log: Check if there is cmsg at all. MFC after:3 days Modified: head/sbin/hastd/proto_common.c Modified: head/sbin/hastd/proto_common.c

<    1   2   3   4   5   6   7   8   9   10   >