]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoThis commit was generated by cvs2svn to compensate for changes in r173403,
Andrey A. Chernov [Wed, 7 Nov 2007 04:34:03 +0000 (04:34 +0000)]
This commit was generated by cvs2svn to compensate for changes in r173403,
which included commits to RCS files with non-trunk default branches.

16 years agoOfficial patches 3-7
Andrey A. Chernov [Wed, 7 Nov 2007 04:34:03 +0000 (04:34 +0000)]
Official patches 3-7

16 years agoAfter discussions with grog@ (mentor):
Edwin Groothuis [Wed, 7 Nov 2007 01:14:28 +0000 (01:14 +0000)]
After discussions with grog@ (mentor):

- When none of the directories in FORTUNE_PATH exist, abort instead
  of using the default FORTDIR.
- Little stylify changes.
- Add documentation about the FORTUNE_PATH variable.

MFC after: 1 week

16 years agos/maybe/may be/
Daniel Gerzo [Tue, 6 Nov 2007 23:12:53 +0000 (23:12 +0000)]
s/maybe/may be/

MFC after: 3 days

16 years ago1) dummynet_io() declaration has changed.
Oleg Bulyzhin [Tue, 6 Nov 2007 23:01:42 +0000 (23:01 +0000)]
1) dummynet_io() declaration has changed.
2) Alter packet flow inside dummynet: allow certain packets to bypass
dummynet scheduler. Benefits are:

- lower latency: if packet flow does not exceed pipe bandwidth, packets
  will not be (up to tick) delayed (due to dummynet's scheduler granularity).
- lower overhead: if packet avoids dummynet scheduler it shouldn't reenter ip
  stack later. Such packets can be fastforwarded.
- recursion (which can lead to kernel stack exhaution) eliminated. This fix
  long existed panic, which can be triggered this way:
   kldload dummynet
sysctl net.inet.ip.fw.one_pass=0
ipfw pipe 1 config bw 0
for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done
ping -c 1 localhost

3) Three new sysctl nodes are added:
net.inet.ip.dummynet.io_pkt - packets passed to dummynet
net.inet.ip.dummynet.io_pkt_fast -  packets avoided dummynet scheduler
net.inet.ip.dummynet.io_pkt_drop - packets dropped by dummynet

P.S. Above comments are true only for layer 3 packets. Layer 2 packet flow
     is not changed yet.

MFC after: 3 month

16 years agostyle(9) cleanup.
Oleg Bulyzhin [Tue, 6 Nov 2007 22:53:41 +0000 (22:53 +0000)]
style(9) cleanup.

MFC after: 3 month

16 years agoAnother typo in the previous commited fix. That makes four typos
Edwin Groothuis [Tue, 6 Nov 2007 22:40:16 +0000 (22:40 +0000)]
Another typo in the previous commited fix. That makes four typos
in one fortune of only 32 words. Based on that single ratio, there
are 50453 more typos in the rest of the fortunes file....

Noticed by: Nate Lawson <nate@root.org>
MFC after: 1 week

16 years agogames/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely
Edwin Groothuis [Tue, 6 Nov 2007 22:03:24 +0000 (22:03 +0000)]
games/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely

This patch adds an environment variable FORTUNE_PATH, which
works like PATH for fortune files.

PR: bin/36867
Submitted by: Alan Eldridge <ports@geeksrus.net>

[patch] fortune -e implementation bug

Fix the behaviour of "-e file1 file2" to equally pick them
instead of only picking the first one.

PR: bin/70182
Submitted by: Martin Kulas <coolaz@web.de>

MFC after: 1 week
Approved by: grog (mentor)

16 years ago[patch] Fortune typos, around line 57346 of fortunes datfile
Edwin Groothuis [Tue, 6 Nov 2007 21:55:56 +0000 (21:55 +0000)]
[patch] Fortune typos, around line 57346 of fortunes datfile

Small typos -- saw in a fortune today that 'equipped' is
spelled 'equpped'. Also, 'vacuum' is spelled 'vaccuum'.
Corrected diff provided below.

PR: misc/112049
Submitted by: Seth Hieronymus <shieronymus@speakeasy.net>
MFC after: 1 week

16 years agoIn _pthread_key_create() ensure that libthr is initialized. This
Marius Strobl [Tue, 6 Nov 2007 21:50:43 +0000 (21:50 +0000)]
In _pthread_key_create() ensure that libthr is initialized. This
fixes a NULL-dereference of curthread when libstdc+ initializes
the exception handling globals on archs we can't use GNU TLS due
to lack of support in binutils 2.15 (i.e. arm and sparc64), yet,
thus making threaded C++ programs compiled with GCC 4.2.1 work
again on these archs.

