Re: CVS commit: src

2011-11-22 Thread Adam Hamsik

On Nov,Tuesday 22 2011, at 10:22 PM, Aleksey Cheusov wrote:

 Module Name:  src
 Committed By: cheusov
 Date: Tue Nov 22 20:22:10 UTC 2011
 
 Modified Files:
   src/distrib/sets/lists/tests: mi
   src/tests/util/awk: Makefile t_awk.sh
 Added Files:
   src/tests/util/awk: d_assign_NF.awk d_assign_NF.in d_assign_NF.out
 
 Log Message:
 Regression tests for awk(1) (PR 44063)

Can you please explain why are you adding non atfied tests to tree. There are 
many devs how are trying to convert whole src/tests dir to atf and you are just 
adding more work to them.


Regards

Adam.



Re: CVS commit: src/sys/kern

2011-10-02 Thread Adam Hamsik

On Oct,Sunday 2 2011, at 3:00 PM, Juergen Hannken-Illjes wrote:

 Module Name:  src
 Committed By: hannken
 Date: Sun Oct  2 13:00:07 UTC 2011
 
 Modified Files:
   src/sys/kern: vfs_vnode.c
 
 Log Message:
 The path getnewvnode()-getcleanvnode()-vclean()-VOP_LOCK() will panic
 if the vnode we want to clean is a layered vnode and the caller already
 locked its lower vnode.
 
 Change getnewvnode() to always allocate a fresh vnode and add a helper
 thread (vdrain) to keep the number of allocated vnodes within desiredvnodes.
 
 Rename getcleanvnode() to cleanvnode() and let it take a vnode from the
 lists, clean and free it.

Thanks for doing this. This should help zfs too I saw couple of 
panics with zfs which were caused by this.

Have you done any benchmarks ? when I proposed solution like this 
main objection was then before vnodes were not allocated from storage
pool every time(sometime we reused already allocated one). And this may
affect performance.

 
 Reviewed by: David Holland dholl...@netbsd.org
 
 Should fix:
 PR #19110 (nullfs mounts over NFS cause lock manager problems)
 PR #34102 (ffs panic in NetBSD 3.0_STABLE)
 PR #45115 (lock error panic when build.sh*3 and daily script is running)
 PR #45355 (Reader/writer lock error:  rw_vector_enter: locking against myself)
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.11 -r1.12 src/sys/kern/vfs_vnode.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 
 Modified files:
 
 Index: src/sys/kern/vfs_vnode.c
 diff -u src/sys/kern/vfs_vnode.c:1.11 src/sys/kern/vfs_vnode.c:1.12
 --- src/sys/kern/vfs_vnode.c:1.11 Thu Sep 29 20:51:38 2011
 +++ src/sys/kern/vfs_vnode.c  Sun Oct  2 13:00:06 2011
 @@ -1,4 +1,4 @@
 -/*   $NetBSD: vfs_vnode.c,v 1.11 2011/09/29 20:51:38 christos Exp $  */
 +/*   $NetBSD: vfs_vnode.c,v 1.12 2011/10/02 13:00:06 hannken Exp $   */
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
 @@ -76,7 +76,6 @@
  *starts in one of the following ways:
  *
  *- Allocation, via getnewvnode(9) and/or vnalloc(9).
 - *   - Recycle from a free list, via getnewvnode(9) - getcleanvnode(9).
  *- Reclamation of inactive vnode, via vget(9).
  *
  *The life-cycle ends when the last reference is dropped, usually
 @@ -121,7 +120,7 @@
  */
 
 #include sys/cdefs.h
 -__KERNEL_RCSID(0, $NetBSD: vfs_vnode.c,v 1.11 2011/09/29 20:51:38 christos 
 Exp $);
 +__KERNEL_RCSID(0, $NetBSD: vfs_vnode.c,v 1.12 2011/10/02 13:00:06 hannken 
 Exp $);
 
 #include sys/param.h
 #include sys/kernel.h
 @@ -159,8 +158,10 @@ static kcondvar_tvrele_cv
 __cacheline_
 static lwp_t *vrele_lwp   __cacheline_aligned;
 static intvrele_pending   __cacheline_aligned;
 static intvrele_gen   __cacheline_aligned;
 +static kcondvar_tvdrain_cv   __cacheline_aligned;
 
 -static vnode_t * getcleanvnode(void);
 +static int   cleanvnode(void);
 +static void  vdrain_thread(void *);
 static void   vrele_thread(void *);
 static void   vnpanic(vnode_t *, const char *, ...)
 __attribute__((__format__(__printf__, 2, 3)));
 @@ -183,7 +184,11 @@ vfs_vnode_sysinit(void)
   TAILQ_INIT(vrele_list);
 
   mutex_init(vrele_lock, MUTEX_DEFAULT, IPL_NONE);
 + cv_init(vdrain_cv, vdrain);
   cv_init(vrele_cv, vrele);
 + error = kthread_create(PRI_VM, KTHREAD_MPSAFE, NULL, vdrain_thread,
 + NULL, NULL, vdrain);
 + KASSERT(error == 0);
   error = kthread_create(PRI_VM, KTHREAD_MPSAFE, NULL, vrele_thread,
   NULL, vrele_lwp, vrele);
   KASSERT(error == 0);
 @@ -249,13 +254,12 @@ vnfree(vnode_t *vp)
 }
 
 /*
 - * getcleanvnode: grab a vnode from freelist and clean it.
 + * cleanvnode: grab a vnode from freelist, clean and free it.
  *
  * = Releases vnode_free_list_lock.
 - * = Returns referenced vnode on success.
  */
 -static vnode_t *
 -getcleanvnode(void)
 +static int
 +cleanvnode(void)
 {
   vnode_t *vp;
   vnodelst_t *listhd;
 @@ -288,7 +292,7 @@ try_nextlist:
   goto try_nextlist;
   }
   mutex_exit(vnode_free_list_lock);
 - return NULL;
 + return EBUSY;
   }
 
   /* Remove it from the freelist. */
 @@ -300,7 +304,7 @@ try_nextlist:
 
   /*
* The vnode is still associated with a file system, so we must
 -  * clean it out before reusing it.  We need to add a reference
 +  * clean it out before freeing it.  We need to add a reference
* before doing this.  If the vnode gains another reference while
* being cleaned out then we lose - retry.
*/
 @@ -308,15 +312,7 @@ try_nextlist:
   vclean(vp, DOCLOSE);
   KASSERT(vp-v_usecount = 1 + VC_XLOCK);
   atomic_add_int(vp-v_usecount, -VC_XLOCK);
 - if (vp-v_usecount == 1) {
 - /* We're about to dirty it. */
 -

Re: CVS commit: src/sys/arch/amd64/conf

2011-08-08 Thread Adam Hamsik

On Aug,Monday 8 2011, at 6:13 PM, Jonathan A. Kollasch wrote:

 Module Name:  src
 Committed By: jakllsch
 Date: Mon Aug  8 16:13:42 UTC 2011
 
 Modified Files:
   src/sys/arch/amd64/conf: GENERIC INSTALL
 
 Log Message:
 Finish reverting premature modularization of amd64 kernels.

I object against this change please revert it.

 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.328 -r1.329 src/sys/arch/amd64/conf/GENERIC
 cvs rdiff -u -r1.86 -r1.87 src/sys/arch/amd64/conf/INSTALL
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 
 Modified files:
 
 Index: src/sys/arch/amd64/conf/GENERIC
 diff -u src/sys/arch/amd64/conf/GENERIC:1.328 
 src/sys/arch/amd64/conf/GENERIC:1.329
 --- src/sys/arch/amd64/conf/GENERIC:1.328 Sat Jul 30 18:41:34 2011
 +++ src/sys/arch/amd64/conf/GENERIC   Mon Aug  8 16:13:42 2011
 @@ -1,4 +1,4 @@
 -# $NetBSD: GENERIC,v 1.328 2011/07/30 18:41:34 jmcneill Exp $
 +# $NetBSD: GENERIC,v 1.329 2011/08/08 16:13:42 jakllsch Exp $
 #
 # GENERIC machine description file
 #
 @@ -22,15 +22,10 @@
 
 options   INCLUDE_CONFIG_FILE # embed config file in kernel binary
 
 -#ident   GENERIC-$Revision: 1.328 $
 +#ident   GENERIC-$Revision: 1.329 $
 
 maxusers  64  # estimated number of users
 
 -# Common binary formats are statically compiled in by default.
 -options  EXEC_ELF32  # exec ELF 32-bits binaries
 -#no options  EXEC_ELF64  # exec ELF 64-bits binaries
 -#no options  EXEC_SCRIPT # exec #! scripts
 -
 # delay between rebooting ... message and hardware reset, in milliseconds
 #options  CPURESET_DELAY=2000
 
 @@ -70,8 +65,6 @@
 options   SYSVSEM # System V-like semaphores
 options   SYSVSHM # System V-like memory sharing
 #options  P1003_1B_SEMAPHORE  # p1003.1b semaphore support
 -no options   AIO # POSIX asynchronous I/O, built as a module(7)
 -no options   MQUEUE  # POSIX messsage queues, built as a module(7)
 
 options   MODULAR # new style module(7) framework
 options   USERCONF# userconf(4) support
 @@ -124,8 +117,9 @@
 
 options   COMPAT_OSSAUDIO
 options   COMPAT_NETBSD32
 -#options COMPAT_LINUX
 -#options COMPAT_LINUX32  # req. COMPAT_LINUX and COMPAT_NETBSD32
 +options  COMPAT_LINUX
 +options  COMPAT_LINUX32  # req. COMPAT_LINUX and COMPAT_NETBSD32
 +options  EXEC_ELF32
 options   COMPAT_BSDPTY   # /dev/[pt]ty?? ptys.
 
 # Wedge support
 @@ -139,23 +133,22 @@
 file-system   MFS # memory file system
 file-system   NFS # Network File System client
 file-system   TMPFS   # Efficient memory file-system
 -# File systems, built as module(7)s by default
 -#file-system EXT2FS  # second extended file system (linux)
 -#file-system LFS # log-structured file system
 -#file-system NTFS# Windows/NT file system (experimental)
 -#file-system CD9660  # ISO 9660 + Rock Ridge file system
 -#file-system MSDOSFS # MS-DOS file system
 -#file-system FDESC   # /dev/fd
 -#file-system KERNFS  # /kern
 -#file-system NULLFS  # loopback file system
 -#file-system OVERLAY # overlay file system
 -#file-system PROCFS  # /proc
 -#file-system PUFFS   # Userspace file systems (e.g. ntfs-3g  sshfs)
 -#file-system SMBFS   # experimental - CIFS; also needs nsmb (below)
 -#file-system UMAPFS  # NULLFS + uid and gid remapping
 -#file-system UNION   # union file system
 -#file-system CODA# Coda File System; also needs vcoda (below)
 -#file-system PTYFS   # /dev/ptm support
 +file-system  EXT2FS  # second extended file system (linux)
 +file-system  LFS # log-structured file system
 +file-system  NTFS# Windows/NT file system (experimental)
 +file-system  CD9660  # ISO 9660 + Rock Ridge file system
 +file-system  MSDOSFS # MS-DOS file system
 +file-system  FDESC   # /dev/fd
 +file-system  KERNFS  # /kern
 +file-system  NULLFS  # loopback file system
 +file-system  OVERLAY # overlay file system
 +file-system  PROCFS  # /proc
 +file-system  PUFFS   # Userspace file systems (e.g. ntfs-3g  sshfs)
 +file-system  SMBFS   # experimental - CIFS; also needs nsmb (below)
 +file-system  UMAPFS  # NULLFS + uid and gid remapping
 +file-system  UNION   # union file system
 +file-system  CODA# Coda File System; also needs vcoda (below)
 +file-system  PTYFS   # /dev/ptm support
 #file-system  UDF # experimental - OSTA UDF CD/DVD file-system
 #file-system  HFS # experimental - Apple HFS+ (read-only)
 #file-system  NILFS   # experimental - NTT's NiLFS(2)
 @@ -1157,9 +1150,9 @@
 pseudo-device agr # IEEE 802.3ad link aggregation
 

Re: CVS commit: src/crypto/external/bsd/netpgp/dist

2011-07-21 Thread Adam Hamsik

On Jul,Thursday 21 2011, at 8:15 PM, Martin Husemann wrote:

 On Thu, Jul 21, 2011 at 10:45:55AM -0700, Jeff Rizzo wrote:
 I believe this is a general gdb complaint, not specific to atf.  I've 
 run into this issue as well - there are some workarounds (threaded 
 debugging works somewhat on core dumps), but it's a giant pain given 
 than one of the key components of many tests (rump) is threaded...
 
 Yes, exactly - we *realy* need a fixed gdb.


I think that it's a great candidate for next funded development project.

Regards

Adam.



Re: CVS commit: src/tests/lib/libc/stdlib

2011-06-04 Thread Adam Hamsik

On Jun,Sunday 5 2011, at 12:58 AM, Jukka Ruohonen wrote:

 On Sat, Jun 04, 2011 at 10:49:49PM +, Adam Hamsik wrote:
 Module Name: src
 Committed By:haad
 Date:Sat Jun  4 22:49:49 UTC 2011
 
 Modified Files:
  src/tests/lib/libc/stdlib: t_strtol.c
 
 Log Message:
 Fix problem with overflowing constant definition
 
 t_strtol.c:95: warning: overflow in implicit constant conversion
 
 Can you note the architecture and explain the overflow so that I can
 learn something?

Architecture i386 - PAE,

#   compile  kern/strtoull.o
/usr/devel/buildslave/obj/i386/tooldir/bin/i486--netbsdelf-gcc -O2 -Wall -Os 
-ffreestanding -std=gnu99 -Werror  -march=i386 -mtune=i386  
--sysroot=/usr/devel/buildslave/obj/i386/destdir.i386 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/arch/i386
 --sysroot=/usr/devel/buildslave/obj/i386/destdir.i386 -DSLOW -DSUPPORT_BOOTP 
-DSUPPORT_DHCP -DSUPPORT_TFTP -DBOOTROM -DRELOC=0x9 -nostdinc 
-I/usr/devel/buildslave/obj/i386/sys/arch/i386/stand/netboot/3c509 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../..
 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../arch/i386/stand/lib
 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libsa
 -D_STANDALONE 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/../../../common/lib/libc/quad
 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/../../../common/lib/libc/string
 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/../../../common/lib/libc/arch/i386/string
  
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/../../../common/lib/libc/quad
 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/../../../common/lib/libc/string
 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/../../../common/lib/libc/arch/i386/string
 
-I/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/../../../common/include
  -c
/usr/devel/buildslave/full/build/sys/arch/i386/stand/netboot/3c509/../../../../../lib/libkern/../../../common/lib/libc/stdlib/strtoull.c
 -o strtoull.o
--- dependall-tests ---
cc1: warnings being treated as errors
/usr/devel/buildslave/full/build/tests/lib/libc/stdlib/t_strtol.c: In function 
'atfu_strtol_base_body':
/usr/devel/buildslave/full/build/tests/lib/libc/stdlib/t_strtol.c:95: warning: 
overflow in implicit constant conversion
/usr/devel/buildslave/full/build/tests/lib/libc/stdlib/t_strtol.c:96: warning: 
overflow in implicit constant conversion
*** [t_strtol.o] Error code 1
nbmake: stopped in /usr/devel/buildslave/full/build/tests/lib/libc/stdlib
1 error
nbmake: stopped in /usr/devel/buildslave/full/build/tests/lib/libc/stdlib

Please revert/fix my commit if I did it wrong. But I can compile -current with 
it.

Regards

Adam.



Re: CVS commit: src/distrib/sets/lists

2011-05-30 Thread Adam Hamsik

On May,Monday 30 2011, at 4:10 AM, Christos Zoulas wrote:

 Module Name:  src
 Committed By: christos
 Date: Mon May 30 02:10:26 UTC 2011
 
 Modified Files:
   src/distrib/sets/lists/base: ad.mips64eb
   src/distrib/sets/lists/comp: ad.mips64eb ad.mips64el md.amd64
   md.sparc64 mi shl.mi
   src/distrib/sets/lists/tests: shl.mi
 
 Log Message:
 fix a lot of different issues (doesn't anyone build anymore)
 - libdns had the wrong version

libdns was minor bumped after last bind update you should mark old entries 
obsolete
and add new ones. Same should be done for all 64 archs.

 - zfs attributes missing
 - missing debug libs
 - typos in library names
 - typos in library versions
 - _g libraries missing for new .so files (since we don't install .a files
  we should not be installing _g.a files either, why are we?)
 Hopefully this will fix the sparc64 build.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.50 -r1.51 src/distrib/sets/lists/base/ad.mips64eb
 cvs rdiff -u -r1.32 -r1.33 src/distrib/sets/lists/comp/ad.mips64eb \
src/distrib/sets/lists/comp/ad.mips64el
 cvs rdiff -u -r1.115 -r1.116 src/distrib/sets/lists/comp/md.amd64
 cvs rdiff -u -r1.99 -r1.100 src/distrib/sets/lists/comp/md.sparc64
 cvs rdiff -u -r1.1625 -r1.1626 src/distrib/sets/lists/comp/mi
 cvs rdiff -u -r1.172 -r1.173 src/distrib/sets/lists/comp/shl.mi
 cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/lists/tests/shl.mi
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 
 Modified files:
 
 Index: src/distrib/sets/lists/base/ad.mips64eb
 diff -u src/distrib/sets/lists/base/ad.mips64eb:1.50 
 src/distrib/sets/lists/base/ad.mips64eb:1.51
 --- src/distrib/sets/lists/base/ad.mips64eb:1.50  Sun May 29 11:17:08 2011
 +++ src/distrib/sets/lists/base/ad.mips64eb   Sun May 29 22:10:25 2011
 @@ -1,4 +1,4 @@
 -# $NetBSD: ad.mips64eb,v 1.50 2011/05/29 15:17:08 spz Exp $
 +# $NetBSD: ad.mips64eb,v 1.51 2011/05/30 02:10:25 christos Exp $
 ./libexec/ld.elf_so-64base-compat-shlib   
 compat,pic
 ./libexec/ld.elf_so-o32   base-sysutil-bin
 compat,pic
 ./usr/lib/64  base-compat-lib
 @@ -359,7 +359,7 @@
 ./usr/lib/o32/libdm.so.0  base-compat-shlib   
 compat,pic
 ./usr/lib/o32/libdm.so.0.0base-compat-shlib   
 compat,pic
 ./usr/lib/o32/libdns.so.5 base-compat-shlib   
 compat,pic
 -./usr/lib/o32/libdns.so.5.3  base-compat-shlib   
 compat,pic
 +./usr/lib/o32/libdns.so.5.4  base-compat-shlib   
 compat,pic
 ./usr/lib/o32/libdns_sd.so.0  base-compat-shlib   
 compat,pic,mdns
 ./usr/lib/o32/libdns_sd.so.0.0base-compat-shlib   
 compat,pic,mdns
 ./usr/lib/o32/libdwarf.so.0   base-compat-shlib   
 compat,pic
 
 Index: src/distrib/sets/lists/comp/ad.mips64eb
 diff -u src/distrib/sets/lists/comp/ad.mips64eb:1.32 
 src/distrib/sets/lists/comp/ad.mips64eb:1.33
 --- src/distrib/sets/lists/comp/ad.mips64eb:1.32  Thu May 12 21:56:27 2011
 +++ src/distrib/sets/lists/comp/ad.mips64eb   Sun May 29 22:10:25 2011
 @@ -1,4 +1,4 @@
 -# $NetBSD: ad.mips64eb,v 1.32 2011/05/13 01:56:27 christos Exp $
 +# $NetBSD: ad.mips64eb,v 1.33 2011/05/30 02:10:25 christos Exp $
 ./usr/bin/elf2aoutcomp-obsolete   obsolete
 ./usr/bin/elf2ecoff   comp-sysutil-bin
 ./usr/include/mipscomp-c-include
 @@ -1212,7 +1212,7 @@
 ./usr/libdata/debug/usr/lib/64/libdes.so.8.1.debug
 comp-crypto-debug   crypto,debug,compat
 ./usr/libdata/debug/usr/lib/64/libdevmapper.so.1.0.debug  comp-lvm-debug  
 lvm,debug,compat
 ./usr/libdata/debug/usr/lib/64/libdm.so.0.0.debug comp-sys-debug  
 debug,compat
 -./usr/libdata/debug/usr/lib/64/libdns.so.5.3.debug   comp-bind-debug 
 debug,compat
 +./usr/libdata/debug/usr/lib/64/libdns.so.5.4.debug   comp-bind-debug 
 debug,compat
 ./usr/libdata/debug/usr/lib/64/libdns_sd.so.0.0.debug comp-mdns-debug 
 mdns,debug,compat
 ./usr/libdata/debug/usr/lib/64/libdtrace.so.2.0.debug comp-sys-debug  
 dtrace,debug,compat
 ./usr/libdata/debug/usr/lib/64/libdwarf.so.0.0.debug  comp-sys-debug  
 debug,compat
 @@ -1234,7 +1234,7 @@
 ./usr/libdata/debug/usr/lib/64/libhx509.so.5.0.debug  comp-krb5-debug 
 kerberos,debug,compat
 ./usr/libdata/debug/usr/lib/64/libintl.so.1.0.debug   comp-sys-debug  
 debug,compat
 ./usr/libdata/debug/usr/lib/64/libipsec.so.3.0.debug  comp-net-debug  
 debug,compat
 -./usr/libdata/debug/usr/lib/64/libisc.so.5.3.debug   comp-bind-debug 
 debug,compat
 +./usr/libdata/debug/usr/lib/64/libisc.so.5.4.debug   comp-bind-debug 
 debug,compat
 ./usr/libdata/debug/usr/lib/64/libisccc.so.5.3.debug  comp-bind-debug 
 debug,compat
 

Re: CVS commit: src/distrib/sets/lists

2011-05-30 Thread Adam Hamsik

On May,Monday 30 2011, at 11:23 AM, Nicolas Joly wrote:

 On Mon, May 30, 2011 at 09:17:52AM +, Christos Zoulas wrote:
 In article 9fd1caa9-1c17-4198-a9cc-57f4de798...@gmail.com,
 Adam Hamsik  haa...@gmail.com wrote:
 
 libdns was minor bumped after last bind update you should mark old
 entries obsolete
 and add new ones. Same should be done for all 64 archs.
 
 I think that this is not true for shared libraries; this happens
 automatically now. Perhaps not for .debug libraries? If that's the
 case it should be fixed.
 
 I tweaked postinstall, quite some time ago, to handle debug libraries
 too. AFAIK, it works.

I was not aware of that, it might be a good idea to document this difference
in set lists file which is different. e.g. in shl.mi now.

Regards

Adam.



Re: CVS commit: src/distrib/sets/lists

2011-05-30 Thread Adam Hamsik

On May,Monday 30 2011, at 1:02 PM, Christos Zoulas wrote:

 On May 30, 12:52pm, haa...@gmail.com (Adam Hamsik) wrote:
 -- Subject: Re: CVS commit: src/distrib/sets/lists
 
 | 
 | On May,Monday 30 2011, at 11:23 AM, Nicolas Joly wrote:
 | 
 |  On Mon, May 30, 2011 at 09:17:52AM +, Christos Zoulas wrote:
 |  In article 9fd1caa9-1c17-4198-a9cc-57f4de798...@gmail.com,
 |  Adam Hamsik  haa...@gmail.com wrote:
 |  
 |  libdns was minor bumped after last bind update you should mark old
 |  entries obsolete
 |  and add new ones. Same should be done for all 64 archs.
 |  
 |  I think that this is not true for shared libraries; this happens
 |  automatically now. Perhaps not for .debug libraries? If that's the
 |  case it should be fixed.
 |  
 |  I tweaked postinstall, quite some time ago, to handle debug libraries
 |  too. AFAIK, it works.
 | 
 | I was not aware of that, it might be a good idea to document this difference
 | in set lists file which is different. e.g. in shl.mi now.
 
 I killed all the bogus entries there, to avoid cut-n-paste proliferation.

Thanks.

Regards

Adam.



Re: CVS commit: src/lib/libdm

2011-05-29 Thread Adam Hamsik

I forgot to say that this commit fixes PR 44947.

On May,Monday 30 2011, at 3:10 AM, Adam Hamsik wrote:

 Module Name:  src
 Committed By: haad
 Date: Mon May 30 01:10:58 UTC 2011
 
 Modified Files:
   src/lib/libdm: libdm_ioctl.c
 
 Log Message:
 Fix problem where DM_IOCTL_NAME was used in libdm_task_set_uuid except of
 DM_IOCTL_UUID. This makes lvremove to work properly.
 
 Thanks To hugo Silva and Toby Karyadi for reporting this issue.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/lib/libdm/libdm_ioctl.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 
 Modified files:
 
 Index: src/lib/libdm/libdm_ioctl.c
 diff -u src/lib/libdm/libdm_ioctl.c:1.1 src/lib/libdm/libdm_ioctl.c:1.2
 --- src/lib/libdm/libdm_ioctl.c:1.1   Tue Feb  8 03:20:15 2011
 +++ src/lib/libdm/libdm_ioctl.c   Mon May 30 01:10:57 2011
 @@ -262,7 +262,7 @@
   if ((prop_dictionary_set_cstring(libdm_task-ldm_task,
   DM_IOCTL_NAME, name)) == false)
   return ENOENT;
 -
 + 
   return 0;
 }
 
 @@ -285,7 +285,7 @@
 {
 
   if ((prop_dictionary_set_cstring(libdm_task-ldm_task,
 - DM_IOCTL_NAME, uuid)) == false)
 + DM_IOCTL_UUID, uuid)) == false)
   return ENOENT;
 
   return 0;
 

