Re: svn commit: r216422 - head/usr.bin/printf

2010-12-14 Thread Pawel Jakub Dawidek
-2005 The FreeBSD Project +.\ Copyright (c) 2010 Pawel Jakub Dawidek p...@freebsd.org .\ All rights reserved. .\ .\ Redistribution and use in source and binary forms, with or without @@ -26,7 +27,7 @@ .\From: @(#)style 1.14 (Berkeley) 4/28/95 .\ $FreeBSD$ .\ -.Dd December 17, 2008 +.Dd

svn commit: r216427 - head/sys/kern

2010-12-13 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Dec 14 06:19:13 2010 New Revision: 216427 URL: http://svn.freebsd.org/changeset/base/216427 Log: Just pass M_ZERO to malloc(9) instead of clearing allocated memory separately. Modified: head/sys/kern/uipc_syscalls.c Modified: head/sys/kern/uipc_syscalls.c

svn commit: r216379 - head/tools/regression/sockets/sendfile

2010-12-11 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Dec 11 16:06:52 2010 New Revision: 216379 URL: http://svn.freebsd.org/changeset/base/216379 Log: Allow to specify path to a file we want to test with sendfile(2). This allows to specify selected file system and not only /tmp/. Modified:

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

2010-12-08 Thread Pawel Jakub Dawidek
by attaching a new vdev to a root pool. This warning is helpful, just incorrect. It should be changed to show steps that are needed on FreeBSD and not just commented out. I left it on purpose as a reminder. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org

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

2010-12-08 Thread Pawel Jakub Dawidek
have to be set to boot from a pool.) We should print similar information when: - We set bootfs property. - Add new vdev(s) to root pool. - Attach new vdev(s) to root pool. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http

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

2010-12-08 Thread Pawel Jakub Dawidek
(e.g. when creating a mirrored boot pool). Reviewed by:pav s/pav/pjd/ -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am

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

2010-12-07 Thread Pawel Jakub Dawidek
On Mon, Dec 06, 2010 at 03:18:49PM -0500, John Baldwin wrote: On Monday, December 06, 2010 2:53:27 pm Pawel Jakub Dawidek wrote: On Mon, Dec 06, 2010 at 08:35:36PM +0100, Ivan Voras wrote: Please persuade me on technical grounds why ashift, a property intended for address alignment

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

2010-12-07 Thread Pawel Jakub Dawidek
On Mon, Dec 06, 2010 at 11:10:38PM +0200, Alexander Motin wrote: On 06.12.2010 22:18, John Baldwin wrote: On Monday, December 06, 2010 2:53:27 pm Pawel Jakub Dawidek wrote: On Mon, Dec 06, 2010 at 08:35:36PM +0100, Ivan Voras wrote: Please persuade me on technical grounds why ashift

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

2010-12-07 Thread Pawel Jakub Dawidek
that ada0 now reports 4kB stripesize) # zpool import tank cannot import 'tank': invalid vdev configuration So you change was not only poorly thought out and not reviewed, but also not even minimally tested. Before we go any further, back it out. -- Pawel Jakub Dawidek

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

2010-12-07 Thread Pawel Jakub Dawidek
On Tue, Dec 07, 2010 at 12:25:28PM +0100, Ivan Voras wrote: On 7 December 2010 11:21, Pawel Jakub Dawidek p...@freebsd.org wrote: PS. Do you know your change breaks all current ZFS installation if stripesize is defined for a provider?        # zpool create tank ada0        (upgrade

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

2010-12-06 Thread Pawel Jakub Dawidek
, SPA_MAXBLOCKSIZE)) - 1; + else + *ashift = highbit(MAX(pp-sectorsize, SPA_MINBLOCKSIZE)) - 1; Even in this chunk there is a comment explaining perfectly what ashift stands for!! -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org

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

2010-12-06 Thread Pawel Jakub Dawidek
On Mon, Dec 06, 2010 at 07:44:53PM +0100, Pawel Jakub Dawidek wrote: On Mon, Dec 06, 2010 at 12:18:03PM +, Ivan Voras wrote: Author: ivoras Date: Mon Dec 6 12:18:02 2010 New Revision: 216230 URL: http://svn.freebsd.org/changeset/base/216230 Log: Use GEOM stripesize field

