Gleb Smirnoff
c8dfaf382f
Mechanically convert to if_inc_counter().
2014-09-19 03:51:26 +00:00
Pawel Jakub Dawidek
d3c24fcffe
Don't use nvl in case of a failure.
...
Reported by: Coverity
CID: 1238922
2014-09-18 22:34:52 +00:00
Alexander Motin
fb767c2ba2
Allow more commands to pass persistent reservation according to SPC-4 r37.
2014-09-18 22:22:14 +00:00
Bjoern A. Zeeb
94b0d1ae8d
Fx a type from r271817; it's IFCOUNTER_* not IFNET_*.
2014-09-18 22:10:49 +00:00
Alexander Motin
64c5167c91
Add support for "no Data-Out Buffer" (NDOB) flag of WRITE SAME (16) command.
2014-09-18 21:39:00 +00:00
Gleb Smirnoff
4df50c3ae3
Mechanically convert to if_inc_counter().
2014-09-18 21:19:21 +00:00
Gleb Smirnoff
d5002dd19f
Mechanically convert to if_inc_counter().
2014-09-18 21:16:05 +00:00
Gleb Smirnoff
590a9de587
Mechanically convert to if_inc_counter().
2014-09-18 21:14:46 +00:00
Gleb Smirnoff
499986541b
Mechanically convert to if_inc_counter().
2014-09-18 21:13:12 +00:00
Bjoern A. Zeeb
d94ca7cf07
Revert r270808, which were changes to common code (i40e_alloc.h).
...
Rather than #define-ing common code function calls to OS-dependent
ones, make the osdep versions match the common code expectations,
adjust the FreeBSD specific code to use those, and remove the
#defines.
In the FreeBSD specific code, use "i40e_mem_reserved" for the
now expected but unused argument to i40e_allocate_dma_mem().
Reviewed by: gnn, eric.joyner intel.com
MFC after: 3 days
2014-09-18 21:13:03 +00:00
Gleb Smirnoff
9bce9009cd
Mechanically convert to if_inc_counter().
2014-09-18 21:11:42 +00:00
Gleb Smirnoff
ecc70d3f9e
Mechanically convert to if_inc_counter().
2014-09-18 21:09:22 +00:00
Gleb Smirnoff
f98131f881
Mechanically convert to if_inc_counter().
2014-09-18 21:07:05 +00:00
Gleb Smirnoff
b821756ba2
Mechanically convert to if_inc_counter().
2014-09-18 21:05:59 +00:00
Gleb Smirnoff
10b77d668c
Mechanically convert to if_inc_counter().
2014-09-18 21:03:13 +00:00
Gleb Smirnoff
1209989c6a
Mechanically convert to if_inc_counter().
2014-09-18 21:01:41 +00:00
Gleb Smirnoff
dde47b5589
Mechanically convert to if_inc_counter().
2014-09-18 20:59:59 +00:00
Gleb Smirnoff
eed9bc6a5b
Mechanically convert to if_inc_counter().
2014-09-18 20:58:04 +00:00
Gleb Smirnoff
884c5b4544
Mechanically convert to if_inc_counter().
2014-09-18 20:53:02 +00:00
Gleb Smirnoff
2127b2e232
Mechanically convert to if_inc_counter().
2014-09-18 20:47:39 +00:00
Gleb Smirnoff
8c32392208
Mechanically convert to if_inc_counter().
2014-09-18 20:44:53 +00:00
Gleb Smirnoff
f02c95526e
Mechanically convert to if_inc_counter().
2014-09-18 20:43:17 +00:00
Gleb Smirnoff
482dbe35e5
- Mechanically convert to if_inc_counter().
...
- Cut code that runs a counter backwards.
2014-09-18 20:39:23 +00:00
Steven Hartland
8caa3daf35
Remove sys/types.h include as per style (9)
...
SDT requries sys/param.h due to use of NULL
Reported by: Garrett
Sponsored by: Multiplay
2014-09-18 20:38:18 +00:00
Gleb Smirnoff
ec4a897719
Mechanically convert to if_inc_counter().
2014-09-18 20:35:22 +00:00
Gleb Smirnoff
c0973d1f22
Mechanically convert to if_inc_counter().
2014-09-18 20:33:25 +00:00
Gleb Smirnoff
41acb7e12c
Mechanically convert to if_inc_counter().
2014-09-18 20:30:47 +00:00
Gleb Smirnoff
1411ec550f
Fix build on 32-bit machines.
...
Pointy hat to: glebius
2014-09-18 20:29:17 +00:00
Gleb Smirnoff
b1ed3d645b
Mechanically convert to if_inc_counter().
2014-09-18 20:24:47 +00:00
Gleb Smirnoff
e09fdb0282
Mechanically convert to if_inc_counter().
2014-09-18 20:23:34 +00:00
Gleb Smirnoff
8da56a6fec
Mechanically convert to if_inc_counter().
2014-09-18 20:21:46 +00:00
Gleb Smirnoff
2c705cad05
Mechanically convert to if_inc_counter().
2014-09-18 20:18:55 +00:00
Gleb Smirnoff
908c14ce55
Mechanically convert to if_inc_counter().
2014-09-18 20:17:27 +00:00
Gleb Smirnoff
621d4f2a50
Mechanically convert to if_inc_counter().
2014-09-18 20:15:53 +00:00
Gleb Smirnoff
11d48ff157
Mechanically convert to if_inc_counter().
2014-09-18 20:11:28 +00:00
Gleb Smirnoff
e1ed7fe8b1
Mechanically convert to if_inc_counter().
2014-09-18 20:09:35 +00:00
Gleb Smirnoff
006b95da09
Mechanically convert to if_inc_counter().
2014-09-18 20:06:10 +00:00
Gleb Smirnoff
5941b6d120
Mechanically convert to if_inc_counter().
2014-09-18 20:03:45 +00:00
Steven Hartland
71f3caaf31
Add dtrace probe support for zfs SET_ERROR(..)
...
MFC after: 1 week
Sponsored by: Multiplay
2014-09-18 20:00:36 +00:00
Gleb Smirnoff
1162f06501
Mechanically convert to if_inc_counter().
2014-09-18 19:57:13 +00:00
Gleb Smirnoff
84047b19df
- Provide if_get_counter() method for vtnet(4).
...
- Do not accumulate statistics on every tick.
- Accumulate statistics in vtnet_setup_stat_sysctl()
and in vtnet_get_counter().
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
2014-09-18 19:15:40 +00:00
Will Andrews
91dda985cc
Remove debug.zfs_flags in favor of the new vfs.zfs.debug_flags.
...
Replace TUNABLE_INT with CTLFLAG_RWTUN.
Submitted by: avg (debug.zfs_flags removal), smh (TUNABLE_INT replacement)
2014-09-18 18:46:38 +00:00
Alexander Motin
8cf98331b0
Make kernel to update LUN size from the backing storage on configuration
...
reload also if that size was not specified in the new configuration.
Previously it happened only if size was explicitly changed in config.
MFC after: 3 days
2014-09-18 17:39:04 +00:00
Will Andrews
08be57e51c
Use 'cc' for the C compiler instead of 'gcc'.
...
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1079507 on 2014/07/24
2014-09-18 17:37:19 +00:00
Will Andrews
138ebd1b64
Start the process of cleaning up FreeBSD's firewire driver.
...
sys/dev/firewire/firewire.c:
sys/dev/firewire/firewire.h:
sys/dev/firewire/firewirereg.h:
sys/dev/firewire/fwcrom.c:
sys/dev/firewire/fwdev.c:
sys/dev/firewire/fwdma.c:
sys/dev/firewire/fwmem.c:
sys/dev/firewire/fwohci.c:
sys/dev/firewire/fwohci_pci.c:
sys/dev/firewire/fwohcivar.h:
sys/dev/firewire/if_fwe.c:
sys/dev/firewire/if_fwip.c:
sys/dev/firewire/sbp.c:
sys/dev/firewire/sbp_targ.c:
Unifdef the code, removing support for DragonflyBSD
and FreeBSD prior to version 5.
Submitted by: gibbs
MFC after: 1 month
Sponsored by: Spectra Logic
MFSpectraBSD: 1081188 on 2014/08/01
2014-09-18 17:28:21 +00:00
Alexander Motin
71d8e97e35
When updating device media size use cached cdevsw pointer.
...
Using pointer from the cdev directly is dangerous since we have no reference
on it, and it may change any time. That caused panic if device has gone.
While there, report capacity change only if it really changed.
MFC after: 3 days
2014-09-18 17:25:20 +00:00
Will Andrews
6ad82d5feb
Silence noisy firewire logging.
...
MFC after: 1 month
Sponsored by: Spectra Logic
MFSpectraBSD: 974594 on 2013/08/02
2014-09-18 17:22:42 +00:00
Pedro F. Giffuni
d9446691c8
unistd: move setpgrp(2) to the __BSD_VISIBLE section
...
Our setpgrp(2) differs from the specified by POSIX, which
only has one argument, and is only meant for compatibility
with BSD.
Reference:
http://pubs.opengroup.org/onlinepubs/009695399/functions/setpgrp.html
Pointed-out in: openbsd-tech (2014-09-16)
MFC after: 6 weeks
2014-09-18 17:18:42 +00:00
Pedro F. Giffuni
7162347871
lpr: replace setpgrp(2) with setpgid(2).
...
setpgid(2) is more portable than setpgrp(2).
The BSD variant of setpgrp is a wrapper for
setpgid(2) anyways.
MFC after: 5 weeks
2014-09-18 17:01:45 +00:00
Will Andrews
f8c2f66a6c
Enable ZFS debug flags to be modified via vfs.zfs.debug_flags.
...
This is primarily only of interest to ZFS developers, but it makes it
easier to get additional debugging.
Submitted by: gibbs
MFC after: 1 month
Sponsored by: Spectra Logic
MFSpectraBSD: 517074 on 2011/12/15 (by will), 662343 on 2013/03/20 (by gibbs)
2014-09-18 16:55:41 +00:00