svn commit: r226855 - head/sbin/hastd

2011-10-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 27 20:10:21 2011 New Revision: 226855 URL: http://svn.freebsd.org/changeset/base/226855 Log: Improve comment so it doesn't suggest race is possible, but that we handle the race. MFC after:3 days Modified: head/sbin/hastd/primary.c Modified:

svn commit: r226856 - head/sbin/hastd

2011-10-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 27 20:13:39 2011 New Revision: 226856 URL: http://svn.freebsd.org/changeset/base/226856 Log: Reduce indentation. MFC after:3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c

svn commit: r226857 - head/sbin/hastd

2011-10-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 27 20:15:37 2011 New Revision: 226857 URL: http://svn.freebsd.org/changeset/base/226857 Log: Minor cleanups. MFC after:3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c

svn commit: r226859 - head/sbin/hastd

2011-10-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 27 20:32:57 2011 New Revision: 226859 URL: http://svn.freebsd.org/changeset/base/226859 Log: Implement 'async' mode for HAST. MFC after:3 days Modified: head/sbin/hastd/hast.conf.5 head/sbin/hastd/parse.y head/sbin/hastd/primary.c Modified:

svn commit: r226861 - head/sbin/hastd

2011-10-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 27 20:36:35 2011 New Revision: 226861 URL: http://svn.freebsd.org/changeset/base/226861 Log: Remove redundant space. MFC after:3 days Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 07:24:51 2011 New Revision: 226715 URL: http://svn.freebsd.org/changeset/base/226715 Log: Sort includes. MFC after:3 days Modified: head/sbin/geom/class/eli/geom_eli.c Modified: head/sbin/geom/class/eli/geom_eli.c

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 07:31:13 2011 New Revision: 226716 URL: http://svn.freebsd.org/changeset/base/226716 Log: Simplify eli_backup_create() and eli_backup_restore() functions. As a side-effect it is now possible to backup unsupported (newer) GELI metadata versions. MFC after:

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 07:32:43 2011 New Revision: 226717 URL: http://svn.freebsd.org/changeset/base/226717 Log: Simplify eli_is_attached() function and make it return boot instead of int. MFC after:3 days Modified: head/sbin/geom/class/eli/geom_eli.c Modified:

svn commit: r226718 - head/sbin/geom/misc

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 07:34:35 2011 New Revision: 226718 URL: http://svn.freebsd.org/changeset/base/226718 Log: If 'req' is NULL, print error on stderr. MFC after:3 days Modified: head/sbin/geom/misc/subr.c Modified: head/sbin/geom/misc/subr.c

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 07:37:02 2011 New Revision: 226719 URL: http://svn.freebsd.org/changeset/base/226719 Log: Simplify eli_dump() function and allow to dump metadata stored in backup file. MFC after:3 days Modified: head/sbin/geom/class/eli/geom_eli.c Modified:

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 07:44:10 2011 New Revision: 226720 URL: http://svn.freebsd.org/changeset/base/226720 Log: Simplify eli_resize() function. MFC after:3 days Modified: head/sbin/geom/class/eli/geom_eli.c Modified: head/sbin/geom/class/eli/geom_eli.c

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 07:48:53 2011 New Revision: 226721 URL: http://svn.freebsd.org/changeset/base/226721 Log: When metadata is at newer version than the highest supported, return EOPNOTSUPP when decoding. MFC after:3 days Modified: head/sys/geom/eli/g_eli.h Modified:

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 07:56:27 2011 New Revision: 226722 URL: http://svn.freebsd.org/changeset/base/226722 Log: When we detect GELI metadata version that is newer than the highest we support, inform the user about that instead of 'MD5 hash mismatch'. Suggested by: Garrett Cooper

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 08:03:51 2011 New Revision: 226723 URL: http://svn.freebsd.org/changeset/base/226723 Log: Add 'geli version' subcommand, which will print GELI metadata version of each given GEOM provider or if not providers are given it will print versions supported by userland