svn commit: r216017 - in stable/8/etc: defaults periodic/daily rc.d

2010-11-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Nov 28 20:56:51 2010 New Revision: 216017 URL: http://svn.freebsd.org/changeset/base/216017 Log: MFC r215799: Add gptboot_enable rc variable, which allows to turn gptboot reporting off in case user wants to implement his own actions and doesn't want the attributes

svn commit: r215799 - in head: etc/defaults etc/rc.d share/man/man5

2010-11-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Nov 24 15:25:17 2010 New Revision: 215799 URL: http://svn.freebsd.org/changeset/base/215799 Log: Add gptboot_enable rc variable, which allows to turn gptboot reporting off in case user wants to implement his own actions and doesn't want the attributes to vanish.

Re: svn commit: r215570 - head/sbin/geom/class/part

2010-11-21 Thread Pawel Jakub Dawidek
than to backup. Backup should contains everything and one should be able to filter what to restore at restore time. What do you think? -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer

Re: svn commit: r215427 - head/sys/crypto/aesni

2010-11-18 Thread Pawel Jakub Dawidek
performance improvement or some kind of a bug fix? -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! pgphKtpHRsZ5p.pgp Description: PGP signature

svn commit: r215331 - head/sbin/hastd

2010-11-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Nov 15 03:05:33 2010 New Revision: 215331 URL: http://svn.freebsd.org/changeset/base/215331 Log: 1. Exit when we cannot create incoming connection. 2. Improve logging to inform which connection can't be created. Submitted by: [1] Mikolaj Golub

svn commit: r215332 - head/sbin/hastd

2010-11-14 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Nov 15 03:07:42 2010 New Revision: 215332 URL: http://svn.freebsd.org/changeset/base/215332 Log: Move timeout.tv_sec initialization outside the loop - sigtimedwait(2) won't modify it. Submitted by: Mikolaj Golub to.my.troc...@gmail.com MFC after:3 days

svn commit: r214692 - head/sbin/hastd

2010-11-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 2 22:13:08 2010 New Revision: 214692 URL: http://svn.freebsd.org/changeset/base/214692 Log: Send packets to remote node only via the send thread to avoid possible races - in this case a keepalive packet was send from wrong thread which lead to connection dropping,

svn commit: r214693 - stable/8/sys/nfsserver

2010-11-02 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 2 22:30:19 2010 New Revision: 214693 URL: http://svn.freebsd.org/changeset/base/214693 Log: MFC r211854: - 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

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

2010-11-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Nov 1 10:41:05 2010 New Revision: 214622 URL: http://svn.freebsd.org/changeset/base/214622 Log: 1. Remove invalid assertion. 2. Properly recalculate delta in case pthread_cond_timedwait() is interrupted. 3. Style fix. Reported by: [1] App Deb appde...@gmail.com

svn commit: r214623 - head/cddl/contrib/opensolaris/cmd/ztest

2010-11-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Nov 1 10:42:14 2010 New Revision: 214623 URL: http://svn.freebsd.org/changeset/base/214623 Log: Fix ztest when it is executed by just 'ztest' and not by full path '/usr/bin/ztest'. Modified: head/cddl/contrib/opensolaris/cmd/ztest/ztest.c Modified:

Re: svn commit: r214596 - head/bin/rm

2010-10-31 Thread Pawel Jakub Dawidek
when a user is trying to use it. [1] When we have UFS file system on top of ZVOL with compression enabled, overwriting file content with zero bytes should convert blocks into holes, which will free some space - a usage definitely not worth keeping -P around. :) -- Pawel Jakub Dawidek

Re: svn commit: r214596 - head/bin/rm

2010-10-31 Thread Pawel Jakub Dawidek
On Sun, Oct 31, 2010 at 08:11:19PM +0100, Ulrich Spoerlein wrote: On Sun, 31.10.2010 at 17:06:03 +0100, Pawel Jakub Dawidek wrote: IMHO this option should be removed and rm(1) should fail when a user is trying to use it. No, this is a POLA violation for no apparent gain. The flag has been

