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

2010-08-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 27 21:31:15 2010 New Revision: 211900 URL: http://svn.freebsd.org/changeset/base/211900 Log: Use ZFS_CTLDIR_NAME instead of hardcoding .zfs. Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c Modified:

Re: svn commit: r211896 - head/sbin/hastd

2010-08-27 Thread Pawel Jakub Dawidek
the handler would have the same race as sigXXX_received check. Which aren't async-safe? pthread stuff? -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil

Re: svn commit: r211830 - head/sys/rpc

2010-08-26 Thread Pawel Jakub Dawidek
the rc_lock to be held when it is called. Ah! Rick, I've more fixes to this file. Could you review the following patch: http://people.freebsd.org/~pjd/patches/rpc_replay.c.patch -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org

svn commit: r211853 - head/sys/rpc

2010-08-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 26 23:33:04 2010 New Revision: 211853 URL: http://svn.freebsd.org/changeset/base/211853 Log: - Check the result of malloc(M_NOWAIT) in replay_alloc(). The caller (replay_alloc()) knows how to handle replay_alloc() failure. - Eliminate 'freed_one' variable, it is

svn commit: r211854 - head/sys/nfsserver

2010-08-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 26 23:41:40 2010 New Revision: 211854 URL: http://svn.freebsd.org/changeset/base/211854 Log: - When VFS_VGET() is not supported, switch to VOP_LOOKUP(). - We are fine by only share-locking the vnode. - Remove assertion that doesn't hold for ZFS where we cross mount

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

2010-08-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 26 23:44:32 2010 New Revision: 211855 URL: http://svn.freebsd.org/changeset/base/211855 Log: Update comment now that I finally committed r211854. MFC after:1 month Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Modified:

svn commit: r211452 - head/sbin/hastd

2010-08-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 18 12:09:27 2010 New Revision: 211452 URL: http://svn.freebsd.org/changeset/base/211452 Log: For some setups sending data in 128kB chunks makes communication very slow. No idea why. 32kB on the other hand seems to work properly everywhere. Reported by: Thomas

svn commit: r211474 - in head/tools/regression/pjdfstest/tests: chflags chmod chown link mkdir mkfifo mknod open rename rmdir symlink

2010-08-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 18 22:06:43 2010 New Revision: 211474 URL: http://svn.freebsd.org/changeset/base/211474 Log: More tests. Modified: head/tools/regression/pjdfstest/tests/chflags/01.t head/tools/regression/pjdfstest/tests/chmod/01.t

svn commit: r211410 - head/tools/regression/pjdfstest/tests/chown

2010-08-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Aug 17 06:08:09 2010 New Revision: 211410 URL: http://svn.freebsd.org/changeset/base/211410 Log: More tests, especially for lchown(2). Modified: head/tools/regression/pjdfstest/tests/chown/01.t head/tools/regression/pjdfstest/tests/chown/04.t

svn commit: r211407 - head/sbin/hastd

2010-08-16 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Aug 16 21:59:56 2010 New Revision: 211407 URL: http://svn.freebsd.org/changeset/base/211407 Log: The 'size' variable is there to limit how many bytes we want to copy from 'addr'. It is very likely that size of 'addr' is larger than 'size', so checking strlcpy() return

svn commit: r211336 - head/tools/regression/fstest/tests/chmod

2010-08-15 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Aug 15 14:44:48 2010 New Revision: 211336 URL: http://svn.freebsd.org/changeset/base/211336 Log: More tests (especially for lchmod(2)), less code duplication. Modified: head/tools/regression/fstest/tests/chmod/00.t head/tools/regression/fstest/tests/chmod/04.t

svn commit: r211350 - head/tools/regression/fstest/tests/chown

2010-08-15 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Aug 15 21:19:42 2010 New Revision: 211350 URL: http://svn.freebsd.org/changeset/base/211350 Log: More tests. Modified: head/tools/regression/fstest/tests/chown/00.t Modified: head/tools/regression/fstest/tests/chown/00.t

svn commit: r211351 - head/tools/regression/fstest