Regards

Adam.



Re: CVS commit: src/distrib/sets/lists/comp

2011-05-09 Thread Adam Hamsik

On May,Monday 9 2011, at 1:55 PM, Nicolas Joly wrote:

 Module Name:  src
 Committed By: njoly
 Date: Mon May  9 11:55:34 UTC 2011
 
 Modified Files:
   src/distrib/sets/lists/comp: mi
 
 Log Message:
 Small typo (perfuse.debug - perfused.debug).
 

I'm getting this error with sources updated couple of minutes ago 

===  24 extra files in DESTDIR  =
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
--
./usr/include/perfuse.h
./usr/lib/i386/libperfuse.a
./usr/lib/i386/libperfuse.so
./usr/lib/i386/libperfuse.so.0
./usr/lib/i386/libperfuse.so.0.0
./usr/lib/i386/libperfuse_p.a
./usr/lib/i386/libperfuse_pic.a
./usr/lib/libperfuse.a
./usr/lib/libperfuse.so
./usr/lib/libperfuse.so.0
./usr/lib/libperfuse.so.0.0
./usr/lib/libperfuse_p.a
./usr/lib/libperfuse_pic.a
./usr/libdata/debug/usr/lib/i386/libperfuse.so.0.0.debug
./usr/libdata/debug/usr/lib/libperfuse.so.0.0.debug
./usr/libdata/debug/usr/sbin/perfused.debug
./usr/libdata/lint/llib-lperfuse.ln
./usr/sbin/perfused
./usr/share/man/cat3/libperfuse.0
./usr/share/man/cat8/perfused.0
./usr/share/man/html3/libperfuse.html
./usr/share/man/html8/perfused.html
./usr/share/man/man3/libperfuse.3
./usr/share/man/man8/perfused.8
=  end of 24 extra files  ===

Regards

Adam.



Re: CVS commit: src/distrib/sets/lists

2011-05-09 Thread Adam Hamsik

Hmm I have already added MKPERFUSE so please revert mine commits or yours :).

On May,Monday 9 2011, at 7:13 PM, Emmanuel Dreyfus wrote:

 Module Name:  src
 Committed By: manu
 Date: Mon May  9 17:13:21 UTC 2011
 
 Modified Files:
   src/distrib/sets/lists/base: ad.mips64eb ad.mips64el md.amd64
   md.sparc64 mi shl.mi
   src/distrib/sets/lists/comp: ad.mips64eb ad.mips64el md.amd64
   md.sparc64 mi shl.mi
   src/distrib/sets/lists/man: mi
 
 Log Message:
 Attempt to fix build after perfuse addition (there is no MKPERFUSE)
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.47 -r1.48 src/distrib/sets/lists/base/ad.mips64eb
 cvs rdiff -u -r1.45 -r1.46 src/distrib/sets/lists/base/ad.mips64el
 cvs rdiff -u -r1.120 -r1.121 src/distrib/sets/lists/base/md.amd64
 cvs rdiff -u -r1.113 -r1.114 src/distrib/sets/lists/base/md.sparc64
 cvs rdiff -u -r1.937 -r1.938 src/distrib/sets/lists/base/mi
 cvs rdiff -u -r1.582 -r1.583 src/distrib/sets/lists/base/shl.mi
 cvs rdiff -u -r1.30 -r1.31 src/distrib/sets/lists/comp/ad.mips64eb \
src/distrib/sets/lists/comp/ad.mips64el
 cvs rdiff -u -r1.112 -r1.113 src/distrib/sets/lists/comp/md.amd64
 cvs rdiff -u -r1.95 -r1.96 src/distrib/sets/lists/comp/md.sparc64
 cvs rdiff -u -r1.1622 -r1.1623 src/distrib/sets/lists/comp/mi
 cvs rdiff -u -r1.169 -r1.170 src/distrib/sets/lists/comp/shl.mi
 cvs rdiff -u -r1.1315 -r1.1316 src/distrib/sets/lists/man/mi
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 
 Modified files:
 
 Index: src/distrib/sets/lists/base/ad.mips64eb
 diff -u src/distrib/sets/lists/base/ad.mips64eb:1.47 
 src/distrib/sets/lists/base/ad.mips64eb:1.48
 --- src/distrib/sets/lists/base/ad.mips64eb:1.47  Mon May  9 08:51:08 2011
 +++ src/distrib/sets/lists/base/ad.mips64eb   Mon May  9 17:13:19 2011
 @@ -1,4 +1,4 @@
 -# $NetBSD: ad.mips64eb,v 1.47 2011/05/09 08:51:08 manu Exp $
 +# $NetBSD: ad.mips64eb,v 1.48 2011/05/09 17:13:19 manu Exp $
 ./libexec/ld.elf_so-64base-compat-shlib   
 compat,pic
 ./libexec/ld.elf_so-o32   base-sysutil-bin
 compat,pic
 ./usr/lib/64  base-compat-lib
 @@ -179,8 +179,8 @@
 ./usr/lib/64/libpcap.so.4.0   base-compat-shlib   
 compat,pic
 ./usr/lib/64/libpci.so.2  base-compat-shlib   
 compat,pic
 ./usr/lib/64/libpci.so.2.0base-compat-shlib   
 compat,pic
 -./usr/lib/64/libperfuse.so.0 base-compat-shlib   
 compat,pic,perfuse
 -./usr/lib/64/libperfuse.so.0.0   base-compat-shlib   
 compat,pic,perfuse
 +./usr/lib/64/libperfuse.so.0 base-compat-shlib   
 compat,pic
 +./usr/lib/64/libperfuse.so.0.0   base-compat-shlib   
 compat,pic
 ./usr/lib/64/libposix.so.0base-compat-shlib   
 compat,pic
 ./usr/lib/64/libposix.so.0.1  base-compat-shlib   
 compat,pic
 ./usr/lib/64/libprop.so.1 base-compat-shlib   
 compat,pic
 @@ -456,8 +456,8 @@
 ./usr/lib/o32/libpcap.so.4.0  base-compat-shlib   
 compat,pic
 ./usr/lib/o32/libpci.so.2 base-compat-shlib   
 compat,pic
 ./usr/lib/o32/libpci.so.2.0   base-compat-shlib   
 compat,pic
 -./usr/lib/o32/libperfuse.so.0base-compat-shlib   
 compat,pic,perfuse
 -./usr/lib/o32/libperfuse.so.0.0  base-compat-shlib   
 compat,pic,perfuse
 +./usr/lib/o32/libperfuse.so.0base-compat-shlib   
 compat,pic
 +./usr/lib/o32/libperfuse.so.0.0  base-compat-shlib   
 compat,pic
 ./usr/lib/o32/libposix.so.0   base-compat-shlib   
 compat,pic
 ./usr/lib/o32/libposix.so.0.1 base-compat-shlib   
 compat,pic
 ./usr/lib/o32/libprop.so.1base-compat-shlib   
 compat,pic
 
 Index: src/distrib/sets/lists/base/ad.mips64el
 diff -u src/distrib/sets/lists/base/ad.mips64el:1.45 
 src/distrib/sets/lists/base/ad.mips64el:1.46
 --- src/distrib/sets/lists/base/ad.mips64el:1.45  Mon May  9 08:51:08 2011
 +++ src/distrib/sets/lists/base/ad.mips64el   Mon May  9 17:13:19 2011
 @@ -1,4 +1,4 @@
 -# $NetBSD: ad.mips64el,v 1.45 2011/05/09 08:51:08 manu Exp $
 +# $NetBSD: ad.mips64el,v 1.46 2011/05/09 17:13:19 manu Exp $
 ./libexec/ld.elf_so-64base-compat-shlib   
 compat,pic
 ./libexec/ld.elf_so-o32   base-sysutil-bin
 compat,pic
 ./usr/lib/64  base-compat-lib
 @@ -179,8 +179,8 @@
 ./usr/lib/64/libpcap.so.4.0   base-compat-shlib   
 compat,pic
 ./usr/lib/64/libpci.so.2  base-compat-shlib   
 compat,pic
 ./usr/lib/64/libpci.so.2.0   

Re: CVS commit: src/sys/arch/xen/xen

2011-04-18 Thread Adam Hamsik

On Apr,Monday 18 2011, at 10:26 AM, Mindaugas Rasiukevicius wrote:

 Cherry G. Mathew cherry.g.mat...@gmail.com wrote:
 On Mon, Apr 18, 2011 at 03:04:32AM +, Mindaugas Rasiukevicius
 wrote:
 Module Name:src
 Committed By:   rmind
 Date:   Mon Apr 18 03:04:31 UTC 2011
 
 Modified Files:
 src/sys/arch/xen/xen: balloon.c
 
 Log Message:
 balloon_xenbus_attach: use KM_SLEEP for allocation.
 
 Note: please do not use KM_NOSLEEP.
 
 And, according to yamt@, KM_SLEEP can fail in the current design...
 
 IIRC yamt@ fixed it a year or few ago.
 
 
 And in the more specific immediate context:
 http://mail-index.netbsd.org/port-xen/2011/04/07/msg006613.html
 
 
 
 Hi,
 
 PS: Can you please revert ? Unless it's breaking anything else, or you
 have a fix for the problem mentioned in the thread above, ie;
 
 Change is for balloon_xenbus_attach(), which is irrelevant to the issue
 described in that email.
 
 Are you aware that KM_NOSLEEP might fail not only because there is no
 memory (or KVA) available, though?

I had several problems with memory hungry zfs, where allocation failed just
because some lock in uvm was hold when KM_NOSLEEP allocation was issued. 
We should avoid of using KM_NOSLEEP whenever is it possible.

Regards

Adam.



Re: CVS commit: src/tests/fs

2011-03-11 Thread Adam Hamsik

On Mar,Thursday 10 2011, at 9:02 PM, Antti Kantee wrote:

 Module Name:  src
 Committed By: pooka
 Date: Thu Mar 10 20:02:27 UTC 2011
 
 Modified Files:
   src/tests/fs: Makefile
 Added Files:
   src/tests/fs/zfs: Makefile t_zpool.sh
 
 Log Message:
 Add one simple test case which checks that zpool create results in
 a mounted file system.  Then run away as quickly as possible.

Wow nice :) Thanks a lot I will have a look and try to see if we can add more 
tests.

Regards

Adam.



Re: CVS commit: src

2011-03-09 Thread Adam Hamsik