Reviewed by: davidxu
MFC after: 3 days

16 years agoCheck return value for setenv()
Kevin Lo [Tue, 6 Nov 2007 10:35:50 +0000 (10:35 +0000)]
Check return value for setenv()

16 years agoCheck wep flag in *_tx_mgt since we need to encrypt some management frame
Kevin Lo [Tue, 6 Nov 2007 07:30:12 +0000 (07:30 +0000)]
Check wep flag in *_tx_mgt since we need to encrypt some management frame
in case of shared authentification.

Obtained from: NetBSD

16 years agoCorrect typo.
Greg Lehey [Tue, 6 Nov 2007 02:42:00 +0000 (02:42 +0000)]
Correct typo.

MFC after: 2 weeks

16 years agoApparently some NVIDIA NICs store ethernet address in reverse order
Pyun YongHyeon [Tue, 6 Nov 2007 01:01:38 +0000 (01:01 +0000)]
Apparently some NVIDIA NICs store ethernet address in reverse order
while other variants have inorder ethernet address for the same
chipset. Override ethernet address ordering if we already know how
it was stored. This fixes the use of inversed ethernet address on
MCP67.

Submitted by: ariff
MFC after: 3 days

16 years ago- Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including in
Ulf Lilleengen [Mon, 5 Nov 2007 23:15:03 +0000 (23:15 +0000)]
- Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including in
  the open file-listing. It is added as a separate source file, so it can
  respect WITH_/WITHOUT_CDDL as compile-flags.
- The warnlevel of the Makefile was decreased to quell solaris #pragma
  warnings.
- Expect that fstat(1) doesn't work with kernel compiled with
  DEBUG_VFS_LOCKS/DEBUG_LOCKS for now.

Approved by: pjd (mentor)

16 years agoSwitch arm to -O until the -O2 issues are resolved.
Olivier Houchard [Mon, 5 Nov 2007 23:08:34 +0000 (23:08 +0000)]
Switch arm to -O until the -O2 issues are resolved.

MFC After: 3 days

16 years agoRemove unused header.
Pawel Jakub Dawidek [Mon, 5 Nov 2007 22:18:34 +0000 (22:18 +0000)]
Remove unused header.

MFC after: 3 days

16 years agoIf setting a state to anything but open state, close access to vdev.
Pawel Jakub Dawidek [Mon, 5 Nov 2007 21:30:48 +0000 (21:30 +0000)]
If setting a state to anything but open state, close access to vdev.
This fixes replacing drive in place, eg. zpool replace tank da1 da1.
Before it complained that device is already open.

MFC after: 1 week

16 years agoDo not pass an address to local stack variable to usbd_set_report_async.
Alexander Kabaev [Mon, 5 Nov 2007 19:51:12 +0000 (19:51 +0000)]
Do not pass an address to local stack variable to usbd_set_report_async.
Allocate space in keyboard state structure instead to prevent random byte
from possibly overwritten stack location frombeing shoved into USB device
when transfer actually takes place.

This fixes at least one instance of LEDs not working with USB keyboards.

16 years agoRemove "zfs:" prefix from lock and condvar names and also skip non-letter
Pawel Jakub Dawidek [Mon, 5 Nov 2007 18:40:55 +0000 (18:40 +0000)]
Remove "zfs:" prefix from lock and condvar names and also skip non-letter
characters (mostly "&"). Because top(1) shows only first six characters of
wait channel, without this change we saw only one meaningful character.

Requested by: kris & others
MFC after: 1 week

16 years agoAdd comments explaining why all stores updating a non-kernel page table
Alan Cox [Mon, 5 Nov 2007 18:13:34 +0000 (18:13 +0000)]
Add comments explaining why all stores updating a non-kernel page table
must be globally performed before calling any of the TLB invalidation
functions.

With one exception, on amd64, this requirement was already met.  Fix this
one case.  Also, as a clarification, change an existing atomic op into a
release.  (Suggested by: jhb)

Reported and reviewed by: ups
MFC after: 3 days

16 years agoCorrect handling of off-channel frames:
Sam Leffler [Mon, 5 Nov 2007 17:24:28 +0000 (17:24 +0000)]
Correct handling of off-channel frames:
o do not override the home channel recorded for the sta when the frame is
  received off-channel; this fixes a problem where we might think the sta
  was operating on the channel the frame was received on causing association
  requests to be ignored/rejected (likely cause of kern/99036)
o don't include rssi of off-channel frames in the avg rssi used to select
  a bss; this gives us a better estimate of the signal we will see for the
  station when on-channel

PR: kern/99036
Found by: Yubin Gong
Reviewed by: sephe
MFC after: 1 week