2010-08-15 Thread Pawel Jakub Dawidek
regression tests available with fstest: -Copyright (c) 2006-2007 Pawel Jakub Dawidek p...@freebsd.org +Copyright (c) 2006-2010 Pawel Jakub Dawidek p...@freebsd.org All rights reserved. Redistribution and use in source and binary forms, with or without Modified: head/tools/regression/fstest/fstest.c

svn commit: r211352 - in head/tools/regression: fstest pjdfstest

2010-08-15 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Aug 15 21:24:17 2010 New Revision: 211352 URL: http://svn.freebsd.org/changeset/base/211352 Log: Give fstest a more unique name: pjdfstest. It is released from time to time and used outside FreeBSD, so it is good to have a name one can google. Added:

svn commit: r211354 - in head/tools/regression/pjdfstest: . tests

2010-08-15 Thread Pawel Jakub Dawidek
@@ $FreeBSD$ -License for all regression tests available with fstest: +License for all regression tests available with pjdfstest: Copyright (c) 2006-2010 Pawel Jakub Dawidek p...@freebsd.org All rights reserved. Modified: head/tools/regression/pjdfstest/Makefile

svn commit: r211284 - head/sys/kern

2010-08-13 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 13 19:20:35 2010 New Revision: 211284 URL: http://svn.freebsd.org/changeset/base/211284 Log: Simplify taskqueue_drain() by using proved macros. Modified: head/sys/kern/subr_taskqueue.c Modified: head/sys/kern/subr_taskqueue.c

svn commit: r211290 - head/tools/regression/fstest/tests/chflags

2010-08-13 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 13 21:17:59 2010 New Revision: 211290 URL: http://svn.freebsd.org/changeset/base/211290 Log: - Use loops to avoid code duplication. - More tests. Modified: head/tools/regression/fstest/tests/chflags/07.t head/tools/regression/fstest/tests/chflags/08.t

svn commit: r211234 - head/tools/regression/fstest/tests/unlink

2010-08-12 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 12 19:43:40 2010 New Revision: 211234 URL: http://svn.freebsd.org/changeset/base/211234 Log: Fix copypasted code - we want to create character device here. Modified: head/tools/regression/fstest/tests/unlink/11.t Modified:

svn commit: r211235 - head/tools/regression/fstest

2010-08-12 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 12 19:45:27 2010 New Revision: 211235 URL: http://svn.freebsd.org/changeset/base/211235 Log: Portable Makefile. Modified: head/tools/regression/fstest/Makefile Modified: head/tools/regression/fstest/Makefile

svn commit: r211242 - in head/tools/regression/fstest/tests: rmdir unlink

2010-08-12 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 12 20:35:14 2010 New Revision: 211242 URL: http://svn.freebsd.org/changeset/base/211242 Log: More tests. Modified: head/tools/regression/fstest/tests/rmdir/11.t head/tools/regression/fstest/tests/unlink/11.t Modified: head/tools/regression/fstest/tests/rmdir/11.t

Re: svn commit: r211201 - in head: share/man/man4 sys/conf sys/dev/tpm sys/modules sys/modules/tpm

2010-08-12 Thread Pawel Jakub Dawidek
://bsssd.sourceforge.net/ . Submitted by: Hans-Joerg Hoexer hans-joerg_hoe...@genua.de Yay! PS. Any reason manual page is not enabled in man4/Makefile? -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer

Re: svn commit: r211157 - in head/sys: modules modules/if_carp net netinet netinet6

2010-08-11 Thread Pawel Jakub Dawidek
this anti foot shooting measure. Wouldn't it be better to allow unload only if there are no carp(4) interfaces? I'd be glad to destroy my carp interfaces before unloading the module, but recompiling the kernel to unload it? Not so much. -- Pawel Jakub Dawidek http

svn commit: r211177 - head/tools/regression/fstest/tests

2010-08-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 11 16:29:12 2010 New Revision: 211177 URL: http://svn.freebsd.org/changeset/base/211177 Log: Instead of hardcoding {NAME_MAX} as 255 and {PATH_MAX} as 1024 obtain those from pathconf(2) and properly generate too long file names. This should fix ENAMETOOLONG checks

svn commit: r211178 - in head/tools/regression/fstest/tests: chflags chmod chown link mkdir mkfifo mknod open rename rmdir symlink truncate unlink