On Mar,Thursday 10 2011, at 1:10 AM, Joerg Sonnenberger wrote:

 Module Name:  src
 Committed By: joerg
 Date: Wed Mar  9 23:10:09 UTC 2011
 
 Modified Files:
   src/distrib/sets/lists/comp: mi
   src/distrib/sets/lists/tests: mi
   src/etc/mtree: NetBSD.dist.tests
   src/lib/libc: Makefile
   src/lib/libc/misc: initfini.c
   src/lib/libpthread: pthread.c pthread_int.h
   src/libexec/ld.elf_so: Makefile TODO headers.c map_object.c rtld.c
   rtld.h symbol.c
   src/rescue: list.ldd
   src/sys/sys: Makefile
   src/tests/lib/libc: Makefile
   src/usr.bin/ldd: Makefile.elf ldd.c
   src/usr.bin/ldd/elf32: Makefile
   src/usr.bin/ldd/elf64: Makefile
 Added Files:
   src/lib/libc/tls: Makefile.inc tls.c
   src/libexec/ld.elf_so: README.TLS tls.c
   src/sys/sys: tls.h
   src/tests/lib/libc/tls: Makefile t_tls_dlopen.c t_tls_dynamic.c
   t_tls_static.c t_tls_static_helper.c
   src/tests/lib/libc/tls/dso: Makefile h_tls_dlopen.c
   src/tests/lib/libc/tls_dso: Makefile h_tls_dynamic.c
 
 Log Message:
 Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
 _rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
 setup the thread private area of all new threads. ld.elf_so is
 responsible for setting up the private area for the initial thread.
 Similar functions are called from _libc_init for static binaries, using
 dl_iterate_phdr to access the ELF Program Header.
 
 Add test cases to exercise the different TLS storage models. Test cases
 are compiled and installed on all platforms, but are skipped on
 platforms not marked for TLS support.
 
 This material is based upon work partially supported by
 The NetBSD Foundation under a contract with Joerg Sonnenberger.
 
 It is inspired by the TLS support in FreeBSD by Doug Rabson and the
 clean ups of the DragonFly port of the original FreeBSD modifications.
 

Have you done any performance tests to see if it doesn't affect it ?

Regards

Adam.



Re: CVS commit: src/sys/arch/amd64/conf

2011-02-19 Thread Adam Hamsik

On Feb,Saturday 19 2011, at 11:27 AM, Bernd Ernesti wrote:

 On Wed, Feb 16, 2011 at 03:16:58AM +, Jean-Yves Migeon wrote:
 Module Name: src
 Committed By:jym
 Date:Wed Feb 16 03:16:58 UTC 2011
 
 Modified Files:
  src/sys/arch/amd64/conf: GENERIC INSTALL
 
 Log Message:
 Build certain file-systems and options(7) as module(7). 32 and 64 bits
 support are still builtin, as well as FFS, NFS, TMPFS, and most COMPAT
 code. Saves approx. 750kiB.
 
 Reflect this in INSTALL kernel, where we have to support more file systems
 statically.
 
 See http://mail-index.netbsd.org/port-amd64/2011/02/13/msg001318.html
 
 Are you going to add a MONOLITHIC kernel to match i386?

I object against such change so I hope that we are not going to repeat such 
move.

Regards

Adam.



Re: CVS commit: [matt-nb5-mips64] src/sys/kern

2011-02-08 Thread Adam Hamsik

On Feb,Tuesday 8 2011, at 10:56 PM, Cliff Neighbors wrote:

 Module Name:  src
 Committed By: cliff
 Date: Tue Feb  8 21:56:02 UTC 2011
 
 Modified Files:
   src/sys/kern [matt-nb5-mips64]: subr_autoconf.c
 
 Log Message:
 use mutex_obj_alloc() to allocate config_queues_lock and dc_funcs_lock
 instead of declaring them statically.

Should this be pulled to HEAD, if it fixes your problem.

Regards

Adam.



Re: CVS commit: [bouyer-quota2] src

2011-01-20 Thread Adam Hamsik

On Jan,Thursday 20 2011, at 3:25 PM, Manuel Bouyer wrote:

 Module Name:  src
 Committed By: bouyer
 Date: Thu Jan 20 14:25:05 UTC 2011
 
 Modified Files:
   src/distrib/sets/lists/comp [bouyer-quota2]: mi
   src/etc/mtree [bouyer-quota2]: NetBSD.dist.tests
   src/lib/libc/compat/arch/alpha/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/arm/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/hppa/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/i386/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/ia64/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/m68k/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/mips/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/powerpc/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/powerpc64/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/sh3/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/sparc/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/sparc64/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/vax/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/compat/arch/x86_64/sys [bouyer-quota2]: Makefile.inc
   src/lib/libc/sys [bouyer-quota2]: Makefile.inc
   src/lib/librumphijack [bouyer-quota2]: hijack.c
   src/sbin/fsck_ffs [bouyer-quota2]: Makefile dir.c extern.h fsck.h
   inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c setup.c
   utilities.c
   src/sbin/fsdb [bouyer-quota2]: Makefile
   src/sbin/newfs [bouyer-quota2]: Makefile extern.h mkfs.c newfs.8
   newfs.c
   src/sbin/tunefs [bouyer-quota2]: tunefs.8 tunefs.c
   src/sys/compat/netbsd32 [bouyer-quota2]: netbsd32_netbsd.c
   netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c
   netbsd32_sysent.c syscalls.master
   src/sys/conf [bouyer-quota2]: files
   src/sys/fs/unionfs [bouyer-quota2]: unionfs_vfsops.c
   src/sys/kern [bouyer-quota2]: init_sysent.c syscalls.c syscalls.master
   vfs_subr.c vfs_syscalls.c vnode_if.c
   src/sys/miscfs/genfs [bouyer-quota2]: layer_extern.h layer_vfsops.c
   src/sys/rump/fs/lib/libffs [bouyer-quota2]: Makefile
   src/sys/rump/include/rump [bouyer-quota2]: rump_syscalls.h
   rumpvnode_if.h
   src/sys/rump/librump/rumpkern [bouyer-quota2]: rump_syscalls.c
   src/sys/rump/librump/rumpvfs [bouyer-quota2]: rumpvnode_if.c
   src/sys/sys [bouyer-quota2]: Makefile mount.h syscall.h syscallargs.h
   vnode_if.h
   src/sys/ufs [bouyer-quota2]: files.ufs
   src/sys/ufs/ffs [bouyer-quota2]: ffs_alloc.c ffs_balloc.c ffs_bswap.c
   ffs_extern.h ffs_inode.c ffs_subr.c ffs_vfsops.c fs.h
   src/sys/ufs/ufs [bouyer-quota2]: Makefile quota.h ufs_extern.h
   ufs_inode.c ufs_quota.c ufs_vfsops.c ufs_vnops.c ufsmount.h
   src/tests/fs/ffs [bouyer-quota2]: Makefile
   src/tests/sbin [bouyer-quota2]: Makefile
   src/usr.bin/quota [bouyer-quota2]: Makefile quota.1 quota.c
 Added Files:
   src/lib/libc/compat/arch/alpha/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/arm/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/hppa/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/i386/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/ia64/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/m68k/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/mips/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/powerpc/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/powerpc64/sys [bouyer-quota2]:
   compat_quotactl.S
   src/lib/libc/compat/arch/sh3/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/sparc/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/sparc64/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/vax/sys [bouyer-quota2]: compat_quotactl.S
   src/lib/libc/compat/arch/x86_64/sys [bouyer-quota2]: compat_quotactl.S
   src/sbin/fsck_ffs [bouyer-quota2]: pass6.c quota2.c
   src/sys/sys [bouyer-quota2]: quota.h
   src/sys/ufs/ffs [bouyer-quota2]: ffs_quota2.c
   src/sys/ufs/ufs [bouyer-quota2]: quota1.h quota2.h quota2_prop.c
   quota2_prop.h quota2_subr.c ufs_quota.h ufs_quota1.c ufs_quota2.c
   src/tests/fs/ffs [bouyer-quota2]: h_quota2_server.c t_quota2_1.c
   src/tests/sbin/fsck_ffs [bouyer-quota2]: Makefile quotas_common.sh
   t_check_quotas.sh t_enable_quotas.sh
   src/tests/sbin/newfs [bouyer-quota2]: Makefile quotas_common.sh
   t_enable_quotas.sh
 
 Log Message:
 Snapshot of work in progress on a modernised disk quota system:
 - new quotactl syscall (versionned for backward compat), which takes
  as parameter a 

Re: CVS commit: src/distrib/sets/lists

2011-01-19 Thread Adam Hamsik

On Jan,Wednesday 19 2011, at 10:07 PM, Havard Eidnes wrote:

 Module Name:  src
 Committed By: he
 Date: Wed Jan 19 21:07:18 UTC 2011
 
 Modified Files:
   src/distrib/sets/lists/base: shl.mi
   src/distrib/sets/lists/comp: mi shl.mi
 
 Log Message:
 Mark the set list entries for librumpfs_zfs and librumpkern_solaris
 with the zfs attribute -- these are not built for a substantial
 portion of our ports.

Ah thanks for fixing this !

Regards

Adam.



Re: CVS commit: src

2011-01-13 Thread Adam Hamsik

On Jan,Friday 14 2011, at 12:13 AM, Matthias Scheler wrote:

 
 On 13 Jan 2011, at 22:28, Adam Hamsik wrote:
 
 Module Name: src
 Committed By:haad
 Date:Thu Jan 13 22:28:37 UTC 2011
 
 Modified Files:
  src/distrib/sets/lists/base: mi
  src/distrib/sets/lists/comp: mi
  src/sbin: Makefile
  src/usr.sbin: Makefile
 Added Files:
  src/sbin/chown: Makefile chgrp.1 chown.8 chown.c
 Removed Files:
  src/usr.sbin/chown: Makefile chgrp.1 chown.8 chown.c
 
 Log Message:
 Move chown from usr.sbin to sbin and chgrp from usr.bin to bin directories.
 This was discussed and oked on tech-userlevel I have run full build release,
 test anita cycle with this patch.
 
 This will break installation on systems which use a separate /usr 
 file-system
 because you create symlinks between /sbin and /usr/sbin respectively
 /bin and /usr/bin.
 
 Please consider using SYMLINKS for the compatibility links.

Thanks, I have fixed it.

Regards

Adam.



Re: /var/lock

2011-01-04 Thread Adam Hamsik

On Jan,Tuesday 4 2011, at 8:56 AM, Alan Barrett wrote:

 On Tue, 04 Jan 2011, Adam Hamsik wrote:
 I would like to have something persistent between reboots. I
 have found that we already have /var/spool/lock. Therefore
 /var/spool/lock/lvm/ seems to be might preferred place. Do you agree ?
 
 I had forgotten about /var/spool/lock; it's been a long time since I
 used UUCP.  Given that it exists, /var/spool/lock/lvm seems fine.
 
 Also /var/spool/lock is not mentioned in hier.
 
 That should be fixed.

Ok I will change it to /var/spool/lock/lvm tomorrow and I will update 
hier to mention those directories, too. Is that ok ? 

Regards

Adam.



Re: /var/lock

2011-01-03 Thread Adam Hamsik

On Jan,Monday 3 2011, at 1:21 PM, Alan Barrett wrote:

 On Mon, 03 Jan 2011, rud...@eq.cz wrote:
 Adam Hamsik wrote:
 Modified Files:
 src/distrib/sets/lists/base: mi
 src/etc/mtree: NetBSD.dist.base
 
 Log Message:
 Add /var/lock directory to base set it's used by LVM and other tools.
 Change group owner to operator to enable LVM locking for him.
 
 Why is /var/run not the right place for your needs?
 
 Also, where was this discussed?  If it was discussed, please
 update hier(7) according to the outcome of the discussion.

It wasn't discussed, but there were couple of changes to dm driver not done 
by me which weren't discussed either. Main reason for them was to allow 
operator 
to see lvm devices status this was last change needed. I can change it to 
/var/run would be 
/var/run/locks/ better place for it ? 

Regards

Adam.



Re: /var/lock

2011-01-03 Thread Adam Hamsik

On Jan,Monday 3 2011, at 2:54 PM, Bernd Ernesti wrote:

 On Mon, Jan 03, 2011 at 02:46:31PM +0100, Adam Hamsik wrote:
 
 On Jan,Monday 3 2011, at 1:21 PM, Alan Barrett wrote:
 
 On Mon, 03 Jan 2011, rud...@eq.cz wrote:
 Adam Hamsik wrote:
 Modified Files:
   src/distrib/sets/lists/base: mi
   src/etc/mtree: NetBSD.dist.base
 
 Log Message:
 Add /var/lock directory to base set it's used by LVM and other tools.
 Change group owner to operator to enable LVM locking for him.
 
 Why is /var/run not the right place for your needs?
 
 Also, where was this discussed?  If it was discussed, please
 update hier(7) according to the outcome of the discussion.
 
 It wasn't discussed, but there were couple of changes to dm driver not done 
 by me which weren't discussed either. Main reason for them was to allow 
 operator 
 to see lvm devices status this was last change needed. I can change it to 
 /var/run would be 
 /var/run/locks/ better place for it ? 
 
 IMHO /var/run/lvm would be better since it is used by lvm.

It would end as /var/run/locks/lvm but I can remove that locks part if it's 
needed.

Regards

Adam.



Re: /var/lock

2011-01-03 Thread Adam Hamsik

On Jan,Monday 3 2011, at 4:08 PM, Alan Barrett wrote:

 On Mon, 03 Jan 2011, Adam Hamsik wrote:
 Log Message:
 Add /var/lock directory to base set it's used by LVM and other tools.
 Change group owner to operator to enable LVM locking for him.
 
 Why is /var/run not the right place for your needs?
 
 Also, where was this discussed?  If it was discussed, please
 update hier(7) according to the outcome of the discussion.
 
 It wasn't discussed, but there were couple of changes to dm driver
 not done by me which weren't discussed either. Main reason for them   
 was to allow operator to see lvm devices status this was last change  
 needed. I can change it to /var/run would be /var/run/locks/ better   
 place for it ?
 
 If the locks do not need to persist across reboot, then somewhere under
 /var/run would probably be appropriate.  If they are specific to lvm,
 then /var/run/lvm would probably be appropriate.  Anything else (such as
 /var/lock or /var/run/lock) probably needs more discussion.

I would like to have something persistent between reboots. I have found 
that we already have /var/spool/lock. Therefore /var/spool/lock/lvm/ 
seems to be might preferred place. Do you agree ? Also /var/spool/lock 
is not mentioned in hier.

Regards

Adam.



Re: /var/lock

2011-01-03 Thread Adam Hamsik

On Jan,Tuesday 4 2011, at 2:51 AM, Takahiro Kambe wrote:

 Hi,
 
 In message c5724e4b-3267-40d5-a93a-425072bb2...@gmail.com
   on Tue, 4 Jan 2011 02:46:17 +0100,
   Adam Hamsik haa...@gmail.com wrote:
 I would like to have something persistent between reboots. I have found 
 that we already have /var/spool/lock. Therefore /var/spool/lock/lvm/ 
 seems to be might preferred place. Do you agree ? Also /var/spool/lock 
 is not mentioned in hier.
 Are they really *lock* files?

It's lvm subsystem lock file. Does it need to be specific in any way ?

 
 Anywaym I think it should be /var/db/lvm for them unless those files
 are temporary files like printer outputs.

So we have these options:

1) /var/lock/lvm - needs much more discussion 
2) /var/spool/lock/lvm 
3) /var/run/lvm - not persistent, it needs to be recreated every time
4) /var/db/lvm

What would you prefer ?

Regards

Adam.



Re: CVS commit: src/sys/arch

2011-01-02 Thread Adam Hamsik

On Jan,Sunday 2 2011, at 7:39 PM, Izumi Tsutsui wrote:

 Module Name:  src
 Committed By: tsutsui
 Date: Sun Jan  2 18:39:11 UTC 2011
 
 Modified Files:
   src/sys/arch/cesfic/cesfic: pmap_bootstrap.c
   src/sys/arch/luna68k/luna68k: pmap_bootstrap.c
 
 Log Message:
 Pull code that maps the kernel segment table cache invalidated for 040/060,
 to reduce diffs from other m68k ports.
 
 Compile test only. (any working machine for these port?)

What is point of keeping these files in tree ? If we can't even test netbsd on 
them. Can we please move those archs to Attic ?

Regards

Adam.



Re: CVS commit: src/etc/mtree

2011-01-01 Thread Adam Hamsik

On Jan,Saturday 1 2011, at 11:11 PM, Adam Hamsik wrote:

 Module Name:  src
 Committed By: haad
 Date: Sat Jan  1 22:11:45 UTC 2011
 
 Modified Files:
   src/etc/mtree: NetBSD.dist.base
 
 Log Message:
 Remove optional keyword from directory definition.
 
 

This fixes PR misc/44308

Regards

Adam.



Re: CVS commit: src

2011-01-01 Thread Adam Hamsik

On Jan,Saturday 1 2011, at 11:40 PM, Julio Merino wrote:

 On Sat, Jan 1, 2011 at 2:09 PM, Adam Hamsik h...@netbsd.org wrote:
 Module Name:src
 Committed By:   haad
 Date:   Sat Jan  1 13:09:13 UTC 2011
 
 Modified Files:
src/distrib/sets/lists/base: mi
src/etc/mtree: NetBSD.dist.base
 
 Log Message:
 Add /var/lock/lvm subdir for LVM it can be created automagically but I think
 that it's better to have it created before.
 
 This broke the build:
 
 http://www.gson.org/netbsd/bugs/build/build/2011.01.01.20.43.01/build.log.tail

Should be fixed now. Thanks for noticing. Sorry for breakage.

Regards

Adam.




Re: CVS commit: src/external/gpl2/lvm2

2010-12-24 Thread Adam Hamsik

On Dec,Friday 24 2010, at 4:50 PM, Christos Zoulas wrote:

 In article fefc4453-cdc4-4771-b16f-7f31c8555...@gmail.com,
 Adam Hamsik  haa...@gmail.com wrote:
 
 Index: src/external/gpl2/lvm2/dist/daemons/cmirrord/functions.c
 
 This file is not even build please revert your change.
 
 Index: src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-iface.c
 
 This is original linux file which is not build, please revert your change.
 
 I think that the fixes are correct though, so I would prefer to ask
 upstream to take them.

Then can you please request to import these changes to upstream repository ?

 
 PR is about block devices not about char control devices this part
 changes /dev/mapper/control do we really want to have 640 there if yes
 I'm fine with it I just want to be sure that you wanted to do that.
 
 Yes that was problematic, and we needed to add permission checks
 in the kernel portion. What's nice about it is that perhaps this will
 allow an operator to query the state of the volumes now.
 
 Most of this was hashed out privately.

Yeah thanks.

Regards

Adam.



Re: CVS commit: src/external/gpl2/lvm2

2010-12-23 Thread Adam Hamsik