Re: svn commit: r214510 - in head: include lib/libc/gen sys/kern

2010-10-29 Thread Pawel Jakub Dawidek
SYSCTL_LONG(). Also note, that on i386 long is 32bit and on amd64 long is 64bit, so 32bit process running on 64bit system won't be able to read this sysctl. Or do we detect 32bit processes on 64bit systems and convert such types in the kernel? -- Pawel Jakub Dawidek http

Re: svn commit: r214510 - in head: include lib/libc/gen sys/kern

2010-10-29 Thread Pawel Jakub Dawidek
On Sat, Oct 30, 2010 at 12:21:59AM +0200, Pawel Jakub Dawidek wrote: Also note, that on i386 long is 32bit and on amd64 long is 64bit, so 32bit process running on 64bit system won't be able to read this sysctl. Or do we detect 32bit processes on 64bit systems and convert such types

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

2010-10-27 Thread Pawel Jakub Dawidek
you could just add sysctl and eventually put it into sysconf(3)? -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! pgpIkbJqszF5y.pgp Description

svn commit: r214402 - in stable/8/sbin/geom: class/cache class/eli class/journal class/mirror class/nop class/sched class/stripe class/virstor core

2010-10-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 26 21:23:55 2010 New Revision: 214402 URL: http://svn.freebsd.org/changeset/base/214402 Log: - Make it possible for default value to be const. - Default number is now also a string. Modified: stable/8/sbin/geom/class/cache/geom_cache.c

Re: svn commit: r214307 - in stable/7: . bin/sh contrib/wpa_supplicant gnu/usr.bin/groff/tmac share/misc tools/regression/bin/sh/expansion tools/tools/nanobsd usr.sbin usr.sbin/makefs usr.sbin/makefs/

2010-10-26 Thread Pawel Jakub Dawidek
and target for the merge carefully to minimize property changes on unrelated directories. ? The same for r213738 and for r213817. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer

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

2010-10-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 26 22:46:15 2010 New Revision: 214404 URL: http://svn.freebsd.org/changeset/base/214404 Log: Use fprintf(stderr) instead of gctl_error() to print a warning about too big sector size. When gctl error is set gctl_has_param() always returns 'false', which prevents

svn commit: r214405 - in stable/8: sbin/geom/class/eli sbin/geom/class/sched sbin/geom/core sys/geom/eli

2010-10-26 Thread Pawel Jakub Dawidek
Pawel Jakub Dawidek p...@freebsd.org +.\ Copyright (c) 2005-2010 Pawel Jakub Dawidek p...@freebsd.org .\ All rights reserved. .\ .\ Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ .\ .\ $FreeBSD$ .\ -.Dd August 29, 2008 +.Dd October 20, 2010 .Dt GELI 8

Re: svn commit: r214352 - in head: sbin/geom/class/part sys/geom/part

2010-10-25 Thread Pawel Jakub Dawidek
becomes read-only. Any changes with corrupt table are prohibited. Only destroy and recover commands are allowed. Another corruption worth mentioning is when primary and secondary GPT header/table differ. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org

svn commit: r214273 - head/sbin/hastd

2010-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 24 15:38:58 2010 New Revision: 214273 URL: http://svn.freebsd.org/changeset/base/214273 Log: Load geom_gate.ko module after parsing arguments. MFC after:3 days Modified: head/sbin/hastd/hastd.c Modified: head/sbin/hastd/hastd.c

svn commit: r214274 - head/sbin/hastd

2010-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 24 15:41:23 2010 New Revision: 214274 URL: http://svn.freebsd.org/changeset/base/214274 Log: Plug memory leaks. Found with: valgrind MFC after:3 days Modified: head/sbin/hastd/parse.y head/sbin/hastd/primary.c head/sbin/hastd/synch.h Modified:

svn commit: r214275 - head/sbin/hastd

2010-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 24 15:42:16 2010 New Revision: 214275 URL: http://svn.freebsd.org/changeset/base/214275 Log: Plug memory leak. MFC after:3 days Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

svn commit: r214276 - head/sbin/hastd