2010-08-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 11 16:33:17 2010 New Revision: 211178 URL: http://svn.freebsd.org/changeset/base/211178 Log: Make use of recently added dirgen_max() and namegen_max() to implement ENAMETOOLONG checks. Modified: head/tools/regression/fstest/tests/chflags/02.t

svn commit: r211179 - head/tools/regression/fstest/tests

2010-08-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 11 16:34:26 2010 New Revision: 211179 URL: http://svn.freebsd.org/changeset/base/211179 Log: Move create_file() to misc.sh, as it is going to be used in more places. Modified: head/tools/regression/fstest/tests/misc.sh Modified:

svn commit: r211180 - in head/tools/regression/fstest/tests: chflags chown link rename

2010-08-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 11 16:34:44 2010 New Revision: 211180 URL: http://svn.freebsd.org/changeset/base/211180 Log: More and more tests. Modified: head/tools/regression/fstest/tests/chflags/00.t head/tools/regression/fstest/tests/chflags/10.t

svn commit: r211185 - head/tools/regression/fstest/tests

2010-08-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 11 17:33:32 2010 New Revision: 211185 URL: http://svn.freebsd.org/changeset/base/211185 Log: Allow to specify uid, gid and mode for create_file(). Modified: head/tools/regression/fstest/tests/misc.sh Modified: head/tools/regression/fstest/tests/misc.sh

svn commit: r211186 - in head/tools/regression/fstest/tests: chflags link mkdir open rename

2010-08-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 11 17:34:58 2010 New Revision: 211186 URL: http://svn.freebsd.org/changeset/base/211186 Log: - Use loops where possible to avoid code duplication. - Don't pass uid and gid to create_file() if not needed. - More tests. Modified:

svn commit: r211156 - in head/tools/regression/fstest/tests: mkdir open rename unlink

2010-08-10 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Aug 10 22:57:43 2010 New Revision: 211156 URL: http://svn.freebsd.org/changeset/base/211156 Log: More tests, mostly related to devices and sockets. Modified: head/tools/regression/fstest/tests/mkdir/10.t head/tools/regression/fstest/tests/open/22.t

svn commit: r211107 - head/tools/regression/fstest/tests

2010-08-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Aug 9 17:34:57 2010 New Revision: 211107 URL: http://svn.freebsd.org/changeset/base/211107 Log: No need to use grep to check if path start with /. Suggested by: ed Modified: head/tools/regression/fstest/tests/misc.sh Modified:

svn commit: r211108 - head/tools/regression/fstest/tests

2010-08-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Aug 9 17:37:29 2010 New Revision: 211108 URL: http://svn.freebsd.org/changeset/base/211108 Log: Small tweaks. Modified: head/tools/regression/fstest/tests/conf head/tools/regression/fstest/tests/misc.sh Modified: head/tools/regression/fstest/tests/conf

svn commit: r211109 - head/tools/regression/fstest/tests

2010-08-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Aug 9 17:40:59 2010 New Revision: 211109 URL: http://svn.freebsd.org/changeset/base/211109 Log: Fix file system type detection on Solaris. Modified: head/tools/regression/fstest/tests/conf Modified: head/tools/regression/fstest/tests/conf

svn commit: r211110 - head/tools/regression/fstest

2010-08-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Aug 9 17:42:04 2010 New Revision: 20 URL: http://svn.freebsd.org/changeset/base/20 Log: Fix bind(2) and connect(2) support on Solaris. Modified: head/tools/regression/fstest/fstest.c Modified: head/tools/regression/fstest/fstest.c

svn commit: r211116 - head/tools/regression/fstest

2010-08-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Aug 9 20:16:52 2010 New Revision: 26 URL: http://svn.freebsd.org/changeset/base/26 Log: Linux has no strlcpy(). Modified: head/tools/regression/fstest/fstest.c Modified: head/tools/regression/fstest/fstest.c

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

2010-08-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Aug 7 10:23:54 2010 New Revision: 210999 URL: http://svn.freebsd.org/changeset/base/210999 Log: In FreeBSD we use 'jailed' property. MFC after:2 weeks Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c Modified:

svn commit: r210912 - head/sbin/hastctl

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 06:04:27 2010 New Revision: 210912 URL: http://svn.freebsd.org/changeset/base/210912 Log: Force commit to remind me about MFCing r210909. MFC after:1 month Modified: head/sbin/hastctl/hastctl.c Modified: head/sbin/hastctl/hastctl.c

