svn commit: r222087 - head/sbin/hastd

2011-05-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed May 18 22:43:56 2011 New Revision: 222087 URL: http://svn.freebsd.org/changeset/base/222087 Log: - Add support for AF_INET6 sockets for %S format character. - Use inet_ntop(3) instead of reimplementing it. - Use %hhu for unsigned char instead of casting it to unsigned

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

2011-05-16 Thread Pawel Jakub Dawidek
)); + (wrote past end of sbuf (%jd = %jd), + (intmax_t)s-s_len, (intmax_t)s-s_size)); For ssize_t we have %zd. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am

svn commit: r221898 - head/sbin/hastd

2011-05-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat May 14 16:55:24 2011 New Revision: 221898 URL: http://svn.freebsd.org/changeset/base/221898 Log: When using capsicum to sanbox, still use other methods first, just in case one of them have some problems. Modified: head/sbin/hastd/subr.c Modified:

svn commit: r221899 - in head/sbin: hastctl hastd

2011-05-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat May 14 17:02:03 2011 New Revision: 221899 URL: http://svn.freebsd.org/changeset/base/221899 Log: Currently we are unable to use capsicum for the primary worker process, because we need to do ioctl(2)s, which are not permitted in the capability mode. What we do now is

Re: svn commit: r221816 - head/usr.bin/fstat

2011-05-12 Thread Pawel Jakub Dawidek
int mismatch on 32-bit architectures... Thanks a lot! Apparently I did `make universe` in the wrong tree... Sure... :) -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am

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

2011-05-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun May 8 09:08:50 2011 New Revision: 221624 URL: http://svn.freebsd.org/changeset/base/221624 Log: Add magic field to the g_eli_key structure to detect if we are really operating on proper structures. MFC after:1 week Modified:

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

2011-05-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun May 8 09:09:49 2011 New Revision: 221625 URL: http://svn.freebsd.org/changeset/base/221625 Log: Drop proper key. MFC after:1 week Modified: head/sys/geom/eli/g_eli_integrity.c Modified: head/sys/geom/eli/g_eli_integrity.c

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

2011-05-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun May 8 09:11:04 2011 New Revision: 221626 URL: http://svn.freebsd.org/changeset/base/221626 Log: Remove prototype for a function that no longer exist. MFC after:1 week Modified: head/sys/geom/eli/g_eli.h Modified: head/sys/geom/eli/g_eli.h

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

2011-05-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun May 8 09:17:56 2011 New Revision: 221628 URL: http://svn.freebsd.org/changeset/base/221628 Log: When support for multiple encryption keys was committed, GELI integrity mode was not updated to pass CRD_F_KEY_EXPLICIT flag to opencrypto. This resulted in always using

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

2011-05-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun May 8 09:25:16 2011 New Revision: 221629 URL: http://svn.freebsd.org/changeset/base/221629 Log: Detect and handle metadata of version 6. MFC after:1 week Modified: head/sys/geom/eli/g_eli.h Modified: head/sys/geom/eli/g_eli.h

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

2011-05-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun May 8 09:25:54 2011 New Revision: 221630 URL: http://svn.freebsd.org/changeset/base/221630 Log: Version 6 is compatible with version 5 when it comes to control commands. MFC after:1 week Modified: head/sys/geom/eli/g_eli_ctl.c Modified:

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

2011-05-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun May 8 09:29:21 2011 New Revision: 221631 URL: http://svn.freebsd.org/changeset/base/221631 Log: Export GELI class version via sysctl kern.geom.eli.version. MFC after:1 week Modified: head/sys/geom/eli/g_eli.c Modified: head/sys/geom/eli/g_eli.c

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

2011-05-08 Thread Pawel Jakub Dawidek
May 8 09:46:09 2011 (r221633) @@ -1,4 +1,4 @@ -.\ Copyright (c) 2005-2010 Pawel Jakub Dawidek p...@freebsd.org +.\ Copyright (c) 2005-2011 Pawel Jakub Dawidek pa...@dawidek.net .\ All rights reserved. .\ .\ Redistribution and use in source and binary forms, with or without @@ -627,9

