riastradh
708e4d7282
One usually puts .c, not .o, files in SRCS.
2015-04-10 22:36:50 +00:00
riastradh
495fdb2f81
Initialize variables. Don't bother supporting nv doubles.
2015-04-10 22:29:35 +00:00
riastradh
0126bcdf7e
Use 0, not NULL, for zero integer constant.
2015-04-10 22:28:27 +00:00
riastradh
f7e5f84747
Use dprintf, not printf, for debug messages.
2015-04-10 20:55:38 +00:00
riastradh
7c5ca5f421
Use CPPFLAGS, not CFLAGS, so this actually takes effect.
2015-04-10 20:34:16 +00:00
riastradh
d4677cf380
Disable mmap on zfs for now.
...
The implementation is not coherent with read/write, and apparently it
is is so broken that write(2) on a region mapped from a zfs file will
often fail with EINVAL because something passes an offset that is too
large to getpages.
2015-04-10 19:59:10 +00:00
riastradh
057ee3c54c
Pass NetBSD VA_UTIMES_NULL through to ZFS as Solaris ATTR_UTIME.
...
Makes t_unpriv:zfs_times fail the wrong way instead of silently
allowing the change.
2015-04-09 20:18:28 +00:00
riastradh
3d61be1880
Advisory locking for zfs.
2015-04-09 19:47:05 +00:00
riastradh
5b72b2208e
Remove some vestigial #if 0 sections.
2015-04-09 19:35:55 +00:00
riastradh
bc95daf1f6
Fix vattr_init_mask: mode is mode_t, not u_short.
...
Fixes fs/vfs/t_vnops:zfs_attrs test.
2015-04-09 05:32:53 +00:00
riastradh
8aa34a7d8b
Fix return code of rmdir(nonempty) in zfs: ENOTEMPTY, not EEXIST.
2015-04-09 05:02:28 +00:00
riastradh
6c33e40a21
These are expressions, not statements. No semicolon.
2015-03-19 22:57:45 +00:00
riastradh
222dd8ff89
Move initialization of XUIO_XUZC_PRIV out of #ifdef PORT_SOLARIS.
...
This code is not currently used, so no functional change, but it may
be used when we hook zfs into the ubc.
2015-03-19 17:16:22 +00:00
christos
71da105a96
fix reversed test.
2015-03-10 12:17:50 +00:00
riastradh
bf803657e5
Rewrite dtrace provider prototype from scratch.
2015-03-09 03:43:02 +00:00
christos
4d0ad52103
keep track of the number of enabled probes and set the lockstat_dtrace_enabled
...
flag appropriately.
2015-03-09 01:42:26 +00:00
riastradh
07b5668221
Remove debug prints, simplify fini logic.
2015-03-09 01:07:27 +00:00
christos
bf089fd6e2
- remove device stuff
...
- compress ops
- terminate array of probes
2015-03-09 00:53:39 +00:00
riastradh
409555c5e2
Rewrite dtrace lockstat from the Solaris version and simplify.
...
- Fix mutex_adaptive probes to use the right lockstat flags.
- Install lockstat_probe_func on module load, not trace enable.
- Use a more sensible memory barrier arrangement.
2015-03-08 23:56:59 +00:00
christos
007a77aa4b
preliminary support from riastradh (does not work yet, toxic)
2015-03-08 04:13:46 +00:00
christos
aadbd1256a
we have space for 2 more arguments so use it.
2015-03-07 17:47:09 +00:00
christos
6d7ab7eb57
constify
2015-03-07 15:14:29 +00:00
christos
c0342a4ea1
- cleanup FreeBSD ifdefs
...
- remove unused code
- adjust to NetBSD struct emul and types.
2015-03-07 15:14:09 +00:00
christos
56bb5331f6
XXX: Use only a single thread. We seem to have a bug in our threading code
...
that causes us to hang in the ksem code if we use more than one.
2015-03-06 11:49:30 +00:00
ozaki-r
45c3185cfc
Fix inconsistency between module and internal names of sdt and fbt
...
PR 49697
OK wiz@
2015-02-26 10:31:52 +00:00
ozaki-r
9ce3434ff9
Fix module unload of dtrace, sdt and fbt
...
- Don't unload when there are users of dtrace
- Forbid auto unloading (not supported for now)
PR 49695
2015-02-26 09:10:52 +00:00
ozaki-r
2be0e59f43
Fix dtrace build for arm with gcc 4.8
2015-02-21 15:13:20 +00:00
ozaki-r
3bcb5a6ccb
Fix dtrace build error with gcc 4.8 on i386 and arm
...
_ILP32 is required by dt_popc.
The fix is inspired by FreeBSD.
2015-02-21 15:00:30 +00:00
ozaki-r
47d3523379
Add assert
2015-02-18 03:08:38 +00:00
ozaki-r
99f05559ed
Don't return success when the target CPU is offline
...
dt_status originally expected the behavior.
This fixes a segfault happens in dt_aggregate_go (a user of dt_status)
that depends on the behavior.
2015-02-18 03:07:56 +00:00
christos
bf418d8f39
PR/49667: Henning Petersen: Missing initialization of values in dt_parser.c
2015-02-14 15:55:05 +00:00
christos
92111d5005
PR/49666: Henning Petersen: initialization of instr wrong in dt_cg.c NULL
...
instead of 0 for uint32_t.
2015-02-14 15:53:23 +00:00
christos
92e3cdde4e
delete error(1) strings.
2015-02-07 20:33:22 +00:00
christos
b8c591ba5d
check and fix printf formats, negative array indices, uninitialized variables,
...
shadowed variables.
2015-02-07 20:30:03 +00:00
wiz
659c05d388
Comment out currently unused dtrace_dof_char function (for clang build).
2015-01-31 13:36:29 +00:00
hannken
aaf5c384d9
Change zfs to vcache.
...
- zfs_loadvnode() is based on zfs_zget() plus zfs_znode_alloc().
2014-12-05 09:13:32 +00:00
hannken
f43b9b375a
Remove vnode creation from zfs_create_fs() and zfs_create_share_dir()
...
as a vnode is not needed here.
Inspired by FreeBSD r253603.
2014-12-05 09:12:29 +00:00
christos
be13e1550a
don't fail for anonymous unions.
2014-11-01 23:21:31 +00:00
justin
3cf1fc0878
Add libraries in order that they will link if static as well as dynamic
2014-10-30 21:15:13 +00:00
joerg
18fd8dcd8d
SPEC_MAXOFFSET_T doesn't exist anywhere else, so don't use it here
...
either.
2014-07-28 10:01:23 +00:00
ryoon
4575a9c0a5
Fix dtrace kernel module build.
...
Add nodiscard to cdevsw.
They are not fixed in fallocate/fdiscard changes.
2014-07-26 04:54:20 +00:00
christos
02cb0c6eaf
Introduce a selector function to the vfs vnode iterator so that we don't
...
need to vget() vnodes that we are not interested at, and optimize locking
a bit. Iterator changes reviewed by Hannken (thanks), the rest of the bugs
are mine.
2014-05-24 16:34:03 +00:00
christos
7081cf9a59
need bsd.own.mk
2014-04-28 21:56:20 +00:00
christos
0b24109d1b
make compilable from the kernel
2014-04-22 15:12:35 +00:00
christos
c8ad22d607
Add fake atomic 64 ops for those who don't have them.
...
XXX: used to be arm, now it is also i386.
2014-04-22 15:02:38 +00:00
maxv
23f76b6d00
An (un)privileged user can easily make the kernel dereference a NULL
...
pointer.
The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).
ok christos@
2014-04-16 18:55:17 +00:00
riastradh
418e8d3033
Don't forget ZFS_EXIT after ZFS_ENTER.
2014-04-09 22:41:38 +00:00
riastradh
c83470498f
Try vflush, which may fail, before we mark the file system mounted.
2014-04-09 22:40:32 +00:00
christos
897d836e1d
Handle assembly code built with -g
2014-04-05 23:33:15 +00:00
ozaki-r
b7c3845c47
Complete migrating to snprintf_blkptr
2014-03-28 03:46:56 +00:00