christos
4f2f73389d
don't re-define END() now that amd64 defines it
2015-05-18 14:41:41 +00:00
hannken
e10a32f7f7
Remove miscfs/syncfs and
...
- move the syncer into kern/vfs_subr.c.
- change the syncer to process the mountlist and VFS_SYNC as appropriate.
- use an API for mount points similiar to the API for vnodes:
- vfs_syncer_add_to_worklist(struct mount *mp) to add
- vfs_syncer_remove_from_worklist(struct mount *mp) to remove a mount.
No objections on tech-kern@
2015-05-06 15:57:07 +00:00
riastradh
3b3b3f4af1
Remove bogus size_t->int casts in uiomove.
2015-04-21 13:15:28 +00:00
riastradh
46e71c7d57
Make VOP_LINK return directory still locked and referenced.
...
Ride 7.99.10 bump.
2015-04-20 22:59:19 +00:00
riastradh
b733a5ddf4
Fix ASSERT(x == y | z). Interpret nthreads as pct when requested.
...
Reduces the number of threads created by zfs to a slightly less
insane value.
XXX This whole taskq business is questionable, and we really really
should not have copies of external code outside dist/ and without
vendor branches to record provenance and local changes.
2015-04-11 16:32:07 +00:00
riastradh
673259ae26
Make sure rl_t::r_zp is always initialized.
2015-04-11 04:35:39 +00:00
riastradh
b55bbee7a5
Skip Solaris ILP32 ABI compatibility shenanigans from upstream.
2015-04-11 03:23:37 +00:00
riastradh
364c6daba4
Remove broken shim for xdr_control.
2015-04-11 03:22:36 +00:00
riastradh
fceed56786
Use a static initializer, not a broken initializer.
2015-04-11 03:21:43 +00:00
riastradh
fc437ae95d
Reduce diff from upstream a little.
2015-04-11 02:33:16 +00:00
riastradh
bb7c94d172
Nuke UIO_XUIO so nothing accidentally misuses it.
2015-04-11 01:49:00 +00:00
riastradh
e2baba0390
Disable another xuio branch.
2015-04-11 00:23:31 +00:00
riastradh
24d5ed1a0b
Make taskq_dispatch fail for now with TQ_NOQUEUE; make caller retry.
2015-04-11 00:13:04 +00:00
riastradh
5aa555542e
Use the upstream xdr, with a rename dance to avoid clash with libc.
...
The upstream xdr provides some functionality expected by the upstream
libnvpair which our libc's xdr does not provide.
When modifying, double-check that libnvpair.so defines no xdr_*
symbols, only _solaris_xdr_*. (XXX Put this note somewhere...)
2015-04-10 22:44:20 +00:00
riastradh
cee8cbe23f
GCC doesn't speak #pragma init, try __attribute__((constructor)).
2015-04-10 22:38:30 +00:00
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