2010-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 24 15:44:23 2010 New Revision: 214276 URL: http://svn.freebsd.org/changeset/base/214276 Log: Simplify code a bit. MFC after:3 days Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

svn commit: r214282 - head/sbin/hastd

2010-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 24 17:22:34 2010 New Revision: 214282 URL: http://svn.freebsd.org/changeset/base/214282 Log: Move all NV defines into nv.c, they are not used externally thus there is no need to make then visible from outside. MFC after:3 days Modified:

svn commit: r214283 - head/sbin/hastd

2010-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 24 17:24:08 2010 New Revision: 214283 URL: http://svn.freebsd.org/changeset/base/214283 Log: Implement nv_exists() function that returns true if argument of the given name exists. MFC after:3 days Modified: head/sbin/hastd/nv.c head/sbin/hastd/nv.h

svn commit: r214284 - head/sbin/hastd

2010-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 24 17:28:25 2010 New Revision: 214284 URL: http://svn.freebsd.org/changeset/base/214284 Log: Before this change on first connect between primary and secondary we initialize all the data. This is huge waste of time and resources if there were no writes yet, as there

svn commit: r214252 - stable/8/sbin/geom/core

2010-10-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Oct 23 21:56:50 2010 New Revision: 214252 URL: http://svn.freebsd.org/changeset/base/214252 Log: Implement G_TYPE_MULTI and G_VAL_OPTIONAL for stable/8. This should have been MFC, but I've no green light from marcel to remove G_TYPE_ASCNUM and gc_argname and to

svn commit: r214253 - stable/8/sbin/geom/core

2010-10-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Oct 23 22:04:37 2010 New Revision: 214253 URL: http://svn.freebsd.org/changeset/base/214253 Log: Constify go_val field. (Should've been MFC of r212547.) Modified: stable/8/sbin/geom/core/geom.c stable/8/sbin/geom/core/geom.h Modified:

svn commit: r214254 - stable/8/sys/opencrypto

2010-10-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Oct 23 22:11:30 2010 New Revision: 214254 URL: http://svn.freebsd.org/changeset/base/214254 Log: MFC r213065,r213068: r213065: Remove redundant space. r213068: Add support for AES-XTS. Obtained from:OpenBSD Modified:

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

2010-10-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 22 22:13:11 2010 New Revision: 214225 URL: http://svn.freebsd.org/changeset/base/214225 Log: Move sc_akeyctx and sc_ivctx initialization to the g_eli_mkey_propagate() function which eliminates code duplication and will ensure proper order of operation. Modified:

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

2010-10-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 22 22:44:09 2010 New Revision: 214226 URL: http://svn.freebsd.org/changeset/base/214226 Log: Encryption keys array might be NULL if device is suspended. Check for this, so we don't panic when we detach suspended device. Modified: head/sys/geom/eli/g_eli.c

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

2010-10-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 22 22:45:26 2010 New Revision: 214227 URL: http://svn.freebsd.org/changeset/base/214227 Log: Add State tag, so 'geli status' will report active/suspended status, eg: # geli status Name Status Components da0.eli SUSPENDED da0

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

2010-10-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 22 22:54:26 2010 New Revision: 214228 URL: http://svn.freebsd.org/changeset/base/214228 Log: Close a race between checking if device is already suspended and suspending it. Modified: head/sys/geom/eli/g_eli_ctl.c Modified: head/sys/geom/eli/g_eli_ctl.c

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

2010-10-22 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 22 22:58:00 2010 New Revision: 214229 URL: http://svn.freebsd.org/changeset/base/214229 Log: - Improve error messages, so instead of 'Not fully done', the user will get information that device is already suspended or that device is using one-time key and

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