16 years agoFix NOP message sending in ciss_periodic() which causes panic with
Mitsuru IWASAKI [Mon, 5 Nov 2007 13:54:23 +0000 (13:54 +0000)]
Fix NOP message sending in ciss_periodic() which causes panic with
option INVARIANTS.

Reviewed by: simokawa
Tested by: noriyosi_kawano
MFC after: 1 week

16 years agoRemove unused variable td from sched_idletd().
Robert Watson [Mon, 5 Nov 2007 12:01:12 +0000 (12:01 +0000)]
Remove unused variable td from sched_idletd().

MFC after: 3 days
Found with: Coverity Prevent(tm)
CID: 3561

16 years agoInitial Import of wpi driver based on p4 changeset 128641.
Benjamin Close [Mon, 5 Nov 2007 11:47:19 +0000 (11:47 +0000)]
Initial Import of wpi driver based on p4 changeset 128641.

This import includes:
   o wpi Wireless driver for the Intel 3945 Wireless Lan Controller (802.11abg) (sys/dev/wpi)
   o Intel firmware revision 2.14.4 & associated LICENSE (sys/dev/contrib/wpi, sys/contrib/dev/wpi/LICENSE)
   o wpifw Firmware driver (sys/modules/wpifw)

Approved by: mlaier, sam (co-mentors)

16 years agoFix for the panic("vm_thread_new: kstack allocation failed") and
Konstantin Belousov [Mon, 5 Nov 2007 11:36:16 +0000 (11:36 +0000)]
Fix for the panic("vm_thread_new: kstack allocation failed") and
silent NULL pointer dereference in the i386 and sparc64 pmap_pinit()
when the kmem_alloc_nofault() failed to allocate address space. Both
functions now return error instead of panicing or dereferencing NULL.

As consequence, vmspace_exec() and vmspace_unshare() returns the errno
int. struct vmspace arg was added to vm_forkproc() to avoid dealing
with failed allocation when most of the fork1() job is already done.

The kernel stack for the thread is now set up in the thread_alloc(),
that itself may return NULL. Also, allocation of the first process
thread is performed in the fork1() to properly deal with stack
allocation failure. proc_linkup() is separated into proc_linkup()
called from fork1(), and proc_linkup0(), that is used to set up the
kernel process (was known as swapper).

In collaboration with: Peter Holm
Reviewed by: jhb

16 years agoAdd missing locking for SBus controllers.
Scott Long [Mon, 5 Nov 2007 11:22:18 +0000 (11:22 +0000)]
Add missing locking for SBus controllers.

16 years agoThe intent of the freeing the (zeroed) page in vm_page_cache() for
Konstantin Belousov [Mon, 5 Nov 2007 10:25:12 +0000 (10:25 +0000)]
The intent of the freeing the (zeroed) page in vm_page_cache() for
default object rather than cache it was to have
vm_pager_has_page(object, pindex, ...) == FALSE to imply that there is
no cached page in object at pindex. This allows to avoid explicit
checks for cached pages in vm_object_backing_scan().

For now, we need the same bandaid for the swap object, otherwise both
the vm_page_lookup() and the pager can report that there is no page at
offset, while page is stored in the cache. Also, this fixes another
instance of the KASSERT("object type is incompatible") failure in the
vm_page_cache_transfer().

Reported and tested by: Peter Holm
Reviewed by: alc
MFC after: 3 days

16 years agoChange wpa_supplicant to down the interface at the start of the init routine.
Andrew Thompson [Mon, 5 Nov 2007 06:13:07 +0000 (06:13 +0000)]
Change wpa_supplicant to down the interface at the start of the init routine.
wpa_supplicant expects that it has exclusive access to the net80211 state so
when its starts poking in the WEP/WPA settings and the card is already
scanning it can cause net80211 to try and associate incorrectly with a
protected AP.

This is an inconvenience for firmware based cards such as iwi where it can be
sent an auth instruction with incomplete security info and cause a firmware
error.

Remove the 'ifconfig up' from network.subr since wpa_supplicant will
immediately down the interface again.

Reported by: Guy Helmer (and others)
Reviewed by: sam, brooks, avatar
MFC after: 3 days

16 years agosendmail 8.14.2 has been imported.
Gregory Neil Shapiro [Mon, 5 Nov 2007 00:24:05 +0000 (00:24 +0000)]
sendmail 8.14.2 has been imported.

16 years agoUpdate for sendmail 8.14.2
Gregory Neil Shapiro [Mon, 5 Nov 2007 00:21:32 +0000 (00:21 +0000)]
Update for sendmail 8.14.2

MFC after: 1 week

16 years agoForced commit to .mc files to force creation of new .cf files for mergemaster.
Gregory Neil Shapiro [Mon, 5 Nov 2007 00:18:06 +0000 (00:18 +0000)]
Forced commit to .mc files to force creation of new .cf files for mergemaster.

