Commit Graph

157 Commits

Author SHA1 Message Date
rmind
756122ce22 Remove unused M_MOUNT. 2011-04-02 04:57:35 +00:00
joerg
e2e40b270e Don't define acl_alloc and acl_free during kernel builds.
Fixes module build with clang.
2011-03-15 00:48:04 +00:00
pooka
eb63257707 adjust some pretty likely broken assertion (stksize is hardcoded
from caller, but not used here).  now zpool doesn't cause a
kernel crash anymore.
2011-03-10 19:35:24 +00:00
pooka
3140523bc0 pass in correct variable, the old code can't possibly be correct. 2011-03-10 19:32:39 +00:00
riz
3406e189a5 #include <sys/debug.h> (from the ZFS sources) so that ASSERT() is
defined, and we don't get problems like kern/44430.  This is
more a workaround than a fix, but at least I can load zfs now.

ok haad@
2011-03-09 23:55:46 +00:00
riz
c29d7160e5 If the config is zero size, don't try to read it.
OK haad@
2011-03-09 23:49:06 +00:00
pooka
1c44cbfd96 Don't allow module to init if root is not mounted since the modcmd
wants to traverse the file system.  This *might* fix statically
linking zfs support into the kernel (at least it fixes rump kernel
bootstrap).
2011-01-21 13:08:42 +00:00
pooka
51f08b56c8 fix kobj_open_file_vnode()
patch from haad
2011-01-21 12:24:24 +00:00
haad
c7287ec04b Fix zfs Makefiles + debug, don't add -g by default only when MKDEBUG is
enabled. Fix header assert conflicts + bump WARNS for some libs.
2011-01-13 23:18:23 +00:00
dholland
42bae07fce Remove references to SAVESTART in zfs. 2011-01-02 05:12:03 +00:00
haad
bec5c61e50 Define vn_getattr in zfs_context.h. 2010-12-28 16:44:45 +00:00
haad
bca088ab45 Fix problem where vnode vp_size was not updated when vndoe was already allocated,
for vdev. This makes ztest survive ztest_vdev_LUN_growth test. Replace dummy
VOP_GETATTR with vn_getattr routine which reset vp_size and vattr_size accordingly
to reality.
2010-12-28 13:36:09 +00:00
haad
8f7b707f59 libzfs_fru_clear was not ported to NetBSD disable it foor now. 2010-12-24 16:13:58 +00:00
haad
363aa1ba89 Whitespace police. 2010-12-15 22:49:42 +00:00
haad
59385470cf Only KM_SLEEP | KM_NOSLEEP can be passed down to kmem layer, clean up
tqflags from internal taskq flags (TQ_FRONT) before calling kmem_alloc.
2010-12-15 22:09:14 +00:00
haad
591e382e8c Revert last commit it's not needed anymore. 2010-12-15 00:58:58 +00:00
haad
3bd4964ac1 Do not built 64b atomic ops to libzpool they are in libc again. 2010-12-14 23:39:11 +00:00
tron
4dd88e84a3 Get DTrace to build again. 2010-12-14 14:08:42 +00:00
haad
4d468780ce Use only cas versions of 64 bit atomic ops. 2010-12-14 09:19:14 +00:00
haad
7527c22f7f Add NetBSD version of zfs snapshot management code. IT needs testing it
was only compile tested for now, but I would like to have some code in to be
sure that it will not be lost.
2010-12-14 01:28:18 +00:00
haad
732f954b5c Define mutex_owned. 2010-12-14 01:25:37 +00:00
haad
f60c1b8f4b Remove now unneeded print_timestamp. 2010-12-14 01:23:43 +00:00
haad
9e62f6ad09 Fix amd64 build where sysinfo was not defined, disable libshare for now. 2010-12-14 01:22:24 +00:00
haad
b407fc2e79 Do not include debug.h 2010-12-14 01:21:25 +00:00
haad
a0200337cd Add some more solaris vnode defs for zfs_ctldir. 2010-12-14 01:21:02 +00:00
haad
3c4cc2dec7 Include sys/debug.h to get ASSERT defined. 2010-12-14 01:18:34 +00:00
haad
72392f89e6 Define print_timestamp during build, to shut up gcc warning. 2010-12-14 01:03:10 +00:00
haad
01d7ba741b Simple routine to convert long to string. 2010-12-14 01:01:40 +00:00
haad
2940dfac08 NetBSD doesn't have /etc/mnttab replace it with /dev/null. 2010-12-14 01:00:26 +00:00
dholland
a2f7dda335 SAVENAME and HASBUF namei flags have been abolished; update zfs to match. 2010-11-30 10:45:27 +00:00
haad
bcfeb94d61 Update TODO for zfs add new tasks, list some know issues and mark some done stuff.
iRequested by: agc@
2010-11-30 00:14:42 +00:00
dholland
8f6ed30d57 Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.
2010-11-19 06:44:33 +00:00
christos
00defba087 Adapt to new module locking regime. Is that even right? 2010-08-22 18:01:01 +00:00
hannken
2d762927fb VOP_LOCK() will not be called with LK_INTERLOCK. 2010-07-25 10:31:45 +00:00
hannken
fb62bef947 Make holding v_interlock mandatory for callers of vget().
Announced some time ago on tech-kern.
2010-07-21 17:52:09 +00:00
hannken
1423e65b26 Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
haad
1b1a9e8e92 Use ddi_copyin and ddi_copyout as solaris does, change them to
ioctl_copyin/ioctl_copyout in kernel and to bcopy in user space.
2010-05-19 18:01:26 +00:00
haad
a18cf73bc7 Do not call zfs_init and zfs_fini directly they will be called by vfs routines. 2010-05-19 17:57:42 +00:00
haad
d0ec786298 Do not initialize space map cv twice. 2010-05-19 17:50:59 +00:00
haad
04d9252504 Fix userspace cv_timedwait implementation to work on NetBSD. 2010-05-11 22:18:10 +00:00
haad
c84b9426dd Disable building of stub_stand.c we build all locking primitives in libzpool. 2010-05-10 06:27:57 +00:00
haad
0fbd0bfd4f If thread_create was called with thread_id = NULL use our local thread id
as replacement otherwise we will crash.
2010-05-10 06:26:11 +00:00
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
darran
80dda7416d DTrace: print a warning no CTF section is found when processing arguments.
This should help diagnose problems such as netbsd images without CTF
sections and old boot loaders.
2010-05-03 09:28:38 +00:00
haad
4673d87178 Add _mutex_held routine to test if mutex_t * is held. 2010-05-03 00:31:32 +00:00
haad
91b542a3db In NetBSD pool cache constructor/destructor routines has inverted arguments.
C
2010-05-02 23:59:54 +00:00