svn commit: r226726 - head/sbin/hastctl

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 12:26:19 2011 New Revision: 226726 URL: http://svn.freebsd.org/changeset/base/226726 Log: Remove duplicated line. MFC after:3 days Modified: head/sbin/hastctl/Makefile Modified: head/sbin/hastctl/Makefile

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 13:08:03 2011 New Revision: 226727 URL: http://svn.freebsd.org/changeset/base/226727 Log: Fit lines into 80 chars. MFC after:3 days Modified: head/sys/geom/eli/g_eli.c Modified: head/sys/geom/eli/g_eli.c

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 13:09:22 2011 New Revision: 226728 URL: http://svn.freebsd.org/changeset/base/226728 Log: Prefer G_ELI_VERSION_* defines for version numbers over plain digits. MFC after:3 days Modified: head/sys/geom/eli/g_eli.c Modified: head/sys/geom/eli/g_eli.c

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 13:41:12 2011 New Revision: 226729 URL: http://svn.freebsd.org/changeset/base/226729 Log: Fix resize regressions tests - we need to destroy BSDlabel before we can create GPT. MFC after:3 days Modified: head/tools/regression/geom_eli/resize.t Modified:

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 13:44:23 2011 New Revision: 226730 URL: http://svn.freebsd.org/changeset/base/226730 Log: When decoding metadata, check magic string, so we know this is not GELI device before we check its version. We don't want to report that some garbage is unsupported version

svn commit: r226731 - head/sbin/hastctl

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 13:49:48 2011 New Revision: 226731 URL: http://svn.freebsd.org/changeset/base/226731 Log: Revert r226726. The line was not duplicated. Spotted by: pluknet MFC after:3 days Modified: head/sbin/hastctl/Makefile Modified: head/sbin/hastctl/Makefile

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

2011-10-25 Thread Pawel Jakub Dawidek
+.It Li 6.2 Ta 3 +.It Li 6.3 Ta 3 +.It Li 6.4 Ta 3 +.Pp +.It Li 7.0 Ta 3 +.It Li 7.1 Ta 3 +.It Li 7.2 Ta 3 +.It Li 7.3 Ta 3 +.It Li 7.4 Ta 3 +.Pp +.It Li 8.0 Ta 3 +.It Li 8.1 Ta 3 +.It Li 8.2 Ta 5 +.Pp +.It Li 9.0 Ta 6 +.El +.Pp .Sh AUTHORS .An Pawel Jakub Dawidek Aq p...@freebsd.org Modified: head

svn commit: r226734 - head/sys/kern

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 14:01:17 2011 New Revision: 226734 URL: http://svn.freebsd.org/changeset/base/226734 Log: The v_data field is a pointer, so set it to NULL, not 0. MFC after:3 days Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c

svn commit: r226735 - head/sys/geom

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 14:04:59 2011 New Revision: 226735 URL: http://svn.freebsd.org/changeset/base/226735 Log: Simplify disk_alloc(). MFC after:3 days Modified: head/sys/geom/geom_disk.c Modified: head/sys/geom/geom_disk.c

svn commit: r226736 - head/sys/geom

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 14:05:39 2011 New Revision: 226736 URL: http://svn.freebsd.org/changeset/base/226736 Log: Improve style a bit. MFC after:3 days Modified: head/sys/geom/geom_disk.c Modified: head/sys/geom/geom_disk.c

svn commit: r226737 - head/sys/geom

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 14:07:17 2011 New Revision: 226737 URL: http://svn.freebsd.org/changeset/base/226737 Log: Allow upper layers to discover than BIO_DELETE and/or BIO_FLUSH is not supported by returning EOPNOTSUPP instead of 0 or ENODEV. MFC after:3 days Modified:

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

2011-10-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Oct 25 16:22:43 2011 New Revision: 226738 URL: http://svn.freebsd.org/changeset/base/226738 Log: Don't look for includes in userland directories. There is no need for it and it breaks building the kernel without userland sources. Reported by: andre, imp MFC

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

2011-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 24 20:41:31 2011 New Revision: 226700 URL: http://svn.freebsd.org/changeset/base/226700 Log: Don't forget to rename mounted snapshots of the file system being renamed. MFC after:2 weeks Modified:

