svn commit: r345727 - in head: sbin/devd sys/geom

2019-09-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Mar 30 07:24:34 2019 New Revision: 345727 URL: https://svnweb.freebsd.org/changeset/base/345727 Log: Introduce new event SIZECHANGE within GEOM system to inform about GEOM providers mediasize changes. While here, use GEOM nomenclature to describe providers instead of

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

2019-09-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Mar 30 07:29:20 2019 New Revision: 345728 URL: https://svnweb.freebsd.org/changeset/base/345728 Log: If the autoexpand pool property is turned on and vdev is healthy try to expand the pool automatically when we detect underlying GEOM provider size change. Obtained

svn commit: r345726 - head/sys/dev/xen/blkfront

2019-09-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Mar 30 07:20:28 2019 New Revision: 345726 URL: https://svnweb.freebsd.org/changeset/base/345726 Log: Implement support for online disk capacity changes. Obtained from:Fudo Security Tested in:AWS Modified: head/sys/dev/xen/blkfront/blkfront.c Modified:

svn commit: r345862 - in head: lib/geom/eli sys/geom/eli

2019-09-03 Thread Pawel Jakub Dawidek
pr 3 23:50:52 2019(r345861) +++ head/lib/geom/eli/geli.8Wed Apr 3 23:57:37 2019(r345862) @@ -1,4 +1,4 @@ -.\" Copyright (c) 2005-2011 Pawel Jakub Dawidek +.\" Copyright (c) 2005-2019 Pawel Jakub Dawidek .\" All rights reserved. .\" .\" Redistributio

svn commit: r345861 - head/lib/geom/eli

2019-09-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 3 23:50:52 2019 New Revision: 345861 URL: https://svnweb.freebsd.org/changeset/base/345861 Log: - Add missing -T (notrim) option to the label subcommand. - Add missing -T option in the onetime subcommand comment. Obtained from:Fudo Security Modified:

svn commit: r345863 - head/tests/sys/geom/class/eli

2019-09-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 3 23:58:58 2019 New Revision: 345863 URL: https://svnweb.freebsd.org/changeset/base/345863 Log: Update configure tests after addition of the online expansion. Obtained from:Fudo Security Modified: head/tests/sys/geom/class/eli/configure_test.sh Modifie

svn commit: r345864 - head/tests/sys/geom/class/eli

2019-09-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Apr 4 00:05:36 2019 New Revision: 345864 URL: https://svnweb.freebsd.org/changeset/base/345864 Log: Implement tests for online expansion: - init, init -R - onetime, onetime -R - 512 and 4k sectors - encryption only - encryption and authentication - configure -r

svn commit: r357138 - head/bin/pwait

2020-01-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Jan 26 10:49:24 2020 New Revision: 357138 URL: https://svnweb.freebsd.org/changeset/base/357138 Log: - Be consistent with using sysexits(3) codes. - Turn fprintf()+exit() into errx(). Sponsored by: Fudo Security Modified: head/bin/pwait/pwait.c Modified: head/bin

svn commit: r357139 - head/bin/pwait

2020-01-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Jan 26 10:51:57 2020 New Revision: 357139 URL: https://svnweb.freebsd.org/changeset/base/357139 Log: Check for duplicated PID without using additional variable. Sponsored by: Fudo Security Modified: head/bin/pwait/pwait.c Modified: head/bin/pwait/pwait.c ==

svn commit: r357140 - head/bin/pwait

2020-01-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Jan 26 10:54:16 2020 New Revision: 357140 URL: https://svnweb.freebsd.org/changeset/base/357140 Log: Don't setup a timeout if we are exiting. Sponsored by: Fudo Security Modified: head/bin/pwait/pwait.c Modified: head/bin/pwait/pwait.c =

svn commit: r357141 - head/bin/pwait

2020-01-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Jan 26 11:02:51 2020 New Revision: 357141 URL: https://svnweb.freebsd.org/changeset/base/357141 Log: Implement -o flag which tells pwait(1) to exit if any of the given processes has terminated. Sponsored by: Fudo Security Modified: head/bin/pwait/pwait.1 head/bi

svn commit: r357142 - head/bin/pwait/tests