On Dec,Thursday 23 2010, at 6:46 PM, Christos Zoulas wrote:

 Module Name:  src
 Committed By: christos
 Date: Thu Dec 23 17:46:55 UTC 2010
 
 Modified Files:
   src/external/gpl2/lvm2: lvm2tools.mk
   src/external/gpl2/lvm2/dist/daemons/cmirrord: functions.c
   src/external/gpl2/lvm2/dist/libdm/ioctl: libdm-iface.c
   libdm-nbsd-iface.c
   src/external/gpl2/lvm2/lib/libdevmapper: Makefile
   src/external/gpl2/lvm2/sbin/dmsetup: Makefile
 
 Log Message:
 PR/44267: Michael van Elst: LVM devices have wrong permissions
 - Centralize CPPFLAGS for DM_DEVICE_{UID,GID,MODE}
 - Make DM_DEVICE_GID operator DM_DEVICE_MODE 0640 to be more NetBSD like
 - make all the code use DM_DEVICE_MODE instead of hard-coding.
 - make sure that all mknod calls are followed by a chown call.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/external/gpl2/lvm2/lvm2tools.mk
 cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl2/lvm2/dist/daemons/cmirrord/functions.c
 cvs rdiff -u -r1.1.1.3 -r1.2 \
src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-iface.c
 cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c
 cvs rdiff -u -r1.4 -r1.5 src/external/gpl2/lvm2/lib/libdevmapper/Makefile
 cvs rdiff -u -r1.4 -r1.5 src/external/gpl2/lvm2/sbin/dmsetup/Makefile
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 
 Modified files:
 
 Index: src/external/gpl2/lvm2/lvm2tools.mk
 diff -u src/external/gpl2/lvm2/lvm2tools.mk:1.1 
 src/external/gpl2/lvm2/lvm2tools.mk:1.2
 --- src/external/gpl2/lvm2/lvm2tools.mk:1.1   Sun Dec 21 19:57:58 2008
 +++ src/external/gpl2/lvm2/lvm2tools.mk   Thu Dec 23 12:46:54 2010
 @@ -1,4 +1,4 @@
 -#$NetBSD: lvm2tools.mk,v 1.1 2008/12/22 00:57:58 haad Exp $
 +#$NetBSD: lvm2tools.mk,v 1.2 2010/12/23 17:46:54 christos Exp $
 
 .include bsd.own.mk
 
 @@ -9,6 +9,9 @@
 LIBDM_DISTDIR=${NETBSDSRCDIR}/external/gpl2/lvm2/dist/libdm
 LIBDM_INCLUDE=${NETBSDSRCDIR}/external/gpl2/lvm2/dist/include
 
 +# root:operator [cb]rw-r-
 +CPPFLAGS+=-DDM_DEVICE_UID=0 -DDM_DEVICE_GID=5 -DDM_DEVICE_MODE=0640
 +
 #
 #LIBDM_OBJDIR.libdevmapper=${LIBDM_SRCDIR}/lib/libdevmapper/
 #
 
 Index: src/external/gpl2/lvm2/dist/daemons/cmirrord/functions.c

This file is not even build please revert your change.

 Index: src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-iface.c