16 years agoResolve conflicts from sendmail 8.14.2 import
Gregory Neil Shapiro [Mon, 5 Nov 2007 00:09:45 +0000 (00:09 +0000)]
Resolve conflicts from sendmail 8.14.2 import

16 years agoThis commit was generated by cvs2svn to compensate for changes in r173340,
Gregory Neil Shapiro [Mon, 5 Nov 2007 00:04:21 +0000 (00:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r173340,
which included commits to RCS files with non-trunk default branches.

16 years agoImport sendmail 8.14.2
Gregory Neil Shapiro [Mon, 5 Nov 2007 00:04:21 +0000 (00:04 +0000)]
Import sendmail 8.14.2

16 years agoRemove a staled comment, NPE-C should work fine.
Olivier Houchard [Sun, 4 Nov 2007 21:54:52 +0000 (21:54 +0000)]
Remove a staled comment, NPE-C should work fine.

Reviewed by: sam

16 years agoAllow search for any UUID entered by user.
Maksim Yevmenkin [Sun, 4 Nov 2007 21:24:33 +0000 (21:24 +0000)]
Allow search for any UUID entered by user.

MFC after: 3 days

16 years agoGarbage collect now-unused nfsrv_setcred() -- it's not only unused, but
Robert Watson [Sun, 4 Nov 2007 19:20:33 +0000 (19:20 +0000)]
Garbage collect now-unused nfsrv_setcred() -- it's not only unused, but
also a purveyor of unfortunate (and now unsupported) direct frobbing of
struct ucred.

MFC after: 3 days

16 years agoAdd support for trimmed down version of ATI SB600 AC97 audio
Ariff Abdullah [Sun, 4 Nov 2007 16:03:10 +0000 (16:03 +0000)]
Add support for trimmed down version of ATI SB600 AC97 audio
controller.

URL: http://www.ipc2u.de/catalog/P/PE/36486.html
PR: kern/117813
Submitted by: Klaus Mayr
MFC after: 1 day

16 years agoDon't mask the address in inet_makenetandmask() according to what class
Mike Makonnen [Sun, 4 Nov 2007 11:12:40 +0000 (11:12 +0000)]
Don't mask the address in inet_makenetandmask() according to what class
it appears to be in: there is also CIDR.

Noticed by: tegge

16 years agoAdd an option to limit the number of source MACs that can be behind a bridge
Andrew Thompson [Sun, 4 Nov 2007 08:32:27 +0000 (08:32 +0000)]
Add an option to limit the number of source MACs that can be behind a bridge
interface.  Once the limit is reached packets with unknown source addresses are
dropped until an existing host cache entry expires or is removed.  Useful to
use with the STICKY cache option.

Sponsored by: miniSuperHappyDevHouse NZ

16 years agoMFV of tzdata2007i
Edwin Groothuis [Sun, 4 Nov 2007 07:06:19 +0000 (07:06 +0000)]
MFV of tzdata2007i

Changes in Cuba and Syria.

16 years agoo Build geom for all platforms.
Marcel Moolenaar [Sun, 4 Nov 2007 00:44:10 +0000 (00:44 +0000)]
o  Build geom for all platforms.
o  Don't build bsdlabel for ia64.
o  Don't build fdisk and gpt for ia64.

16 years agoAllow building of a special rescue version of geom that
Marcel Moolenaar [Sun, 4 Nov 2007 00:32:54 +0000 (00:32 +0000)]
Allow building of a special rescue version of geom that
has a subset of the classes compiled-in.

16 years agofix build: when usb was enabled wireless drivers were brought in so
Sam Leffler [Sat, 3 Nov 2007 19:26:49 +0000 (19:26 +0000)]
fix build: when usb was enabled wireless drivers were brought in so
remove the nodevice lines that elided wlan support

16 years agoupgrade zd1211b firmware for the zyd driver. This solves a hardware
Sam Leffler [Sat, 3 Nov 2007 19:24:51 +0000 (19:24 +0000)]
upgrade zd1211b firmware for the zyd driver.  This solves a hardware
reset problem when we reboot the system with the zyd device inserted.

Submitted by: Weongyo Jeong
Reported by: Ted Lindgreen (ted@tednet.nl)
MFC after: 1 week

16 years agofix a typo in rx radiotap's flags
Sam Leffler [Sat, 3 Nov 2007 19:22:54 +0000 (19:22 +0000)]
fix a typo in rx radiotap's flags

Submitted by: Weongyo Jeong
Reviewed by: sam
MFC after: 3 days

16 years agocorrect entry
Sam Leffler [Sat, 3 Nov 2007 19:11:35 +0000 (19:11 +0000)]
correct entry

16 years agobandaid crash as I have no time to research the issue and the driver
Sam Leffler [Sat, 3 Nov 2007 19:10:14 +0000 (19:10 +0000)]
bandaid crash as I have no time to research the issue and the driver
is unusable in its present state; refer to the PR for details

PR: kern/110662
MFC after: 3 days

16 years agoo sync w/ net80211 changes
Sam Leffler [Sat, 3 Nov 2007 18:14:12 +0000 (18:14 +0000)]
o sync w/ net80211 changes
o redo numbering scheme to simplify changing the table

16 years agoalign stats printed out w/o any args
Sam Leffler [Sat, 3 Nov 2007 18:13:05 +0000 (18:13 +0000)]
align stats printed out w/o any args

MFC after: 1 week

16 years agoo add -o ampdu shorthand for viewing most useful ampdu stats
Sam Leffler [Sat, 3 Nov 2007 18:12:25 +0000 (18:12 +0000)]
o add -o ampdu shorthand for viewing most useful ampdu stats
o remove noise from default stat list

MFC after: 1 week

16 years agoEver since the module registration system was introduced to this driver,
Scott Long [Sat, 3 Nov 2007 17:33:41 +0000 (17:33 +0000)]
Ever since the module registration system was introduced to this driver,
it's been printing out scary messages about "Unhanded Event Notify Frame"
that are needlessly worrisome to users.  Change this warning to only print
out at an elevated debugging level.

16 years agoAdd __unused to parameters when needed
Philippe Charnier [Sat, 3 Nov 2007 10:36:03 +0000 (10:36 +0000)]
Add __unused to parameters when needed

16 years agoRemove zyd as wireless is not supported on PAE.
Andrew Thompson [Sat, 3 Nov 2007 07:11:07 +0000 (07:11 +0000)]
Remove zyd as wireless is not supported on PAE.

16 years agoEliminate spurious "Approaching the limit on PV entries, ..."
Alan Cox [Sat, 3 Nov 2007 05:15:26 +0000 (05:15 +0000)]
Eliminate spurious "Approaching the limit on PV entries, ..."
warnings.  Specifically, whenever vm_page_alloc(9) returned NULL to
get_pv_entry(), we issued a warning regardless of the number of pv
entries in use.  (Note: The older pv entry allocator in RELENG_6 does
not have this problem.)

Reported by: Jeremy Chadwick

Eliminate the direct call to pagedaemon_wakeup() by get_pv_entry().
This was a holdover from earlier times when the page daemon was
responsible for the reclamation of pv entries.

MFC after: 5 days

16 years agoIntroduce pkg_updating(1) which scans for installed ports and shows
Kirill Ponomarev [Fri, 2 Nov 2007 22:46:30 +0000 (22:46 +0000)]
Introduce pkg_updating(1) which scans for installed ports and shows
all ports/UPDATING entries that affect one of the installed ports,
and are relevant on the given machine.

PR: bin/117564
Submitted by: Beat Gaetzi <beat@chruetertee.ch>
MFC after: 14 days

16 years agoUpdate to the 1 November 2007 version of this file. The change
Doug Barton [Fri, 2 Nov 2007 22:37:15 +0000 (22:37 +0000)]
Update to the 1 November 2007 version of this file. The change
is to the address of l.root-servers.net, which is moving to a
new /24 in order to enable anycast routing down the road.

16 years agoo Fix panic message: it's swap_pager_putpages() not swap_pager_getpages().
Maxim Konovalov [Fri, 2 Nov 2007 20:48:10 +0000 (20:48 +0000)]
o Fix panic message: it's swap_pager_putpages() not swap_pager_getpages().

Submitted by: Mark Tinguely

16 years agoMomoize the results of isinstalledpkg()
Kirill Ponomarev [Fri, 2 Nov 2007 20:18:47 +0000 (20:18 +0000)]
Momoize the results of isinstalledpkg()

PR: bin/116452
Submitted by: wollmann
MFC after: 7 days

16 years agoCompletely remove the code for single threading the mainline fork code.
Julian Elischer [Fri, 2 Nov 2007 19:40:36 +0000 (19:40 +0000)]
Completely remove the code for single threading the mainline fork code.
Put in a little comment explaining why it went away.
Re-enable it in the case there an exisiting process is just splitting
off its address space and file descriptors.
(I donpt think anything uses that code but it needs some sort of locking
and this does the job.

Reviewed by: Davidxu, alc, others
MFC after: 3 days

16 years agoo OpenBSD 4.2 added.
Maxim Konovalov [Fri, 2 Nov 2007 19:25:06 +0000 (19:25 +0000)]
o OpenBSD 4.2 added.

16 years agoinitialize variables, WARNS=6 compliant
Philippe Charnier [Fri, 2 Nov 2007 18:06:51 +0000 (18:06 +0000)]
initialize variables, WARNS=6 compliant

16 years agoFix a shutdown hang on some SMP systems. The previous logic was to IPI all
Nate Lawson [Fri, 2 Nov 2007 17:29:36 +0000 (17:29 +0000)]
Fix a shutdown hang on some SMP systems.  The previous logic was to IPI all
CPUs to make sure idle threads are evicted from the softc before returning
from acpi_cpu_shutdown().  However, this is unnecessary since stop_cpus()
handles this for itself and at this point it's possible that our IPI will be
blocked (interrupts disabled).

Thanks to: Glen Leeder <glen.leeder / nokia.com>
MFC after: 3 days

16 years agomtree should use getcwd() instead of getwd(). getcwd() is safer,
Giorgos Keramidas [Fri, 2 Nov 2007 15:11:53 +0000 (15:11 +0000)]
mtree should use getcwd() instead of getwd().  getcwd() is safer,
because it includes checks for the length of the buffer it uses.

Reviewed by: phk, cperciva
MFC after: 3 days

16 years agoAdd the -h <bindip> option to rpc.lockd, similar to the one in
Matteo Riondato [Fri, 2 Nov 2007 14:51:53 +0000 (14:51 +0000)]
Add the -h <bindip> option to rpc.lockd, similar to the one in
nfsd(8), in mountd(8), and in rpc.statd(8)

-h bindip
Specify specific IP addresses to bind to for TCP and UDP requests.
This option may be specified multiple times.  If no -h option is
specified, rpc.lockd will bind to INADDR_ANY.  Note that when specifying
IP addresses with -h, rpc.lockd will automatically add 127.0.0.1 and
if IPv6 is enabled, ::1 to the list.

PR: bin/98500
MFC after: 1 week

16 years agoMarkup revision.
Ruslan Ermilov [Fri, 2 Nov 2007 12:07:07 +0000 (12:07 +0000)]
Markup revision.

16 years agosync with vap code base; updates for 11n support and some
Sam Leffler [Fri, 2 Nov 2007 05:24:57 +0000 (05:24 +0000)]
sync with vap code base; updates for 11n support and some
general code cleanups

Reviewed by: thompsa, avatar
MFC after: 1 week

16 years agominor wireless-related corrections
Sam Leffler [Fri, 2 Nov 2007 05:23:22 +0000 (05:23 +0000)]
minor wireless-related corrections

MFC after: 1 week

16 years agosync 11n support with vap code base; many changes based on interop
Sam Leffler [Fri, 2 Nov 2007 05:22:25 +0000 (05:22 +0000)]
sync 11n support with vap code base; many changes based on interop
testing with all major vendors

MFC after: 1 week

16 years agocorrect channel flags returned by IEEE80211_IOC_STA_INFO; we need
Sam Leffler [Fri, 2 Nov 2007 05:19:14 +0000 (05:19 +0000)]
correct channel flags returned by IEEE80211_IOC_STA_INFO; we need
to return all 32-bits to identify stations operating with HT

MFC after: 1 week

16 years agodon't try to re-associate after a parameter change, too many ap's
Sam Leffler [Fri, 2 Nov 2007 05:11:45 +0000 (05:11 +0000)]
don't try to re-associate after a parameter change, too many ap's
don't do this right; instead go to the scan cache so we pass through
auth state (if the cache is warm we can do this w/o an actual scan)

MFC after: 1 week

16 years ago- Add sysctl for sizeof(znode_t), which will be used by fstat(1).
Ulf Lilleengen [Fri, 2 Nov 2007 00:35:05 +0000 (00:35 +0000)]
- Add sysctl for sizeof(znode_t), which will be used by fstat(1).

Approved by: pjd (mentor)

16 years agoDon't imply O(n) removal for the doubly linked data structures.
David E. O'Brien [Fri, 2 Nov 2007 00:34:44 +0000 (00:34 +0000)]
Don't imply O(n) removal for the doubly linked data structures.

16 years agoAdd my birthday to the calendar.
Henrik Brix Andersen [Thu, 1 Nov 2007 21:56:09 +0000 (21:56 +0000)]
Add my birthday to the calendar.

Approved by: erwin (mentor)

16 years agoDon't look for GPT primary and secondary tables on a disk unless we have
John Baldwin [Thu, 1 Nov 2007 20:51:04 +0000 (20:51 +0000)]
Don't look for GPT primary and secondary tables on a disk unless we have
a valid PMBR.  Without this fix, if label a disk with a GPT, then relabel
it with an MBR the GPT tables are still present.  If you then try to create
a GPT with 'gpt create', gpt(8) will fail to open the device because the
partitions in the stale GPT overlap with the slices in the MBR.

MFC after: 1 week

16 years agoRework aac locking for MPSAFE CAM. This fixes a Giant mutex assertion
Ed Maste [Thu, 1 Nov 2007 20:45:29 +0000 (20:45 +0000)]
Rework aac locking for MPSAFE CAM.  This fixes a Giant mutex assertion
reported on freebsd-current [1].

Also dequeue all events in aac_release_command (instead of just one)
so that there's no risk of them getting stranded.

Reported by:    Steven Brown [1]
Submitted by:   scottl@

[1] http://lists.freebsd.org/pipermail/freebsd-current/2007-October/077928.html

16 years agoAdd the -h <bindip> option to rpc.statd, similar to the one in nfsd(8)
Matteo Riondato [Thu, 1 Nov 2007 20:13:33 +0000 (20:13 +0000)]
Add the -h <bindip> option to rpc.statd, similar to the one in nfsd(8)
and in mountd(8)

-h bindip
Specify specific IP addresses to bind to for TCP and UDP requests.
This option may be specified multiple times.  If no -h option is
specified, rpc.statd will bind to INADDR_ANY.  Note that when specifying
IP addresses with -h, rpc.statd will automatically add 127.0.0.1 and if
IPv6 is enabled, ::1 to the list.

(coming for rpc.lockd too)

PR: bin/98500
MFC after: 1 week

16 years agoFix 'gpt boot' to work on disk devices and not just plain files. Writes to
John Baldwin [Thu, 1 Nov 2007 20:06:12 +0000 (20:06 +0000)]
Fix 'gpt boot' to work on disk devices and not just plain files.  Writes to
disk devices have to consist of a block of sectors.  Thus, when writing
gptboot to the boot partition, round the size of the gptboot file up to a
sector boundary, pre-zero it, and write out the full buffer to disk.

16 years agoDocument -t.
David E. O'Brien [Thu, 1 Nov 2007 19:54:59 +0000 (19:54 +0000)]
Document -t.

16 years agoAdd myself and note that erwin is my mentor
Henrik Brix Andersen [Thu, 1 Nov 2007 16:08:25 +0000 (16:08 +0000)]
Add myself and note that erwin is my mentor

Approved by: erwin (mentor)

16 years agoCall zil_commit() (if ZIL is not disabled) after every non-read request
Pawel Jakub Dawidek [Thu, 1 Nov 2007 11:04:21 +0000 (11:04 +0000)]
Call zil_commit() (if ZIL is not disabled) after every non-read request
(BIO_WRITE and BIO_FLUSH) as it is done is Solaris. The difference is
that Solaris calls it only for sync requests, but we can't say in GEOM
is the request is sync or async, so we do it for every request.

MFC after: 1 week

16 years ago__CPU_XSCALE_PXA2XX -> CPU_XSCALE_PXA2X0
Kevin Lo [Thu, 1 Nov 2007 10:01:15 +0000 (10:01 +0000)]
__CPU_XSCALE_PXA2XX -> CPU_XSCALE_PXA2X0

16 years agoBump document date on behalf of previous revision.
Ruslan Ermilov [Thu, 1 Nov 2007 09:49:45 +0000 (09:49 +0000)]
Bump document date on behalf of previous revision.

16 years ago- Move crfree() outside MNT_ILOCK()/MNT_IUNLOCK() to eliminate a LOR:
Pawel Jakub Dawidek [Thu, 1 Nov 2007 08:58:29 +0000 (08:58 +0000)]
- Move crfree() outside MNT_ILOCK()/MNT_IUNLOCK() to eliminate a LOR:
  1st 0xc4cea568 struct mount mtx (struct mount mtx) @ /usr/src/sys/modules/zfs/../../compat/opensolaris/kern/opensolaris_vfs.c:209
  2nd 0xc3ee9010 sleep mtxpool (sleep mtxpool) @ /usr/src/sys/kern/kern_resource.c:1266
- Move crdup() outside MNT_ILOCK()/MNT_IUNLOCK(), as it can sleep.

Reported by: Olli Hauer <ohauer@gmx.de>
MFC after: 3 days

16 years agoBack out not human readable optimization in prev. commit which shown
Andrey A. Chernov [Thu, 1 Nov 2007 03:18:02 +0000 (03:18 +0000)]
Back out not human readable optimization in prev. commit which shown
to generate 3bytes longer opcode.

16 years agoAlso fix a "blank line" issue that sneaked in from rev. 1.19.
Ruslan Ermilov [Wed, 31 Oct 2007 19:26:01 +0000 (19:26 +0000)]
Also fix a "blank line" issue that sneaked in from rev. 1.19.

Submitted by: John Hein

16 years agoAdd a small note about how "mkfs.xfs -p" can be used to create
Craig Rodrigues [Wed, 31 Oct 2007 19:21:51 +0000 (19:21 +0000)]
Add a small note about how "mkfs.xfs -p" can be used to create
an XFS file system populated with files.

16 years agoadd zyd
Sam Leffler [Wed, 31 Oct 2007 18:47:04 +0000 (18:47 +0000)]
add zyd

MFC after: 3 days

16 years agoFix one more typo.
Alexander Motin [Wed, 31 Oct 2007 18:33:23 +0000 (18:33 +0000)]
Fix one more typo.

16 years agoFix some mistakes.
Alexander Motin [Wed, 31 Oct 2007 18:22:51 +0000 (18:22 +0000)]
Fix some mistakes.
Update my email.

16 years agoFix locking issue in ng_btsocket_l2cap_ctloutput()
Maksim Yevmenkin [Wed, 31 Oct 2007 16:17:20 +0000 (16:17 +0000)]
Fix locking issue in ng_btsocket_l2cap_ctloutput()

Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net >
MFC after: 3 days

16 years agoUpdate copyright attribution.
John Baldwin [Wed, 31 Oct 2007 16:14:30 +0000 (16:14 +0000)]
Update copyright attribution.

MFC after: 3 days

16 years agoInsert zero-width break points to fix warnigns in nroff output,
Giorgos Keramidas [Wed, 31 Oct 2007 16:07:58 +0000 (16:07 +0000)]
Insert zero-width break points to fix warnigns in nroff output,
and reduce whitespace stretching in groff PS output.

groff-foo by: ru

16 years agoNormalize usage output.
Ruslan Ermilov [Wed, 31 Oct 2007 13:49:20 +0000 (13:49 +0000)]
Normalize usage output.

16 years agoAdd a hackish knob to skip rtld, NO_RTLD. In conjunction with
Yaroslav Tykhiy [Wed, 31 Oct 2007 11:19:32 +0000 (11:19 +0000)]
Add a hackish knob to skip rtld, NO_RTLD.  In conjunction with
src/Makefile.inc1 rev. 1.590, it can allow installing a world
cross-built for a different arch over the live system.  The procedure
is more or less as follows:

cp -R /rescue /rescue.old
make installkernel TARGET_ARCH=foo
make -DNO_RTLD installworld TARGET_ARCH=foo
     ^^^^^^^^^
PATH=/rescue.old
chflags noschg /libexec/ld-elf.so.1
cp /usr/obj/foo/usr/src/libexec/rtld/ld-elf.so.1 /libexec
chflags schg /libexec/ld-elf.so.1
<ditto for ld-elf32.so.1 if installing for amd64>
reboot

16 years agoDecouple the install tools from the main system as much as possible.
Yaroslav Tykhiy [Wed, 31 Oct 2007 09:26:42 +0000 (09:26 +0000)]
Decouple the install tools from the main system as much as possible.
I.e., not only copy them to a scratch dir, but also make them use saved
copies of libraries and locale files.  That gives us several benefits:

1) ABI breakages should no longer affect installworld over the live system.

2) It becomes safe to run installworld while still running the old kernel.
   However, it can be reasonable to save the old /rescue before that to be
   able to run the old reboot(8), as the new binaries are rather likely to
   fail with the old kernel.  Anyhow, it's now possible to upgrade a system
   in a single reboot _reliably_.

3) With a bit of hackery around rtld(8), it becomes possible to do destructive
   cross-installs, e.g., i386->amd64 over the live system.

The only shared item left between the old and new systems is rtld(8),
which cannot be run from a saved copy easily because its full
pathname is stored in the respective field of each ELF executable.
(In theory, that field could be overridden, e.g., from the environment,
but this can lead to security issues.)  That's why a destructive
cross-install isn't possible w/o hackery yet.

Fruitful ideas by: ru
Reviewed by: ru
Tested with: audit(4)

16 years agoGive more details on the following topics:
Yaroslav Tykhiy [Wed, 31 Oct 2007 08:20:09 +0000 (08:20 +0000)]
Give more details on the following topics:
o How global, command-line, and environment variables relate.
o What peculiarities the -f option has WRT ${MAKEFLAGS}.

16 years agoAdd CPU_ARM9E
Kevin Lo [Wed, 31 Oct 2007 07:28:45 +0000 (07:28 +0000)]
Add CPU_ARM9E

16 years agoDon't define get_cachetype() for CPU_ARM9E unless it's going to be used.
Kevin Lo [Wed, 31 Oct 2007 07:27:31 +0000 (07:27 +0000)]
Don't define get_cachetype() for CPU_ARM9E unless it's going to be used.