2010-10-21 Thread Pawel Jakub Dawidek
suspend -a fi Well, this is not always safe. As I mentioned in the commit message this will cause deadlock if geli(8) command is stored on encrypted file system (you won't be able to resume). Good example of such situation is when you encrypt even your root file system. -- Pawel Jakub Dawidek

svn commit: r214128 - head/lib/libgeom

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

svn commit: r214129 - head/lib/libgeom

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

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

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

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

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

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

2010-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 20 19:52:27 2010 New Revision: 214114 URL: http://svn.freebsd.org/changeset/base/214114 Log: Correct typos. Modified: head/sys/boot/common/gpt.c Modified: head/sys/boot/common/gpt.c == ---

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

2010-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 20 20:01:45 2010 New Revision: 214116 URL: http://svn.freebsd.org/changeset/base/214116 Log: - Add missing comments. - Make a comment consistent with others. Modified: head/sys/geom/eli/g_eli.c head/sys/geom/eli/g_eli_integrity.c

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

2010-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 20 20:50:55 2010 New Revision: 214118 URL: http://svn.freebsd.org/changeset/base/214118 Log: Bring in geli suspend/resume functionality (finally). Before this change if you wanted to suspend your laptop and be sure that your encryption keys are safe, you had to

svn commit: r214119 - head/sbin/hastd

2010-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 20 21:10:01 2010 New Revision: 214119 URL: http://svn.freebsd.org/changeset/base/214119 Log: Use closefrom(2) instead of close(2) in a loop. MFC after:1 week Modified: head/sbin/hastd/hooks.c Modified: head/sbin/hastd/hooks.c

svn commit: r214014 - stable/8/sys/boot/zfs

2010-10-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 18 09:26:39 2010 New Revision: 214014 URL: http://svn.freebsd.org/changeset/base/214014 Log: MFC r212382,r212383,r212384,r212387: r212382: Remove duplicated code. r212383: Allow to boot from a pool within which replacing is in progress. Before the

svn commit: r214017 - stable/8/sys/cddl/boot/zfs

2010-10-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 18 12:12:38 2010 New Revision: 214017 URL: http://svn.freebsd.org/changeset/base/214017 Log: MFC r212407: Forgot to commit this file. Add ZPOOL_CONFIG_IS_LOG. Reported by: keramida, dhw Modified: stable/8/sys/cddl/boot/zfs/zfsimpl.h Directory Properties:

svn commit: r214018 - head/lib/libradius

2010-10-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 18 12:35:10 2010 New Revision: 214018 URL: http://svn.freebsd.org/changeset/base/214018 Log: Add links for libradius(3) functions. Modified: head/lib/libradius/Makefile Modified: head/lib/libradius/Makefile

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

2010-10-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 18 12:35:48 2010 New Revision: 214019 URL: http://svn.freebsd.org/changeset/base/214019 Log: Update links for taskqueue(9) functions. Modified: head/share/man/man9/Makefile Modified: head/share/man/man9/Makefile

svn commit: r213981 - head/sbin/hastd

2010-10-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 17 15:47:27 2010 New Revision: 213981 URL: http://svn.freebsd.org/changeset/base/213981 Log: Log correct connection when canceling half-open connection. Submitted by: Mikolaj Golub to.my.troc...@gmail.com MFC after:3 days Modified: head/sbin/hastd/hastd.c

svn commit: r213994 - in stable/8: etc/periodic/daily etc/rc.d sbin/geom/class/part sbin/geom/class/sched sys/boot/common sys/boot/i386/common sys/boot/i386/gptboot sys/boot/i386/gptzfsboot sys/boo...

2010-10-17 Thread Pawel Jakub Dawidek
is newly added) +++ stable/8/etc/rc.d/gptboot Sun Oct 17 20:10:00 2010(r213994, copy of r213137, head/etc/rc.d/gptboot) @@ -0,0 +1,76 @@ +#!/bin/sh +# +# Copyright (c) 2010 Pawel Jakub Dawidek p...@freebsd.org +# All rights reserved. +# +# Redistribution and use in source and binary forms

svn commit: r213938 - head/sbin/hastd

2010-10-16 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Oct 16 22:48:48 2010 New Revision: 213938 URL: http://svn.freebsd.org/changeset/base/213938 Log: Clear signal mask before executing a hook. Submitted by: Mikolaj Golub to.my.troc...@gmail.com MFC after:3 days Modified: head/sbin/hastd/hooks.c Modified:

svn commit: r213939 - head/sbin/hastd