This is original linux file which is not build, please revert your change.


 
 Index: src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c
 diff -u src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c:1.7 
 src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c:1.8
 --- src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c:1.7Fri Mar 
 12 11:24:40 2010
 +++ src/external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.cThu Dec 
 23 12:46:54 2010
 @@ -1,4 +1,4 @@
 -/*  $NetBSD: libdm-nbsd-iface.c,v 1.7 2010/03/12 16:24:40 haad Exp $ 
*/
 +/*  $NetBSD: libdm-nbsd-iface.c,v 1.8 2010/12/23 17:46:54 christos Exp $ 
*/
 
 /*
  * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
 @@ -162,11 +162,15 @@
 
   log_verbose(Creating device %s (%u, %u), control, major, minor);
 
 - if (mknod(control, S_IFCHR | S_IRUSR | S_IWUSR,
 + if (mknod(control, S_IFCHR | DM_DEVICE_MODE,
 MKDEV(major, minor))  0)  {
   log_sys_error(mknod, control);
   return 0;
   }
 + if (chown(control, DM_DEVICE_UID, DM_DEVICE_GID) == -1) {
 + log_sys_error(chown, control);
 + return 0;
 + }

PR is about block devices not about char control devices this part changes 
/dev/mapper/control do we really want to have 640 there if yes I'm fine with it 
I just want to be sure that you wanted to do that.

Regards

Adam.



Re: CVS commit: src/tests/usr.sbin/traceroute

2010-12-15 Thread Adam Hamsik

On Dec,Wednesday 15 2010, at 11:27 AM, Christoph Egger wrote:

 
 Module Name: src
 Committed By:pooka
 Date:Wed Dec 15 00:13:52 UTC 2010
 
 Added Files:
  src/tests/usr.sbin/traceroute: Makefile t_traceroute.sh
 
 Log Message:
 Add simple tests for traceroute.  The test bootstraps a three-node
 network with one router in the middle and checks traceroute from
 one endpoint to another with both UDP and ICMP.
 
 (i guess these test networking at least as much as traceroute
 itself, but then again that's not a bad thing)
 
 This breaks release build:
 
 ==  2 missing files in DESTDIR  
 Files in flist but missing from DESTDIR.
 File wasn't installed ?  
 --
 ./usr/tests/usr.sbin/traceroute/Atffile   
 ./usr/tests/usr.sbin/traceroute/t_traceroute  
   end of 2 missing files  ==  
 *** [checkflist] Error code 1

Update src/tests and re run your build should be fixed now.

Regards

Adam.



Re: CVS commit: src/external/cddl/osnet

2010-12-14 Thread Adam Hamsik

On Dec,Tuesday 14 2010, at 3:08 PM, Matthias Scheler wrote:

 Module Name:  src
 Committed By: tron
 Date: Tue Dec 14 14:08:43 UTC 2010
 
 Modified Files:
   src/external/cddl/osnet/dev/fbt: fbt.c
   src/external/cddl/osnet/dist/uts/common/sys: debug.h note.h
 
 Log Message:
 Get DTrace to build again.

Please can you backout those changes done to uts/common/sys I will look at this 
problem and 
fix it properly without changing headers which should not be changed.

Regards

Adam.



Re: CVS commit: src/sys/arch/i386/include

2010-12-14 Thread Adam Hamsik

On Dec,Tuesday 14 2010, at 4:50 PM, Adam Hamsik wrote:

 Module Name:  src
 Committed By: haad
 Date: Tue Dec 14 15:50:07 UTC 2010
 
 Modified Files:
   src/sys/arch/i386/include: types.h
 
 Log Message:
 Revert change made in revision 1.66 by ad@ this is not true and 64bit
 atomic ops should be enabled in libc by default.

This was Oked by a...@.

Regards

Adam.



Re: CVS commit: src

2010-11-22 Thread Adam Hamsik

On Nov,Monday 22 2010, at 9:42 PM, Antti Kantee wrote:

 Module Name:  src
 Committed By: pooka
 Date: Mon Nov 22 20:42:19 UTC 2010
 
 Modified Files:
   src/lib/librumpuser: rumpuser_sp.c
   src/sys/rump/include/rump: rumpuser.h
   src/sys/rump/librump/rumpkern: lwproc.c rump.c rumpcopy.c vm.c
 
 Log Message:
 Support physio for remote processes.
 == add support for remote vmspace vmapbuf/vunmapbuf
  == add proper support for copyin/out_vmspace
== add support for remote vmspace uvm_io
  == add support for non-curproc rumpuser_sp_copyin/out
== store remote context in vm_map-pmap instead of
pthread_specificdata
 
 In short, makes read/write of most (all?) block devices work from
 a remote rump client via rump syscalls.

Cool I have been waiting for this, now I can write proper dm test suite with 
rump ;) 

Thanks Antti

Regards

Adam.



Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-14 Thread Adam Hamsik

On Nov,Monday 15 2010, at 7:16 AM, Bernd Ernesti wrote:

 On Mon, Nov 15, 2010 at 11:24:21AM +0900, Masao Uebayashi wrote:
 On Sun, Nov 14, 2010 at 05:52:51AM +, David Holland wrote:
 On Sun, Nov 14, 2010 at 03:32:44AM +, Masao Uebayashi wrote:
 XXX What is the conclusion about direct vs. indirect #include from headers?
 
 Every header file should include the things it requires to compile.
 Therefore, there should in principle be no cases where a header file
 (or source file) needs to #include something it doesn't itself use.
 
 This clarifies my long-unanswered question, thanks!
 
 I've (re)built about 300 kernels in the last days.  I've found:
 
 - sys/sysctl.h's struct kinfo_proc should be moved into sys/proc.h
  (I've done this locally).  Otherwise all sysctl node providers
  includes sys/proc.h and uvm/uvm_extern.h.
  (This is where I started...)
 
 - sys/syscallargs.h should be split into pieces, otherwise all its
  users have to know unrelated types (sys/mount.h, sys/cpu.h).
 
 - sys/proc.h's tsleep(), wakeup(), and friends should be moved into
  some common header, because it's widely used API.  sys/proc.h will
  be used only for struct proc related things.
 
 What are the issues here that we need to fix this right now?

I think that it's quite good time to fix, it would be much harder to do this 
after 6.0 branch.

Regards

Adam.



Re: CVS commit: src/sys/dev/dm

2010-05-18 Thread Adam Hamsik

On May,Tuesday 18 2010, at 5:42 PM, Matthias Scheler wrote:

 On Tue, May 18, 2010 at 03:10:41PM +, Adam Hamsik wrote:
 Log Message:
 Add support for DIOCCACHESYNC ioctl for dm devices. Add new sync function
 pointer to dm_target_t because that is the only part of dm which know real
 block device. disk_ioctl_switch parses whole device table and for every
 entry it calls particular sync routine which propagates DIOCCACHESYNC
 to real disk.
 
 What happens if a logical volume consists of two slice of one physical
 device? Will the physical device get flushed twice?

Yes and there is no easy way how to not do that.

Regards

Adam.



Re: CVS commit: src/sys/dev/dm

2010-03-24 Thread Adam Hamsik

On Mar,Tuesday 23 2010, at 4:09 PM, Jonathan A. Kollasch wrote:

 Module Name:  src
 Committed By: jakllsch
 Date: Tue Mar 23 15:09:45 UTC 2010
 
 Modified Files:
   src/sys/dev/dm: device-mapper.c
 
 Log Message:
 Rework module/builtin code so it works in both cases.
 (Tested recently in the module case, slightly less recently as builtin.)
 
 haad [if it works] go for it
 

now when we have built in case working, would you like to add pseudo-device dm 
to AMD64, i386 non-modular kernels ? I think that 

ALL
MONOLITHIC
*XEN*

should be enough. What do you think about this ?(Sorry I have zero free time 
now, otherwise I would do it myself:()

Regards

Adam.



CVS commit: src/external/cddl/osnet/sys/sys

2010-03-01 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Mar  1 20:06:37 UTC 2010

Added Files:
src/external/cddl/osnet/sys/sys: priv_names.h

Log Message:
This id compile time generated file add it to sys/sys and do not polute
dist dir with it.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/sys/sys/priv_names.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/sys/sys

2010-03-01 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Mar  1 20:06:37 UTC 2010

Added Files:
src/external/cddl/osnet/sys/sys: priv_names.h

Log Message:
This id compile time generated file add it to sys/sys and do not polute
dist dir with it.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/sys/sys/priv_names.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/cddl/osnet/sys/sys/priv_names.h
diff -u /dev/null src/external/cddl/osnet/sys/sys/priv_names.h:1.1
--- /dev/null	Mon Mar  1 20:06:37 2010
+++ src/external/cddl/osnet/sys/sys/priv_names.h	Mon Mar  1 20:06:37 2010
@@ -0,0 +1,681 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the License).
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets [] replaced with your own identifying
+ * information: Portions Copyright [] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+/*
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Use is subject to license terms.
+ *
+ * Privilege constant definitions.  Privileges and privilege sets
+ * are only known by name and should be mapped at runtime.
+ *
+ * THIS FILE WAS GENERATED; DO NOT EDIT
+ */
+
+
+#ifndef _SYS_PRIV_NAMES_H
+#define	_SYS_PRIV_NAMES_H
+
+
+
+#ifdef __cplusplus
+extern C {
+#endif
+
+#ifndef __PRIV_CONST_IMPL
+/*
+ * Privilege names
+ */
+/*
+ * Allows a process to request critical events without limitation.
+ * Allows a process to request reliable delivery of all events on
+ * any event queue.
+ */
+#define	PRIV_CONTRACT_EVENT	((const char *)contract_event)
+
+/*
+ * Allows a process to set the service FMRI value of a process
+ * contract template.
+ */
+#define	PRIV_CONTRACT_IDENTITY	((const char *)contract_identity)
+
+/*
+ * Allows a process to observe contract events generated by
+ * contracts created and owned by users other than the process's
+ * effective user ID.
+ * Allows a process to open contract event endpoints belonging to
+ * contracts created and owned by users other than the process's
+ * effective user ID.
+ */
+#define	PRIV_CONTRACT_OBSERVER	((const char *)contract_observer)
+
+/*
+ * Allow a process to access per-CPU hardware performance counters.
+ */
+#define	PRIV_CPC_CPU		((const char *)cpc_cpu)
+
+/*
+ * Allows DTrace kernel-level tracing.
+ */
+#define	PRIV_DTRACE_KERNEL	((const char *)dtrace_kernel)
+
+/*
+ * Allows DTrace process-level tracing.
+ * Allows process-level tracing probes to be placed and enabled in
+ * processes to which the user has permissions.
+ */
+#define	PRIV_DTRACE_PROC	((const char *)dtrace_proc)
+
+/*
+ * Allows DTrace user-level tracing.
+ * Allows use of the syscall and profile DTrace providers to
+ * examine processes to which the user has permissions.
+ */
+#define	PRIV_DTRACE_USER	((const char *)dtrace_user)
+
+/*
+ * Allows a process to change a file's owner user ID.
+ * Allows a process to change a file's group ID to one other than
+ * the process' effective group ID or one of the process'
+ * supplemental group IDs.
+ */
+#define	PRIV_FILE_CHOWN		((const char *)file_chown)
+
+/*
+ * Allows a process to give away its files; a process with this
+ * privilege will run as if {_POSIX_CHOWN_RESTRICTED} is not
+ * in effect.
+ */
+#define	PRIV_FILE_CHOWN_SELF	((const char *)file_chown_self)
+
+/*
+ * Allows a process to execute an executable file whose permission
+ * bits or ACL do not allow the process execute permission.
+ */
+#define	PRIV_FILE_DAC_EXECUTE	((const char *)file_dac_execute)
+
+/*
+ * Allows a process to read a file or directory whose permission
+ * bits or ACL do not allow the process read permission.
+ */
+#define	PRIV_FILE_DAC_READ	((const char *)file_dac_read)
+
+/*
+ * Allows a process to search a directory whose permission bits or
+ * ACL do not allow the process search permission.
+ */
+#define	PRIV_FILE_DAC_SEARCH	((const char *)file_dac_search)
+
+/*
+ * Allows a process to write a file or directory whose permission
+ * bits or ACL do not allow the process write permission.
+ * In order to write files owned by uid 0 in the absence of an
+ * effective uid of 0 ALL privileges are required.
+ */
+#define	PRIV_FILE_DAC_WRITE	((const char *)file_dac_write)
+
+/*
+ * Allows a process to set the sensitivity label of a file or
+ * directory to a sensitivity label that does not dominate 

CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2010-03-01 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Mar  1 20:10:46 UTC 2010

Removed Files:
src/external/cddl/osnet/dist/uts/common/sys: priv_names.h

Log Message:
Removee compile time generated file from dist it is in osnet/sys/sys now.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 \
src/external/cddl/osnet/dist/uts/common/sys/priv_names.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/dist/uts/common/sys

2010-03-01 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Mar  1 20:10:46 UTC 2010

Removed Files:
src/external/cddl/osnet/dist/uts/common/sys: priv_names.h

Log Message:
Removee compile time generated file from dist it is in osnet/sys/sys now.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 \
src/external/cddl/osnet/dist/uts/common/sys/priv_names.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2010-03-01 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Mar  1 20:38:19 UTC 2010

Removed Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: fletcher.c

Log Message:
Remove fletcher.c from dist it was moved to common/zfs/zfs_fletcher.c in 
upstream.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/fletcher.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet

2010-03-01 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Mar  1 21:13:10 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libzpool: kernel.c
Added Files:
src/external/cddl/osnet/include: statcommon.h

Log Message:
Commit last to fixes which make zfs version 22 compiling again.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/include/statcommon.h
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/lib/libzpool/kernel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 14:45:48 UTC 2010

Modified Files:
src/external/cddl/osnet/include: unistd.h
src/external/cddl/osnet/sbin/zfs: Makefile
src/external/cddl/osnet/sbin/zpool: Makefile
src/external/cddl/osnet/sys/kern: ddi.c misc.c taskq.c
src/external/cddl/osnet/sys/machine: endian.h
src/external/cddl/osnet/sys/sys: byteorder.h cpuvar.h elf.h idmap.h
modctl.h mount.h policy.h proc.h types.h uio.h vfs.h vnode.h
zfs_context.h
src/external/cddl/osnet/sys/sys/acl: acl_common.h

Log Message:
Add NetBSD build glue to build new zfs version 22 sources.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/include/unistd.h
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sbin/zfs/Makefile
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sbin/zpool/Makefile
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/kern/ddi.c
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/sys/kern/misc.c \
src/external/cddl/osnet/sys/kern/taskq.c
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/machine/endian.h
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/sys/sys/byteorder.h \
src/external/cddl/osnet/sys/sys/cpuvar.h \
src/external/cddl/osnet/sys/sys/elf.h \
src/external/cddl/osnet/sys/sys/modctl.h \
src/external/cddl/osnet/sys/sys/mount.h \
src/external/cddl/osnet/sys/sys/policy.h \
src/external/cddl/osnet/sys/sys/proc.h \
src/external/cddl/osnet/sys/sys/uio.h \
src/external/cddl/osnet/sys/sys/vfs.h \
src/external/cddl/osnet/sys/sys/vnode.h
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/sys/idmap.h
cvs rdiff -u -r1.5 -r1.6 src/external/cddl/osnet/sys/sys/types.h \
src/external/cddl/osnet/sys/sys/zfs_context.h
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/sys/acl/acl_common.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/include/unistd.h
diff -u src/external/cddl/osnet/include/unistd.h:1.3 src/external/cddl/osnet/include/unistd.h:1.4
--- src/external/cddl/osnet/include/unistd.h:1.3	Sun Feb 21 01:46:34 2010
+++ src/external/cddl/osnet/include/unistd.h	Sun Feb 28 14:45:47 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: unistd.h,v 1.3 2010/02/21 01:46:34 darran Exp $	*/
+/*	$NetBSD: unistd.h,v 1.4 2010/02/28 14:45:47 haad Exp $	*/
 
 /*
  * Copyright (C) 2007 John Birrell j...@freebsd.org
@@ -38,4 +38,6 @@
 #define	ftruncate64	ftruncate
 #define	pread64		pread
 
+#define	_SC_PHYS_PAGES			500
+
 #endif

Index: src/external/cddl/osnet/sbin/zfs/Makefile
diff -u src/external/cddl/osnet/sbin/zfs/Makefile:1.2 src/external/cddl/osnet/sbin/zfs/Makefile:1.3
--- src/external/cddl/osnet/sbin/zfs/Makefile:1.2	Wed Oct 21 22:31:19 2009
+++ src/external/cddl/osnet/sbin/zfs/Makefile	Sun Feb 28 14:45:47 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2009/10/21 22:31:19 joerg Exp $
+#	$NetBSD: Makefile,v 1.3 2010/02/28 14:45:47 haad Exp $
 
 .include ../../Makefile.zfs
 
@@ -18,7 +18,10 @@
 LIBZFS_OBJDIR!=  cd ${LIBZFS_SRCDIR}  ${PRINTOBJDIR}
 LDADD+= -L${LIBZFS_OBJDIR} -lzfs
 
-LDADD+= -lm -lutil
+LIBUMEM_OBJDIR!=  cd ${LIBUMEM_SRCDIR}  ${PRINTOBJDIR}
+LDADD+= -L${LIBUMEM_OBJDIR} -lumem
+
+LDADD+= -lm -lutil -lpthread
 
 .PATH: ${ZFSDIR}/dist/cmd/zfs
 

Index: src/external/cddl/osnet/sbin/zpool/Makefile
diff -u src/external/cddl/osnet/sbin/zpool/Makefile:1.2 src/external/cddl/osnet/sbin/zpool/Makefile:1.3
--- src/external/cddl/osnet/sbin/zpool/Makefile:1.2	Wed Oct 21 22:32:20 2009
+++ src/external/cddl/osnet/sbin/zpool/Makefile	Sun Feb 28 14:45:47 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2009/10/21 22:32:20 joerg Exp $
+#	$NetBSD: Makefile,v 1.3 2010/02/28 14:45:47 haad Exp $
 
 .include ../../Makefile.zfs
 
@@ -7,7 +7,7 @@
 USETBL=	yes
 SRCS=	zpool_main.c zpool_iter.c zpool_util.c zpool_vdev.c
 
-DPADD=	${LIBAVL} ${LIBZFS} ${LIBM} ${LIBNVPAIR} ${LIBUUTIL} ${LIBUTIL}
+DPADD=	${LIBAVL} ${LIBZFS} ${LIBM} ${LIBNVPAIR} ${LIBUUTIL} ${LIBUTIL} ${LIBUMEM}
 
 LIBAVL_OBJDIR!=  cd ${LIBAVL_SRCDIR}  ${PRINTOBJDIR}
 LDADD+= -L${LIBAVL_OBJDIR} -lavl
@@ -21,7 +21,13 @@
 LIBZFS_OBJDIR!=  cd ${LIBZFS_SRCDIR}  ${PRINTOBJDIR}
 LDADD+= -L${LIBZFS_OBJDIR} -lzfs
 
-LDADD+= -lm -lutil
+LIBUMEM_OBJDIR!=  cd ${LIBUMEM_SRCDIR}  ${PRINTOBJDIR}
+LDADD+= -L${LIBUMEM_OBJDIR} -lumem
+
+LIBZPOOL_OBJDIR!=  cd ${LIBZPOOL_SRCDIR}  ${PRINTOBJDIR}
+LDADD+= -L${LIBZPOOL_OBJDIR} -lzpool
+
+LDADD+= -lm -lutil -lpthread
 
 .PATH: ${ZFSDIR}/dist/cmd/zpool
 

Index: src/external/cddl/osnet/sys/kern/ddi.c
diff -u src/external/cddl/osnet/sys/kern/ddi.c:1.2 src/external/cddl/osnet/sys/kern/ddi.c:1.3
--- src/external/cddl/osnet/sys/kern/ddi.c:1.2	Mon Aug 10 22:41:51 2009
+++ src/external/cddl/osnet/sys/kern/ddi.c	Sun Feb 28 14:45:47 2010
@@ -34,6 +34,7 @@
 #include sys/ddi.h
 #include sys/errno.h
 #include sys/param.h

CVS commit: src/external/cddl/osnet

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 14:45:48 UTC 2010

Modified Files:
src/external/cddl/osnet/include: unistd.h
src/external/cddl/osnet/sbin/zfs: Makefile
src/external/cddl/osnet/sbin/zpool: Makefile
src/external/cddl/osnet/sys/kern: ddi.c misc.c taskq.c
src/external/cddl/osnet/sys/machine: endian.h
src/external/cddl/osnet/sys/sys: byteorder.h cpuvar.h elf.h idmap.h
modctl.h mount.h policy.h proc.h types.h uio.h vfs.h vnode.h
zfs_context.h
src/external/cddl/osnet/sys/sys/acl: acl_common.h

Log Message:
Add NetBSD build glue to build new zfs version 22 sources.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/include/unistd.h
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sbin/zfs/Makefile
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sbin/zpool/Makefile
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/kern/ddi.c
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/sys/kern/misc.c \
src/external/cddl/osnet/sys/kern/taskq.c
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/machine/endian.h
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/sys/sys/byteorder.h \
src/external/cddl/osnet/sys/sys/cpuvar.h \
src/external/cddl/osnet/sys/sys/elf.h \
src/external/cddl/osnet/sys/sys/modctl.h \
src/external/cddl/osnet/sys/sys/mount.h \
src/external/cddl/osnet/sys/sys/policy.h \
src/external/cddl/osnet/sys/sys/proc.h \
src/external/cddl/osnet/sys/sys/uio.h \
src/external/cddl/osnet/sys/sys/vfs.h \
src/external/cddl/osnet/sys/sys/vnode.h
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/sys/idmap.h
cvs rdiff -u -r1.5 -r1.6 src/external/cddl/osnet/sys/sys/types.h \
src/external/cddl/osnet/sys/sys/zfs_context.h
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/sys/sys/acl/acl_common.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/sys/sys

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:07:14 UTC 2010

Added Files:
src/external/cddl/osnet/sys/sys: sysevent.h

Log Message:
Add our local version of sysevent.h file without door.h useage.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/sys/sys/sysevent.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/sys/sys

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:07:14 UTC 2010

Added Files:
src/external/cddl/osnet/sys/sys: sysevent.h

Log Message:
Add our local version of sysevent.h file without door.h useage.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/sys/sys/sysevent.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/cddl/osnet/sys/sys/sysevent.h
diff -u /dev/null src/external/cddl/osnet/sys/sys/sysevent.h:1.1
--- /dev/null	Sun Feb 28 15:07:14 2010
+++ src/external/cddl/osnet/sys/sys/sysevent.h	Sun Feb 28 15:07:14 2010
@@ -0,0 +1,276 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the License).
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets [] replaced with your own identifying
+ * information: Portions Copyright [] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#ifndef	_SYS_SYSEVENT_H
+#define	_SYS_SYSEVENT_H
+
+#include sys/nvpair.h
+
+#ifdef	__cplusplus
+extern C {
+#endif
+
+#ifndef	NULL
+#if defined(_LP64)  !defined(__cplusplus)
+#define	NULL0L
+#else
+#define	NULL	0
+#endif
+#endif
+
+/* Internal registration class and subclass */
+#define	EC_ALL		register_all_classes
+#define	EC_SUB_ALL	register_all_subclasses
+
+/*
+ * Event allocation/enqueuing sleep/nosleep flags
+ */
+#define	SE_SLEEP		0
+#define	SE_NOSLEEP		1
+
+/* Framework error codes */
+#define	SE_EINVAL		1	/* Invalid argument */
+#define	SE_ENOMEM		2	/* Unable to allocate memory */
+#define	SE_EQSIZE		3	/* Maximum event q size exceeded */
+#define	SE_EFAULT		4	/* Copy fault */
+#define	SE_NOTFOUND		5	/* Attribute not found */
+#define	SE_NO_TRANSPORT		6	/* sysevent transport down */
+
+/* Internal data types */
+
+#define	SE_DATA_TYPE_BYTE	DATA_TYPE_BYTE
+#define	SE_DATA_TYPE_INT16	DATA_TYPE_INT16
+#define	SE_DATA_TYPE_UINT16	DATA_TYPE_UINT16
+#define	SE_DATA_TYPE_INT32	DATA_TYPE_INT32
+#define	SE_DATA_TYPE_UINT32	DATA_TYPE_UINT32
+#define	SE_DATA_TYPE_INT64	DATA_TYPE_INT64
+#define	SE_DATA_TYPE_UINT64	DATA_TYPE_UINT64
+#define	SE_DATA_TYPE_STRING	DATA_TYPE_STRING
+#define	SE_DATA_TYPE_BYTES	DATA_TYPE_BYTE_ARRAY
+#define	SE_DATA_TYPE_TIME	DATA_TYPE_HRTIME
+
+#define	SE_KERN_PID	0
+
+#define	SUNW_VENDOR	SUNW
+#define	SE_USR_PUB	usr:
+#define	SE_KERN_PUB	kern:
+#define	SUNW_KERN_PUB	SUNW_VENDOR:SE_KERN_PUB
+#define	SUNW_USR_PUB	SUNW_VENDOR:SE_USR_PUB
+
+/*
+ * Event header and attribute value limits
+ */
+#define	MAX_ATTR_NAME	1024
+#define	MAX_STRING_SZ	1024
+#define	MAX_BYTE_ARRAY	1024
+
+#define	MAX_CLASS_LEN		64
+#define	MAX_SUBCLASS_LEN	64
+#define	MAX_PUB_LEN		128
+#define	MAX_CHNAME_LEN		128
+#define	MAX_SUBID_LEN		16
+
+/*
+ * Limit for the event payload size
+ */
+#define	MAX_EV_SIZE_LEN		(SHRT_MAX/4)
+
+/* Opaque sysevent_t data type */
+typedef void *sysevent_t;
+
+/* Opaque channel bind data type */
+typedef void evchan_t;
+
+/* sysevent attribute list */
+typedef nvlist_t sysevent_attr_list_t;
+
+/* sysevent attribute name-value pair */
+typedef nvpair_t sysevent_attr_t;
+
+/* Unique event identifier */
+typedef struct sysevent_id {
+	uint64_t eid_seq;
+	hrtime_t eid_ts;
+} sysevent_id_t;
+
+/* Event attribute value structures */
+typedef struct sysevent_bytes {
+	int32_t	size;
+	uchar_t	*data;
+} sysevent_bytes_t;
+
+typedef struct sysevent_value {
+	int32_t		value_type;		/* data type */
+	union {
+		uchar_t		sv_byte;
+		int16_t		sv_int16;
+		uint16_t	sv_uint16;
+		int32_t		sv_int32;
+		uint32_t	sv_uint32;
+		int64_t		sv_int64;
+		uint64_t	sv_uint64;
+		hrtime_t	sv_time;
+		char		*sv_string;
+		sysevent_bytes_t	sv_bytes;
+	} value;
+} sysevent_value_t;
+
+/*
+ * The following flags determine the memory allocation semantics to use for
+ * kernel event buffer allocation by userland and kernel versions of
+ * sysevent_evc_publish().
+ *
+ * EVCH_SLEEP and EVCH_NOSLEEP respectively map to KM_SLEEP and KM_NOSLEEP.
+ * EVCH_TRYHARD is a kernel-only publish flag that allow event allocation
+ * routines to use use alternate kmem caches in situations where free memory
+ * may be low.  Kernel callers of sysevent_evc_publish() must set flags to
+ * one of EVCH_SLEEP, EVCH_NOSLEEP or EVCH_TRYHARD.  Userland callers of
+ * sysevent_evc_publish() must set flags to one of 

CVS commit: src/external/cddl/osnet/include/fm

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:10:12 UTC 2010

Added Files:
src/external/cddl/osnet/include/fm: libtopo.h

Log Message:
Add missing header file I have missed it in first round of glue commits. More
to come.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/include/fm/libtopo.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/include

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:13:27 UTC 2010

Added Files:
src/external/cddl/osnet/include: aclutils.h directory.h idmap.h sha2.h

Log Message:
Add another set of headers files.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/include/aclutils.h \
src/external/cddl/osnet/include/directory.h \
src/external/cddl/osnet/include/idmap.h \
src/external/cddl/osnet/include/sha2.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/include

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:13:27 UTC 2010

Added Files:
src/external/cddl/osnet/include: aclutils.h directory.h idmap.h sha2.h

Log Message:
Add another set of headers files.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/include/aclutils.h \
src/external/cddl/osnet/include/directory.h \
src/external/cddl/osnet/include/idmap.h \
src/external/cddl/osnet/include/sha2.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/cddl/osnet/include/idmap.h
diff -u /dev/null src/external/cddl/osnet/include/idmap.h:1.1
--- /dev/null	Sun Feb 28 15:13:27 2010
+++ src/external/cddl/osnet/include/idmap.h	Sun Feb 28 15:13:27 2010
@@ -0,0 +1,93 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the License).
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets [] replaced with your own identifying
+ * information: Portions Copyright [] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+/*
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#ifndef _SYS_IDMAP_H
+#define	_SYS_IDMAP_H
+
+
+/* Idmap status codes */
+#define	IDMAP_SUCCESS			0
+#define	IDMAP_NEXT			1
+#define	IDMAP_ERR_OTHER			-1
+#define	IDMAP_ERR_INTERNAL		-
+#define	IDMAP_ERR_MEMORY		-9998
+#define	IDMAP_ERR_NORESULT		-9997
+#define	IDMAP_ERR_NOTUSER		-9996
+#define	IDMAP_ERR_NOTGROUP		-9995
+#define	IDMAP_ERR_NOTSUPPORTED		-9994
+#define	IDMAP_ERR_W2U_NAMERULE		-9993
+#define	IDMAP_ERR_U2W_NAMERULE		-9992
+#define	IDMAP_ERR_CACHE			-9991
+#define	IDMAP_ERR_DB			-9990
+#define	IDMAP_ERR_ARG			-9989
+#define	IDMAP_ERR_SID			-9988
+#define	IDMAP_ERR_IDTYPE		-9987
+#define	IDMAP_ERR_RPC_HANDLE		-9986
+#define	IDMAP_ERR_RPC			-9985
+#define	IDMAP_ERR_CLIENT_HANDLE		-9984
+#define	IDMAP_ERR_BUSY			-9983
+#define	IDMAP_ERR_PERMISSION_DENIED	-9982
+#define	IDMAP_ERR_NOMAPPING		-9981
+#define	IDMAP_ERR_NEW_ID_ALLOC_REQD	-9980
+#define	IDMAP_ERR_DOMAIN		-9979
+#define	IDMAP_ERR_SECURITY		-9978
+#define	IDMAP_ERR_NOTFOUND		-9977
+#define	IDMAP_ERR_DOMAIN_NOTFOUND	-9976
+#define	IDMAP_ERR_UPDATE_NOTALLOWED	-9975
+#define	IDMAP_ERR_CFG			-9974
+#define	IDMAP_ERR_CFG_CHANGE		-9973
+#define	IDMAP_ERR_NOTMAPPED_WELLKNOWN	-9972
+#define	IDMAP_ERR_RETRIABLE_NET_ERR	-9971
+#define	IDMAP_ERR_W2U_NAMERULE_CONFLICT	-9970
+#define	IDMAP_ERR_U2W_NAMERULE_CONFLICT	-9969
+#define	IDMAP_ERR_BAD_UTF8		-9968
+#define	IDMAP_ERR_NONE_GENERATED	-9967
+#define	IDMAP_ERR_PROP_UNKNOWN		-9966
+#define	IDMAP_ERR_NS_LDAP_OP_FAILED	-9965
+#define	IDMAP_ERR_NS_LDAP_PARTIAL	-9964
+#define	IDMAP_ERR_NS_LDAP_CFG		-9963
+#define	IDMAP_ERR_NS_LDAP_BAD_WINNAME	-9962
+#define	IDMAP_ERR_NO_ACTIVEDIRECTORY	-9961
+
+/* Reserved GIDs for some well-known SIDs */
+#define	IDMAP_WK_LOCAL_SYSTEM_GID	2147483648U /* 0x8000 */
+#define	IDMAP_WK_CREATOR_GROUP_GID	2147483649U
+#define	IDMAP_WK__MAX_GID		2147483649U
+
+/* Reserved UIDs for some well-known SIDs */
+#define	IDMAP_WK_CREATOR_OWNER_UID	2147483648U
+#define	IDMAP_WK__MAX_UID		2147483648U
+
+/* Reserved SIDs */
+#define	IDMAP_WK_CREATOR_SID_AUTHORITY	S-1-3
+
+/*
+ * Max door RPC size for ID mapping (can't be too large relative to the
+ * default user-land thread stack size, since clnt_door_call()
+ * alloca()s).  See libidmap:idmap_init().
+ */
+#define	IDMAP_MAX_DOOR_RPC		(256 * 1024)
+
+#endif /* _SYS_IDMAP_H */
Index: src/external/cddl/osnet/include/sha2.h
diff -u /dev/null src/external/cddl/osnet/include/sha2.h:1.1
--- /dev/null	Sun Feb 28 15:13:27 2010
+++ src/external/cddl/osnet/include/sha2.h	Sun Feb 28 15:13:27 2010
@@ -0,0 +1,21 @@
+#ifndef _SHA256_H_
+#define _SHA256_H_
+
+#include string.h
+
+#include_next sha2.h
+
+#define SHA256Init(b)	SHA256_Init(b)
+#define SHA256Update	SHA256_Update
+
+static void
+SHA256Final(void *digest, SHA256_CTX *ctx)
+{
+	uint8_t tmp[SHA256_DIGEST_LENGTH];
+
+	SHA256_Final(tmp, ctx);
+	memcpy(digest, tmp, sizeof(tmp));
+}
+
+
+#endif



CVS commit: src/external/cddl/osnet/dist/common/util

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:17:44 UTC 2010

Added Files:
src/external/cddl/osnet/dist/common/util: sscanf.h

Log Message:
Add missing header file, I will tag it to osnet-20100224 later.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/dist/common/util/sscanf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/dist/common/util

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:17:44 UTC 2010

Added Files:
src/external/cddl/osnet/dist/common/util: sscanf.h

Log Message:
Add missing header file, I will tag it to osnet-20100224 later.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/dist/common/util/sscanf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/cddl/osnet/dist/common/util/sscanf.h
diff -u /dev/null src/external/cddl/osnet/dist/common/util/sscanf.h:1.1
--- /dev/null	Sun Feb 28 15:17:44 2010
+++ src/external/cddl/osnet/dist/common/util/sscanf.h	Sun Feb 28 15:17:44 2010
@@ -0,0 +1,47 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the License).
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets [] replaced with your own identifying
+ * information: Portions Copyright [] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#ifndef	_COMMON_UTIL_SSCANF_H
+#define	_COMMON_UTIL_SSCANF_H
+
+#pragma ident	%Z%%M%	%I%	%E% SMI
+
+#include sys/types.h
+#include sys/varargs.h
+
+#ifdef __cplusplus
+extern C {
+#endif
+
+/*SCANFLIKE2*/
+extern int sscanf(const char *, const char *, ...);
+extern int vsscanf(const char *, const char *, va_list);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif	/* _COMMON_UTIL_SSCANF_H */



CVS commit: src/sys/modules/zfs

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:22:16 UTC 2010

Modified Files:
src/sys/modules/zfs: Makefile

Log Message:
Update zfs module to new sources.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/zfs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/zfs

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:22:16 UTC 2010

Modified Files:
src/sys/modules/zfs: Makefile

Log Message:
Update zfs module to new sources.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/zfs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/modules/zfs/Makefile
diff -u src/sys/modules/zfs/Makefile:1.2 src/sys/modules/zfs/Makefile:1.3
--- src/sys/modules/zfs/Makefile:1.2	Mon Aug 10 22:39:38 2009
+++ src/sys/modules/zfs/Makefile	Sun Feb 28 15:22:16 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2009/08/10 22:39:38 haad Exp $
+#	$NetBSD: Makefile,v 1.3 2010/02/28 15:22:16 haad Exp $
 
 .include ../Makefile.inc
 
@@ -10,6 +10,7 @@
 
 SRCS+=	zfs_comutil.c
 SRCS+=	zfs_deleg.c
+SRCS+=	zfs_fletcher.c
 SRCS+=	zfs_namecheck.c
 SRCS+=	zfs_prop.c
 SRCS+=	zpool_prop.c
@@ -28,6 +29,8 @@
 SRCS+=	arc.c
 SRCS+=	bplist.c
 SRCS+=	dbuf.c
+SRCS+=	ddt.c
+SRCS+=	ddt_zap.c
 SRCS+=	dmu.c
 SRCS+=	dmu_object.c
 SRCS+=	dmu_objset.c
@@ -44,7 +47,6 @@
 SRCS+=	dsl_prop.c
 SRCS+=	dsl_scrub.c
 SRCS+=	dsl_synctask.c
-SRCS+=	fletcher.c
 SRCS+=	gzip.c
 SRCS+=	lzjb.c
 SRCS+=	metaslab.c
@@ -93,6 +95,7 @@
 SRCS+=	zio_inject.c
 SRCS+=	zutil.c
 SRCS+=	zvol.c
+SRCS+=	zle.c
 
 .PATH: ${ZFSDIR}/sys/kern
 
@@ -113,6 +116,7 @@
 CWARNFLAGS+=	-Wno-format
 
 CPPFLAGS+=	-I${ZFSDIR}/sys
+CPPFLAGS+=  -I${ZFSDIR}/dist/common
 CPPFLAGS+=	-I${ZFSDIR}/dist/common/acl
 CPPFLAGS+=	-I${ZFSDIR}/dist/common/zfs
 CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/fs/zfs



CVS commit: src/external/cddl/osnet

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:24:04 UTC 2010

Modified Files:
src/external/cddl/osnet: Makefile.zfs

Log Message:
Add missing -I definition.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/Makefile.zfs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 15:24:04 UTC 2010

Modified Files:
src/external/cddl/osnet: Makefile.zfs

Log Message:
Add missing -I definition.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/Makefile.zfs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/Makefile.zfs
diff -u src/external/cddl/osnet/Makefile.zfs:1.1 src/external/cddl/osnet/Makefile.zfs:1.2
--- src/external/cddl/osnet/Makefile.zfs:1.1	Fri Aug  7 20:57:55 2009
+++ src/external/cddl/osnet/Makefile.zfs	Sun Feb 28 15:24:04 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.zfs,v 1.1 2009/08/07 20:57:55 haad Exp $
+#	$NetBSD: Makefile.zfs,v 1.2 2010/02/28 15:24:04 haad Exp $
 
 .include bsd.own.mk
 
@@ -37,6 +37,8 @@
 CPPFLAGS+=	-I${ZFSDIR}/dist/lib/libzfs/common
 CPPFLAGS+=	-I${ZFSDIR}/dist/lib/libzpool/common
 
+CPPFLAGS+=  -I${ZFSDIR}/dist/common
+
 LIBAVL_SRCDIR= ${ZFSDIR}/lib/libavl
 LIBNVPAIR_SRCDIR= ${ZFSDIR}/lib/libnvpair
 LIBUMEM_SRCDIR= ${ZFSDIR}/lib/libumem



CVS commit: src/external/cddl/osnet/sys/sys

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 17:22:01 UTC 2010

Added Files:
src/external/cddl/osnet/sys/sys: sha2.h

Log Message:
Add NetBSD/Solaris compatibility SHA header.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/sys/sys/sha2.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/sys/sys

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 17:22:01 UTC 2010

Added Files:
src/external/cddl/osnet/sys/sys: sha2.h

Log Message:
Add NetBSD/Solaris compatibility SHA header.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/sys/sys/sha2.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/cddl/osnet/sys/sys/sha2.h
diff -u /dev/null src/external/cddl/osnet/sys/sys/sha2.h:1.1
--- /dev/null	Sun Feb 28 17:22:01 2010
+++ src/external/cddl/osnet/sys/sys/sha2.h	Sun Feb 28 17:22:01 2010
@@ -0,0 +1,20 @@
+#ifndef _SHA2_H_
+#define _SHA2_H_
+
+#include_next sys/sha2.h
+
+#define SHA2_CTX	SHA256_CTX
+#define SHA2Init(a, b)	SHA256_Init(b)
+#define SHA2Update 	SHA256_Update
+
+static void
+SHA2Final(void *digest, SHA2_CTX *ctx)
+{
+	uint8_t tmp[SHA256_DIGEST_LENGTH];
+
+	SHA256_Final(tmp, ctx);
+	memcpy(digest, tmp, sizeof(tmp));
+}
+
+
+#endif



CVS commit: src/external/cddl/osnet/lib

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 17:36:51 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libzfs: mnttab.c
src/external/cddl/osnet/lib/libzpool: kernel.c
Added Files:
src/external/cddl/osnet/lib/libzfs: stubs.c

Log Message:
Add fixes for missing symbols from libzfs and libzpool.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/lib/libzfs/mnttab.c
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/lib/libzfs/stubs.c
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/lib/libzpool/kernel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/lib

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 17:36:51 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libzfs: mnttab.c
src/external/cddl/osnet/lib/libzpool: kernel.c
Added Files:
src/external/cddl/osnet/lib/libzfs: stubs.c

Log Message:
Add fixes for missing symbols from libzfs and libzpool.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/lib/libzfs/mnttab.c
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/lib/libzfs/stubs.c
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/lib/libzpool/kernel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/lib/libzfs/mnttab.c
diff -u src/external/cddl/osnet/lib/libzfs/mnttab.c:1.1 src/external/cddl/osnet/lib/libzfs/mnttab.c:1.2
--- src/external/cddl/osnet/lib/libzfs/mnttab.c:1.1	Fri Aug  7 20:57:56 2009
+++ src/external/cddl/osnet/lib/libzfs/mnttab.c	Sun Feb 28 17:36:51 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: mnttab.c,v 1.1 2009/08/07 20:57:56 haad Exp $	*/
+/* $NetBSD: mnttab.c,v 1.2 2010/02/28 17:36:51 haad Exp $  */
 
 /*-
  * Copyright (c) 2006 Pawel Jakub Dawidek p...@freebsd.org
@@ -33,7 +33,7 @@
 
 #include sys/cdefs.h
 /* __FBSDID($FreeBSD: src/compat/opensolaris/misc/mnttab.c,v 1.1 2007/04/06 01:08:59 pjd Exp $); */
-__RCSID($NetBSD: mnttab.c,v 1.1 2009/08/07 20:57:56 haad Exp $); 
+__RCSID($NetBSD: mnttab.c,v 1.2 2010/02/28 17:36:51 haad Exp $);
 
 #include sys/param.h
 #include sys/statvfs.h
@@ -195,3 +195,10 @@
 	free(statvfs);
 	return (0);
 }