2020-01-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Jan 26 11:03:45 2020 New Revision: 357142 URL: https://svnweb.freebsd.org/changeset/base/357142 Log: Implement tests for the newly added -o flag. Sponsored by: Fudo Security Modified: head/bin/pwait/tests/pwait_test.sh Modified: head/bin/pwait/tests/pwait_test.sh =

svn commit: r357143 - head/bin/pwait

2020-01-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Jan 26 11:13:34 2020 New Revision: 357143 URL: https://svnweb.freebsd.org/changeset/base/357143 Log: Style changes, mostly usage of braces around single line statements - it is safer and allowed for some time now by style(9). Sponsored by: Fudo Security Modified:

svn commit: r357362 - head/bin/pwait

2020-02-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Feb 1 09:13:11 2020 New Revision: 357362 URL: https://svnweb.freebsd.org/changeset/base/357362 Log: Restore previous usage presentation (without "pwait: " prefix). Pointed out by: jilles Modified: head/bin/pwait/pwait.c Modified: head/bin/pwait/pwait.c =

Re: svn commit: r357138 - head/bin/pwait

2020-02-01 Thread Pawel Jakub Dawidek
On 1/30/20 14:47, Jilles Tjoelker wrote: > On 26-01-2020 11:49, Pawel Jakub Dawidek wrote: >> Author: pjd >> Date: Sun Jan 26 10:49:24 2020 >> New Revision: 357138 >> URL: https://svnweb.freebsd.org/changeset/base/357138 >> >> Log: >>    - Be consiste

svn commit: r357363 - head/sys/geom

2020-02-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Feb 1 10:15:23 2020 New Revision: 357363 URL: https://svnweb.freebsd.org/changeset/base/357363 Log: The error variable is not really needed. Remove it. Modified: head/sys/geom/geom_disk.c Modified: head/sys/geom/geom_disk.c =

svn commit: r360323 - head/sys/geom

2020-04-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 25 21:41:09 2020 New Revision: 360323 URL: https://svnweb.freebsd.org/changeset/base/360323 Log: Add g_topology_locked() macro that returns true if we already hold the GEOM topology lock. Modified: head/sys/geom/geom.h Modified: head/sys/geom/geom.h ==

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

2020-04-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Apr 25 21:45:31 2020 New Revision: 360325 URL: https://svnweb.freebsd.org/changeset/base/360325 Log: Avoid the GEOM topology lock recursion when we automatically expand a pool. The steps to reproduce the problem: mdconfig -a -t swap -s 3g -u 0 gpart

svn commit: r219082 - head/etc/rc.d

2011-02-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Feb 27 11:40:20 2011 New Revision: 219082 URL: http://svn.freebsd.org/changeset/base/219082 Log: Recognize 'reload' command, as hastd can be reloaded with the SIGHUP signal. MFC after:1 week Modified: head/etc/rc.d/hastd Modified: head/etc/rc.d/hastd ==

svn commit: r219083 - head/sys/boot/common

2011-02-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Feb 27 12:25:47 2011 New Revision: 219083 URL: http://svn.freebsd.org/changeset/base/219083 Log: Rename bcpy() macro to bcopy(). Modified: head/sys/boot/common/gpt.c head/sys/boot/common/util.h Modified: head/sys/boot/common/gpt.c =

svn commit: r219085 - head/sys/dev/sdhci

2011-02-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Feb 27 13:58:20 2011 New Revision: 219085 URL: http://svn.freebsd.org/changeset/base/219085 Log: Force DMA for controller found in Lenovo T510 (probably in others too). This makes reads 10 times faster. Discussed with: mav Modified: head/sys/dev/sdhci/sdhci.

svn commit: r219089 - in head: cddl/compat/opensolaris/include cddl/compat/opensolaris/misc cddl/contrib/opensolaris/cmd/stat cddl/contrib/opensolaris/cmd/stat/common cddl/contrib/opensolaris/cmd/z...