svn commit: r221643 - head/sbin/hastd

2011-05-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun May 8 11:10:56 2011 New Revision: 221643 URL: http://svn.freebsd.org/changeset/base/221643 Log: Allow to specify remote as 'none' again which was broken by r219351, where 'none' was defined as a value for checksum. Reported by: trasz MFC after:1 week

Re: svn commit: r221124 - in head: . sbin/mount sbin/mount_nfs sys/amd64/conf sys/fs/nfsclient sys/i386/conf sys/ia64/conf sys/nfsclient sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-05-06 Thread Pawel Jakub Dawidek
such configuration is not worth the efforts and actually I'd prefer to use the same sysctl tree (vfs.nfs.*) and the same fstype (nfs) in both clients. User would decide which to use by loading one kernel module or the other. -- Pawel Jakub Dawidek http://www.wheelsystems.com

Re: svn commit: r221124 - in head: . sbin/mount sbin/mount_nfs sys/amd64/conf sys/fs/nfsclient sys/i386/conf sys/ia64/conf sys/nfsclient sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-05-06 Thread Pawel Jakub Dawidek
just 'nfs' everywhere (sysctls, fstype, etc.), so that we won't end up with 'newnfs' in random places in five years from now. What you do with old NFS is less important to me:) -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http

Re: svn commit: r221398 - head/share/man/man9

2011-05-05 Thread Pawel Jakub Dawidek
Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgpFgkEQ7CmhQ.pgp Description: PGP signature

Re: svn commit: r221449 - head/sys/geom/journal

2011-05-05 Thread Pawel Jakub Dawidek
when data provider and journal providers -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgp0VnxRUbAas.pgp Description: PGP signature

Re: svn commit: r221242 - stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2011-05-01 Thread Pawel Jakub Dawidek
); mutex_exit(tx-tx_sync_lock); -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgpVDcyxzBUcS.pgp Description: PGP signature

Re: svn commit: r220983 - head

2011-04-27 Thread Pawel Jakub Dawidek
to, eg. ad0p1, so there is no taste event which allows glabel to detect the change, so the label is not updated in /dev/gpt/. There is a patch on freebsd-geom@ to move GPT labels/IDs to GPART. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer

Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-04-26 Thread Pawel Jakub Dawidek
, and especially users, if I hack all mentioned above GEOM classes to ignore adX/adaY difference in provider names. And it should perfectly fit into remaining time window. Could you be more specific what the hack would do exactly? -- Pawel Jakub Dawidek http://www.wheelsystems.com

Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-04-26 Thread Pawel Jakub Dawidek
data and hardcoding provider name allows to choose the proper one. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgpYmjKQaLxPU.pgp Description

Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-04-26 Thread Pawel Jakub Dawidek
On Tue, Apr 26, 2011 at 10:19:55AM +0300, Alexander Motin wrote: On 26.04.2011 10:00, Pawel Jakub Dawidek wrote: On Mon, Apr 25, 2011 at 08:34:33PM +0300, Alexander Motin wrote: I've thought about the process of fixing hardcoded provider names there, and it is absolutely not trivial. If we

Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-04-26 Thread Pawel Jakub Dawidek
On Tue, Apr 26, 2011 at 10:50:17AM +0300, Alexander Motin wrote: On 26.04.2011 10:35, Pawel Jakub Dawidek wrote: On Tue, Apr 26, 2011 at 10:19:55AM +0300, Alexander Motin wrote: On 26.04.2011 10:00, Pawel Jakub Dawidek wrote: On Mon, Apr 25, 2011 at 08:34:33PM +0300, Alexander Motin wrote

Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-04-26 Thread Pawel Jakub Dawidek
. It does look good, indeed. What's the problem with zpool? It should operate on GEOM providers only. Also, ZFS should not be affected by providers name changes. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org

Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-04-26 Thread Pawel Jakub Dawidek
On Tue, Apr 26, 2011 at 11:45:37AM +0300, Alexander Motin wrote: On 26.04.2011 11:34, Pawel Jakub Dawidek wrote: On Tue, Apr 26, 2011 at 11:18:06AM +0300, Alexander Motin wrote: What do you think about this: http://docs.freebsd.org/cgi/mid.cgi?4DB54BA9.5050901 ? I've found that zpool utility

Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf

2011-04-25 Thread Pawel Jakub Dawidek
metadata, so symlink won't help. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgphYasTLOfQ1.pgp Description: PGP signature

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

2011-04-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Apr 24 10:41:13 2011 New Revision: 220984 URL: http://svn.freebsd.org/changeset/base/220984 Log: One key is expected from providers smaller than or equal to (2^20)*sectorsize bytes. Remove bogus assertion and while here remove another too obvious assertion.

Re: svn commit: r220983 - head

2011-04-24 Thread Pawel Jakub Dawidek
and no manual intervention should be needed. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgpjNffXu8RSN.pgp Description: PGP signature

svn commit: r220922 - in head/sys: geom/eli modules/geom/geom_eli

2011-04-21 Thread Pawel Jakub Dawidek
(c) 2005-2010 Pawel Jakub Dawidek p...@freebsd.org + * Copyright (c) 2005-2011 Pawel Jakub Dawidek pa...@dawidek.net * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -329,7 +329,7 @@ g_eli_newsession(struct g_eli_worker *wr crie.cri_klen

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

2011-04-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Apr 21 13:35:20 2011 New Revision: 220923 URL: http://svn.freebsd.org/changeset/base/220923 Log: If number of keys for the given provider doesn't exceed the limit, allocate all of them at attach time. This allows to avoid moving keys around in the most-recently-used

svn commit: r220930 - head/sys/conf

2011-04-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Apr 21 21:15:11 2011 New Revision: 220930 URL: http://svn.freebsd.org/changeset/base/220930 Log: Add g_eli_key_cache.c to GELI. MFC after:2 weeks Modified: head/sys/conf/files Modified: head/sys/conf/files

Re: svn commit: r220877 - head/sys/fs/nfsclient

2011-04-20 Thread Pawel Jakub Dawidek
Now, if tmp_off is 4096 what will happen if you have a race like the above? Is it critical? Then you need to protect some other code with this mutex as well. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org

svn commit: r220889 - head/sbin/hastd

2011-04-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 20 16:36:59 2011 New Revision: 220889 URL: http://svn.freebsd.org/changeset/base/220889 Log: Timeout must be positive. MFC after:1 week Modified: head/sbin/hastd/parse.y Modified: head/sbin/hastd/parse.y

svn commit: r220890 - head/sbin/hastd

2011-04-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 20 16:38:05 2011 New Revision: 220890 URL: http://svn.freebsd.org/changeset/base/220890 Log: If we act in different role than requested by the remote node, log it as a warning and not an error. MFC after:1 week Modified: head/sbin/hastd/hastd.c Modified:

svn commit: r220898 - head/sbin/hastd

2011-04-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 20 18:43:28 2011 New Revision: 220898 URL: http://svn.freebsd.org/changeset/base/220898 Log: When we become primary, we connect to the remote and expect it to be in secondary role. It is possible that the remote node is primary, but only because there was a role

svn commit: r220899 - head/sbin/hastd

2011-04-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 20 18:49:12 2011 New Revision: 220899 URL: http://svn.freebsd.org/changeset/base/220899 Log: Correct comment. MFC after:1 week Modified: head/sbin/hastd/hastd.c Modified: head/sbin/hastd/hastd.c

svn commit: r220865 - head/sbin/hastd

2011-04-19 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Apr 19 19:26:27 2011 New Revision: 220865 URL: http://svn.freebsd.org/changeset/base/220865 Log: Scenario: - We have two nodes connected and synchronized (local counters on both sides are 0). - We take secondary down and recreate it. - Primary connects to it and

Re: svn commit: r220877 - head/sys/fs/nfsclient

2011-04-19 Thread Pawel Jakub Dawidek
afterwards. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgppFrhLwoiAo.pgp Description: PGP signature

Re: svn commit: r220755 - in head: . contrib/gcc/doc contrib/gcc/objc contrib/libobjc etc/mtree gnu/lib gnu/lib/libobjc gnu/usr.bin/cc gnu/usr.bin/cc/cc1obj gnu/usr.bin/cc/cc_tools gnu/usr.bin/cc/doc

2011-04-18 Thread Pawel Jakub Dawidek
, if there are any. Every freebsd_version bump forces rebuilding all modules and such and is a pita. I agree that this is a PITA, but there also should be a way to force module load even on version bump. This is PITA especially for developers. -- Pawel Jakub Dawidek http

Re: svn commit: r220791 - in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys

2011-04-18 Thread Pawel Jakub Dawidek
for other purposes too. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgp1qSb3OEnrS.pgp Description: PGP signature

Re: svn commit: r220791 - in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys

2011-04-18 Thread Pawel Jakub Dawidek
reasons (we can't put holes back and we can crash in the middle). -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgpaERe1jUaAu.pgp Description: PGP

Re: svn commit: r220559 - in head/sys: conf geom

2011-04-13 Thread Pawel Jakub Dawidek
); + if (gp == NULL) + return; + gctl_error(req, Unknown verb); +} Seems to be a no-op. GEOM can cope if this method is not specified. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org