+
+int
+getmntent(FILE *file, struct mnttab *mnttab) {
+
+
+	return 1;
+}

Index: src/external/cddl/osnet/lib/libzpool/kernel.c
diff -u src/external/cddl/osnet/lib/libzpool/kernel.c:1.1 src/external/cddl/osnet/lib/libzpool/kernel.c:1.2
--- src/external/cddl/osnet/lib/libzpool/kernel.c:1.1	Fri Aug  7 20:57:56 2009
+++ src/external/cddl/osnet/lib/libzpool/kernel.c	Sun Feb 28 17:36:51 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: kernel.c,v 1.1 2009/08/07 20:57:56 haad Exp $	*/
+/* $NetBSD: kernel.c,v 1.2 2010/02/28 17:36:51 haad Exp $  */
 
 /*
  * CDDL HEADER START
@@ -29,7 +29,7 @@
 #pragma ident	%Z%%M%	%I%	%E% SMI
 
 #include sys/cdefs.h
-__RCSID($NetBSD: kernel.c,v 1.1 2009/08/07 20:57:56 haad Exp $);
+__RCSID($NetBSD: kernel.c,v 1.2 2010/02/28 17:36:51 haad Exp $);
 
 #include sys/zfs_context.h
 #include sys/sysctl.h
@@ -54,6 +54,7 @@
 #ifdef XXXNETBSD
 int hz = 119;	/* frequency when using gethrtime()  23 for lbolt */
 #endif
+int aok;
 uint64_t physmem;
 vnode_t *rootdir = (vnode_t *)0xabcd1234;
 char hw_serial[11];
@@ -63,6 +64,9 @@
 	userland
 };
 
+/* this only exists to have its address taken */
+struct proc p0;
+
 /*
  * =
  * threads
@@ -692,3 +696,10 @@
 
 	return npg * pgsize;
 }
+
+void
+print_timestamp(int fmt)
+{
+
+	return;
+}

Added files:

Index: src/external/cddl/osnet/lib/libzfs/stubs.c
diff -u /dev/null src/external/cddl/osnet/lib/libzfs/stubs.c:1.1
--- /dev/null	Sun Feb 28 17:36:51 2010
+++ src/external/cddl/osnet/lib/libzfs/stubs.c	Sun Feb 28 17:36:51 2010
@@ -0,0 +1,17 @@
+#include errno.h
+#include libintl.h
+#include link.h
+#include pthread.h
+#include strings.h
+#include unistd.h
+
+#include libzfs.h
+
+#include libzfs_impl.h
+
+void
+libzfs_fru_clear(libzfs_handle_t *hld, boolean_t bol)
+{
+
+	return;
+}



CVS commit: src/external/cddl/osnet/lib/libzfs

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 17:40:35 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libzfs: Makefile

Log Message:
Add newly added stubs.c file to libzfs build.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/lib/libzfs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/lib/libzfs

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 17:40:35 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libzfs: Makefile

Log Message:
Add newly added stubs.c file to libzfs build.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/lib/libzfs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/lib/libzfs/Makefile
diff -u src/external/cddl/osnet/lib/libzfs/Makefile:1.3 src/external/cddl/osnet/lib/libzfs/Makefile:1.4
--- src/external/cddl/osnet/lib/libzfs/Makefile:1.3	Sun Feb 21 01:46:35 2010
+++ src/external/cddl/osnet/lib/libzfs/Makefile	Sun Feb 28 17:40:35 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2010/02/21 01:46:35 darran Exp $
+#	$NetBSD: Makefile,v 1.4 2010/02/28 17:40:35 haad Exp $
 
 .PATH: ${.CURDIR}/../../dist/common/zfs
 .PATH: ${.CURDIR}/../../dist/common/fs/zfs
@@ -9,7 +9,7 @@
 LDADD=	-lutil
 
 # Local
-SRCS=	deviceid.c mnttab.c mkdirp.c zmount.c fsshare.c zone.c efi.c ucred.c
+SRCS=	deviceid.c mnttab.c mkdirp.c zmount.c fsshare.c zone.c efi.c ucred.c stubs.c
 
 # Sun
 SRCS+=	zfs_namecheck.c zprop_common.c zfs_prop.c zpool_prop.c



CVS commit: src/external/cddl/osnet/lib/libzfs

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 22:40:09 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libzfs: Makefile

Log Message:
Add missing zfs_fletcher.c to libzfs.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/cddl/osnet/lib/libzfs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/lib/libzfs

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 22:40:09 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libzfs: Makefile

Log Message:
Add missing zfs_fletcher.c to libzfs.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/cddl/osnet/lib/libzfs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/lib/libzfs/Makefile
diff -u src/external/cddl/osnet/lib/libzfs/Makefile:1.4 src/external/cddl/osnet/lib/libzfs/Makefile:1.5
--- src/external/cddl/osnet/lib/libzfs/Makefile:1.4	Sun Feb 28 17:40:35 2010
+++ src/external/cddl/osnet/lib/libzfs/Makefile	Sun Feb 28 22:40:09 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2010/02/28 17:40:35 haad Exp $
+#	$NetBSD: Makefile,v 1.5 2010/02/28 22:40:09 haad Exp $
 
 .PATH: ${.CURDIR}/../../dist/common/zfs
 .PATH: ${.CURDIR}/../../dist/common/fs/zfs
@@ -13,7 +13,7 @@
 
 # Sun
 SRCS+=	zfs_namecheck.c zprop_common.c zfs_prop.c zpool_prop.c
-SRCS+=	zfs_deleg.c zfs_comutil.c
+SRCS+=	zfs_deleg.c zfs_fletcher.c zfs_comutil.c
 SRCS+=	libzfs_dataset.c libzfs_util.c libzfs_graph.c libzfs_mount.c
 SRCS+=	libzfs_pool.c libzfs_changelist.c libzfs_config.c libzfs_import.c
 SRCS+=	libzfs_status.c libzfs_sendrecv.c



CVS commit: src/external/cddl/osnet/lib/libumem

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 22:45:45 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libumem: Makefile
Added Files:
src/external/cddl/osnet/lib/libumem: stub_stand.c

Log Message:
Addmissing symbols to libumem.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/lib/libumem/Makefile
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/lib/libumem/stub_stand.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/lib/libumem

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Feb 28 22:50:48 UTC 2010

Added Files:
src/external/cddl/osnet/lib/libumem: misc.h

Log Message:
Add forgotten misc.h header file, which I forgot to commit.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/lib/libumem/misc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/sys/sys

2010-02-28 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Mar  1 00:41:36 UTC 2010

Added Files:
src/external/cddl/osnet/sys/sys: bootprops.h priv_impl.h sysdc.h
unistd.h

Log Message:
Add header files needed for building zfs as kernel_module.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/sys/sys/bootprops.h \
src/external/cddl/osnet/sys/sys/priv_impl.h \
src/external/cddl/osnet/sys/sys/sysdc.h \
src/external/cddl/osnet/sys/sys/unistd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/cddl/osnet/sys/sys/priv_impl.h
diff -u /dev/null src/external/cddl/osnet/sys/sys/priv_impl.h:1.1
--- /dev/null	Mon Mar  1 00:41:36 2010
+++ src/external/cddl/osnet/sys/sys/priv_impl.h	Mon Mar  1 00:41:35 2010
@@ -0,0 +1,6 @@
+#ifndef _PRIV_IMPL_H_
+#define _PRIV_IMPL_H_
+
+
+
+#endif
Index: src/external/cddl/osnet/sys/sys/unistd.h
diff -u /dev/null src/external/cddl/osnet/sys/sys/unistd.h:1.1
--- /dev/null	Mon Mar  1 00:41:36 2010
+++ src/external/cddl/osnet/sys/sys/unistd.h	Mon Mar  1 00:41:35 2010
@@ -0,0 +1,17 @@
+
+#include_next sys/unistd.h
+
+#define _PC_ACL_ENABLED 20
+#define _PC_SATTR_ENABLED   23
+#define _PC_SATTR_EXISTS24
+#define _PC_ACCESS_FILTERING25
+/* UNIX 08 names */
+#define _PC_TIMESTAMP_RESOLUTION 26
+
+
+/*
+ * The value of 0 is returned when
+ * ACL's are not supported
+ */
+#define _ACL_ACLENT_ENABLED 0x1
+#define _ACL_ACE_ENABLED0x2



CVS commit: src/external/cddl/osnet/dist

2010-02-27 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sat Feb 27 22:33:14 UTC 2010

Update of /cvsroot/src/external/cddl/osnet/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv23407

Log Message:
Import new Opensolaris sources for zfs/dtrace. 

Opensolaris mercurial changeset: 11751:58c0c8f4305f


Status:

Vendor Tag: sun
Release Tags:   osnet-20100224