svn commit: r210951 - head/tools/regression/fstest

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 19:16:20 2010 New Revision: 210951 URL: http://svn.freebsd.org/changeset/base/210951 Log: Implement two new syscalls: bind(2) and connect(2) for operating on UNIX domain sockets. Modified: head/tools/regression/fstest/fstest.c Modified:

svn commit: r210952 - head/tools/regression/fstest

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 19:16:48 2010 New Revision: 210952 URL: http://svn.freebsd.org/changeset/base/210952 Log: Add missing -U argument to usage. Modified: head/tools/regression/fstest/fstest.c Modified: head/tools/regression/fstest/fstest.c

svn commit: r210953 - head/tools/regression/fstest/tests/open

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 19:18:19 2010 New Revision: 210953 URL: http://svn.freebsd.org/changeset/base/210953 Log: Make description readable. Modified: head/tools/regression/fstest/tests/open/13.t Modified: head/tools/regression/fstest/tests/open/13.t

svn commit: r210954 - head/tools/regression/fstest/tests/open

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 19:19:14 2010 New Revision: 210954 URL: http://svn.freebsd.org/changeset/base/210954 Log: Test O_RDONLY|O_RDWR flags as potentially invalid. Modified: head/tools/regression/fstest/tests/open/23.t Modified: head/tools/regression/fstest/tests/open/23.t

svn commit: r210955 - head/tools/regression/fstest/tests/open

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 19:20:35 2010 New Revision: 210955 URL: http://svn.freebsd.org/changeset/base/210955 Log: Test for EACCES also when opening FIFO or directory. Modified: head/tools/regression/fstest/tests/open/06.t Modified: head/tools/regression/fstest/tests/open/06.t

svn commit: r210956 - head/tools/regression/fstest/tests/open

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 19:22:42 2010 New Revision: 210956 URL: http://svn.freebsd.org/changeset/base/210956 Log: open(2) returns EOPNOTSUPP when trying to open a socket. Added: head/tools/regression/fstest/tests/open/24.t (contents, props changed) Added:

svn commit: r210964 - head/tools/regression/fstest

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 20:46:26 2010 New Revision: 210964 URL: http://svn.freebsd.org/changeset/base/210964 Log: Sort includes. Modified: head/tools/regression/fstest/fstest.c Modified: head/tools/regression/fstest/fstest.c

svn commit: r210965 - head/tools/regression/fstest

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 20:48:10 2010 New Revision: 210965 URL: http://svn.freebsd.org/changeset/base/210965 Log: Add mknod(2) support. Submitted by: Jan Senolt seno...@centrum.cz Submitted by: Milan Cermak milan.cer...@sun.com Modified: head/tools/regression/fstest/fstest.c

svn commit: r210967 - head/tools/regression/fstest/tests/mknod

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 20:51:39 2010 New Revision: 210967 URL: http://svn.freebsd.org/changeset/base/210967 Log: Add tests for mknod(2). Submitted by: Jan Senolt seno...@centrum.cz Submitted by: Milan Cermak milan.cer...@sun.com Polished by: pjd Added:

svn commit: r210969 - head/tools/regression/fstest/tests

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 21:02:53 2010 New Revision: 210969 URL: http://svn.freebsd.org/changeset/base/210969 Log: Convert file system type to upper case. Modified: head/tools/regression/fstest/tests/conf Modified: head/tools/regression/fstest/tests/conf

svn commit: r210970 - head/tools/regression/fstest/tests

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 21:53:50 2010 New Revision: 210970 URL: http://svn.freebsd.org/changeset/base/210970 Log: For FreeBSD and Linux use awk's toupper() function. Suggested by: ed Modified: head/tools/regression/fstest/tests/conf Modified:

svn commit: r210971 - head/tools/regression/fstest/tests

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 21:56:32 2010 New Revision: 210971 URL: http://svn.freebsd.org/changeset/base/210971 Log: Check first todo() argument against operating system name and operating system name plus file system name. Modified: head/tools/regression/fstest/tests/misc.sh Modified:

svn commit: r210972 - head/tools/regression/fstest/tests

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 21:57:11 2010 New Revision: 210972 URL: http://svn.freebsd.org/changeset/base/210972 Log: Don't use egrep directly - use ${GREP}. Modified: head/tools/regression/fstest/tests/misc.sh Modified: head/tools/regression/fstest/tests/misc.sh

svn commit: r210973 - head/tools/regression/fstest/tests

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 21:58:53 2010 New Revision: 210973 URL: http://svn.freebsd.org/changeset/base/210973 Log: ${GREP} can only be used after loading 'conf'. Modified: head/tools/regression/fstest/tests/misc.sh Modified: head/tools/regression/fstest/tests/misc.sh

Re: svn commit: r210969 - head/tools/regression/fstest/tests

2010-08-06 Thread Pawel Jakub Dawidek
On Fri, Aug 06, 2010 at 11:06:04PM +0200, Ed Schouten wrote: Hi Pawel, * Pawel Jakub Dawidek p...@freebsd.org wrote: + fs=`mount | egrep ^${pattern} | awk -F '[(,]' '{print $2}' | tr '[:lower:]' '[:upper:]'` ... + fs=`df -PT . | tail -1 | awk '{print $2}' | tr '[:lower:]' '[:upper

svn commit: r210984 - in head/tools/regression/fstest/tests: chmod chown granular link mkdir mkfifo open rename rmdir symlink truncate unlink

2010-08-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 6 23:58:54 2010 New Revision: 210984 URL: http://svn.freebsd.org/changeset/base/210984 Log: Various cleanups, mostly to make the test work on FreeBSD/ZFS. Modified: head/tools/regression/fstest/tests/chmod/08.t head/tools/regression/fstest/tests/chmod/09.t

svn commit: r210869 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 17:56:41 2010 New Revision: 210869 URL: http://svn.freebsd.org/changeset/base/210869 Log: Add an argument to the proto_register() function which allows protocol to declare it is the default and be placed at the end of the queue so it is checked last. MFC

svn commit: r210870 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 17:57:59 2010 New Revision: 210870 URL: http://svn.freebsd.org/changeset/base/210870 Log: Now that TCP will be checked last we don't need any knowledge about other protocols. MFC after:1 month Modified: head/sbin/hastd/proto_tcp4.c Modified:

svn commit: r210872 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 18:21:45 2010 New Revision: 210872 URL: http://svn.freebsd.org/changeset/base/210872 Log: Mark two more places that we won't reach. MFC after:1 month Modified: head/sbin/hastd/pjdlog.c Modified: head/sbin/hastd/pjdlog.c

svn commit: r210873 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 18:23:43 2010 New Revision: 210873 URL: http://svn.freebsd.org/changeset/base/210873 Log: Keep $FreeBSD$ in __FBSDID() only for C files. MFC after:1 month Modified: head/sbin/hastd/pjdlog.c Modified: head/sbin/hastd/pjdlog.c

svn commit: r210875 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 18:26:38 2010 New Revision: 210875 URL: http://svn.freebsd.org/changeset/base/210875 Log: Problem with assertion is that it logs on stderr. Add two macros: PJDLOG_ASSERT() and PJDLOG_VERIFY() that will check the given condition and log the problem where

svn commit: r210876 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 18:27:41 2010 New Revision: 210876 URL: http://svn.freebsd.org/changeset/base/210876 Log: Assert that various buffers we are large enough. MFC after:1 month Modified: head/sbin/hastd/proto_tcp4.c head/sbin/hastd/proto_uds.c Modified:

svn commit: r210879 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 18:56:24 2010 New Revision: 210879 URL: http://svn.freebsd.org/changeset/base/210879 Log: - Use pjdlog_exitx() to log errors and exit instead of errx(). - Use 'unable to' (instead of 'cannot') consistently. MFC after:1 month Modified:

svn commit: r210880 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 18:58:00 2010 New Revision: 210880 URL: http://svn.freebsd.org/changeset/base/210880 Log: Reset signal handlers after fork(). MFC after:1 month Modified: head/sbin/hastd/primary.c head/sbin/hastd/secondary.c Modified: head/sbin/hastd/primary.c

svn commit: r210881 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 19:01:57 2010 New Revision: 210881 URL: http://svn.freebsd.org/changeset/base/210881 Log: Allow to use 'none' keywork as remote address in case second cluster node is not setup yet. MFC after:1 month Modified: head/sbin/hastd/primary.c Modified:

svn commit: r210882 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 19:04:29 2010 New Revision: 210882 URL: http://svn.freebsd.org/changeset/base/210882 Log: Make control_set_role() more public. We will need it soon. MFC after:1 month Modified: head/sbin/hastd/control.c head/sbin/hastd/control.h Modified:

svn commit: r210883 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 19:08:54 2010 New Revision: 210883 URL: http://svn.freebsd.org/changeset/base/210883 Log: Prepare configuration parsing code to be called multiple times: - Don't exit on errors if not requested. - Don't keep configuration in global variable, but allocate memory

svn commit: r210886 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
) 2009-2010 The FreeBSD Foundation + * Copyright (c) 2010 Pawel Jakub Dawidek p...@freebsd.org * All rights reserved. * * This software was developed by Pawel Jakub Dawidek under sponsorship from @@ -57,13 +58,13 @@ __FBSDID($FreeBSD$); #include subr.h /* Path to configuration file. */ -static

svn commit: r210892 - head/sbin/hastd

2010-08-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Aug 5 19:54:57 2010 New Revision: 210892 URL: http://svn.freebsd.org/changeset/base/210892 Log: Document 'none' value for remote. Reviewed by: dougb MFC after:1 month Modified: head/sbin/hastd/hast.conf.5 Modified: head/sbin/hastd/hast.conf.5

svn commit: r210737 - head/share/man/man9

2010-08-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Aug 1 21:54:25 2010 New Revision: 210737 URL: http://svn.freebsd.org/changeset/base/210737 Log: Correct function name. MFC after:3 days Modified: head/share/man/man9/make_dev.9 Modified: head/share/man/man9/make_dev.9

Re: svn commit: r210372 - head/usr.sbin/newsyslog

2010-07-23 Thread Pawel Jakub Dawidek
' in newsyslog.conf so old logfiles are deleted. This new code does not currently support never deleting the archived logfiles. Very, very useful. Thanks! I'd love to see it being the default. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org

svn commit: r210368 - head/sbin/hastd

2010-07-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Jul 22 08:30:14 2010 New Revision: 210368 URL: http://svn.freebsd.org/changeset/base/210368 Log: Actually, only the fullsync mode is implemented, not memsync mode. Correct manual page. MFC after:3 days Modified: head/sbin/hastd/hast.conf.5 Modified:

svn commit: r210044 - head/cddl/contrib/opensolaris/lib/libzpool/common

2010-07-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 14 06:37:43 2010 New Revision: 210044 URL: http://svn.freebsd.org/changeset/base/210044 Log: MFp4 180933: Initialize rw_count properly so that zdb(8) doesn't trigger assertion in rw_enter(): ASSERT(rwlp-rw_count == 0); While here, assert that

svn commit: r209564 - head/etc/mtree

2010-06-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 28 08:05:30 2010 New Revision: 209564 URL: http://svn.freebsd.org/changeset/base/209564 Log: Use spaces, not tabs. Modified: head/etc/mtree/BSD.usr.dist Modified: head/etc/mtree/BSD.usr.dist

svn commit: r209542 - head/lib/libc/sys

2010-06-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Jun 26 21:44:05 2010 New Revision: 209542 URL: http://svn.freebsd.org/changeset/base/209542 Log: Just like in case of setgroups(2), for getgroups(2) also advice including sys/param.h instead of sys/types.h so we get NGROUPS_MAX and NGROUPS definitions. Modified:

svn commit: r209543 - head/sys/kern

2010-06-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Jun 26 21:44:45 2010 New Revision: 209543 URL: http://svn.freebsd.org/changeset/base/209543 Log: Correct arguments order. Modified: head/sys/kern/vfs_vnops.c Modified: head/sys/kern/vfs_vnops.c

svn commit: r209487 - releng/8.1/sys/geom/gate

2010-06-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jun 23 23:03:25 2010 New Revision: 209487 URL: http://svn.freebsd.org/changeset/base/209487 Log: MFC r209262: r209186: BIO_DELETE contains range we want to delete and doesn't provide any useful data, so there is no need to copy it to userland. r209187:

svn commit: r209488 - releng/8.1/sbin/hastd

2010-06-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jun 23 23:07:57 2010 New Revision: 209488 URL: http://svn.freebsd.org/changeset/base/209488 Log: MFC r209263: r209175: Eliminate dead code. Found by: Coverity Prevent CID: 5158 r209177: Remove macros that are not really needed. The

svn commit: r209283 - stable/8/sys/modules/zfs

2010-06-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jun 18 06:24:40 2010 New Revision: 209283 URL: http://svn.freebsd.org/changeset/base/209283 Log: MFC r208770: opensolaris_kmem.c is already part of opensolaris.ko which zfs.ko depends on. Reported by: avg Modified: stable/8/sys/modules/zfs/Makefile Directory

svn commit: r209319 - in releng/8.1/sys: cddl/contrib/opensolaris/uts/common/fs/zfs kern

2010-06-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jun 18 22:06:49 2010 New Revision: 209319 URL: http://svn.freebsd.org/changeset/base/209319 Log: MFC r209265: r209260: Backout r207970 for now, it can lead to deadlocks. Reported by: kan r209261: Turn off UMA allocations on all archs by default.

svn commit: r209260 - head/sys/kern

2010-06-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Jun 17 17:39:51 2010 New Revision: 209260 URL: http://svn.freebsd.org/changeset/base/209260 Log: Backout r207970 for now, it can lead to deadlocks. Reported by: kan MFC after:3 days Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c

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

2010-06-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Jun 17 17:41:42 2010 New Revision: 209261 URL: http://svn.freebsd.org/changeset/base/209261 Log: Turn off UMA allocations on all archs by default. It isn't stable even on amd64. Reported by: many MFC after:3 days Modified:

svn commit: r209262 - stable/8/sys/geom/gate

2010-06-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Jun 17 19:06:11 2010 New Revision: 209262 URL: http://svn.freebsd.org/changeset/base/209262 Log: MFC r209186,r209187: r209186: BIO_DELETE contains range we want to delete and doesn't provide any useful data, so there is no need to copy it to userland.

svn commit: r209263 - stable/8/sbin/hastd

2010-06-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Jun 17 19:17:31 2010 New Revision: 209263 URL: http://svn.freebsd.org/changeset/base/209263 Log: MFC r209175,r209177,r209179,r209180,r209181,r209182,r209183,r209184,r209185: r209175: Eliminate dead code. Found by: Coverity Prevent CID: 5158

svn commit: r209265 - in stable/8/sys: cddl/contrib/opensolaris/uts/common/fs/zfs kern

2010-06-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Jun 17 19:25:05 2010 New Revision: 209265 URL: http://svn.freebsd.org/changeset/base/209265 Log: MFC r209260,r209261: r209260: Backout r207970 for now, it can lead to deadlocks. Reported by: kan r209261: Turn off UMA allocations on all archs by

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

2010-06-16 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jun 16 12:42:20 2010 New Revision: 209230 URL: http://svn.freebsd.org/changeset/base/209230 Log: Remove redundant assignment. MFC after:3 days Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Modified:

Re: svn commit: r209226 - head/sys/fs/tmpfs

2010-06-16 Thread Pawel Jakub Dawidek
://people.freebsd.org/~pjd/patches/zfs_vnops.c.4.patch Reviewing entire VM interaction there would be even better:) -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil

Re: svn commit: r209119 - head/sys/sys

2010-06-14 Thread Pawel Jakub Dawidek
) \ (sum) += (DPCPU_ID_PTR(_##n##_i, n))-var; \ } while (0) Looks ok to me. Thanks. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am

svn commit: r209175 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:01:13 2010 New Revision: 209175 URL: http://svn.freebsd.org/changeset/base/209175 Log: Eliminate dead code. Found by: Coverity Prevent CID: 5158 MFC after:3 days Modified: head/sbin/hastd/hast_proto.c Modified:

svn commit: r209177 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:18:58 2010 New Revision: 209177 URL: http://svn.freebsd.org/changeset/base/209177 Log: Remove macros that are not really needed. The idea was to have them in case we grow more descriptors, but I'll reconsider readding them once we get there. Passing (a =

svn commit: r209179 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:25:20 2010 New Revision: 209179 URL: http://svn.freebsd.org/changeset/base/209179 Log: Plug memory leaks. Found by: Coverity Prevent CID: 7052, 7053, 7054, 7055 MFC after:3 days Modified: head/sbin/hastd/metadata.c Modified:

svn commit: r209180 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:33:18 2010 New Revision: 209180 URL: http://svn.freebsd.org/changeset/base/209180 Log: Plug memory leak. Found by: Coverity Prevent CID: 7051 MFC after:3 days Modified: head/sbin/hastd/nv.c Modified: head/sbin/hastd/nv.c

svn commit: r209181 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:37:25 2010 New Revision: 209181 URL: http://svn.freebsd.org/changeset/base/209181 Log: Plug memory leak. Found by: Coverity Prevent CID: 7056 MFC after:3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c

svn commit: r209182 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:41:22 2010 New Revision: 209182 URL: http://svn.freebsd.org/changeset/base/209182 Log: Plug memory leak. Found by: Coverity Prevent CID: 7057 MFC after:3 days Modified: head/sbin/hastd/secondary.c Modified:

svn commit: r209183 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:44:20 2010 New Revision: 209183 URL: http://svn.freebsd.org/changeset/base/209183 Log: Initialize gctl_seq for synchronization requests. Reported by: hiro...@soupacific.com Analysed by: Mikolaj Golub to.my.troc...@gmail.com Tested by:

svn commit: r209184 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:44:58 2010 New Revision: 209184 URL: http://svn.freebsd.org/changeset/base/209184 Log: Fix typos. MFC after:3 days Modified: head/sbin/hastd/ebuf.c Modified: head/sbin/hastd/ebuf.c

svn commit: r209185 - head/sbin/hastd

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:46:48 2010 New Revision: 209185 URL: http://svn.freebsd.org/changeset/base/209185 Log: Correct various log messages. Submitted by: Mikolaj Golub to.my.troc...@gmail.com MFC after:3 days Modified: head/sbin/hastd/hastd.c head/sbin/hastd/secondary.c

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

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:56:24 2010 New Revision: 209186 URL: http://svn.freebsd.org/changeset/base/209186 Log: BIO_DELETE contains range we want to delete and doesn't provide any useful data, so there is no need to copy it to userland. MFC after:3 days Modified:

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

2010-06-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 14 21:58:55 2010 New Revision: 209187 URL: http://svn.freebsd.org/changeset/base/209187 Log: 'unit' can be negative, so use signed type for it. Found by: Coverity Prevent CID: 3731 MFC after:3 days Modified: head/sys/geom/gate/g_gate.c

Re: svn commit: r209119 - head/sys/sys

2010-06-13 Thread Pawel Jakub Dawidek
in macro can easly lead to name collision. If you need to do it, I'd suggest '_i' or something. Maybe it would be better to make it an inline function rather than macro? -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http

Re: svn commit: r208876 - head/sys/netinet

2010-06-07 Thread Pawel Jakub Dawidek
); mtx_assert(inp-inp_mtx, MA_NOTOWNED); But the kernel has to be compiled with INVARIANTS to make it work. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil

svn commit: r208770 - head/sys/modules/zfs

2010-06-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Jun 3 09:29:54 2010 New Revision: 208770 URL: http://svn.freebsd.org/changeset/base/208770 Log: opensolaris_kmem.c is already part of opensolaris.ko which zfs.ko depends on. Reported by: avg MFC after:3 days Modified: head/sys/modules/zfs/Makefile

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

2010-05-31 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon May 31 23:11:43 2010 New Revision: 208682 URL: http://svn.freebsd.org/changeset/base/208682 Log: Fix panic when reading label from provider with non power of 2 sector size. Reported by: James R. Van Artsdalen james-freebsd-...@jrv.org MFC after:3 days

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

2010-05-31 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon May 31 23:17:45 2010 New Revision: 208683 URL: http://svn.freebsd.org/changeset/base/208683 Log: Fix a bug where resilver is not started automatically on pool import or load. If disk was missing on pool load or import and on next pool load or import it was present,

<    8   9   10   11   12   13   14   15   16   >