Commit Graph

209362 Commits

Author SHA1 Message Date
nakayama
81cae6fbb5 Avoid rebuilding services database every boot time.
The database has been renamed since the default was changed to CDB format.
2012-02-21 12:30:32 +00:00
tsutsui
1e05410c93 Use actual physmem size for allocation of bootstrap extra PT pages
to avoid wasting pages on low memory machines.
Improves atari specific part of PR/45915, tested on TT030.
2012-02-21 12:09:50 +00:00
martin
74ce3f6bfc Make this include file C++ save, using the new __conly_restrict. 2012-02-21 10:54:07 +00:00
martin
11daf47458 There are some places where C99 allows a restrict modifier (and posix
demands it), but C++ does not allow it. So add a C only version of
__restrict, which expands to nothing if compiling C++.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49347 for a discussion.
2012-02-21 10:53:08 +00:00
apb
0e3dcd74ed Add a definition for ".St -isoC-2011". The equivalent definition
was already in external/bsd/mdocml/dist/st.in
2012-02-21 10:43:46 +00:00
wiz
32a64c4a9c Mark /usr/include/netinet/ipf_rb.h as obsolete until ipf is upgraded again.
Sort while here.
2012-02-21 10:10:43 +00:00
christos
4ab990718f keep track of the original array length so we can pass it to kmem_free, from
enami
2012-02-21 04:13:22 +00:00
christos
222b58ad16 fix fae free'ing, from enami. 2012-02-21 03:44:54 +00:00
jakllsch
68ceb36701 Prevent stack buffer overflow when copying too-large-CDB into request. 2012-02-21 02:22:54 +00:00
jakllsch
1355b3bb87 constify command data argument to scsi_command(). 2012-02-21 02:19:41 +00:00
matt
f326ce849e Restore back to double alignment. 2012-02-21 02:19:01 +00:00
matt
84b41e5d58 Change ALIGNBYTES to be AltiVec savvy 2012-02-21 02:09:35 +00:00
matt
4fe9231763 Don't rely on being able to allocate while in a softintr. So preallocate
all the bus_dma maps in ifinit where we can sleep.
2012-02-21 02:08:55 +00:00
matt
3ee36a48b5 Fix a very old bug. When allocating the buffer and doing just a bs= transfer,
hen we only need a single buffer equal to that blocksize in length.
2012-02-21 01:49:01 +00:00
jakllsch
ee9ab39a12 Add and use xbdminphys() to handle transfer segmentation/size limit.
Should allow us to use a normal MAXPHYS in domU kernels.
2012-02-21 01:47:50 +00:00
matt
f5d3f68d54 Remove another ${SIZE} 2012-02-21 01:41:09 +00:00
oster
cebdda608a Add logic to the main reconstruction loop to handle RAID5 with rotated
spares.  While here, observe that we were actually doing one more
stripe than we thought we were, and correct that too (it didn't matter
for non-RAID5_RS, but it definitely does for RAID5_RS).  Add some
bounds-checking at the beginning to handle the case where the number
of stripes in the set is smaller than the sliding reconstruction window.

XXX: this problem likely needs to be fixed for PARITY_DECLUSTERING too.
2012-02-20 22:42:52 +00:00
oster
e8dd466041 comment, and effectively remove, a DIAGNOSTIC check that
is invalid for RAID5_RS.
2012-02-20 22:42:05 +00:00
mrg
c1d02dab7b add a _kernel_locked_p(). 2012-02-20 22:35:14 +00:00
bouyer
3654664ee4 - Make pmap_write_protect() work with pmap_kernel() too ((va & L2_FRAME)
strips the high bits of a LP64 address)
- use pmap_protect() in pmap_pdp_ctor() to remap the PDP read-only instead
  of (ab)using pmap_kenter_pa(). No more "mapping already present" on
  console with DIAGNOSTIC kernels
- make sure to zero the whole PDP (NTOPLEVEL_PDES doens't include
  high-level entries on i386 and i386PAE, reserved by Xen). Not sure
  how it has worked before
- remove an always-true test (&& pmap != pmap_kernel(); we KASSERT that
  at the function entry).
2012-02-20 20:49:12 +00:00
mrg
83cc5b2226 assert kernel lock is held in a few places in inside scsipi.
lock the kernel when calling into scsipi from umass and usscanner.

with these two in place on usbmp branch, umass appears stable.
2012-02-20 20:09:08 +00:00
bouyer
aa488cdf00 When using uvm_km_pgremove_intrsafe() make sure mappings are removed
before returning the pages to the free pool. Otherwise, under Xen,
a page which still has a writable mapping could be allocated for
a PDP by another CPU and the hypervisor would refuse it (this is
PR port-xen/45975).
For this, move the pmap_kremove() calls inside uvm_km_pgremove_intrsafe(),
and do pmap_kremove()/uvm_pagefree() in batch of (at most) 16 entries
(as suggested by Chuck Silvers on tech-kern@, see also
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012727.html and
followups).
2012-02-20 19:14:23 +00:00
joerg
50a2d17c77 SQLite doesn't use the FTS index for equal ops, so force it to do a FTS
search first. Drops run time by a factor of 6 for "whatis man".
Found by Abhinav Upadhyay.
2012-02-20 18:27:30 +00:00
joerg
fdbd00e5b0 Add reference to whatis(1). From Abhinav Upadhyay. 2012-02-20 18:25:51 +00:00
matt
0bf8cdb842 Remove ${SIZE} 2012-02-20 18:23:50 +00:00
christos
ca439b8516 Posix spawn fixes:
- split the file actions allocation and freeing into separate functions
- use pnbuf
- don't play games with pointers (partially freeing stuff etc), only check
  fa and sa and free as needed using the same code.