svn commit: r226705 - in head/cddl/contrib/opensolaris: cmd/zfs lib/libzfs/common

2011-10-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 24 21:14:50 2011 New Revision: 226705 URL: http://svn.freebsd.org/changeset/base/226705 Log: Extend r226676 to allow rename without unmount even for file systems with non-legacy mountpoints. It is better to be able to rename such file systems and let them be

svn commit: r226706 - in head/cddl/contrib/opensolaris: cmd/zfs lib/libzfs/common

2011-10-24 Thread Pawel Jakub Dawidek
, Oracle and/or its affiliates. All rights reserved. * Copyright 2011 Nexenta Systems, Inc. All rights reserved. + * Copyright (c) 2011 Pawel Jakub Dawidek pa...@dawidek.net. + * All rights reserved. */ #include assert.h Modified: head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h

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

2011-10-24 Thread Pawel Jakub Dawidek
:53 2011(r226707) @@ -21,6 +21,8 @@ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011 by Delphix. All rights reserved. + * Copyright (c) 2011 Pawel Jakub Dawidek pa...@dawidek.net. + * All rights reserved. */ #include sys

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

2011-10-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 24 00:38:09 2011 New Revision: 226676 URL: http://svn.freebsd.org/changeset/base/226676 Log: Allow to rename file systems without remounting if it is possible. It is possible for file systems with 'mountpoint' preperty set to 'legacy' or 'none' - we don't have to

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

2011-10-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 24 05:26:40 2011 New Revision: 226678 URL: http://svn.freebsd.org/changeset/base/226678 Log: Include sys/zfs_vfsops.h only when compiling kernel module. MFC after:2 weeks Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c Modified:

svn commit: r226611 - head/tools/tools/zfsboottest

2011-10-21 Thread Pawel Jakub Dawidek
) 2011 Andriy Gapon + * Copyright (c) 2011 Pawel Jakub Dawidek pa...@dawidek.net * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -28,8 +29,10 @@ #include sys/param.h #include sys/queue.h +#include err.h #include errno.h #include fcntl.h

svn commit: r226612 - head/tools/tools/zfsboottest

2011-10-21 Thread Pawel Jakub Dawidek
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/tools/zfsboottest/zfsboottest.sh Fri Oct 21 13:44:26 2011 (r226612) @@ -0,0 +1,130 @@ +#!/bin/sh +# +# Copyright (c) 2011 Pawel Jakub

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

2011-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 21 13:53:06 2011 New Revision: 226613 URL: http://svn.freebsd.org/changeset/base/226613 Log: libzpool task_alloc: pass only valid flags to kmem_alloc tqflags may contain other flags besided those that are suitable for kmem_alloc == umem_alloc Submitted by:

svn commit: r226615 - head/cddl/contrib/opensolaris/head

2011-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 21 13:54:58 2011 New Revision: 226615 URL: http://svn.freebsd.org/changeset/base/226615 Log: thr_create: new_thread_ID may be NULL Submitted by: avg MFC after:3 days Modified: head/cddl/contrib/opensolaris/head/thread.h Modified:

svn commit: r226616 - head/cddl/contrib/opensolaris/cmd/zdb

2011-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 21 13:56:17 2011 New Revision: 226616 URL: http://svn.freebsd.org/changeset/base/226616 Log: zdb: access dp_free_bpobj only if pool version is = SPA_VERSION_DEADLISTS Submitted by: avg MFC after:3 days Modified: head/cddl/contrib/opensolaris/cmd/zdb/zdb.c

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

2011-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 21 14:00:48 2011 New Revision: 226617 URL: http://svn.freebsd.org/changeset/base/226617 Log: zfs vdev_file_io_start: validate vdev before using vdev_tsd vdev_tsd can be NULL for certain vdev states. At least in userland testing with ztest. Submitted by: avg

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

