jimharris
7ed5b42834
Incorporate feedback from bde@ based on r252672 changes:
...
* Use 0/1 instead of sysexits. Man pages are confusing on this topic,
but 0/1 is sufficient for nvmecontrol.
* Use err function family where possible instead of fprintf/exit.
* Fix some typing errors.
* Clean up some error message inconsistencies.
Sponsored by: Intel
Submitted by: bde (parts of firmware.c changes)
MFC after: 3 days
2013-07-09 21:14:15 +00:00
jimharris
1dabbdc24c
Do not retry failed async event requests.
...
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:03:39 +00:00
jimharris
44e3ab8eb0
Add pci_enable_busmaster() and pci_disable_busmaster() calls in
...
nvme_attach() and nvme_detach() respectively.
Sponsored by: Intel
MFC after: 3 days
2013-07-09 21:02:45 +00:00
kib
a7b76b76e1
There are several code sequences like
...
vfs_busy(mp);
vfs_write_suspend(mp);
which are problematic if other thread starts unmount between two
calls. The unmount starts a write, while vfs_write_suspend() drain
writers. On the other hand, unmount drains busy references, causing
the deadlock.
Add a flag argument to vfs_write_suspend and require the callers of it
to specify VS_SKIP_UNMOUNT flag, when the call is performed not in the
mount path, i.e. the covered vnode is not locked. The suspension is
not attempted if VS_SKIP_UNMOUNT is specified and unmount is in
progress.
Reported and tested by: Andreas Longwitz <longwitz@incore.de>
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks
2013-07-09 20:49:32 +00:00
tuexen
247743cbba
Fix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC in
...
sctp_opt_info().
MFC after: 3 days
2013-07-09 19:12:47 +00:00
tuexen
e20c3d7ebb
Fix a bug where SCTP_ENABLE_STREAM_RESET is not handled by
...
sctp_opt_info().
MFC after: 3 days
2013-07-09 19:04:19 +00:00
imp
12ff612352
Nearly a complete rewrite of elf.h.
...
Start with NetBSD's sys/arch/mips/include/elf_machdep.h 1.18. Remove the NetBSD
specific glue pieces (leaving mostly just relocation types).
Add in FreeBSD specific glue pieces from older versions of this file, and
move to the top of the file:
r237430 | kib | 2012-06-22 00:38:31 -0600 (Fri, 22 Jun 2012) | 5 lines
r232449 | jmallett | 2012-03-03 01:19:18 -0700 (Sat, 03 Mar 2012) | 18 lines
r217097 | kib | 2011-01-07 07:22:34 -0700 (Fri, 07 Jan 2011) | 3 lines
r211412 | kib | 2010-08-17 02:55:45 -0600 (Tue, 17 Aug 2010) | 7 lines
r202908 | gonzo | 2010-01-23 19:59:22 -0700 (Sat, 23 Jan 2010) | 4 lines
r195356 | imp | 2009-07-05 01:00:51 -0600 (Sun, 05 Jul 2009) | 6 lines
r195128 | gonzo | 2009-06-27 17:27:41 -0600 (Sat, 27 Jun 2009) | 4 lines
r197933 | kib | 2009-10-10 09:31:24 -0600 (Sat, 10 Oct 2009) | 9 lines
r189926 | kib | 2009-03-17 06:50:16 -0600 (Tue, 17 Mar 2009) | 9 lines
r186191 | imp | 2008-12-16 13:07:47 -0700 (Tue, 16 Dec 2008) | 7 lines
as closely as I can tell, the projects/mips branch merge was disruptive
to good history.
This should make merges easier in the future from NetBSD and vice versa.
2013-07-09 19:01:38 +00:00
jkim
f7817d8e29
Remove redundant definitions to appease tinderbox.
2013-07-09 18:15:59 +00:00
ae
9bfe2ac5dd
Correct the size of allocated memory to store array of counters.
2013-07-09 15:20:46 +00:00
ae
89cf418196
Correct CTASSERT condition.
2013-07-09 15:10:27 +00:00
tuexen
5719f9fad9
Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
...
accounting.
X-MFC with: r252026
2013-07-09 14:38:26 +00:00
pfg
5a396d8c5b
Reinstate the assertion from r253045.
...
UFS r232732 reverted the change as the real problem was to be fixed
at the syscall level.
Reported by: bde
2013-07-09 14:23:00 +00:00
kib
70e5ada2a0
Fix typo in comment.
...
MFC after: 3 days
2013-07-09 13:22:30 +00:00
kib
7d6c97df38
Use MSI for xhci(4), if supported.
...
Reviewed by: jhb
Tested by: dchagin
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2013-07-09 12:55:01 +00:00
joel
d1d4eafe81
Make mandoc lint happy.
2013-07-09 12:25:44 +00:00
smh
90b6002827
Added 4K QUIRK for OCZ Vertex 4 SSDs
...
Submitted by: Borja Marcos <borjam@sarenet.es>
MFC after: 2 days
2013-07-09 10:41:17 +00:00
rmh
7e76036b6d
Allow assert() to operate correctly when building userland code.
2013-07-09 10:27:26 +00:00
ae
2d294b765d
Bump __FreeBSD_version to reflect changes in statistics structures.
2013-07-09 10:20:27 +00:00
ae
d467a4169a
Migrate structs ahstat, espstat, ipcompstat, ipipstat, pfkeystat,
...
ipsec4stat, ipsec6stat to PCPU counters.
2013-07-09 10:08:13 +00:00
ae
430162610d
Migrate struct carpstats to PCPU counters.
2013-07-09 10:02:51 +00:00
ae
08c6719ac4
Migrate structs in6_ifstat and icmp6_ifstat to PCPU counters.
2013-07-09 09:59:46 +00:00
ae
e5b002a3b8
Migrate structs ip6stat, icmp6stat and rip6stat to PCPU counters.
2013-07-09 09:54:54 +00:00
ae
705a50a053
Migrate structs arpstat, icmpstat, mrtstat, pimstat and udpstat to PCPU
...
counters.
2013-07-09 09:50:15 +00:00
ae
1b1e1de2b2
Use new macros to implement ipstat and tcpstat using PCPU counters.
...
Change interface of kread_counters() similar ot kread() in the netstat(1).
2013-07-09 09:43:03 +00:00
ae
027c687189
Add several macros to help migrate statistics structures to PCPU counters.
2013-07-09 09:37:21 +00:00
ae
1a36dfcc87
Prepare network statistics structures for migration to PCPU counters.
...
Use uint64_t as type for all fields of structures.
Changed structures: ahstat, arpstat, espstat, icmp6_ifstat, icmp6stat,
in6_ifstat, ip6stat, ipcompstat, ipipstat, ipsecstat, mrt6stat, mrtstat,
pfkeystat, pim6stat, pimstat, rip6stat, udpstat.
Discussed with: arch@
2013-07-09 09:32:06 +00:00
avg
91dfaf8dd5
dtrace/fasttrap: install hook functions only after all data is
...
initialized
Sponsored by: HybridCluster
MFC after: 7 days
2013-07-09 09:05:00 +00:00
avg
f4ecb1058b
audit_proc_coredump: check return value of audit_new
...
audit_new may return NULL if audit is disabled or suspended.
Sponsored by: HybridCluster
MFC after: 7 days
2013-07-09 09:03:01 +00:00
avg
44c288e149
should_yield: protect from td_swvoltick being uninitialized or too stale
...
The distance between ticks and td_swvoltick should be calculated as
an unsigned number. Previously we could end up comparing a negative
number with hogticks in which case should_yield() would give incorrect
answer.
We should probably ensure that td_swvoltick is properly initialized.
Sponsored by: HybridCluster
MFC after: 5 days
2013-07-09 09:01:44 +00:00
avg
22e327d005
rc.d/zfs: pass -v option to zfs mount
...
this should make boot process more informative (and entertaining)
on systems with lots of zfs filesystems.
MFC after: 7 days
2013-07-09 08:59:39 +00:00
avg
a9e12e57cb
namecache sdt: freebsd doesn't support structured characters yet
...
:-)
MFC after: 7 days
2013-07-09 08:58:34 +00:00
mav
39ad00b4bc
Add ID for Marvell 88SE9215 AHCI SATA controller.
...
MFC after: 3 days
2013-07-09 08:49:17 +00:00
avg
aa9dd56782
zfs: try to properly handle i/o errors in mappedread_sf
...
Unconditionally freeing a page is not good, especially if it is the page
that was wired by the caller. The checks are picked up from
kern_sendfile.
MFC after: 3 weeks
2013-07-09 08:47:11 +00:00
avg
f9d5ea16d3
amd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer
...
... in kernel builds. This is to make behavior of clang consistent with
behavior of gcc.
MFC after: 2 weeks
2013-07-09 08:42:02 +00:00
avg
dbecaf37d8
default loader.conf: there is no need to load zpool.cache now
...
kernel does not need it for importing a root pool.
MFC after: 4 weeks
2013-07-09 08:40:05 +00:00
avg
6587719d8d
zfs: load zpool.cache after a root fs is mounted
...
MFC after: 3 weeks
2013-07-09 08:37:42 +00:00
mav
f49b6d5881
Add one more ID of Marvell SATA controller.
...
Submitted by: marck
MFC after: 3 days
2013-07-09 08:32:17 +00:00
avg
e410236509
zfsboottest.sh: remove checks for things that are not strictly required
...
MFC after: 10 days
2013-07-09 08:30:31 +00:00
avg
1df29cf582
zfsboottest: sync with changes in zfs boot code
...
- spa status can not be called before spa init
- libzfs.h inclusion is now required
- fix alternative code for explicit root dataset lookup
MFC after: 10 days
2013-07-09 08:29:14 +00:00
hrs
feae44327c
Update references.
2013-07-09 08:23:43 +00:00
hrs
5150d8ba11
Remove $swapfile and $geli_swap_flags.
2013-07-09 07:57:10 +00:00
hrs
31ffbcee4f
Document IPv6 support.
2013-07-09 07:55:47 +00:00
hrs
044c45e416
- Add missing "static" keywords.
...
- Add a check for ifindex to if_indextoifinfo(). It returns NULL when
if_indextoname() fails.
MFC after: 3 days
2013-07-09 07:08:36 +00:00
hrs
9a4247565d
Add a missing white space.
2013-07-09 07:03:54 +00:00
rpaulo
52ed22fc64
Use meaningful names when creating mmc/sd threads.
...
This can be useful when we want to be able to identify which mmcsd is stuck.
2013-07-09 03:00:06 +00:00
rpaulo
5033e61144
Improve a comment.
2013-07-09 02:50:05 +00:00
emaste
b8eba90b21
Remove extraneous format string converison specifier
...
Submitted by: wxs@
2013-07-09 01:55:34 +00:00
rmacklem
d7f19ee1e2
Document the "gssname" and "allgssname" mount options added by the
...
host-based initiator credential patches.
This is a content change.
2013-07-09 01:31:36 +00:00
pfg
6ca7bf7cd4
Enhancement when writing an entire block of a file.
...
Merge from UFS r231313:
This change first attempts the uiomove() to the newly allocated
(and dirty) buffer and only zeros it if the uiomove() fails. The
effect is to eliminate the gratuitous zeroing of the buffer in
the usual case where the uiomove() successfully fills it.
MFC after: 3 days
2013-07-09 01:31:04 +00:00
rmacklem
4050bd5a8c
Add support for host-based (Kerberos 5 service principal) initiator
...
credentials to the kernel rpc. Modify the NFSv4 client to add
support for the gssname and allgssname mount options to use this
capability. Requires the gssd daemon to be running with the "-h" option.
Reviewed by: jhb
2013-07-09 01:05:28 +00:00