2011-02-27 Thread Pawel Jakub Dawidek
:41:40 2011 (r219089) @@ -0,0 +1,38 @@ +/*- + * Copyright (c) 2010 Pawel Jakub Dawidek + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1

svn commit: r219090 - in head: . etc/rc.d

2011-02-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Feb 27 19:44:10 2011 New Revision: 219090 URL: http://svn.freebsd.org/changeset/base/219090 Log: Commit two more files missed in r219089. MFC after:1 month Modified: head/Makefile.inc1 head/etc/rc.d/zvol Modified: head/Makefile.inc1 ==

svn commit: r219092 - head/sys/cddl/compat/opensolaris/kern

2011-02-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Feb 28 05:45:31 2011 New Revision: 219092 URL: http://svn.freebsd.org/changeset/base/219092 Log: Use proper lock in assertion. MFC after:1 month Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c Modified: head/sys/cddl/compat/opensolaris/kern

Re: svn commit: r219089 - in head: cddl/compat/opensolaris/include cddl/compat/opensolaris/misc cddl/contrib/opensolaris/cmd/stat cddl/contrib/opensolaris/cmd/stat/common cddl/contrib/opensolaris/cmd/

2011-02-27 Thread Pawel Jakub Dawidek
On Sun, Feb 27, 2011 at 02:52:42PM -0800, Doug Barton wrote: > On 02/27/2011 11:41, Pawel Jakub Dawidek wrote: > >Author: pjd > >Date: Sun Feb 27 19:41:40 2011 > >New Revision: 219089 > >URL: http://svn.freebsd.org/changeset/base/219089 > > > >Log: > &g

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

2011-03-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Mar 5 22:24:31 2011 New Revision: 219316 URL: http://svn.freebsd.org/changeset/base/219316 Log: Simplify zvol_remove_minors() a bit. MFC after:1 month Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Modified: head/sys/cddl/contrib/opensola

svn commit: r219317 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2011-03-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Mar 5 22:31:03 2011 New Revision: 219317 URL: http://svn.freebsd.org/changeset/base/219317 Log: Make renaming of a ZVOL, ZVOL's parent directory and ZVOL snapshot work. Reported by: avg MFC after:1 month Modified: head/sys/cddl/contrib/opensolaris/uts/common

svn commit: r219320 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2011-03-05 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Mar 6 01:22:14 2011 New Revision: 219320 URL: http://svn.freebsd.org/changeset/base/219320 Log: Fix libzpool build. MFC after:1 month Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c head/sys/cddl/contrib/opensolaris/uts/common/fs/z

svn commit: r219342 - head/lib/libc/stdio

2011-03-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Mar 6 17:43:32 2011 New Revision: 219342 URL: http://svn.freebsd.org/changeset/base/219342 Log: Fix various issues in how %#T is handled: - If precision is 0, don't print period followed by no digits. - If precision is 0 stop printing units as soon as possible (eg.

svn commit: r219343 - head/include

2011-03-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Mar 6 17:45:37 2011 New Revision: 219343 URL: http://svn.freebsd.org/changeset/base/219343 Log: Include stdio.h, so we can include printf.h in any order, as it needs FILE. MFC after:2 weeks Modified: head/include/printf.h Modified: head/include/printf.h ==

svn commit: r219344 - head/lib/libutil

2011-03-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Mar 6 17:46:06 2011 New Revision: 219344 URL: http://svn.freebsd.org/changeset/base/219344 Log: expand_number() needs uint64_t, declare it here if not already declared. MFC after:3 days Modified: head/lib/libutil/libutil.h Modified: head/lib/libutil/libutil.h

svn commit: r219346 - head/lib/libc/stdio

2011-03-06 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Mar 6 19:47:46 2011 New Revision: 219346 URL: http://svn.freebsd.org/changeset/base/219346 Log: Because we call __printf_out() with a on-stack buffer, also call __printf_flush() so we are sure it won't be referenced after we return. MFC after:2 weeks Modified:

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

2011-03-06 Thread Pawel Jakub Dawidek
0:53 2011(r219350) +++ head/sbin/hastd/hast.conf.5 Sun Mar 6 22:56:14 2011(r219351) @@ -1,5 +1,5 @@ .\" Copyright (c) 2010 The FreeBSD Foundation -.\" Copyright (c) 2010 Pawel Jakub Dawidek +.\" Copyright (c) 2010-2011 Pawel Jakub Dawidek .\" All ri

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

2011-03-06 Thread Pawel Jakub Dawidek
int hr_compression; /* Checksum algorithm. */ int hr_checksum; Added: head/sbin/hastd/hast_compression.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sbin/hastd/hast_compression.c S

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 Modi

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 so

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 =

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