2010-10-16 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Oct 16 22:50:12 2010 New Revision: 213939 URL: http://svn.freebsd.org/changeset/base/213939 Log: Use one fprintf() instead of two. MFC after:3 days Modified: head/sbin/hastd/pjdlog.c Modified: head/sbin/hastd/pjdlog.c

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

2010-10-10 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 10 20:49:33 2010 New Revision: 213673 URL: http://svn.freebsd.org/changeset/base/213673 Log: Provide internal ioflags() function that converts ioflag provided by FreeBSD's VFS to OpenSolaris-specific ioflag expected by ZFS. Use it for read and write operations.

svn commit: r213579 - head/sbin/hastd

2010-10-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 8 15:02:15 2010 New Revision: 213579 URL: http://svn.freebsd.org/changeset/base/213579 Log: We close the event socketpair early in the mainloop to prevent spaming with error messages, so when we clean up after child process, we have to check if the event

svn commit: r213580 - head/sbin/hastd

2010-10-08 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 8 15:05:39 2010 New Revision: 213580 URL: http://svn.freebsd.org/changeset/base/213580 Log: We can't zero out ggio request, as we have some fields in there we initialize once during start-up. Reported by: Mikolaj Golub to.my.troc...@gmail.com MFC after:3

Re: svn commit: r213398 - head/bin/rm

2010-10-08 Thread Pawel Jakub Dawidek
blocks +in-place and does not store new data in new location. ? -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! pgp4H8UPVxeOY.pgp

svn commit: r213529 - head/sbin/hastd

2010-10-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 7 18:16:22 2010 New Revision: 213529 URL: http://svn.freebsd.org/changeset/base/213529 Log: Don't close local component on exit as we can hang waiting on g_waitidle. I'm unable to reproduce the race described in comment anymore and also the comment is incorrect -

svn commit: r213530 - head/sbin/hastd

2010-10-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 7 18:19:02 2010 New Revision: 213530 URL: http://svn.freebsd.org/changeset/base/213530 Log: Start the guard thread first, so we can handle signals from the very begining. Reported by: Mikolaj Golub to.my.troc...@gmail.com MFC after:1 week Modified:

svn commit: r213531 - head/sbin/hastd

2010-10-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 7 18:20:16 2010 New Revision: 213531 URL: http://svn.freebsd.org/changeset/base/213531 Log: Log error message when we fail to destroy ggate provider. MFC after:3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c

svn commit: r213533 - head/sbin/hastd

2010-10-07 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 7 18:23:28 2010 New Revision: 213533 URL: http://svn.freebsd.org/changeset/base/213533 Log: Clear ggate structures before using them. We don't initialize all the field and there can be some garbage from the stack. MFC after:1 week Modified:

Re: svn commit: r213398 - head/bin/rm

2010-10-04 Thread Pawel Jakub Dawidek
On Mon, Oct 04, 2010 at 02:35:54PM +0400, Dmitry Morozovsky wrote: On Mon, 4 Oct 2010, Alexander Best wrote: AB On Mon Oct 4 10, Pawel Jakub Dawidek wrote: AB On Mon, Oct 04, 2010 at 06:17:46AM +, Xin LI wrote: AB Author: delphij AB Date: Mon Oct 4 06:17:45 2010 AB New

Re: svn commit: r213398 - head/bin/rm

2010-10-04 Thread Pawel Jakub Dawidek
a note that this doesn't work with all file systems. In case of eg. ZFS the data won't be overwritten. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes

svn commit: r213428 - head/sbin/hastd

2010-10-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 4 21:41:18 2010 New Revision: 213428 URL: http://svn.freebsd.org/changeset/base/213428 Log: We can't mask ignored signal, so install dummy signal hander for SIGCHLD before masking it. This fixes bogus reports about hooks running for too long and other problems

svn commit: r213429 - head/sbin/hastd

2010-10-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 4 21:43:06 2010 New Revision: 213429 URL: http://svn.freebsd.org/changeset/base/213429 Log: hook_check() is now only used to report about long-running hooks, so the argument is redundant, remove it. MFC after:3 days Modified: head/sbin/hastd/hastd.c

svn commit: r213430 - head/sbin/hastd