2011-10-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Oct 21 21:49:34 2011 New Revision: 226620 URL: http://svn.freebsd.org/changeset/base/226620 Log: Update per-thread I/O statistics collection in ZFS. This allows to see processes I/O activity in 'top -m io' output. PRkern/156218 Reported by: Marcus

Re: svn commit: r226554 - head/sys/boot/common

2011-10-20 Thread Pawel Jakub Dawidek
On Thu, Oct 20, 2011 at 10:06:35AM +0300, Andriy Gapon wrote: on 20/10/2011 02:48 Pawel Jakub Dawidek said the following: Author: pjd Date: Wed Oct 19 23:48:15 2011 New Revision: 226554 URL: http://svn.freebsd.org/changeset/base/226554 Log: Fix missing return when

Re: svn commit: r226552 - head/sys/boot/zfs

2011-10-20 Thread Pawel Jakub Dawidek
and it fixes all my problems. Please, wait no longer and commit your patch! We have to have this in 9.0. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http

svn commit: r226568 - in head/sys: boot/zfs cddl/boot/zfs

2011-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 20 15:42:38 2011 New Revision: 226568 URL: http://svn.freebsd.org/changeset/base/226568 Log: - Correctly read gang header from raidz. - Decompress assembled gang block data if compressed. - Verify checksum of a gang header. - Verify checksum of assembled gang

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

2011-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 20 15:46:54 2011 New Revision: 226569 URL: http://svn.freebsd.org/changeset/base/226569 Log: With LOADER_MBR_SUPPORT defined and LOADER_GPT_SUPPORT undefined we would never call disk_openmbr(). Submitted by: avg MFC after:3 days Modified:

svn commit: r226583 - head/cddl/contrib/opensolaris/cmd/zpool

2011-10-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Oct 20 21:01:50 2011 New Revision: 226583 URL: http://svn.freebsd.org/changeset/base/226583 Log: Make all the lines align properly. MFC after:3 days Modified: head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c Modified:

svn commit: r226549 - head/sys/cddl/boot/zfs

2011-10-19 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 19 23:31:50 2011 New Revision: 226549 URL: http://svn.freebsd.org/changeset/base/226549 Log: Remove redundant size calculation. MFC after:3 days Modified: head/sys/cddl/boot/zfs/zfssubr.c Modified: head/sys/cddl/boot/zfs/zfssubr.c

svn commit: r226550 - head/sys/cddl/boot/zfs

2011-10-19 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 19 23:33:48 2011 New Revision: 226550 URL: http://svn.freebsd.org/changeset/base/226550 Log: Initialize 'rc' properly before using it. This error could lead to infinite loop when data reconstruction was needed. MFC after:3 days Modified:

svn commit: r226551 - head/sys/boot/zfs

2011-10-19 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 19 23:37:30 2011 New Revision: 226551 URL: http://svn.freebsd.org/changeset/base/226551 Log: Don't mark vdev as healthy too soon, so we won't try to use invalid vdevs. MFC after:3 days Modified: head/sys/boot/zfs/zfsimpl.c Modified:

svn commit: r226552 - head/sys/boot/zfs

2011-10-19 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 19 23:40:37 2011 New Revision: 226552 URL: http://svn.freebsd.org/changeset/base/226552 Log: Never pass NULL block pointer when reading. This is neither expected nor handled by lower layers like vdev_raidz, which uses bp for checksum verification. This bug could

svn commit: r226553 - in head/sys: boot/zfs cddl/boot/zfs

2011-10-19 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 19 23:44:38 2011 New Revision: 226553 URL: http://svn.freebsd.org/changeset/base/226553 Log: Always pass data size for checksum verification function, as using physical block size declared in bp may not always be what we want. For example in case of gang block

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

2011-10-19 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Oct 19 23:48:15 2011 New Revision: 226554 URL: http://svn.freebsd.org/changeset/base/226554 Log: Fix missing return when LOADER_GPT_SUPPORT is defined, but LOADER_MBR_SUPPORT is not. MFC after:3 days Modified: head/sys/boot/common/disk.c Modified:

svn commit: r226461 - head/sbin/hastd

