Commit Graph

140465 Commits

Author SHA1 Message Date
lukem d7a2bc3a39 logxfer(): don't use the same buffer to store the results of two separate
concurrent realpath(3)s, otherwise we'll log the wrong information
for a rename.
Noted by Dmitry Sivachenko in private mail.
2005-10-03 00:02:25 +00:00
lukem 2484bb2972 Fix do_defaults() so that it errors when there's a mismatch.
Noted by Matthias Scheler.
2005-10-02 23:46:48 +00:00
lukem 7ea2be42e0 Fix comment about DEFAULT_UMASK.
Pointed out in private mail by Tetsuya Isaki and Dmitry Sivachenko.
2005-10-02 23:03:04 +00:00
shige 18dc3d6415 Break infinite-loop at md_check_partitions. 2005-10-02 22:42:09 +00:00
bouyer 33d782018b Note Xen network backend inprovements. 2005-10-02 21:55:41 +00:00
bouyer 24accead84 Add
options         MCLSHIFT=12
in order to avoid a copy when a mbuf cluster has to be sent to a domU
(which is the common case when the packet comes from a physical network
interface).
2005-10-02 21:53:16 +00:00
bouyer 213d74cfef Major improvements to the network backend, leading to a 0-copy transmit and
receive system:
- on the receive side, attach the mapped buffer as external storage
  instead of copying it. As a mapped buffer may not live much longer, we
  have to deal with the fact that one page of buffer may containt several
  packets, and it's not possible to map them several times. Use a hashed list
  to keep track of mapped pages, and use reference counters.
- on the transmit side, when MCLBYTES == PAGE_SIZE, give away the mbuf
  cluster page when possible instead of copying it. Keep a pool of physical
  pages to map in place of the page we give away. When copying, use a
  pool_cache(9) to manage copy buffers (use mclpool_cache when
  MCLBYTES == PAGE_SIZE, otherwise use a private pool/pool_cache) instead
  of a local list. This should reduce the number of hypercalls and MMU
  operations in the copy case as well.
2005-10-02 21:49:23 +00:00
bouyer 8b47a87eb6 Have xennet_start() schedule a software interrupt to defer processing of the
send queue. This give upper layer an opportunity to queue up all available
packets before starting to process them. This reduce the number of interrupt
generated on the backend, and the time spent doing hypercalls in a significant
way.
2005-10-02 21:39:41 +00:00
cube 8745ad50f1 Add a regression test framework for config(1).
The first test, SHADOW_INSTANCE, includes an example of a shadowed
instance:  'child' only attaches to attribute hook, therefore the instance
'child* at parentii?' is shadowed by 'child* at hook?'.

However, that configuration file is still valid, and therefore must be
accepted.
2005-10-02 21:27:02 +00:00
cube 2fb411a123 Don't return immediately when detecting that a devbase has already been
seen:  aliases might have to be activated, too.  Fixes GENERIC of alpha
and amiga.
2005-10-02 21:22:56 +00:00
chs 8eaf597e57 typo. 2005-10-02 17:53:23 +00:00
chs 34237b749e add a missing dependency (discovered by parallel build). 2005-10-02 17:52:22 +00:00
chs 7c02feca68 avoid calling into the pool code while holding sched_lock
since both pool_get() and pool_put() can call wakeup().
instead, allocate the struct sadata_upcall before taking
sched_lock in mi_switch() and free it after releasing sched_lock.

clean up some modularity warts by adding a callback to
struct sadata_upcall for freeing sa_arg.
2005-10-02 17:51:27 +00:00
chs 9c47d944e4 optimize pool_caches similarly to how I optimized pools before:
split the single list of pool cache groups into three lists:
completely full, partially full, and completely empty.
use LIST instead of TAILQ where appropriate.
2005-10-02 17:29:31 +00:00
christos 18b5fc9e5c Off by one in copying stuff to struct whoent. Found by Liam Foy. 2005-10-02 16:49:46 +00:00
chs 67ca114699 add QUEUEDEBUG for CIRCLEQ. 2005-10-02 15:34:42 +00:00
chs 8b17730eac put mcount.c in the normal object list, so that "make depend" works.
use a gcc attribute to prevent it from being instrumented.
2005-10-02 15:34:17 +00:00
bouyer c42416ada1 Xref pool_cache(9) and bump date. 2005-10-02 15:17:32 +00:00
chs 708b1a54c3 remove unnecessary extern declaration. 2005-10-02 15:10:16 +00:00
chs c4cc0529a0 make this compile again after stricter warnings and compat changes. 2005-10-02 15:07:41 +00:00
kleink 8ab59cd76b Remove MLINKS leftover from previous. 2005-10-02 14:57:13 +00:00
gdt 13d60a911d Escape backslash (in \n) in example program so that it appears
correctly in formatted output.  Now the example program can be
cut/pasted/compiled.
2005-10-02 14:24:41 +00:00
wiz a0655223fb Sort wpa_supplicant entry. 2005-10-02 01:18:59 +00:00
cube 895e5687a9 Allow 'maxusers' redefinition. 'maxusers 0' will cancel the existing
value and make config(1) use the machine-dependent default.
2005-10-02 00:18:09 +00:00
cube 7aa6070d4e o Keep track of negated devices in deaddevitab
o  Rework do_kill_orphans() to use that information and mark explicitely
   orphaned devices (i.e., the ones whose missing ancestor has been
   negated)