2010-10-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 4 21:44:26 2010 New Revision: 213430 URL: http://svn.freebsd.org/changeset/base/213430 Log: Decrease report interval to 5 seconds, as this also means we will check for signals every 5 seconds and not every 10 seconds as before. MFC after:3 days Modified:

svn commit: r213245 - head/sbin/geom/class/part

2010-09-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 28 09:07:00 2010 New Revision: 213245 URL: http://svn.freebsd.org/changeset/base/213245 Log: Document recently added GPT attributes (bootme, bootonce, bootfailed) and list other schemes attributes. Reviewed by: simon, rpaulo MFC after:2 weeks Modified:

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

2010-09-28 Thread Pawel Jakub Dawidek
on textdumps by default and eventually extend what we dump, than to make minidumps the default. You can always ask user to add this one-line to rc.conf to turn minidump on and provide you the info that was missing in textdump. -- Pawel Jakub Dawidek http://www.wheelsystems.com p

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

2010-09-28 Thread Pawel Jakub Dawidek
a need for it to be automatic at all. And I'm arguing that those are very rare situations where there is a bug, which is hard to reproduce and where textdump won't be of any help. I'm aware that those are not strong arguments, but just worth taking into account, IMHO. -- Pawel Jakub Dawidek

svn commit: r213231 - head/tools/regression/geom_eli

2010-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Sep 27 21:10:37 2010 New Revision: 213231 URL: http://svn.freebsd.org/changeset/base/213231 Log: Correct message. Pointed out by: jhb MFC after:2 weeks Modified: head/tools/regression/geom_eli/resize.t Modified: head/tools/regression/geom_eli/resize.t

svn commit: r213183 - head/sbin/hastd

2010-09-26 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Sep 26 10:39:01 2010 New Revision: 213183 URL: http://svn.freebsd.org/changeset/base/213183 Log: Plug memory leak on fork(2) failure. Submitted by: Mikolaj Golub to.my.troc...@gmail.com MFC after:3 days Modified: head/sbin/hastd/hooks.c Modified:

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

2010-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 25 10:31:05 2010 New Revision: 213164 URL: http://svn.freebsd.org/changeset/base/213164 Log: Ignore errors from BIO_FLUSH. It might confuse users that provider wasn't really killed. What we really care about are write errors only. MFC after:2 weeks

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

2010-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 25 10:32:04 2010 New Revision: 213165 URL: http://svn.freebsd.org/changeset/base/213165 Log: Change g_eli_debug to int, so one can turn off any GELI output by setting kern.geom.eli.debug sysctl to -1. MFC after:2 weeks Modified: head/sys/geom/eli/g_eli.c

svn commit: r213166 - head/sys/crypto/aesni

2010-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 25 10:32:52 2010 New Revision: 213166 URL: http://svn.freebsd.org/changeset/base/213166 Log: Fix two copypaste bugs. MFC after:2 weeks Modified: head/sys/crypto/aesni/aesni_wrap.c Modified: head/sys/crypto/aesni/aesni_wrap.c

svn commit: r213167 - head/tools/regression/geom_eli

2010-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 25 10:34:11 2010 New Revision: 213167 URL: http://svn.freebsd.org/changeset/base/213167 Log: - Use $md instead of md0, which fixes tests when md(4) device is already present. - Correct message - we create GPT, not MBR. MFC after:2 weeks Modified:

svn commit: r213168 - head/tools/regression/geom_eli

2010-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 25 10:34:42 2010 New Revision: 213168 URL: http://svn.freebsd.org/changeset/base/213168 Log: Update regression tests after AES-XTS addition. MFC after:2 weeks Modified: head/tools/regression/geom_eli/init-a.t head/tools/regression/geom_eli/init.t

svn commit: r213171 - head/tools/regression/geom_eli

2010-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 25 15:37:41 2010 New Revision: 213171 URL: http://svn.freebsd.org/changeset/base/213171 Log: Don't hardcode md0 in message, use $md instead. Reported by: Ronald Klop ronald-freeb...@klop.yi.org Modified: head/tools/regression/geom_eli/resize.t Modified:

Re: svn commit: r213167 - head/tools/regression/geom_eli

