Commit Graph

52 Commits

Author SHA1 Message Date
haad 4296646a10 Fix spa_thread to compile under the NetBSD. 2010-05-10 06:15:28 +00:00
haad fd29a8703f Get new vnode when creating zfs share dir for it's znode. 2010-05-10 06:10:59 +00:00
haad 4d91be73cd Disable uvm_reclaim_hook for userland builds. 2010-05-06 22:35:37 +00:00
haad ffca0f125a Fix difference btween solaris cv_timedwait and NetBSD one. NetBSD takes
offset from current time and solaris exact time from unix born.
2010-05-06 22:31:46 +00:00
haad 6e62dfc5b4 Fix zfs version 22 merge error. 2010-05-06 22:26:55 +00:00
ahoka 290cdd631e Remove a couple of zero length kmem_frees.
It should fix at least one crash when unloading the dtrace module,
possibly many others.
2010-04-23 11:39:52 +00:00
christos 4c1d35303b don't use NULL for 0 2010-04-03 19:01:15 +00:00
christos a27b6b66af remove useless double [[ 2010-04-03 18:43:54 +00:00
christos 3642b6f6d7 hack for amd64 2010-04-03 18:43:34 +00:00
christos 958e171b8e make dtrace compile on amd64. 2010-03-13 22:31:15 +00:00
darran f6bf800773 DTrace: Add the Function Boundary Trace (FBT) provider moduile. This
module  instruments every function in the kernel with entry and exit
probes.  These probes are true zero-effect probes in that they don't
exist in the code until they are enabled.  The probes are enabled by
directly patching the function entry and exit points to make jumps into
the dtrace framework.
This gives us over 29,000 trace points in the kernel.
2010-03-12 21:53:15 +00:00
darran 5b3b7dba24 DTrace: fix a few build issues for tools and the dtrace provider operation
interface.
2010-03-11 23:28:07 +00:00
darran 2ac926fa16 DTrace: The CTF format is limited to only 1024 elements in an enum,
so rather than error out when there are more than this just truncate the
length.
2010-03-11 23:26:33 +00:00
darran b50656c859 DTrace: fix the curthread and mutex data types. 2010-03-05 01:53:15 +00:00
darran dc1214bcba DTrace: Explicitly check for OS X to decide if echo needs -e. 2010-03-05 01:34:35 +00:00
darran fe6ba50113 DTrace: Get DTrace to build on OS X platforms. 2010-03-02 21:08:36 +00:00
darran 19c2a5114b DTrace: make sure we get a processorid_t definition (fix zfs module build). 2010-03-02 00:55:46 +00:00
darran 8a2ce716b0 DTrace: fix the dtps_provide_module definition. 2010-03-02 00:43:36 +00:00
darran ffcea0cd00 DTrace: processorid_t is defined elsewhere (pset.h), so make it a sun only
definition here.
2010-03-01 22:20:15 +00:00
haad 384eb3acb2 Remove fletcher.c from dist it was moved to common/zfs/zfs_fletcher.c in upstream. 2010-03-01 20:38:19 +00:00
haad 5a7add5b9c Removee compile time generated file from dist it is in osnet/sys/sys now. 2010-03-01 20:10:46 +00:00
darran ac8906f757 DTrace: fix a few problems introduced by the recent ZFS update (expected
problems from the OpenSolaris merge).
2010-03-01 11:19:39 +00:00
haad 90f8c9d149 Add missing header file, I will tag it to osnet-20100224 later. 2010-02-28 15:17:44 +00:00
haad a252d550c0 Merge NetBSD local changes to new zfs version 22 sources. 2010-02-27 23:43:52 +00:00
haad f59c7639cd Import new Opensolaris sources for zfs/dtrace.
Opensolaris mercurial changeset: 11751:58c0c8f4305f
2010-02-27 22:29:20 +00:00
darran 216ff964d9 DTrace: okay *really* fix the deadman exit handling. No need for that
over-complicated handshake. Fixes a lockdebug mutex held issue.
2010-02-25 16:49:19 +00:00
darran 4d76bb3302 DTrace: fix a problem with the code waiting for the deadman thread to exit
- now it does actually wait for it to exit.  Thanks to Frank Kardel for
spotting this.
2010-02-25 11:12:02 +00:00
darran bb7c1e9274 DTrace: fix CTF tools for non-toolchain build. 2010-02-25 00:18:44 +00:00
darran 89300bd9df DTrace: Get the CTF tools building as part of the toolchain. 2010-02-24 21:53:26 +00:00
darran 9f15b3a450 Fix a bug in the dtrace_state_deadman() thread; return should have been
a continue (thanks Frank!).
2010-02-24 21:08:54 +00:00
darran 01c9547e57 Apply NetBSD changes to DTrace.
Ok with core@.
2010-02-21 01:46:32 +00:00
darran bb8023b5c1 Add the FreeBSD 8-RC1 changes for DTrace.
Ok with core@.
2010-02-21 00:49:51 +00:00
darran a864dc36a1 Import the rest of Opensolaris 20081117 needed for DTrace. No conflicts
with ZFS.
2010-02-20 04:33:34 +00:00
tron 9ee09dfd6f Replace VATTR_NULL() with vattr_null(). The ZFS module can be loaded
again now.
2010-01-11 12:10:18 +00:00
haad f1a671f674 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 07777.
2010-01-10 01:35:39 +00:00
mbalmer a72f71643d Fix typo in comments, no code change. 2009-12-23 09:17:40 +00:00
tron 0afc8953b4 Make this build. 2009-10-29 10:26:17 +00:00
haad afa6bc484e 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.

XXX. This needs to be fixed after finding final solution for vnode lifecycle.
2009-10-28 23:44:51 +00:00
haad 4d85867fc4 Cast physmem to (uint64_t) so it works on a amd64 system with more than 4Gb ram.
undef btop if it was already included from other NetBSD header file.
2009-10-11 10:58:06 +00:00
haad 6a4395f648 Replace another openat call with open + changed path.
XXX. This commit should be reverted after proper implementation of *at syscalls.
2009-10-06 12:03:47 +00:00
haad ecabea58c7 Do not use sysent solaris framework there is no such thing in a NetBSD. 2009-10-05 23:31:16 +00:00
haad ded7269130 Disable *at functions for now. These functions should be implemented
because they are part of POSIX standard but it seems to be a long time process.

XXX. This commit should be reverted after adding support for openat and fstatat.
2009-10-05 16:25:27 +00:00
haad a6ae7c3f3a Revert my last wrong change this will need more work. 2009-09-15 02:04:12 +00:00
haad 7166baaa71 On i386 use 32bit version of atomic_add_op because 64 doesn't work on
i486 userland.
2009-09-15 01:48:41 +00:00
haad 732a349764 Register callbacks for reclaiming kvm kernel space to arc. Unregister both
kvm address space and memory callbacks from kernel during arc_fini call.
2009-08-12 21:52:41 +00:00
haad 15e894922a Add missing header file. 2009-08-10 22:47:09 +00:00
haad 4c1e749f2d Add some NetBSD fixes which I have forgot to commit during first round.
With these patches I can build solaris and zfs module again.
2009-08-10 22:38:02 +00:00
haad 2a8f255ae1 Enable zfs module only for machine with at least 512Mb ram. 2009-08-07 22:47:19 +00:00
haad 82fbb9f0e8 Fix bogus comment, and remove superfluous parenthesis. 2009-08-07 22:46:04 +00:00
haad 6a125a398c Add NetBSD specific changes to OpenSolaris code. These changes were made
by Andrew Doran and me. Thank you Andrew for your great help.

Oked by core@ and ad@.
2009-08-07 20:16:44 +00:00