o  Make a distinction between erroneous orphans and explicit orphans.
   Error out on the former, ignore the later (but print a warning when -v
   is used)

Yes, now config(1) will actually stop if you comment out a parent.  That
should help people still hoping adjustkernel is relevant these days :)
2005-10-01 23:30:37 +00:00
macallan 09bc805fb6 Build XFree86 on NetBSD/sparc.
Tested on Krups and a SPARCbook 3GX
Works only with wscons kernels, currently there's official support on Krups
with igsfb and more or less official support for SPARCbooks with pnozz and
SPARCstations with cgsix.
2005-10-01 22:51:31 +00:00
jdolecek 3d31948771 VGE_FIXUP_RX is not needed on amd64, disable it for all non-strict
alignment architectures

fix ETHER_ALIGN to 2 (same value as on FreeBSD) - appears VGE_FIXUP_RX
code cuts part of packet otherwise; also add comment about it's purpose

PR: 31323 by Murata Shuuichirou
2005-10-01 22:30:09 +00:00
christos 4ee0069616 wpa_supplicant is dual-licensed, so it can stay in /usr/src/dist. 2005-10-01 21:34:01 +00:00
jdolecek 5fbad4b597 use killproc() for killing the process due to text file modification, so
that it's logged too

PR: 17392 by Greg A. Woods
2005-10-01 21:09:03 +00:00
jdolecek 05a8b02adf log when traced process is orphaned
PR: 17388 by Greg A. Woods
2005-10-01 21:07:38 +00:00
christos ae7cb086a0 make this build again after the source move to gnu/dist. 2005-10-01 20:46:43 +00:00
christos c05266af8a fix setmode error handling. 2005-10-01 20:23:54 +00:00
christos 16547af71a Fix setmode error handling. 2005-10-01 20:22:29 +00:00
christos 037f0a7b03 Now that setmode() is fixed, handle errors with err instead errx. 2005-10-01 20:09:18 +00:00
christos fbd01002b3 Make sure that setmode sets errno on failure (it used to return a random
errno) and document it.
2005-10-01 20:08:01 +00:00
macallan d15fb24907 Cleanup, remove some duplicate code, behave better with more than one instance
present.
2005-10-01 19:01:01 +00:00
scw 2cc2cb3389 Note addition of wpa_cli and wpa_supplicant. 2005-10-01 18:53:58 +00:00
scw 3882892ca2 Update for wpa_cli and wpa_supplicant. 2005-10-01 18:51:15 +00:00
scw c3f88c70e7 Descend into wpa. 2005-10-01 18:50:42 +00:00
scw d39dbceb8d Add wpa_cli and wpa_supplicant, based on Sam Leffler's work for FreeBSD.
NetBSD can now access a WPA-encrypted wireless LAN.
2005-10-01 18:50:12 +00:00
macallan c6dfdb40f7 hardware cursor support added. 2005-10-01 17:12:01 +00:00
he 92c0ed8788 The nusers variable is actually a size_t, so print with %zd, not %d. 2005-10-01 13:33:21 +00:00
scw f238fe91a4 Update for wpa_supplicant-0.3.9 2005-10-01 10:29:32 +00:00
scw 0f8d25cdc3 Support NetBSD. 2005-10-01 10:23:28 +00:00
scw 69e548cab0 Import/ugprade instructions for NetBSD.
Based on Sam Leffler's FreeBSD versions.
2005-10-01 10:22:44 +00:00
scw f504117151 Import of WPA supplicant 0.3.9 (strippped down as per FreeBSD's version). 2005-10-01 10:20:13 +00:00
scw 61ea4bf0aa Bump libpcap minor number. 2005-10-01 09:56:39 +00:00
scw 795def8d0d Bump minor for pcap_inject() addition. 2005-10-01 09:55:27 +00:00
scw f552876f7c Add a simplified pcap_inject() from libpcap-0.9.3.
Required for wpa_supplicant and hostapd tools.
2005-10-01 09:55:00 +00:00
yamt 17269a9baf nfsm_srvsattr: use nanotime(9) rather than time(9) for NFSV3SATTRTIME_TOSERVER. 2005-10-01 06:13:55 +00:00