svn commit: r220573 - head/sbin/hastd

2011-04-12 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Apr 12 19:13:10 2011 New Revision: 220573 URL: http://svn.freebsd.org/changeset/base/220573 Log: The replication mode that is currently support is fullsync, not memsync. Correct this and print a warning if different replication mode is configured. MFC after:1

svn commit: r220575 - head/cddl/contrib/opensolaris/lib/libzfs/common

2011-04-12 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Apr 12 20:31:33 2011 New Revision: 220575 URL: http://svn.freebsd.org/changeset/base/220575 Log: Fix 'zfs list path' handling. If the path was found, the 'ret' variable was uninitialized. PR: kern/155940 Submitted by: KOIE Hidetaka k...@suri.co.jp MFC

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

2011-04-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 2 06:56:06 2011 New Revision: 220264 URL: http://svn.freebsd.org/changeset/base/220264 Log: GEOM has an internal mechanism to deal with ENOMEM errors returned via g_io_deliver(). In such case it increases 'pace' counter on each ENOMEM and reschedules the request.

svn commit: r220265 - head/sbin/ggate/ggatel

2011-04-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 2 06:59:05 2011 New Revision: 220265 URL: http://svn.freebsd.org/changeset/base/220265 Log: Because ggatel(8) operates on local GEOM providers, use unlimited queue size in GEOM GATE to fix the issue described in r220264. This also means that we no longer need -q

svn commit: r220266 - head/sbin/hastd

2011-04-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 2 07:01:09 2011 New Revision: 220266 URL: http://svn.freebsd.org/changeset/base/220266 Log: Handle the problem described in r220264 by using GEOM GATE queue of unlimited length. This should fix deadlocks reported by HAST users. MFC after:1 week Modified:

svn commit: r220270 - head/sbin/hastd

2011-04-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 2 09:22:06 2011 New Revision: 220270 URL: http://svn.freebsd.org/changeset/base/220270 Log: Allow to disable sends or receives on a socket using shutdown(2) by interpreting NULL 'data' argument passed to proto_common_send() or proto_common_recv() as a will to do

svn commit: r220271 - head/sbin/hastd

2011-04-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 2 09:25:13 2011 New Revision: 220271 URL: http://svn.freebsd.org/changeset/base/220271 Log: Declare directions for sockets between primary and secondary. In HAST we use two sockets - one for only sending the data and one for only receiving the data. MFC

svn commit: r220272 - head/sbin/hastd