2011-10-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 17 09:54:07 2011 New Revision: 226461 URL: http://svn.freebsd.org/changeset/base/226461 Log: When path to the configuration file is relative, obtain full path, so we can always find the file, even after daemonizing and changing working directory to /. MFC

svn commit: r226462 - head/sbin/hastd

2011-10-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 17 09:59:04 2011 New Revision: 226462 URL: http://svn.freebsd.org/changeset/base/226462 Log: Remove redundant space. MFC after:1 week Modified: head/sbin/hastd/hast.h Modified: head/sbin/hastd/hast.h

svn commit: r226463 - head/sbin/hastd

2011-10-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Oct 17 12:22:09 2011 New Revision: 226463 URL: http://svn.freebsd.org/changeset/base/226463 Log: Allow to specify pidfile in HAST configuration file. MFC after:1 week Modified: head/sbin/hastd/hast.conf.5 head/sbin/hastd/hast.h head/sbin/hastd/hastd.c

Re: svn commit: r226398 - head/sys/dev/iicbus

2011-10-16 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 pgplBXvSPA2Ir.pgp Description: PGP signature

Re: svn commit: r226398 - head/sys/dev/iicbus

2011-10-16 Thread Pawel Jakub Dawidek
*/ + usrbufs = malloc(sizeof(void *) * d-nmsgs, M_TEMP, M_ZERO | M_WAITOK); for (i = 0; i d-nmsgs; i++) { m = ((struct iic_msg *)buf)[i]; usrbufs[i] = m-buf; -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD

svn commit: r226450 - head/lib/libutil

2011-10-16 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 16 21:30:15 2011 New Revision: 226450 URL: http://svn.freebsd.org/changeset/base/226450 Log: In pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet) and the caller requested other process' PID by passing non-NULL pidptr argument, we will wait

svn commit: r225830 - head/sbin/hastd

2011-09-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Sep 28 13:08:51 2011 New Revision: 225830 URL: http://svn.freebsd.org/changeset/base/225830 Log: After every activemap change flush disk's write cache, so that write reordering won't make the actual write to be committed before marking the coresponding extent as dirty.

svn commit: r225831 - head/sbin/hastd

2011-09-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Sep 28 13:13:43 2011 New Revision: 225831 URL: http://svn.freebsd.org/changeset/base/225831 Log: Break a bit earlier. MFC after:3 days Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

svn commit: r225832 - head/sbin/hastd

2011-09-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Sep 28 13:19:47 2011 New Revision: 225832 URL: http://svn.freebsd.org/changeset/base/225832 Log: If the underlying provider doesn't support BIO_FLUSH, log it only once and don't bother trying in the future. MFC after:3 days Modified: head/sbin/hastd/hast.h

svn commit: r225835 - head/sbin/hastd

2011-09-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Sep 28 13:25:27 2011 New Revision: 225835 URL: http://svn.freebsd.org/changeset/base/225835 Log: Correct typo. MFC after:3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c

svn commit: r225773 - head/sbin/hastd

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 06:43:51 2011 New Revision: 225773 URL: http://svn.freebsd.org/changeset/base/225773 Log: Ensure that pjdlog functions don't modify errno. MFC after:3 days Modified: head/sbin/hastd/pjdlog.c Modified: head/sbin/hastd/pjdlog.c

svn commit: r225774 - svnadmin/conf

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 06:53:30 2011 New Revision: 225774 URL: http://svn.freebsd.org/changeset/base/225774 Log: Mikolaj needs no mentor anymore. Thanks to Kostik for the help with co-mentoring Mikolaj. Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors

svn commit: r225781 - head/sbin/hastd

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 07:52:39 2011 New Revision: 225781 URL: http://svn.freebsd.org/changeset/base/225781 Log: No need to use KEEP_ERRNO() macro around pjdlog functions, as they don't modify errno. MFC after:3 days Modified: head/sbin/hastd/proto_tcp.c

svn commit: r225782 - head/sbin/hastd

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 07:57:15 2011 New Revision: 225782 URL: http://svn.freebsd.org/changeset/base/225782 Log: Prefer PJDLOG_ASSERT() and PJDLOG_ABORT() over assert() and abort(). pjdlog versions will log problem to syslog when application is running in background. MFC after:

svn commit: r225783 - head/sbin/hastd

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 07:59:10 2011 New Revision: 225783 URL: http://svn.freebsd.org/changeset/base/225783 Log: Correct two mistakes when converting asserts to PJDLOG_ASSERT()/PJDLOG_ABORT(). MFC after:3 days Modified: head/sbin/hastd/primary.c Modified:

svn commit: r225784 - head/sbin/hastd

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 08:04:01 2011 New Revision: 225784 URL: http://svn.freebsd.org/changeset/base/225784 Log: - Convert some impossible conditions into assertions. - Add missing 'if' in comment. MFC after:3 days Modified: head/sbin/hastd/parse.y Modified:

svn commit: r225785 - head/sbin/hastctl

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 08:21:00 2011 New Revision: 225785 URL: http://svn.freebsd.org/changeset/base/225785 Log: Prefer PJDLOG_ASSERT()/PJDLOG_ABORT() over assert(). MFC after:3 days Modified: head/sbin/hastctl/hastctl.c Modified: head/sbin/hastctl/hastctl.c

svn commit: r225786 - head/sbin/hastd

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 08:26:09 2011 New Revision: 225786 URL: http://svn.freebsd.org/changeset/base/225786 Log: No need to wrap pjdlog functions around with KEEP_ERRNO() macro. MFC after:3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c

svn commit: r225787 - head/sbin/hastd

2011-09-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Sep 27 08:50:37 2011 New Revision: 225787 URL: http://svn.freebsd.org/changeset/base/225787 Log: Use PJDLOG_ASSERT() and PJDLOG_ABORT() everywhere instead of assert(). MFC after:3 days Modified: head/sbin/hastd/activemap.c head/sbin/hastd/ebuf.c

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

2011-08-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Aug 24 22:07:38 2011 New Revision: 225153 URL: http://svn.freebsd.org/changeset/base/225153 Log: We need to unlock and destroy vnode attached to znode which we are freeing. Reviewed by: kib Approved by: re (bz) MFC after:1 week Modified:

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

2011-08-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Aug 23 07:00:51 2011 New Revision: 225100 URL: http://svn.freebsd.org/changeset/base/225100 Log: MFC r224791: Eliminate the zfsdev_state_lock entirely and replace it with the spa_namespace_lock. This fixes LOR between the spa_namespace_lock and spa_config lock.

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

2011-08-12 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Aug 12 07:04:16 2011 New Revision: 224791 URL: http://svn.freebsd.org/changeset/base/224791 Log: Eliminate the zfsdev_state_lock entirely and replace it with the spa_namespace_lock. This fixes LOR between the spa_namespace_lock and spa_config lock. LOR can cause

svn commit: r224147 - head/sys/geom

2011-07-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Jul 17 20:35:30 2011 New Revision: 224147 URL: http://svn.freebsd.org/changeset/base/224147 Log: Add some spare fields to the g_class and g_geom structures needed to implement direct I/O handling and provider's property changes handling. Modified: head/sys/geom/geom.h

Re: svn commit: r198351 - head/share/zoneinfo

2011-07-12 Thread Pawel Jakub Dawidek
for the offensive commit. When I compile HEAD on an older FreeBSD where system's tzsetup doesn't have -C option, installworld breaks. It tries to use system's tzsetup instead of building current one along with toolchain and using that. -- Pawel Jakub Dawidek http

svn commit: r223584 - head/sbin/hastd

2011-06-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 27 09:10:48 2011 New Revision: 223584 URL: http://svn.freebsd.org/changeset/base/223584 Log: Log a warning if we cannot sandbox using capsicum, but only under debug level 1. It would be too noisy to log it as a proper warning as CAPABILITIES are not compiled into

svn commit: r223585 - head/sbin/hastd

2011-06-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 27 09:14:25 2011 New Revision: 223585 URL: http://svn.freebsd.org/changeset/base/223585 Log: Compile capsicum support only if HAVE_CAPSICUM is defined. MFC after:3 days Modified: head/sbin/hastd/subr.c Modified: head/sbin/hastd/subr.c

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

2011-06-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Jun 27 09:15:41 2011 New Revision: 223586 URL: http://svn.freebsd.org/changeset/base/223586 Log: Compile hastd and hastctl with capsicum support. X-MFC after: capsicum merge Modified: head/sbin/hastctl/Makefile head/sbin/hastd/Makefile Modified:

svn commit: r223278 - head/sbin/ddb

2011-06-18 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Jun 18 22:32:55 2011 New Revision: 223278 URL: http://svn.freebsd.org/changeset/base/223278 Log: Correct subcommand name 'unset' - 'unscript'. Modified: head/sbin/ddb/ddb.8 Modified: head/sbin/ddb/ddb.8

Re: svn commit: r223089 - in head: sys/cam/ata sys/cam/scsi sys/geom sys/sys usr.sbin/diskinfo

2011-06-15 Thread Pawel Jakub Dawidek
accordingly. The patch also implements ZFS bits to detect vdev size changes and eventually autoexpand the pool. Could you look at the patch and see how we could add property changes to your API? -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer

Re: svn commit: r222980 - in head/sys: amd64/conf i386/conf

2011-06-11 Thread Pawel Jakub Dawidek
and load everything from modules. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgphfvHb6PDdH.pgp Description: PGP signature

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

2011-06-09 Thread Pawel Jakub Dawidek
LAN. In the future it would be nice if you could send patches for review before you commit them with 3 days MFC time. HAST is actively maintained. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil

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

2011-05-31 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue May 31 07:02:49 2011 New Revision: 222518 URL: http://svn.freebsd.org/changeset/base/222518 Log: Imagine situation where a security problem is found in setuid binary. User upgrades his system to fix the problem, but if he has any ZFS snapshots for the file system which

Re: svn commit: r222465 - in head/usr.sbin: jail jls

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

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

2011-05-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri May 27 08:34:31 2011 New Revision: 222343 URL: http://svn.freebsd.org/changeset/base/222343 Log: Silence warnings about unsupoorted value types. MFC after:2 weeks Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_sysevent.c Modified:

svn commit: r222267 - in head/sys/cddl: compat/opensolaris/kern compat/opensolaris/sys contrib/opensolaris/uts/common/fs/zfs contrib/opensolaris/uts/common/fs/zfs/sys

2011-05-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue May 24 20:07:15 2011 New Revision: 67 URL: http://svn.freebsd.org/changeset/base/67 Log: Don't access task structure once we call task function. The task structure might be no longer available. This also allows to eliminates the need for two tasks in the zio

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

2011-05-24 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue May 24 20:10:12 2011 New Revision: 68 URL: http://svn.freebsd.org/changeset/base/68 Log: Don't pass pointer to name buffer which is on the stack to another thread, because the stack might be paged out once the other thread tries to use the data. Instead, just

svn commit: r222224 - head/sbin/hastd

2011-05-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon May 23 20:59:50 2011 New Revision: 24 URL: http://svn.freebsd.org/changeset/base/24 Log: To handle BIO_FLUSH and BIO_DELETE requests in secondary worker we need to use ioctl(2). This is why we can't use capsicum for now to sandbox secondary. Capsicum is still

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

2011-05-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon May 23 21:00:37 2011 New Revision: 25 URL: http://svn.freebsd.org/changeset/base/25 Log: Recognize BIO_FLUSH requests and pass them to userland. MFC after:1 week Modified: head/sys/geom/gate/g_gate.c Modified: head/sys/geom/gate/g_gate.c

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

2011-05-23 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon May 23 21:15:19 2011 New Revision: 28 URL: http://svn.freebsd.org/changeset/base/28 Log: Keep statistics on number of BIO_READ, BIO_WRITE, BIO_DELETE and BIO_FLUSH requests as well as number of activemap updates. Number of BIO_WRITEs and activemap updates

svn commit: r222164 - head/sbin/hastd

2011-05-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat May 21 20:21:20 2011 New Revision: 222164 URL: http://svn.freebsd.org/changeset/base/222164 Log: Recognize HIO_FLUSH requests. MFC after:1 week Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

svn commit: r222115 - head/sbin/hastd

2011-05-20 Thread Pawel Jakub Dawidek
added) +++ head/sbin/hastd/proto_tcp.c Fri May 20 11:06:17 2011(r222115, copy of r222085, head/sbin/hastd/proto_tcp4.c) @@ -0,0 +1,597 @@ +/*- + * Copyright (c) 2009-2010 The FreeBSD Foundation + * All rights reserved. + * + * This software was developed by Pawel Jakub Dawidek under

svn commit: r222116 - head/sbin/hastd

2011-05-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri May 20 11:09:02 2011 New Revision: 222116 URL: http://svn.freebsd.org/changeset/base/222116 Log: Rename tcp4 to tcp in preparation for IPv6 support. MFC after:3 weeks Modified: head/sbin/hastd/Makefile head/sbin/hastd/proto_tcp.c Modified:

svn commit: r222117 - head/sbin/hastd

2011-05-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri May 20 11:10:39 2011 New Revision: 222117 URL: http://svn.freebsd.org/changeset/base/222117 Log: Allow [ ] characters in strings. They might be used in IPv6 addresses. MFC after:3 weeks Modified: head/sbin/hastd/token.l Modified: head/sbin/hastd/token.l

svn commit: r222118 - head/sbin/hastd

2011-05-20 Thread Pawel Jakub Dawidek
Foundation + * Copyright (c) 2011 Pawel Jakub Dawidek pa...@dawidek.net * All rights reserved. * * This software was developed by Pawel Jakub Dawidek under sponsorship from @@ -51,10 +52,10 @@ __FBSDID($FreeBSD$); #include proto_impl.h #include subr.h -#defineTCP_CTX_MAGIC 0x7c441c

svn commit: r222119 - head/sbin/hastd

2011-05-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri May 20 11:15:27 2011 New Revision: 222119 URL: http://svn.freebsd.org/changeset/base/222119 Log: Rename ipv4/ipv6 to tcp4/tcp6. MFC after:3 weeks Modified: head/sbin/hastd/hast.h head/sbin/hastd/parse.y Modified: head/sbin/hastd/hast.h

svn commit: r222120 - head/sbin/hastd

2011-05-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri May 20 11:16:25 2011 New Revision: 222120 URL: http://svn.freebsd.org/changeset/base/222120 Log: If no listen address is specified, bind by default to: tcp4://0.0.0.0:8457 tcp6://[::]:8457 MFC after:3 weeks Modified: head/sbin/hastd/parse.y

svn commit: r222121 - head/sbin/hastd

2011-05-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri May 20 11:21:39 2011 New Revision: 222121 URL: http://svn.freebsd.org/changeset/base/222121 Log: Document IPv6 support. MFC after:3 weeks Modified: head/sbin/hastd/hast.conf.5 Modified: head/sbin/hastd/hast.conf.5

svn commit: r222108 - head/sbin/hastd

2011-05-19 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu May 19 23:18:42 2011 New Revision: 222108 URL: http://svn.freebsd.org/changeset/base/222108 Log: In preparation for IPv6 support allow to specify multiple addresses to listen on. MFC after:3 weeks Modified: head/sbin/hastd/hast.conf.5 head/sbin/hastd/hast.h

Re: svn commit: r222079 - head/usr.sbin/pc-sysinstall/backend

2011-05-18 Thread Pawel Jakub Dawidek
potential evil. If geom_mirror.ko is loaded it won't work, as gmirror keeps its components open for writing. But if this is GENERIC and geom_mirror.ko is not loaded, you should be fine. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer

Re: svn commit: r222084 - head/contrib/gperf/src

2011-05-18 Thread Pawel Jakub Dawidek
that it fixes the warning. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com pgpqtfHcv0ouD.pgp Description: PGP signature

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