- use copyinstr properly
- KM_SLEEP allocation can't fail
- if path allocation failed midway, we would be possibily freeing
  userland strings.
- use sizeof(*var) instead sizeof(type)
2012-02-20 18:18:30 +00:00
martin
45d535a7b7 Add a test case to call posix_spawn with empty file actions, which reproduced
the (now fixed) PR kern/46038.
2012-02-20 12:22:40 +00:00
martin
94602e1cf5 Solve previous fix (for early posix_spawn children exiting on error)
differently.
2012-02-20 12:21:23 +00:00
martin
6bde504952 More posix_spawn fallout:
Fix a kmem_alloc() call with zero size (PR kern/46038), allow file actions
to be passed, even if empty.
Rearange p_reflock locking for the child, avoid a double free in an
error case, avoid a memory leak in another error case - all pointed out
by yamt.
During blocking operations early in the child borrow the kernel vmspace
(as suggested by yamt).
2012-02-20 12:19:55 +00:00
wiz
00872173ab Bump date for previous. Use more markup. 2012-02-20 09:45:22 +00:00
martin
2b8e910c25 Add missing __BEGIN_DECLS, from Henning Petersen in PR misc/46058. 2012-02-20 09:28:43 +00:00
elric
f082d14a0d Check in very basic compressed file support. httpd will now serve
a precompressed .gz file if it exists, the client claims to support
gzip and the request is not ranged.
2012-02-20 09:26:56 +00:00
elric
982f9a199b Use a `certificate chain file'' rather than a `certificate file'' so
that bozohttpd can be used with non-toplevel certs.
2012-02-20 08:40:46 +00:00
mrg
aef481556c convert to device_t.
been running on my inspiron 8500 for a couple of months.
2012-02-20 02:14:34 +00:00
rmind
25c2f01c4f itimerfire: fix a regression, check if timer is already queued. 2012-02-20 01:12:42 +00:00
rmind
15d58f91b8 - Add NPF_DECISION_BLOCK and NPF_DECISION_PASS. Be more defensive in the
packet handler.  Change the default policy to block when the config is
  loaded and set it to pass when flush operation is performed.
- Use kmem_zalloc(9) instead of kmem_alloc(9) in few places.
- npf_rproc_{create,release}: use kmem_intr_{alloc,free} as the destruction
  of rule procedure might happen in the interrupt handler (under a very rare
  condition, if config reload races with the handler).
- npf_session_establish: check whether layer 3 and 4 are cached.
- npfctl_build_group: do not make groups as passing rules.
- Remove some unecessary header inclusion.
2012-02-20 00:18:19 +00:00
matt
47c982a38d Add support for --combine with gcc. 2012-02-19 23:19:37 +00:00
matt
162f06ed69 Remove extern variables defined in headers. 2012-02-19 23:15:24 +00:00
rmind
8dad299218 Remove <sa.h> which has been obsolete since 2007. 2012-02-19 22:32:32 +00:00
wiz
ea95a8c187 Sort option descriptions a bit more. 2012-02-19 21:32:02 +00:00
rmind
ad12c77015 Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.
2012-02-19 21:05:51 +00:00
mrg
81a52e8014 fix the reversed logic in several uses of the new 'closing' member
introduced in the previous change.

from Tom Ivar Helbekkmo <tih@hamartun.priv.no> in PR 45909.  thanks!
2012-02-19 20:20:31 +00:00
christos
fd6f00f4bf PR/45735: Bug Hunting: The dump(8) manpage, as well as the program's `usage'-line,
needs improvement
2012-02-19 19:49:20 +00:00
christos
8aaa635ed5 PR/46049: Tim van der Molen:
clrtobot() and clrtoeol() do not set background attributes
2012-02-19 19:38:13 +00:00
matt
c18d70cbd8 Emit SA syscalls using SYS_compat_60_* 2012-02-19 19:18:40 +00:00
tron
8a1c6a55bf Postfix 2.8.8 will be part of the NetBSD 6.0 release. 2012-02-19 18:52:06 +00:00
tron
a54645d559 "pkg_install" was updated to version 20120128. 2012-02-19 17:50:56 +00:00
matt
931370c9c5 Regen. 2012-02-19 17:50:50 +00:00
matt
a9cc3edeb9 Use void * instead of sa_upcall_t for sa_register (since sa_upcall_t is
going away).
2012-02-19 17:50:28 +00:00
tron
f5158aee04 Resolve conflicts from last import. 2012-02-19 17:49:09 +00:00