U src/external/cddl/osnet/dist/cmd/zfs/zfs_iter.h
U src/external/cddl/osnet/dist/cmd/zfs/zfs_util.h
U src/external/cddl/osnet/dist/cmd/zfs/zfs_iter.c
C src/external/cddl/osnet/dist/cmd/zfs/zfs_main.c
U src/external/cddl/osnet/dist/cmd/zpool/zpool_util.h
U src/external/cddl/osnet/dist/cmd/zpool/zpool_iter.c
U src/external/cddl/osnet/dist/cmd/zpool/zpool_main.c
U src/external/cddl/osnet/dist/cmd/zpool/zpool_util.c
C src/external/cddl/osnet/dist/cmd/zpool/zpool_vdev.c
U src/external/cddl/osnet/dist/cmd/dtrace/dtrace.c
U src/external/cddl/osnet/dist/cmd/zdb/zdb_il.c
U src/external/cddl/osnet/dist/cmd/zdb/zdb.c
C src/external/cddl/osnet/dist/cmd/ztest/ztest.c
U src/external/cddl/osnet/dist/common/acl/acl_common.h
U src/external/cddl/osnet/dist/common/acl/acl_common.c
U src/external/cddl/osnet/dist/common/ctf/ctf_impl.h
U src/external/cddl/osnet/dist/common/ctf/ctf_create.c
U src/external/cddl/osnet/dist/common/ctf/ctf_decl.c
U src/external/cddl/osnet/dist/common/ctf/ctf_error.c
U src/external/cddl/osnet/dist/common/ctf/ctf_hash.c
U src/external/cddl/osnet/dist/common/ctf/ctf_labels.c
U src/external/cddl/osnet/dist/common/ctf/ctf_lookup.c
U src/external/cddl/osnet/dist/common/ctf/ctf_open.c
U src/external/cddl/osnet/dist/common/ctf/ctf_types.c
U src/external/cddl/osnet/dist/common/ctf/ctf_util.c
U src/external/cddl/osnet/dist/common/zfs/zfs_comutil.h
U src/external/cddl/osnet/dist/common/zfs/zfs_deleg.h
U src/external/cddl/osnet/dist/common/zfs/zfs_namecheck.h
U src/external/cddl/osnet/dist/common/zfs/zfs_prop.h
N src/external/cddl/osnet/dist/common/zfs/zfs_fletcher.h
N src/external/cddl/osnet/dist/common/zfs/zfs_fletcher.c
U src/external/cddl/osnet/dist/common/zfs/zfs_comutil.c
U src/external/cddl/osnet/dist/common/zfs/zfs_deleg.c
U src/external/cddl/osnet/dist/common/zfs/zfs_namecheck.c
U src/external/cddl/osnet/dist/common/zfs/zfs_prop.c
U src/external/cddl/osnet/dist/common/zfs/zpool_prop.c
U src/external/cddl/osnet/dist/common/zfs/zprop_common.c
U src/external/cddl/osnet/dist/common/avl/avl.c
U src/external/cddl/osnet/dist/common/nvpair/nvpair.c
U src/external/cddl/osnet/dist/common/nvpair/nvpair_alloc_fixed.c
U src/external/cddl/osnet/dist/common/unicode/u8_textprep.c
U src/external/cddl/osnet/dist/head/storclass.h
U src/external/cddl/osnet/dist/head/nlist.h
U src/external/cddl/osnet/dist/head/note.h
U src/external/cddl/osnet/dist/head/syms.h
U src/external/cddl/osnet/dist/head/ucred.h
U src/external/cddl/osnet/dist/lib/libctf/common/ctf_lib.c
U src/external/cddl/osnet/dist/lib/libctf/common/libctf.h
U src/external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_decl.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_as.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_buf.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_errtags.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_dof.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_provider.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_ident.h
C src/external/cddl/osnet/dist/lib/libdtrace/common/dt_impl.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_inttab.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_list.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_module.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_parser.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_pcb.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_pid.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_program.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_aggregate.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_regset.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_string.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_strtab.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_xlator.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_as.c
C src/external/cddl/osnet/dist/lib/libdtrace/common/drti.c
C src/external/cddl/osnet/dist/lib/libdtrace/common/dt_consume.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_buf.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_cc.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_cg.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_provider.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_decl.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_dis.c
U 

CVS commit: src/external/cddl/osnet/dist

2010-02-27 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sat Feb 27 22:33:14 UTC 2010

Update of /cvsroot/src/external/cddl/osnet/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv23407

Log Message:
Import new Opensolaris sources for zfs/dtrace. 

Opensolaris mercurial changeset: 11751:58c0c8f4305f


Status:

Vendor Tag: sun
Release Tags:   osnet-20100224

U src/external/cddl/osnet/dist/cmd/zfs/zfs_iter.h
U src/external/cddl/osnet/dist/cmd/zfs/zfs_util.h
U src/external/cddl/osnet/dist/cmd/zfs/zfs_iter.c
C src/external/cddl/osnet/dist/cmd/zfs/zfs_main.c
U src/external/cddl/osnet/dist/cmd/zpool/zpool_util.h
U src/external/cddl/osnet/dist/cmd/zpool/zpool_iter.c
U src/external/cddl/osnet/dist/cmd/zpool/zpool_main.c
U src/external/cddl/osnet/dist/cmd/zpool/zpool_util.c
C src/external/cddl/osnet/dist/cmd/zpool/zpool_vdev.c
U src/external/cddl/osnet/dist/cmd/dtrace/dtrace.c
U src/external/cddl/osnet/dist/cmd/zdb/zdb_il.c
U src/external/cddl/osnet/dist/cmd/zdb/zdb.c
C src/external/cddl/osnet/dist/cmd/ztest/ztest.c
U src/external/cddl/osnet/dist/common/acl/acl_common.h
U src/external/cddl/osnet/dist/common/acl/acl_common.c
U src/external/cddl/osnet/dist/common/ctf/ctf_impl.h
U src/external/cddl/osnet/dist/common/ctf/ctf_create.c
U src/external/cddl/osnet/dist/common/ctf/ctf_decl.c
U src/external/cddl/osnet/dist/common/ctf/ctf_error.c
U src/external/cddl/osnet/dist/common/ctf/ctf_hash.c
U src/external/cddl/osnet/dist/common/ctf/ctf_labels.c
U src/external/cddl/osnet/dist/common/ctf/ctf_lookup.c
U src/external/cddl/osnet/dist/common/ctf/ctf_open.c
U src/external/cddl/osnet/dist/common/ctf/ctf_types.c
U src/external/cddl/osnet/dist/common/ctf/ctf_util.c
U src/external/cddl/osnet/dist/common/zfs/zfs_comutil.h
U src/external/cddl/osnet/dist/common/zfs/zfs_deleg.h
U src/external/cddl/osnet/dist/common/zfs/zfs_namecheck.h
U src/external/cddl/osnet/dist/common/zfs/zfs_prop.h
N src/external/cddl/osnet/dist/common/zfs/zfs_fletcher.h
N src/external/cddl/osnet/dist/common/zfs/zfs_fletcher.c
U src/external/cddl/osnet/dist/common/zfs/zfs_comutil.c
U src/external/cddl/osnet/dist/common/zfs/zfs_deleg.c
U src/external/cddl/osnet/dist/common/zfs/zfs_namecheck.c
U src/external/cddl/osnet/dist/common/zfs/zfs_prop.c
U src/external/cddl/osnet/dist/common/zfs/zpool_prop.c
U src/external/cddl/osnet/dist/common/zfs/zprop_common.c
U src/external/cddl/osnet/dist/common/avl/avl.c
U src/external/cddl/osnet/dist/common/nvpair/nvpair.c
U src/external/cddl/osnet/dist/common/nvpair/nvpair_alloc_fixed.c
U src/external/cddl/osnet/dist/common/unicode/u8_textprep.c
U src/external/cddl/osnet/dist/head/storclass.h
U src/external/cddl/osnet/dist/head/nlist.h
U src/external/cddl/osnet/dist/head/note.h
U src/external/cddl/osnet/dist/head/syms.h
U src/external/cddl/osnet/dist/head/ucred.h
U src/external/cddl/osnet/dist/lib/libctf/common/ctf_lib.c
U src/external/cddl/osnet/dist/lib/libctf/common/libctf.h
U src/external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_decl.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_as.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_buf.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_errtags.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_dof.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_provider.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_ident.h
C src/external/cddl/osnet/dist/lib/libdtrace/common/dt_impl.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_inttab.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_list.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_module.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_parser.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_pcb.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_pid.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_program.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_aggregate.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_regset.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_string.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_strtab.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_xlator.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_as.c
C src/external/cddl/osnet/dist/lib/libdtrace/common/drti.c
C src/external/cddl/osnet/dist/lib/libdtrace/common/dt_consume.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_buf.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_cc.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_cg.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_provider.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_decl.c
U src/external/cddl/osnet/dist/lib/libdtrace/common/dt_dis.c
U 

CVS commit: src/share/mk

2010-02-27 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sat Feb 27 22:42:54 UTC 2010

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
As a preparation for zfs sources update disable MKZFS for some time.


To generate a diff of this commit:
cvs rdiff -u -r1.618 -r1.619 src/share/mk/bsd.own.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/mk

2010-02-27 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sat Feb 27 22:42:54 UTC 2010

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
As a preparation for zfs sources update disable MKZFS for some time.


To generate a diff of this commit:
cvs rdiff -u -r1.618 -r1.619 src/share/mk/bsd.own.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.618 src/share/mk/bsd.own.mk:1.619
--- src/share/mk/bsd.own.mk:1.618	Sun Feb 21 01:48:03 2010
+++ src/share/mk/bsd.own.mk	Sat Feb 27 22:42:54 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.618 2010/02/21 01:48:03 darran Exp $
+#	$NetBSD: bsd.own.mk,v 1.619 2010/02/27 22:42:54 haad Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -675,7 +675,7 @@
 # We want to build zfs only for i386 and amd64 by default for now.
 #
 .if ${MACHINE} == amd64 || ${MACHINE} == i386
-MKZFS?=		yes
+MKZFS?=		no
 .endif
 
 #



CVS commit: src/external/cddl/osnet/dist

2010-02-27 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sat Feb 27 23:43:54 UTC 2010

Modified Files:
src/external/cddl/osnet/dist/cmd/zfs: zfs_main.c
src/external/cddl/osnet/dist/cmd/zpool: zpool_vdev.c
src/external/cddl/osnet/dist/cmd/ztest: ztest.c
src/external/cddl/osnet/dist/lib/libdtrace/common: drti.c dt_consume.c
dt_error.c dt_impl.h dt_module.c dt_pid.c dt_printf.c dt_proc.c
dt_program.c dt_subr.c
src/external/cddl/osnet/dist/lib/libzfs/common: libzfs_dataset.c
libzfs_import.c libzfs_mount.c libzfs_pool.c libzfs_util.c
src/external/cddl/osnet/dist/tools/ctf/cvt: ctf.c tdata.c
src/external/cddl/osnet/dist/uts/common: Makefile.files
src/external/cddl/osnet/dist/uts/common/dtrace: dtrace.c fasttrap.c
lockstat.c profile.c sdt_subr.c systrace.c
src/external/cddl/osnet/dist/uts/common/fs/zfs: arc.c dbuf.c dmu.c
dnode.c dnode_sync.c dsl_deleg.c dsl_pool.c rrwlock.c spa.c
spa_config.c spa_history.c space_map.c txg.c vdev.c vdev_disk.c
zap_micro.c zfs_acl.c zfs_dir.c zfs_fuid.c zfs_ioctl.c zfs_replay.c
zfs_vfsops.c zfs_vnops.c zfs_znode.c zio.c zvol.c
src/external/cddl/osnet/dist/uts/common/fs/zfs/sys: zfs_dir.h
zfs_znode.h zvol.h
src/external/cddl/osnet/dist/uts/common/sys: dtrace.h processor.h
sysevent.h
src/external/cddl/osnet/dist/uts/common/sys/fs: zfs.h

Log Message:
Merge NetBSD local changes to new zfs version 22 sources.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/dist/cmd/zfs/zfs_main.c
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/dist/cmd/zpool/zpool_vdev.c
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/dist/cmd/ztest/ztest.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/cddl/osnet/dist/lib/libdtrace/common/drti.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_error.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_impl.h \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_program.c
cvs rdiff -u -r1.3 -r1.4 \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_consume.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_pid.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_dataset.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_import.c \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_mount.c \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_pool.c \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_util.c
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c \
src/external/cddl/osnet/dist/tools/ctf/cvt/tdata.c
cvs rdiff -u -r1.1 -r1.2 \
src/external/cddl/osnet/dist/uts/common/Makefile.files
cvs rdiff -u -r1.6 -r1.7 \
src/external/cddl/osnet/dist/uts/common/dtrace/dtrace.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/cddl/osnet/dist/uts/common/dtrace/fasttrap.c \
src/external/cddl/osnet/dist/uts/common/dtrace/lockstat.c \
src/external/cddl/osnet/dist/uts/common/dtrace/profile.c \
src/external/cddl/osnet/dist/uts/common/dtrace/sdt_subr.c \
src/external/cddl/osnet/dist/uts/common/dtrace/systrace.c
cvs rdiff -u -r1.5 -r1.6 src/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c
cvs rdiff -u -r1.3 -r1.4 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dbuf.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ioctl.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/dist/uts/common/fs/zfs/dmu.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dnode.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dnode_sync.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dsl_deleg.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dsl_pool.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/rrwlock.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/spa.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/spa_history.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/space_map.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/txg.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zap_micro.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c \

CVS commit: src/external/cddl/osnet/dist

2010-02-27 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sat Feb 27 23:43:54 UTC 2010

Modified Files:
src/external/cddl/osnet/dist/cmd/zfs: zfs_main.c
src/external/cddl/osnet/dist/cmd/zpool: zpool_vdev.c
src/external/cddl/osnet/dist/cmd/ztest: ztest.c
src/external/cddl/osnet/dist/lib/libdtrace/common: drti.c dt_consume.c
dt_error.c dt_impl.h dt_module.c dt_pid.c dt_printf.c dt_proc.c
dt_program.c dt_subr.c
src/external/cddl/osnet/dist/lib/libzfs/common: libzfs_dataset.c
libzfs_import.c libzfs_mount.c libzfs_pool.c libzfs_util.c
src/external/cddl/osnet/dist/tools/ctf/cvt: ctf.c tdata.c
src/external/cddl/osnet/dist/uts/common: Makefile.files
src/external/cddl/osnet/dist/uts/common/dtrace: dtrace.c fasttrap.c
lockstat.c profile.c sdt_subr.c systrace.c
src/external/cddl/osnet/dist/uts/common/fs/zfs: arc.c dbuf.c dmu.c
dnode.c dnode_sync.c dsl_deleg.c dsl_pool.c rrwlock.c spa.c
spa_config.c spa_history.c space_map.c txg.c vdev.c vdev_disk.c
zap_micro.c zfs_acl.c zfs_dir.c zfs_fuid.c zfs_ioctl.c zfs_replay.c
zfs_vfsops.c zfs_vnops.c zfs_znode.c zio.c zvol.c
src/external/cddl/osnet/dist/uts/common/fs/zfs/sys: zfs_dir.h
zfs_znode.h zvol.h
src/external/cddl/osnet/dist/uts/common/sys: dtrace.h processor.h
sysevent.h
src/external/cddl/osnet/dist/uts/common/sys/fs: zfs.h

Log Message:
Merge NetBSD local changes to new zfs version 22 sources.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/dist/cmd/zfs/zfs_main.c
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/dist/cmd/zpool/zpool_vdev.c
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/dist/cmd/ztest/ztest.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/cddl/osnet/dist/lib/libdtrace/common/drti.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_error.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_impl.h \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_program.c
cvs rdiff -u -r1.3 -r1.4 \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_consume.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_pid.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c \
src/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_dataset.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_import.c \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_mount.c \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_pool.c \
src/external/cddl/osnet/dist/lib/libzfs/common/libzfs_util.c
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c \
src/external/cddl/osnet/dist/tools/ctf/cvt/tdata.c
cvs rdiff -u -r1.1 -r1.2 \
src/external/cddl/osnet/dist/uts/common/Makefile.files
cvs rdiff -u -r1.6 -r1.7 \
src/external/cddl/osnet/dist/uts/common/dtrace/dtrace.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/cddl/osnet/dist/uts/common/dtrace/fasttrap.c \
src/external/cddl/osnet/dist/uts/common/dtrace/lockstat.c \
src/external/cddl/osnet/dist/uts/common/dtrace/profile.c \
src/external/cddl/osnet/dist/uts/common/dtrace/sdt_subr.c \
src/external/cddl/osnet/dist/uts/common/dtrace/systrace.c
cvs rdiff -u -r1.5 -r1.6 src/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c
cvs rdiff -u -r1.3 -r1.4 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dbuf.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ioctl.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
cvs rdiff -u -r1.2 -r1.3 src/external/cddl/osnet/dist/uts/common/fs/zfs/dmu.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dnode.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dnode_sync.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dsl_deleg.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dsl_pool.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/rrwlock.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/spa.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/spa_history.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/space_map.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/txg.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zap_micro.c \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c \

CVS commit: src/sys/dev/dm

2010-02-25 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Thu Feb 25 23:37:39 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
Fix device-mapper to work in builtin case. This commit fixes

PR: 42799

REwork fix commited by jak@ to be more readable and remove unneeded ifdef 
_MODULE.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/dm/device-mapper.c
diff -u src/sys/dev/dm/device-mapper.c:1.16 src/sys/dev/dm/device-mapper.c:1.17
--- src/sys/dev/dm/device-mapper.c:1.16	Thu Feb 25 20:48:58 2010
+++ src/sys/dev/dm/device-mapper.c	Thu Feb 25 23:37:39 2010
@@ -1,7 +1,7 @@
-/*$NetBSD: device-mapper.c,v 1.16 2010/02/25 20:48:58 jakllsch Exp $ */
+/*$NetBSD: device-mapper.c,v 1.17 2010/02/25 23:37:39 haad Exp $ */
 
 /*
- * Copyright (c) 2008 The NetBSD Foundation, Inc.
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -46,6 +46,7 @@
 #include sys/ioccom.h
 #include sys/kmem.h
 #include sys/module.h
+#include sys/once.h
 
 #include netbsd-dm.h
 #include dm.h
@@ -59,10 +60,9 @@
 static dev_type_size(dmsize);
 
 /* attach and detach routines */
-void dmattach(int);
-void dmdestroy(void);
+int dmattach(void);
+int dmdestroy(void);
 
-static void dm_init(void);
 static int dm_cmd_to_fun(prop_dictionary_t);
 static int disk_ioctl_switch(dev_t, u_long, void *);
 static int dm_ioctl_switch(u_long);
@@ -149,9 +149,7 @@
 static int
 dm_modcmd(modcmd_t cmd, void *arg)
 {
-#ifdef _MODULE
-	int error;
-	int bmajor, cmajor;
+	int error, bmajor, cmajor;
 
 	error = 0;
 	bmajor = -1;
@@ -163,7 +161,7 @@
 		if (error)
 			break;
 
-		error = config_cfattach_attach(dm_cd.cd_name, dm_ca);
+		error = dmattach();
 		if (error) {
 			config_cfdriver_detach(dm_cd);
 			aprint_error(%s: unable to register cfattach\n,
@@ -178,9 +176,6 @@
 			config_cfdriver_detach(dm_cd);
 			break;
 		}
-
-		dm_init();
-
 		break;
 
 	case MODULE_CMD_FINI:
@@ -192,9 +187,8 @@
 		 */ 
 		if (dm_dev_counter  0)
 			return EBUSY;
-		dmdestroy();
 
-		error = config_cfattach_detach(dm_cd.cd_name, dm_ca);
+		error = dmdestroy();
 		if (error)
 			break;
 
@@ -210,13 +204,6 @@
 	}
 
 	return error;
-#else
-
-	if (cmd == MODULE_CMD_INIT)
-		return 0;
-	return ENOTTY;
-
-#endif /* _MODULE */
 }
 
 