2011-04-02 Thread Pawel Jakub Dawidek
/proto_common.c Sat Apr 2 09:25:13 2011 (r220271) +++ head/sbin/hastd/proto_common.c Sat Apr 2 09:29:53 2011 (r220272) @@ -1,5 +1,6 @@ /*- * Copyright (c) 2009-2010 The FreeBSD Foundation + * Copyright (c) 2011 Pawel Jakub Dawidek pa...@dawidek.net * All rights reserved

svn commit: r220273 - head/sbin/hastd

2011-04-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 2 09:31:02 2011 New Revision: 220273 URL: http://svn.freebsd.org/changeset/base/220273 Log: Handle ENOBUFS on send(2) by retrying for a while and logging the problem. MFC after:1 week Modified: head/sbin/hastd/proto_common.c Modified:

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

2011-04-02 Thread Pawel Jakub Dawidek
On Sat, Apr 02, 2011 at 09:22:06AM +, Pawel Jakub Dawidek wrote: Author: pjd Date: Sat Apr 2 09:22:06 2011 New Revision: 220270 URL: http://svn.freebsd.org/changeset/base/220270 Log: Allow to disable sends or receives on a socket using shutdown(2) by interpreting NULL 'data

svn commit: r220274 - head/sbin/hastd

2011-04-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 2 09:34:33 2011 New Revision: 220274 URL: http://svn.freebsd.org/changeset/base/220274 Log: Increase default timeout from 5 seconds to 20 seconds. 5 seconds is definitely to short under heavy load and I was experiencing those timeouts in my recent tests. MFC

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

2011-03-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Mar 26 07:15:57 2011 New Revision: 220023 URL: http://svn.freebsd.org/changeset/base/220023 Log: Follow style(9) in example code and handle opendir(3) error. Modified: head/lib/libc/gen/directory.3 Modified: head/lib/libc/gen/directory.3

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

2011-03-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Mar 26 07:17:24 2011 New Revision: 220024 URL: http://svn.freebsd.org/changeset/base/220024 Log: Don't calculate len too early. Modified: head/lib/libc/gen/directory.3 Modified: head/lib/libc/gen/directory.3

svn commit: r220007 - head/sbin/hastd

2011-03-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Mar 25 20:19:15 2011 New Revision: 220007 URL: http://svn.freebsd.org/changeset/base/220007 Log: Add mapsize to the header just before sending the packet. Before it could change later and we were sending invalid mapsize. Some time ago I added optimization where when

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

2011-03-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Mar 24 20:28:09 2011 New Revision: 219973 URL: http://svn.freebsd.org/changeset/base/219973 Log: Checking file access on size change is bogus. The checks are done earlier by VFS where we know if this is truncate(2) or ftruncate(2). If this is the latter we should

svn commit: r219900 - head/sbin/hastd

2011-03-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Mar 23 11:09:04 2011 New Revision: 219900 URL: http://svn.freebsd.org/changeset/base/219900 Log: Don't create socketpair for connection forwarding between parent and secondary. Secondary doesn't need to connect anywhere. MFC after:1 week Modified:

svn commit: r219864 - head/sbin/hastd

2011-03-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Mar 22 10:39:34 2011 New Revision: 219864 URL: http://svn.freebsd.org/changeset/base/219864 Log: White space cleanups. MFC after:1 week Modified: head/sbin/hastd/activemap.c head/sbin/hastd/hastd.8 head/sbin/hastd/hastd.c head/sbin/hastd/primary.c

svn commit: r219873 - head/sbin/hastd

2011-03-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Mar 22 16:21:11 2011 New Revision: 219873 URL: http://svn.freebsd.org/changeset/base/219873 Log: The proto API is a general purpose API, so don't use 'hast' in structures or function names. It can now be used outside of HAST. MFC after:1 week Modified:

svn commit: r219884 - head/sbin/hastctl

2011-03-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Mar 22 21:11:36 2011 New Revision: 219884 URL: http://svn.freebsd.org/changeset/base/219884 Log: Forgot to commit this as part of r219873. MFC after:1 week Modified: head/sbin/hastctl/Makefile Modified: head/sbin/hastctl/Makefile

svn commit: r219887 - head/sbin/hastd

2011-03-22 Thread Pawel Jakub Dawidek
== --- head/sbin/hastd/subr.c Tue Mar 22 21:16:14 2011(r219886) +++ head/sbin/hastd/subr.c Tue Mar 22 21:19:51 2011(r219887) @@ -1,5 +1,6 @@ /*- * Copyright (c) 2010 The FreeBSD Foundation + * Copyright (c) 2011 Pawel Jakub Dawidek

svn commit: r219813 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:31:35 2011 New Revision: 219813 URL: http://svn.freebsd.org/changeset/base/219813 Log: If there is any traffic on one of out descriptors, we were not checking for long running hooks. Fix it by not using select(2) timeout to decide if we want to check hooks or

svn commit: r219814 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:33:58 2011 New Revision: 219814 URL: http://svn.freebsd.org/changeset/base/219814 Log: When creating connection on behalf of primary worker, set pjdlog prefix to resource name and role, so that any logs related to that can be identified properly. MFC

svn commit: r219815 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:36:50 2011 New Revision: 219815 URL: http://svn.freebsd.org/changeset/base/219815 Log: Add snprlcat() and vsnprlcat() - the functions I'm always missing. They work as a combination of snprintf(3) and strlcat(3) - the caller can append a string build based on

svn commit: r219816 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:37:50 2011 New Revision: 219816 URL: http://svn.freebsd.org/changeset/base/219816 Log: Use snprlcat() instead of two strlcat(3)s. MFC after:1 week Modified: head/sbin/hastd/hooks.c Modified: head/sbin/hastd/hooks.c

svn commit: r219817 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:38:24 2011 New Revision: 219817 URL: http://svn.freebsd.org/changeset/base/219817 Log: Log when we start hooks checking and when we execute a hook. MFC after:1 week Modified: head/sbin/hastd/hooks.c Modified: head/sbin/hastd/hooks.c

svn commit: r219818 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:54:59 2011 New Revision: 219818 URL: http://svn.freebsd.org/changeset/base/219818 Log: In hast.conf we define the other node's address in 'remote' variable. This way we know how to connect to secondary node when we are primary. The same variable is used by

svn commit: r219821 - head/sbin/hastctl

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 11:52:00 2011 New Revision: 219821 URL: http://svn.freebsd.org/changeset/base/219821 Log: Forgot to commit this as a part of r219818. MFC after:1 week Modified: head/sbin/hastctl/hastctl.c Modified: head/sbin/hastctl/hastctl.c

svn commit: r219830 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 14:50:12 2011 New Revision: 219830 URL: http://svn.freebsd.org/changeset/base/219830 Log: Detect situation where resource internal identifier differs. This means that both nodes have separately managed resources that don't have the same data. MFC after:

svn commit: r219831 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 14:51:16 2011 New Revision: 219831 URL: http://svn.freebsd.org/changeset/base/219831 Log: Be pedantic and free nvout before exiting. MFC after:1 week Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

svn commit: r219832 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 14:53:27 2011 New Revision: 219832 URL: http://svn.freebsd.org/changeset/base/219832 Log: Increase debug level of Checking hooks. message. MFC after:1 week Modified: head/sbin/hastd/hooks.c Modified: head/sbin/hastd/hooks.c

svn commit: r219833 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 15:08:10 2011 New Revision: 219833 URL: http://svn.freebsd.org/changeset/base/219833 Log: Remove stale comment. Yes, it is valid to set role back to init. MFC after:1 week Modified: head/sbin/hastd/control.c Modified: head/sbin/hastd/control.c

svn commit: r219837 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 15:29:20 2011 New Revision: 219837 URL: http://svn.freebsd.org/changeset/base/219837 Log: Before handling any events on descriptors check signals so we can update our info about worker processes if any of them was terminated in the meantime. This fixes the

svn commit: r219843 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 21:14:07 2011 New Revision: 219843 URL: http://svn.freebsd.org/changeset/base/219843 Log: Fix typo. MFC after:1 week Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

svn commit: r219844 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 21:16:12 2011 New Revision: 219844 URL: http://svn.freebsd.org/changeset/base/219844 Log: Initialize localcnt on first write. This fixes assertion when we create resource, set role to primary, do no writes, then sent it to secondary and accept connection from

svn commit: r219847 - in head/sbin: hastctl hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 21:31:50 2011 New Revision: 219847 URL: http://svn.freebsd.org/changeset/base/219847 Log: When dropping privileges prefer capsicum over chroot+setgid+setuid. We can use capsicum for secondary worker processes and hastctl. When working as primary we drop

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

2011-03-16 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Mar 16 08:58:09 2011 New Revision: 219696 URL: http://svn.freebsd.org/changeset/base/219696 Log: From fts.c comment: The FTS_NOSTAT option can avoid a lot of calls to stat(2) if it knows that a directory could not possibly have subdirectories. This is decided by

svn commit: r219669 - head/sbin/hastd

2011-03-15 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Mar 15 13:53:39 2011 New Revision: 219669 URL: http://svn.freebsd.org/changeset/base/219669 Log: Remove #include needed for debugging. MFC after:1 week Modified: head/sbin/hastd/proto_common.c Modified: head/sbin/hastd/proto_common.c

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

2011-03-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 14 11:07:12 2011 New Revision: 219636 URL: http://svn.freebsd.org/changeset/base/219636 Log: Fix potential panic in dbuf_sync_list() relate to spill blocks handling. Obtained from:IllumOS MFC after:1 month Modified:

Re: svn commit: r219641 - in head: etc release

2011-03-14 Thread Pawel Jakub Dawidek
... And yes, I just heard, it is snowing in hell. This is for you, Nathan: http://www.youtube.com/watch?v=4m8ltkjO7Pg -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am

svn commit: r219621 - head/tools/regression/pjdfstest/tests/open

2011-03-13 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Mar 13 19:35:13 2011 New Revision: 219621 URL: http://svn.freebsd.org/changeset/base/219621 Log: POSIX accepts only ELOOP if O_NOFOLLOW is specified and target is a symlink. Modified: head/tools/regression/pjdfstest/tests/open/16.t Modified:

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

2011-03-12 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Mar 12 14:09:43 2011 New Revision: 219566 URL: http://svn.freebsd.org/changeset/base/219566 Log: Add some missing consts. Modified: head/tools/regression/pjdfstest/pjdfstest.c Modified: head/tools/regression/pjdfstest/pjdfstest.c

Re: svn commit: r219483 - head/sys/boot/i386/gptboot

2011-03-11 Thread Pawel Jakub Dawidek
On Fri, Mar 11, 2011 at 01:11:15PM +, John Baldwin wrote: Author: jhb Date: Fri Mar 11 13:11:15 2011 New Revision: 219483 URL: http://svn.freebsd.org/changeset/base/219483 Log: Remove all object files during 'make clean'. Oops, I think that was me. Thank you, John. -- Pawel Jakub

svn commit: r219462 - svnadmin/conf

2011-03-10 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Mar 10 20:37:54 2011 New Revision: 219462 URL: http://svn.freebsd.org/changeset/base/219462 Log: Please welcome Mikolaj Golub as a new src committer. Mikolaj will be working on HAST and I'm sure lots of other stuff. I'll be his mentor and kib@ will help me.

svn commit: r219463 - head/tools/regression/pjdfstest/tests/chmod

2011-03-10 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Mar 10 20:59:02 2011 New Revision: 219463 URL: http://svn.freebsd.org/changeset/base/219463 Log: Improve test a bit, now that we have fstat(2) support. The test was support to check if SUID/SGID bits are removed on first write, but actually we were checking if they

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

2011-03-10 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Mar 10 21:00:30 2011 New Revision: 219464 URL: http://svn.freebsd.org/changeset/base/219464 Log: Add support for *at syscalls: - openat(2) - unlinkat(2) - mkdirat(2) - linkat(2) - symlinkat(2) - renameat(2) - mkfifoat(2) - mknodat(2) - fchmodat(2) -

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

2011-03-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Mar 9 22:39:10 2011 New Revision: 219437 URL: http://svn.freebsd.org/changeset/base/219437 Log: Add support for the following syscalls: - fchmod(2), - fchown(2), - fchflags(2), - fstat(2), - ftruncate(2), - fpathconf(2), - lpathconf(2). Make write(2)

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

2011-03-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Mar 9 22:50:15 2011 New Revision: 219438 URL: http://svn.freebsd.org/changeset/base/219438 Log: Pass descriptor number to write(2), now that it is possible. Modified: head/tools/regression/pjdfstest/pjdfstest.c head/tools/regression/pjdfstest/tests/chmod/12.t

svn commit: r219439 - head/tools/regression/pjdfstest/tests/ftruncate

2011-03-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Mar 9 23:11:30 2011 New Revision: 219439 URL: http://svn.freebsd.org/changeset/base/219439 Log: Few initial ftruncate(2) tests. One of them covers stand/154873. PR: stand/154873 Added: head/tools/regression/pjdfstest/tests/ftruncate/

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

2011-03-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Mar 8 18:39:41 2011 New Revision: 219404 URL: http://svn.freebsd.org/changeset/base/219404 Log: Correct readdir over ZFS handling. Reported by: Pierre Beyssac p...@fasterix.frmug.org MFC after:1 month Modified:

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

2011-03-08 Thread Pawel Jakub Dawidek
On Tue, Mar 08, 2011 at 06:39:41PM +, Pawel Jakub Dawidek wrote: Author: pjd Date: Tue Mar 8 18:39:41 2011 New Revision: 219404 URL: http://svn.freebsd.org/changeset/base/219404 Log: Correct readdir over ZFS handling. s/ZFS/NFS/ -- Pawel Jakub Dawidek http

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

2011-03-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Mar 9 07:43:51 2011 New Revision: 219424 URL: http://svn.freebsd.org/changeset/base/219424 Log: Change example to not be controversial. I'm sorry to anyone who felt offended by this. PR: docs/155385 Reported by: maga_lena mi...@riseup.net MFC after:

svn commit: r219368 - head/share/mk

2011-03-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 7 09:28:21 2011 New Revision: 219368 URL: http://svn.freebsd.org/changeset/base/219368 Log: To be able to use printf extensions we need to turn off gcc format checking. Following the convention of NO_WERROR and NO_WCAST_ALIGN add NO_WFORMAT, which, when defined in

svn commit: r219369 - head/sbin/hastd

2011-03-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 7 10:33:52 2011 New Revision: 219369 URL: http://svn.freebsd.org/changeset/base/219369 Log: Provides three states for pjdlog_initialized, so we can also tell that this is fist initialization ever. MFC after:2 weeks Modified: head/sbin/hastd/pjdlog.c

svn commit: r219370 - in head/sbin: hastctl hastd

2011-03-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 7 10:38:18 2011 New Revision: 219370 URL: http://svn.freebsd.org/changeset/base/219370 Log: - Turn on printf extentions. - Load support for %T for pritning time. - Add support for %N for printing number in human readable form. - Add support for %S for printing

svn commit: r219371 - head/sbin/hastd

2011-03-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 7 10:39:26 2011 New Revision: 219371 URL: http://svn.freebsd.org/changeset/base/219371 Log: Use %S to print IP address and port number. MFC after:2 weeks Modified: head/sbin/hastd/proto_tcp4.c Modified: head/sbin/hastd/proto_tcp4.c

svn commit: r219372 - head/sbin/hastd

2011-03-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 7 10:41:12 2011 New Revision: 219372 URL: http://svn.freebsd.org/changeset/base/219372 Log: - Log size of data to synchronize in human readable form (using %N). - Log synchronization time (using %T). - Log synchronization speed in human readable form (using %N).

svn commit: r219373 - head/sbin/hastctl

2011-03-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 7 10:42:28 2011 New Revision: 219373 URL: http://svn.freebsd.org/changeset/base/219373 Log: Print some of the numbers in human readable form (using %N). MFC after:2 weeks Modified: head/sbin/hastctl/hastctl.c Modified: head/sbin/hastctl/hastctl.c

<    4   5   6   7   8   9   10   11   12   13   >