2010-09-25 Thread Pawel Jakub Dawidek
On Sat, Sep 25, 2010 at 01:19:11PM +0200, Ronald Klop wrote: On Sat, 25 Sep 2010 12:34:11 +0200, Pawel Jakub Dawidek p...@freebsd.org wrote: Author: pjd Date: Sat Sep 25 10:34:11 2010 New Revision: 213167 URL: http://svn.freebsd.org/changeset/base/213167 Log: - Use $md instead

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

2010-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 25 17:38:57 2010 New Revision: 213172 URL: http://svn.freebsd.org/changeset/base/213172 Log: - Add support for loading passphrase from a file (-J and -j options). This is especially useful for things like installers, where regular geli prompt can't be used. -

svn commit: r213173 - head/tools/regression/geom_eli

2010-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Sep 25 17:41:02 2010 New Revision: 213173 URL: http://svn.freebsd.org/changeset/base/213173 Log: Add some regression tests for newly added -J and -j options. MFC after:2 weeks Added: head/tools/regression/geom_eli/init-J.t (contents, props changed) Added:

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

2010-09-24 Thread Pawel Jakub Dawidek
/rc.d/gptboot Fri Sep 24 19:53:55 2010(r213137) @@ -0,0 +1,76 @@ +#!/bin/sh +# +# Copyright (c) 2010 Pawel Jakub Dawidek p...@freebsd.org +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided

Re: svn commit: r213097 - head/sbin/geom/class/part

2010-09-24 Thread Pawel Jakub Dawidek
geom(8) stuff. If you are talking about G_TYPE_ASCNUM removal, I probably won't MFC it. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am

svn commit: r213133 - head/sys/sys

2010-09-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Sep 24 19:31:08 2010 New Revision: 213133 URL: http://svn.freebsd.org/changeset/base/213133 Log: Add three GPT attributes: GPT_ENT_ATTR_BOOTME - this is bootable partition GPT_ENT_ATTR_BOOTONCE - try to boot only once from this partition

svn commit: r213135 - head/sys/geom/part

2010-09-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Sep 24 19:33:47 2010 New Revision: 213135 URL: http://svn.freebsd.org/changeset/base/213135 Log: Allow to configure GPT attributes. It shouldn't be allowed to set bootfailed attribute (it should be allowed only to unset it), but for test purposes it might be useful, so

svn commit: r213136 - in head/sys/boot: common i386/common i386/gptboot i386/gptzfsboot i386/zfsboot zfs

2010-09-24 Thread Pawel Jakub Dawidek
) @@ -0,0 +1,381 @@ +/*- + * Copyright (c) 2010 Pawel Jakub Dawidek p...@freebsd.org + * 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. Redistributions

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

2010-09-23 Thread Pawel Jakub Dawidek
) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/8/sbin/hastd/event.c Thu Sep 23 09:02:10 2010(r213049, copy of r212049, head/sbin/hastd/event.c) @@ -0,0 +1,162 @@ +/*- + * Copyright (c) 2010 Pawel Jakub Dawidek p

svn commit: r213050 - stable/8/sbin/hastctl

2010-09-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 23 09:05:40 2010 New Revision: 213050 URL: http://svn.freebsd.org/changeset/base/213050 Log: MFC r208028,r210628,r210909,r210912,r211397: r208028: mdoc: move remaining sections into consistent order This pertains mostly to FILES, HISTORY, EXIT STATUS and

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

2010-09-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 23 10:43:37 2010 New Revision: 213055 URL: http://svn.freebsd.org/changeset/base/213055 Log: When trashing metadata, flush after each write. MFC after:1 week Modified: head/sys/geom/eli/g_eli_ctl.c Modified: head/sys/geom/eli/g_eli_ctl.c

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

2010-09-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 23 10:50:17 2010 New Revision: 213056 URL: http://svn.freebsd.org/changeset/base/213056 Log: Simplify code a bit by using g_*() API from libgeom. MFC after:1 week Modified: head/sbin/geom/class/eli/geom_eli.c Modified: head/sbin/geom/class/eli/geom_eli.c

<    6   7   8   9   10   11   12   13   14   15   >