@@ -284,31 +271,48 @@
 	return 0;
 }
 
-/* attach routine */
-void
-dmattach(int num)
+static int
+doinit(void)
 {
 	int error;
-
+	
 	error = config_cfattach_attach(dm_cd.cd_name, dm_ca);
 	if (error) {
-		aprint_error(%s: unable to register cfattach\n,
-		dm_cd.cd_name);
-		return;
+		aprint_error(Unable to register cfattach for dm driver\n);
+		return error;
 	}
+	
+	dm_target_init();
+	dm_dev_init();
+	dm_pdev_init();
 
-	dm_init();
+	return 0;
+}
+
+/* attach routine */
+int
+dmattach(void)
+{
+	static ONCE_DECL(control);
+
+	return RUN_ONCE(control, doinit);
 }
 
 /* Destroy routine */
-void
+int
 dmdestroy(void)
 {
+	int error;
 
+	error = config_cfattach_detach(dm_cd.cd_name, dm_ca);
+	if (error)
+		return error;
+	
 	dm_dev_destroy();
 	dm_pdev_destroy();
 	dm_target_destroy();
 
+	return 0;
 }
 
 static int
@@ -366,14 +370,6 @@
 	return r;
 }
 
-static void
-dm_init(void)
-{
-	dm_target_init();
-	dm_dev_init();
-	dm_pdev_init();
-}
-
 /*
  * Translate command sent from libdevmapper to func.
  */



CVS commit: src/sys/dev/dm

2010-02-25 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Thu Feb 25 23:37:39 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
Fix device-mapper to work in builtin case. This commit fixes

PR: 42799

REwork fix commited by jak@ to be more readable and remove unneeded ifdef 
_MODULE.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/cddl/osnet/lib/libnvpair

2010-02-22 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Feb 22 20:05:03 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libnvpair: Makefile

Log Message:
Revert lib_nvpair hack now when it is not needed when njoly@ commited his fix to
bsd.lib.mk.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/cddl/osnet/lib/libnvpair/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/lib/libnvpair/Makefile
diff -u src/external/cddl/osnet/lib/libnvpair/Makefile:1.4 src/external/cddl/osnet/lib/libnvpair/Makefile:1.5
--- src/external/cddl/osnet/lib/libnvpair/Makefile:1.4	Sun Feb 21 01:46:35 2010
+++ src/external/cddl/osnet/lib/libnvpair/Makefile	Mon Feb 22 20:05:03 2010
@@ -1,17 +1,11 @@
-#	$NetBSD: Makefile,v 1.4 2010/02/21 01:46:35 darran Exp $
+#	$NetBSD: Makefile,v 1.5 2010/02/22 20:05:03 haad Exp $
 
 .PATH:  ${.CURDIR}/../../dist/lib/libnvpair
 .PATH:  ${.CURDIR}/../../dist/common/nvpair
 
 LIB=	nvpair
 
-SRCS=	lib_nvpair.c nvpair_alloc_system.c nvpair_alloc_fixed.c nvpair.c
-
-lib_nvpair.c: libnvpair.c
-	@rm -f ${.TARGET}
-	@ln -s ${.ALLSRC} ${.TARGET}
-
-CLEANFILES+=lib_nvpair.c
+SRCS=	libnvpair.c nvpair_alloc_system.c nvpair_alloc_fixed.c nvpair.c
 
 .include ../../Makefile.zfs
 .include bsd.lib.mk



CVS commit: src/external/cddl/osnet/lib/libnvpair

2010-02-22 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Feb 22 20:05:03 UTC 2010

Modified Files:
src/external/cddl/osnet/lib/libnvpair: Makefile

Log Message:
Revert lib_nvpair hack now when it is not needed when njoly@ commited his fix to
bsd.lib.mk.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/cddl/osnet/lib/libnvpair/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2010-02-11 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Thu Feb 11 23:13:46 UTC 2010

Modified Files:
src/share/man/man9: kmem.9
src/sys/kern: subr_kmem.c
src/sys/sys: kmem.h

Log Message:
Add kmem_asprintf rotuine which allocates string accordingly to format
string from kmem pool. Allocated string is string length + 1 char for ending
zero.

Ok: a...@.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man9/kmem.9
cvs rdiff -u -r1.32 -r1.33 src/sys/kern/subr_kmem.c
cvs rdiff -u -r1.3 -r1.4 src/sys/sys/kmem.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2010-02-11 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Thu Feb 11 23:16:35 UTC 2010

Modified Files:
src/share/man/man9: vnode.9
src/sys/kern: vfs_subr.c
src/sys/sys: vnode.h

Log Message:
Add vrele_async routine which asynchronously release vnodes in different contex
and in some time in the future.

Ok: a...@.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/share/man/man9/vnode.9
cvs rdiff -u -r1.397 -r1.398 src/sys/kern/vfs_subr.c
cvs rdiff -u -r1.213 -r1.214 src/sys/sys/vnode.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2010-02-11 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Thu Feb 11 23:28:53 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi
src/share/man/man9: Makefile

Log Message:
Hook kmem_asprintf and vrele_async manpages to the build.


To generate a diff of this commit:
cvs rdiff -u -r1.1388 -r1.1389 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.314 -r1.315 src/share/man/man9/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/external/bsd/liblzf/dist

2010-02-03 Thread Adam Hamsik

On Feb,Thursday 4 2010, at 1:45 AM, Joerg Sonnenberger wrote:

 On Wed, Feb 03, 2010 at 04:26:22PM -0800, Jason Thorpe wrote:
 
 On Feb 3, 2010, at 3:58 PM, Joerg Sonnenberger wrote:
 
 
 Like I said, I don't have a problem with a fast, small compressor. But
 it would strongly help to actually have a use case. As file format, I
 object it, e.g. it seems to have no real header etc.
 
 Does it even really define a file format?  Seems reasonable to let
 something else provide the container.
 
 See question about use case :)

Can I suggest creating of GSOC project, which will integrate this into the base 
?

Regards

Adam.



Re: CVS commit: src/external/bsd/liblzf/dist

2010-02-02 Thread Adam Hamsik

On Feb,Wednesday 3 2010, at 6:44 AM, Thor Lancelot Simon wrote:

 On Wed, Feb 03, 2010 at 04:04:22PM +1100, matthew green wrote:
 
   Update of /cvsroot/src/external/bsd/liblzf/dist
   In directory ivanova.netbsd.org:/tmp/cvs-serv22361
 
   Log Message:
   Import liblzf version 3.5 (2-clause BSD licensed by Marc Lehmann)
 
 
 what's liblzf, and why do we want it in base?
 
 It's a tiny, very very fast compression library.  Christos wants it
 for bootblocks, among other things (or so he says -- ask him).
 
 The other obvious choice would be LZO but there's no suitably-licensed
 implementation which performs well.
 
 We've had it in our tree at Coyote Point for a long time for a completely
 different purpose, so I just grabbed it across.  As time permits, I will
 plug it into things like ssh, libarchive, and ipcomp.
 

Where was this change discussed ? Why were are importing sourcecode without any 
users in base system(look at Lua case). If time permits is quite vague, if you 
will not have a time who will plug this lib to base ?

Regards

Adam.



CVS commit: src/sys/arch/xen/xen

2010-01-23 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Jan 24 04:06:31 UTC 2010

Modified Files:
src/sys/arch/xen/xen: xbdback_xenbus.c

Log Message:
Finaly fix problems with using WEDGE like devices as xen backend devices.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/xen/xen/xbdback_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2010-01-17 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Jan 17 12:08:29 UTC 2010

Modified Files:
src/sys/arch/xen/xen: xbdback_xenbus.c

Log Message:
Fix problem where xbdi-xbdi_size was set to 0 after succesfull DIOCGWEDGEINFO
call. Problem reported in private mail.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/xen/xen/xbdback_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/sys

2010-01-12 Thread Adam Hamsik

On Jan,Wednesday 13 2010, at 12:14 AM, David Young wrote:

 On Wed, Jan 13, 2010 at 01:08:28AM +0200, Antti Kantee wrote:
 On Tue Jan 12 2010 at 15:04:03 -0800, Paul Goyette wrote:
 On Wed, 13 Jan 2010, Antti Kantee wrote:
 
 This breaks the cgd kernel module (and the rump component).
 
 Breaks how?
 
 What cgd kernel module?  Is there something special I need to do to 
 build it?  It doesn't seem to show up with a build.sh release
 
 The one from sys/modules/cgd.
 
 Hmm.  That's not built in a release, is it?

It is not built in release.

Regards

Adam.



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2010-01-09 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Jan 10 01:35:39 UTC 2010

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_replay.c

Log Message:
Fix problem in ZFS ZIL layer where unclean shutdown of filesystem can change
replayed file permissions to 777. Patch from FreeBSD. Original commit message:

Be careful which vattr fields are set during setattr replay.
Without this fix strange things can appear after unclean shutdown like
files with mode set to 0.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_replay.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/man

2010-01-04 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Jan  4 20:18:02 UTC 2010

Modified Files:
src/distrib/sets/lists/man: mi

Log Message:
Revert my unattended change to kadmind.html page


To generate a diff of this commit:
cvs rdiff -u -r1.1179 -r1.1180 src/distrib/sets/lists/man/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-01-03 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Jan  3 12:53:00 UTC 2010

Modified Files:
src/sys/dev/dm: dm_pdev.c

Log Message:
Replace aprint_Verbose with aprint_debug to shutup unnecessary logs.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/dm/dm_pdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-01-03 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Jan  3 22:44:10 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
KNF police, remove unnecessary whitespaces and tabulators. Refactor dmioctl
to not use prop_dictionary_copy* functions if NetBSD_DM_IOCTL command was
not called on device. If disk_ioctl returms anything else then ENOTTY exit
from dmioctl.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-01-03 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sun Jan  3 22:55:26 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
Refactor dmioctl to by cleaner and to copyout dictionary in case when something
went wrong.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-01-03 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Jan  4 00:14:41 UTC 2010

Modified Files:
src/sys/dev/dm: dm_target.c dm_target_linear.c dm_target_stripe.c

Log Message:
Indent files remove unnecessary blank lines, white spaces and KNFize code.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/dm/dm_target_linear.c \
src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-01-03 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Jan  4 00:19:08 UTC 2010

Modified Files:
src/sys/dev/dm: dm_dev.c dm_ioctl.c dm_pdev.c dm_table.c

Log Message:
Indent files remove unnecessary blank lines, white spaces and KNFize code.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/dm/dm_dev.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/dm/dm_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/distrib/sets/lists

2009-12-05 Thread Adam Hamsik

On Dec,Saturday 5 2009, at 5:48 AM, Soren Jacobsen wrote:

 Module Name:  src
 Committed By: snj
 Date: Sat Dec  5 04:48:21 UTC 2009
 
 Modified Files:
   src/distrib/sets/lists/base: shl.elf shl.mi
   src/distrib/sets/lists/comp: mi shl.mi
 
 Log Message:
 Update for librumpdev_dm (hi haad!).

Thanks!

Regards

Adam.



Re: CVS commit: src/share/mk

2009-12-03 Thread Adam Hamsik

On Dec,Friday 4 2009, at 6:13 AM, Masao Uebayashi wrote:

 Yes, indeed. But this will only work if sets.subr actually
 checks for this variable, won't it?
 
 Yes.
 
 sets.subr fetches ${_MKVARS.yes} and ${_MKVARS.no} var names:
 = MKZFS is in ${_MKVARS.no}
 
 sets.subr agains fetches all values for all var names:
 = MKZFS=${MKZFS}
 
 Am I missing anything else?

MKZFS should be enabled by default on i386 + amd64. Can anyone explain to me 
what are you doing here with _MKVARS ?

Regards

Adam.



Re: CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2009-10-30 Thread Adam Hamsik


On Oct,Friday 30 2009, at 12:25 AM, Bill Stouder-Studenmund wrote:


On Thu, Oct 29, 2009 at 11:58:32PM +0100, Adam Hamsik wrote:


On Oct,Thursday 29 2009, at 8:15 PM, David Laight wrote:


On Wed, Oct 28, 2009 at 11:44:51PM +, Adam Hamsik wrote:

Module Name:src
Committed By:   haad
Date:   Wed Oct 28 23:44:51 UTC 2009

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c
zfs_znode.c

Log Message:
Add workaround about zfs vnode reclaiming deadlock by checking if
we don't
ehld ZFS_MUTEX_OBJ already. If we can lock OBJ_MUTEX deffer
execution of
zfs_zinactive to taskq. Code was inspired by FreeBSD
zfs_freebsd_reclaim.


This doesn't sound right at all ...

If the 'If we can lock OBJ_MUTEX' test is a try_mutex_enter() then
it may fail because another lwp owns it ...
I hope it is only the checkin comment that is inverted!


There are 3 option which can happen

1) Our lwp already holds mutex
2) mutex is not held at all
3) Another LWP holds it

In case 1 we can call reclaim vnode, in case 2 we lock it with
try_mutex_enter and reclaim it and in case 3 we use taskq for
reclaiming of vnode.


This is reclaiming in response to someone trying to get a cleaned  
vnode,
correct? If so, we should just change the reclaim API and return  
something
like EBUSY. If it's just cleaning to clean, then having a taskq do  
it is

fine.


That can be done but ti will require to change all fses +  
getcleanvnode because currently when it can't clean vnode it panics.



Where you able to look at the repository at macosforge.org before it  
shut

down? I think that would show a take at solving similar issues.


Yeah I have it somewhere around here, but as I noted I used freebsd  
version as a working example for this patch.



Regards

Adam.



Re: CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2009-10-29 Thread Adam Hamsik


On Oct,Thursday 29 2009, at 8:15 PM, David Laight wrote:


On Wed, Oct 28, 2009 at 11:44:51PM +, Adam Hamsik wrote:

Module Name:src
Committed By:   haad
Date:   Wed Oct 28 23:44:51 UTC 2009

Modified Files:
	src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c  
zfs_znode.c


Log Message:
Add workaround about zfs vnode reclaiming deadlock by checking if  
we don't
ehld ZFS_MUTEX_OBJ already. If we can lock OBJ_MUTEX deffer  
execution of
zfs_zinactive to taskq. Code was inspired by FreeBSD  
zfs_freebsd_reclaim.


This doesn't sound right at all ...

If the 'If we can lock OBJ_MUTEX' test is a try_mutex_enter() then
it may fail because another lwp owns it ...
I hope it is only the checkin comment that is inverted!


There are 3 option which can happen

1) Our lwp already holds mutex
2) mutex is not held at all
3) Another LWP holds it

In case 1 we can call reclaim vnode, in case 2 we lock it with  
try_mutex_enter and reclaim it and in case 3 we use taskq for  
reclaiming of vnode.

Regards

Adam.



Re: CVS commit: src

2009-10-15 Thread Adam Hamsik


On Oct,Thursday 15 2009, at 10:58 PM, Jean-Yves Migeon wrote:


Jason R Thorpe wrote:

Module Name:src
Committed By:   thorpej
Date:   Thu Oct 15 20:50:13 UTC 2009
Modified Files:
src/share/man/man9: pool_cache.9
src/sys/kern: subr_pool.c
src/sys/sys: pool.h
Log Message:
- pool_cache_invalidate(): broadcast a cross-call to drain the per- 
CPU

 caches before draining the global cache.
- pool_cache_invalidate_local(): remove.




We need to update lists and mark pool_cache_invalidate_local man page  
as obsolete.



Thanks!

--
Jean-Yves Migeon
jeanyves.mig...@free.fr


Regards

Adam.



Re: CVS commit: src/etc/rc.d

2009-10-06 Thread Adam Hamsik

Hi,
On Oct,Tuesday 6 2009, at 9:03 AM, Alan Barrett wrote:


On Mon, 05 Oct 2009, Adam Hamsik wrote:

Modified Files:
src/etc/rc.d: mountall

Log Message:
Add support for mounting zfs filesystems to mountall script. ZFS  
configuration
is stored in /etc/zpool.cache and it is automatically loaded to  
kernel from
filesystem. Filesystems are then configured accordingly to their  
properties

loaded from cache file.


Is /etc/zpool.cache a human-edited configuration file (in which
case, why the .cache name?), or is it a machine-readable database  
(in

which case, why is it in /etc?), or is it something else?


It is a binary file. Something like binary plist. Do you have any  
better place for it ? I think that we should keep it in etc until we  
start work on a zfs on root support then we will need to move it some  
where else anyway.


Regards

Adam.



Re: CVS commit: src/sys/ufs/ufs

2009-09-23 Thread Adam Hamsik


On Sep,Tuesday 22 2009, at 9:42 PM, Antti Kantee wrote:


On Tue Sep 22 2009 at 21:04:14 +0200, Manuel Bouyer wrote:
that's not an issue with the reference count. It's an issue with  
vclean()

calling VOP_RECLAIM() even if the refcount is greater than 1, and
vrelel() calling vclean() even if the refcount is greater than 1,
when the file has been unlink(2)ed. There's a comment about this in
vrelel(), look for variable recycle.


Ah, ic, probably would've been easier if I read the PR first ;)

So basically someone can vget the vnode (via fhtovp, since it's gone
from the directory namespace) between VOP_INACTIVE and clean.

Your fix doesn't really fix this problem, since depending on timings
the inode might still be recycled after you check it's valid.

Hmm, ok, so things which might happen:

1: VOP_REMOVE, vnode is locked, vrele is called
2: fhtovp before inode is reclaimed, blocks on vn_lock
1: VOP_INACTIVE releases vnlock, returns signal to recycle vnode
2: gets lock, does check that it's still the same inode
1: reclaims vnode
2: boom

Since vget takes the interlock, a dirty  cheap trick might be to  
check
that the reference count is still one before trying to clean the  
vnode in
vrelel(), otherwise punting and letting the next release-to-0  
reclaim it?


Blah, I didn't even want to think about this migrane-inducer now.
Maybe people who have recently worked on vnode reclaiming could  
instead

be the ones to comment?


Sorry I haven't read this thread until today. I think that it would be  
good to test my vreclaim patched kernel it might help to resolve your  
problem. But I don't think it is a solution see above.



Regards

Adam.



Re: CVS commit: src/etc/rc.d

2009-04-21 Thread Adam Hamsik


On Apr,Tuesday 21 2009, at 5:46 PM, Paul Goyette wrote:


It started for me on Saturday, when I updated from 5.99.8 to 5.99.11


This should be fixed now.

Regards

Adam.