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
84501f8fef
DTrace: have DTrace build with out requiring MKZFS=yes.
2010-02-25 00:14:10 +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
tron
3d553f9ca7
Disable stack protection warnings for more sources which use dynamically
...
sized stack buffers.
2010-02-24 15:40:54 +00:00
tron
ab396280fe
Disable stack protection warnings for sources which use dynamically
...
sized stack buffers.
2010-02-24 12:51:05 +00:00
tron
00ff80736e
Include "bsd.own.mk" before checking "MKDTRACE" to allow setting it
...
in "/etc/mk.conf".
2010-02-24 12:18:37 +00:00
tron
235f29a8f3
Disable stack protection warnings for "zdb_il.c" which uses a dynamically
...
sized array on the stack.
2010-02-24 11:56:35 +00:00
haad
a7a3d3b216
Revert lib_nvpair hack now when it is not needed when njoly@ commited his fix to
...
bsd.lib.mk.
2010-02-22 20:05:03 +00:00
tron
c76e590d3d
Disable stack protection warnings for "dtrace.c" which uses alloca(3).
2010-02-22 12:21:27 +00:00
darran
7b822b43cb
DTrace: fix a problem with library references for libctf and libdtrace.
2010-02-21 11:00:01 +00:00
darran
4e42fd7663
DTrace: remove extra libshare.h - shouldn't have added it and it breaks
...
the libzfs build.
2010-02-21 10:21:06 +00:00
darran
17b93c1002
DTrace: remove assert.h - shouldn't have been checked in (breaks libdtrace
...
build).
2010-02-21 09:52:08 +00:00
darran
f2505ce1e5
DTrace: remove file.h - it shouldn't have been added and breaks zfs.
2010-02-21 08:28:40 +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
christos
0f0ea55dc4
Fix build issue with our make system building libnvpair.so from libnvpair.c
...
and libnvpair.so from *.so by renaming libnvpair.c to lib_nvpair.c
2010-02-17 17:36:32 +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
ober
9067e90d8c
Fix comment to meet style guidelines.
2010-01-08 03:41:58 +00:00
ober
c56ace41b0
Make sure the comment is specific to being a hack and that it needs to be pulled before production release and the real issues with UVM and ZFS need to be resolved.
2010-01-03 11:33:13 +00:00
ober
9bfbda61ad
Set KM_PUSHPAGE to KM_SLEEP to prevent the arc_buf_alloc panics in ZFS.
...
ok haad@
2010-01-03 10:50:06 +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
joerg
168d953fa6
zpool(8) uses tbl.
2009-10-21 22:32:20 +00:00
joerg
e59e75c5a9
zfs(8) uses tbl.
2009-10-21 22:31:19 +00:00
joerg
c0285a79ce
zdb(8) uses tbl
2009-10-21 22:29:54 +00:00
haad
0d2ae1297e
Finaly fix ptob problem. ptob was defined for amd64 and not for i386, and
...
NetBSD version of ptob is not compatible with Solaris one.
2009-10-12 10:05:29 +00:00
haad
cfd1dcc2c6
Define ptob only if it wasn't defined already in NetBSD headers.
2009-10-11 22:17:57 +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
44fda7f84b
undef ptob if it was already defined/included in some NetBSD header file.
2009-10-11 10:56:13 +00:00
haad
38619bb29f
Properly return error when namei_kernel_simple fails.
2009-10-11 10:54:52 +00:00
haad
275f2eee59
Use ptob function from zfs and not NetBSD one.
2009-10-07 08:47:12 +00:00
haad
d8802513da
Enable build of 64 bit atomic ops in userspace for i386. This is needed for
...
all 32 bit archs which doesn't have a 64 atomic ops. This change enable MKZFS
build for a i386.
2009-10-06 16:28:10 +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
db47593719
iMark done tasks as done and move *at implementation task to post-import phase.
2009-10-06 08:47:59 +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
5f7d5874f0
Add cddl directory to external build framework. build things from osnet dir
...
only when MKZFS variable is set.
2009-10-05 22:44:26 +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
cbe8652598
Remove bogus -L entry.
2009-09-16 09:17:29 +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
494666162f
Rename getline to zgetline to avoid clashes with NetBSD getline.
...
Problem found by zafer@.
2009-08-10 22:44:41 +00:00
haad
2bd9595b28
Fix number of arguments passed to do_sys_mkdir.
2009-08-10 22:41:51 +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
fc8ec0b896
Add NetBSD Solaris compat code and reachover Makefiles. Most of code written
...
by Andrew Doran some of it by me.
This is still work in progress code. There are known issues. Zfs can panic
your system still. I will commit integration bits and needed kernel bits
later when we fix most obvious bugs. This code need some support from our
kernel which I will commit in a separate patch and therefore itnot work yet.
Issues:
1) Support for openat/fstatat syscalls.
2) getnewvnode locking against myself panic when reclaiming vnodes
3) Replace solaris taskq with our workqueue which doesn't need to alloc
anything during work.
4) Investigate problems with NO_WAIT allocations.
Oked by core@ and ad@.
2009-08-07 20:57:55 +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
haad
f26cdf114a
Remove accidentally commited tar.bz2 file.
2009-08-07 18:48:48 +00:00
haad
c1cb2cd89c
Import Opensolaris source code used with zfs port. Zfs code si from date
...
200811.
2009-08-07 18:32:11 +00:00