2011-03-07 Thread Pawel Jakub Dawidek
On Mon, Mar 07, 2011 at 10:41:12AM +, Pawel Jakub Dawidek wrote: > 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

svn commit: r219385 - head/sbin/hastd

2011-03-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 7 19:54:51 2011 New Revision: 219385 URL: http://svn.freebsd.org/changeset/base/219385 Log: Unbreak the build. MFC after:2 weeks Modified: head/sbin/hastd/pjdlog.c Modified: head/sbin/hastd/pjdlog.c =

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 MFC after:1 month Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Modif

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/ --

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 MFC after:1 week Modifi

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) syscal

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 Modifie

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/ head/tools/regression/pjdfs

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 were

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) - fcho

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

2011-03-11 Thread Pawel Jakub Dawidek
me. Thank you, John. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgpx7DknItH5Z.pgp Description: PGP signature

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

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: head/tools/regression/pjdfst

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: head/sys/cddl/contrib/opensolari

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

2011-03-14 Thread Pawel Jakub Dawidek
eep, > perchance to dream... 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.

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: 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 lo

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 afte

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 t

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 the

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:1

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 pro

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 pri

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 privilege

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 head/s

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: head/sb

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: 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: head/sbin/h

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

2011-03-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Mar 24 14:12:41 2011 New Revision: 219959 URL: http://svn.freebsd.org/changeset/base/219959 Log: Properly print characters larger than 127. Submitted by: noordsij Reviewed by: Eric Schrock MFC after:1 month Modified: head/cddl/contrib/opensolaris/lib/libz

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 depend

svn commit: r220005 - head/sbin/hastd

2011-03-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Mar 25 20:13:38 2011 New Revision: 220005 URL: http://svn.freebsd.org/changeset/base/220005 Log: Use role2str() when setting process title. MFC after:1 week Modified: head/sbin/hastd/primary.c head/sbin/hastd/secondary.c Modified: head/sbin/hastd/primary.c ==

svn commit: r220006 - head/sbin/hastd

2011-03-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Mar 25 20:15:16 2011 New Revision: 220006 URL: http://svn.freebsd.org/changeset/base/220006 Log: Use timeout from configuration file not only when sending and receiving, but also when establishing connection. MFC after:1 week Modified: head/sbin/hastd/primary.

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 nod

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: r220264 - head/sys/geom/gate

2011-04-01 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. T

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

2011-04-01 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 o

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 so

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 after:

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 * All rights reserved. * * This software

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: head/sbin/hastd/proto

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

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 a

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 w

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 ' handling. If the path was found, the 'ret' variable was uninitialized. PR: kern/155940 Submitted by: KOIE Hidetaka MFC after:1 week Mo

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

2011-04-13 Thread Pawel Jakub Dawidek
;map/%s", name); Four spaces. > + printf("MAP: %08x-%08x, offset=%08x \"map/%s\"\n", > +(uint32_t) start, > +(uint32_t) size, > +(uint32_t) off, > +name > +); Four spaces. Not need to separate cast and variable with space. > + if (error) > + printf("%s g_slice_config returns %d for \"%s\"\n", > + __func__, error, name); Leftover debug printf? > + sc->entry[i] = off; > + sc->dsize[i] = size - off; > + sc->readonly[i] = readonly ? 1 : 0; > + } > + > + > + if (i == 0) > + return (NULL); Redundant empty line before 'if'. > +static void > +g_map_config(struct gctl_req *req, struct g_class *mp, const char *verb) > +{ > + struct g_geom *gp; > + > + g_topology_assert(); > + gp = gctl_get_geom(req, mp, "geom"); > + 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 Am I Evil? Yes, I Am! http://yomoli.com pgp19Ub8WGjYs.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
go off the last bump, 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 D

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

2011-04-18 Thread Pawel Jakub Dawidek
e run. I'd still go with SEEK_DATA/SEEK_HOLE loop as I suggested on arch@. If you would like to spend time on it, having SEEK_DATA/SEEK_HOLE support in UFS would be beneficial for other purposes too. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer

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

2011-04-18 Thread Pawel Jakub Dawidek
l, making it atomic would be impossible currently for various 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!

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 s

  1   2   3   4   5   6   7   8   9   10   >