]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years ago- Move defines for PC-98 machine type from pc98/cbus/cbus.h into
Yoshihiro Takahashi [Mon, 8 May 2006 12:03:58 +0000 (12:03 +0000)]
- Move defines for PC-98 machine type from pc98/cbus/cbus.h into
  pc98/pc98/pc98_machdep.h.
- Fix PC98_SYSTEM_PARAMETER_SIZE.
- Remove unused defines.

18 years agoAdd the ath and the wlan crypto support.
Yoshihiro Takahashi [Mon, 8 May 2006 11:55:57 +0000 (11:55 +0000)]
Add the ath and the wlan crypto support.

18 years agoadd a diff line so you can check your commit before hitting enter...
John-Mark Gurney [Mon, 8 May 2006 06:47:59 +0000 (06:47 +0000)]
add a diff line so you can check your commit before hitting enter...

18 years agomatch w/ prototype...
John-Mark Gurney [Mon, 8 May 2006 04:25:35 +0000 (04:25 +0000)]
match w/ prototype...

MFC after: 3 days

18 years agofix braino that broke building on amd64
Sam Leffler [Mon, 8 May 2006 04:04:06 +0000 (04:04 +0000)]
fix braino that broke building on amd64

Submitted by: Pascal Hofstee
MFC after: 2 weeks

18 years agoBe more like Windows and Linux and send our hostname in the host-name
Brooks Davis [Sun, 7 May 2006 23:31:10 +0000 (23:31 +0000)]
Be more like Windows and Linux and send our hostname in the host-name
option if none is given in the config file.  Also add #ifdefd out
support for sending a client ID based on our MAC address.

PR: bin/94743, bin/76401
Submitted by: Frank Behrens <frank at pinky dot sax dot de>
X-MFC after: 6.1-RELEASE

18 years ago- Check for some mandatory variables.
Florent Thoumie [Sun, 7 May 2006 23:15:39 +0000 (23:15 +0000)]
- Check for some mandatory variables.

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

18 years agoCall vn_finished_write() before calling the coredump handler which will
Tor Egge [Sun, 7 May 2006 22:50:22 +0000 (22:50 +0000)]
Call vn_finished_write() before calling the coredump handler which will
indirectly call vn_start_write() as necessary for each write.

18 years agoo Add acpi_ibm to the build.
Maxim Konovalov [Sun, 7 May 2006 20:13:18 +0000 (20:13 +0000)]
o Add acpi_ibm to the build.

PR: kern/96940
Submitted by: Rong-En Fan

18 years ago- change the example of compiling only specific modules to not contain
Alexander Leidinger [Sun, 7 May 2006 18:12:18 +0000 (18:12 +0000)]
- change the example of compiling only specific modules to not contain
  the linux module, since it is not cross-platform
- move linprocfs from "files" and "options" to architecture specific files,
  since it only makes sense to build this for those architectures, where we
  also have a linuxolator
- disable the build of the linuxolator on our tier-2 architecture "Alpha":
  * we don't have a linux_base port which supports Alpha and at the
    same time is not outdated/obsoleted upstream/in a good condition/
    currently working
  * the upcomming new default linux base port is based upon Fedora
    Core 3 (security support via http://www.fedoralegacy.org), which
    isn't available for Alpha (like the current default linux base
    port which is based upon Red Hat 8)
  * nobody answered my request for testing it ~1 month ago on
    current@ and alpha@ (it doesn't surprises me, see above)
  * a SoC student wouldn't have to waste time on something which
    nobody is willing to test

This does not remove the alpha specific MD files of the linuxolator yet.

Discussed on: arch (mostly silence)
Spiritual support by: scottl

18 years agoIn order to let new binutils can compile it, replace movl with
David Xu [Sun, 7 May 2006 08:19:04 +0000 (08:19 +0000)]
In order to let new binutils can compile it, replace movl with
movw for segment saving and restoring.

Submitted by: Diego 'Flameeyes' Petteno flameeyes at gentoo dot org

18 years agoAdd myself
Andrew Pantyukhin [Sun, 7 May 2006 07:45:39 +0000 (07:45 +0000)]
Add myself

Approved by: krion

18 years agoDon't attach special devices in the order they appear in the AML tree.
Nate Lawson [Sun, 7 May 2006 03:28:10 +0000 (03:28 +0000)]
Don't attach special devices in the order they appear in the AML tree.
If the embedded controller exists before the sysresource devices, for
example, it will be attached first.  Instead, let the normal device
order function work as we first desired. [1]

There still remained a problem where we couldn't allocate resources in
acpi0 that were passed up by the sysresource pseudo-devices.  These
devices had to probe/attach first to give their resources to acpi, then
acpi would allocate them before probing/attaching other devices.  To
work around this, we attach them from acpi_sysres_alloc().  A better
approach would be to implement multi-pass probe/attach in newbus but
that's a much bigger task.

Suggested by: jhb [1]
Hardware from: Centaur Technologies
MFC after: 1 week

18 years agoPickup locks for the BPF interface structure. It's quite possible that
Christian S.J. Peron [Sun, 7 May 2006 03:21:43 +0000 (03:21 +0000)]
Pickup locks for the BPF interface structure. It's quite possible that
bpf(4) descriptors can be added and removed on this interface while we
are processing stats.

MFC after: 2 weeks

18 years agoNew release note: Dual-core processors handled correctly.
Bruce A. Mah [Sun, 7 May 2006 01:06:58 +0000 (01:06 +0000)]
New release note:  Dual-core processors handled correctly.

This note is a candidate for the 6.1-RELEASE errata notes (the code
change was previously merged to RELENG_6_1 but this note is appearing
too late to be merged).

18 years agofix style nit
David E. O'Brien [Sun, 7 May 2006 00:40:00 +0000 (00:40 +0000)]
fix style nit

18 years agoFix package name typo in KDE3 release note.
Bruce A. Mah [Sat, 6 May 2006 23:51:04 +0000 (23:51 +0000)]
Fix package name typo in KDE3 release note.

Submitted by: moose - opera - com

18 years agoforce type coercion for bus tag+handle when calling ath_hal_attach
Sam Leffler [Sat, 6 May 2006 23:23:39 +0000 (23:23 +0000)]
force type coercion for bus tag+handle when calling ath_hal_attach
to ensure we match the type signature; we cannot assume HAL_BUS_TAG
and HAL_BUS_HANDLE correspond to bus_space_tag_t and bus_space_handle_t
(should probably do this for HAL_SOFTC too but leave that for now)

MFC after: 1 month

18 years agofix build on sparc
Sam Leffler [Sat, 6 May 2006 23:14:19 +0000 (23:14 +0000)]
fix build on sparc

MFC after: 1 month

18 years agoo Implement "-n" flag: ignore files and directories with user "nodump"
Maxim Konovalov [Sat, 6 May 2006 22:04:59 +0000 (22:04 +0000)]
o Implement "-n" flag: ignore files and directories with user "nodump"
flag set.  Useful for calculation dump -h dump size.

PR: bin/96864
Submitted by: Dmitry Kazarov
Obtained from: NetBSD (man page)
MFC after: 1 month

18 years agoffs_syncvnode() might skip some of the blocks due to them being locked,
Tor Egge [Sat, 6 May 2006 20:51:31 +0000 (20:51 +0000)]
ffs_syncvnode() might skip some of the blocks due to them being locked,
assuming them to be inflight write buffers.  This is not always the case.
bufdaemon might hold the buffer lock and give up writing the buffer due to it
having dependencies, the file system being suspended or the vnode lock being
held by another thread.  When bufdaemon decides to write the buffer there is
still a window before bufobj_wref() has been called, allowing other threads to
believe that the vnode has no dirty buffers or inflight writes.

Try harder to flush first block of new subdirectory to get rid of MKDIR_BODY
dependency.

18 years agoo Take an account a media sectorsize for medium and bigsize calculation.
Maxim Konovalov [Sat, 6 May 2006 19:52:25 +0000 (19:52 +0000)]
o Take an account a media sectorsize for medium and bigsize calculation.
o Introduce -r and -w keys which allow to load and save a worklist.
o Replace README by man page.

PR: bin/96677
Submitted by: Ulrich Spoerlein
Approved by: phk
MFC after: 1 month

18 years agoForgot the amd/linux32 part since sys/*/linux didn't match :-(
Doug Ambrisko [Sat, 6 May 2006 17:26:45 +0000 (17:26 +0000)]
Forgot the amd/linux32 part since sys/*/linux didn't match :-(

Pointed out by: Alexander (thanks)

18 years agoModify UDP to use sosend_dgram() instead of sosend(). This allows
Robert Watson [Sat, 6 May 2006 11:24:59 +0000 (11:24 +0000)]
Modify UDP to use sosend_dgram() instead of sosend().  This allows
for signicantly optimized UDP socket I/O when using a single UDP
socket from many threads or processes that share it, by avoiding
significant locking and other overhead in the general sosend()
path that isn't necessary for simple datagram sockets.  Specifically,
this change results in a significant performance improvement for
threaded name service in BIND9 under load.

Suggested by: Jinmei_Tatsuya at isc dot org

18 years agoReturn error if vnode was reclaimed while it was temporarily unlocked.
Tor Egge [Fri, 5 May 2006 21:27:31 +0000 (21:27 +0000)]
Return error if vnode was reclaimed while it was temporarily unlocked.
Add missing calls to vn_finished_write() in error handling.

18 years agoTemporarily unlock vnode for new image being executed to avoid lock order
Tor Egge [Fri, 5 May 2006 20:25:05 +0000 (20:25 +0000)]
Temporarily unlock vnode for new image being executed to avoid lock order
reversals that can lead to deadlocks.  Normally vn_close(), namei() or vrele()
should not be called while holding vnode locks.

18 years agoAdd Russell Cattelan to list of pre-commit reviewers for changes to XFS.
Craig Rodrigues [Fri, 5 May 2006 20:12:30 +0000 (20:12 +0000)]
Add Russell Cattelan to list of pre-commit reviewers for changes to XFS.

Requested by: Russell Cattelan <cattelan at xfs dot org>

18 years agoTurn off disk quotas for snapshot files.
Tor Egge [Fri, 5 May 2006 20:10:04 +0000 (20:10 +0000)]
Turn off disk quotas for snapshot files.

18 years agoAvoid locking overhead when snapshots are disabled.
Tor Egge [Fri, 5 May 2006 19:58:36 +0000 (19:58 +0000)]
Avoid locking overhead when snapshots are disabled.

18 years agoAvoid dereferencing NULL pointer.
Tor Egge [Fri, 5 May 2006 19:32:35 +0000 (19:32 +0000)]
Avoid dereferencing NULL pointer.

18 years agoSetting the rid of the resource is a good idea, but we still need to return
Olivier Houchard [Fri, 5 May 2006 19:14:57 +0000 (19:14 +0000)]
Setting the rid of the resource is a good idea, but we still need to return
the resource after.

18 years agoCheck for VFS_STATFS() failure in _xfs_mount() and abort the mount
Giorgos Keramidas [Fri, 5 May 2006 18:41:56 +0000 (18:41 +0000)]
Check for VFS_STATFS() failure in _xfs_mount() and abort the mount
on errors.

Found by: Coverity Prevent
Approved by: rodrigc, Russell Cattelan
MFC after: 4 weeks

18 years agoFix a snafu caused while patching the previous fix from another branch.
Mohan Srinivasan [Fri, 5 May 2006 18:12:13 +0000 (18:12 +0000)]
Fix a snafu caused while patching the previous fix from another branch.

18 years agoFix for a NFS/TCP client bug which would cause the NFS/TCP stream to get
Mohan Srinivasan [Fri, 5 May 2006 18:04:53 +0000 (18:04 +0000)]
Fix for a NFS/TCP client bug which would cause the NFS/TCP stream to get
out of sync under heavy loads, forcing frequent reconnets, causing EBADRPC
errors etc.

18 years agoFix the the duplicate cut-n-paste in linux_fstat64 pointed out by
Doug Ambrisko [Fri, 5 May 2006 16:17:59 +0000 (16:17 +0000)]
Fix the the duplicate cut-n-paste in linux_fstat64 pointed out by
Alexander Leidinger.  I forget to fix it in this version.

18 years agoEnhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
Doug Ambrisko [Fri, 5 May 2006 16:10:45 +0000 (16:10 +0000)]
Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
Add back in a scheme to emulate old type major/minor numbers via hooks into
stat, linprocfs to return major/minors that Linux app's expect.  Currently
only /dev/null is always registered.  Drivers can register via the Linux
type shim similar to the ioctl shim but by using
linux_device_register_handler/linux_device_unregister_handler functions.
The structure is:

    struct linux_device_handler {
        char    *bsd_driver_name;
        char    *linux_driver_name;
        char    *bsd_device_name;
        char    *linux_device_name;
        int     linux_major;
        int     linux_minor;
        int     linux_char_device;
    };

Linprocfs uses this to display the major number of the driver.  The
soon to be available linsysfs will use it to fill in the driver name.
Linux_stat uses it to translate the major/minor into Linux type values.

Note major numbers are dynamically assigned via passing in a -1 for
the major number so we don't need to keep track of them.

This is somewhat needed due to us switching to our devfs.  MegaCli
will not run until I add in the linsysfs and mfi Linux compat changes.

Sponsored by: IronPort Systems

18 years agoIf perform-actual-lookups is enabled, getservbyname() matches an entry
Hajimu UMEMOTO [Fri, 5 May 2006 15:01:25 +0000 (15:01 +0000)]
If perform-actual-lookups is enabled, getservbyname() matches an entry
even when proto is not valid.

Submitted by: Michael Bushkov <bushman__at__rsu.ru>

18 years agoRemove hand-rolled cross-build glue. Normal cross-build infrastructure
Scott Long [Fri, 5 May 2006 14:26:28 +0000 (14:26 +0000)]
Remove hand-rolled cross-build glue.  Normal cross-build infrastructure
in FreeBSD likely supports this without any extra work.

18 years ago- Set bio_done directly to NULL to indicate that we want to wait for the bio.
Pawel Jakub Dawidek [Fri, 5 May 2006 10:06:22 +0000 (10:06 +0000)]
- Set bio_done directly to NULL to indicate that we want to wait for the bio.
- Use biowait() instead of copying the code.

MFC after: 1 month

18 years agoMake sure the ip data pointer is correct before touching it again
Bjoern A. Zeeb [Fri, 5 May 2006 07:31:03 +0000 (07:31 +0000)]
Make sure the ip data pointer is correct before touching it again
after ipsec4_output processing else KAME IPSec using the handbook
configuration with gif(4) will panic the kernel.

Problem reported by:    t. patterson <tp lot.org>
Tested by:              t. patterson <tp lot.org>

18 years agoOnly return (tw) from tcp_twclose() if reuse is passed, otherwise
Robert Watson [Fri, 5 May 2006 06:50:23 +0000 (06:50 +0000)]
Only return (tw) from tcp_twclose() if reuse is passed, otherwise
return NULL.  In principle this shouldn't change the behavior, but
avoids returning a potentially invalid/inappropriate pointer to
the caller.

Found with: Coverity Prevent (tm)
Submitted by: pjd
MFC after: 3 months

18 years agoForce commit to provide correct commit message:
Pawel Jakub Dawidek [Fri, 5 May 2006 06:36:30 +0000 (06:36 +0000)]
Force commit to provide correct commit message:

Set 'fp' variable to NULL after freeing it, so it won't be dereferenced
later.

Found by: Coverity Prevent analysis tool
CID: 993
MFC after: 2 weeks

18 years ago/tmp/cvsTXPIwQ
Pawel Jakub Dawidek [Fri, 5 May 2006 06:24:34 +0000 (06:24 +0000)]
/tmp/cvsTXPIwQ

18 years agoAllow the HTTP_PROXY environment variable to be (mis)spelled as
Colin Percival [Fri, 5 May 2006 04:47:00 +0000 (04:47 +0000)]
Allow the HTTP_PROXY environment variable to be (mis)spelled as
"http_proxy", since some people apparently do this and fetch(3)
allows it.

18 years agoAH_REGOPS_FUNC is needed for sparc
Sam Leffler [Fri, 5 May 2006 04:19:36 +0000 (04:19 +0000)]
AH_REGOPS_FUNC is needed for sparc

MFC after: 2 weeks

18 years agoFix the test for whether ${HTTP_PROXY} is set -- I got it backwards.
Colin Percival [Fri, 5 May 2006 03:44:13 +0000 (03:44 +0000)]
Fix the test for whether ${HTTP_PROXY} is set -- I got it backwards.

Pointy hat to: cperciva
Pointed out by: pjd

18 years agocorrect type
Sam Leffler [Fri, 5 May 2006 03:21:13 +0000 (03:21 +0000)]
correct type

MFC after: 2 weeks

18 years agoo Make it possible to compile find-sb on non-FreeBSD system (MacOS X in my
Maxim Sobolev [Fri, 5 May 2006 00:19:24 +0000 (00:19 +0000)]
o Make it possible to compile find-sb on non-FreeBSD system (MacOS X in my
  case). Can be useful for recovering in some cases;

o use SBLOCK_UFS2 instead of SBLOCK_UFS1 to calculate likely start of the UFS2
  partition from the beginning of disk.

18 years agoFix binary upgrades by accounting for the schg flag on /var/empty.
Ceri Davies [Thu, 4 May 2006 20:10:34 +0000 (20:10 +0000)]
Fix binary upgrades by accounting for the schg flag on /var/empty.

PR: 96711, 96780
Submitted by: Nobuyuki Koganemaru, Martin Jackson
Approved by: re (scottl)
MFC after: 1 day

18 years agoAssert ip6_forward_rt protected by Giant adding GIANT_REQUIRED to
Bjoern A. Zeeb [Thu, 4 May 2006 18:41:08 +0000 (18:41 +0000)]
Assert ip6_forward_rt protected by Giant adding GIANT_REQUIRED to
functions not yet asserting it but working on global ip6_forward_rt
route cache which is not locked and perhaps should go away in the
future though cache hit/miss ration wasn't bad.

It's #if 0ed in frag6 because the code working on ip6_forward_rt is.

18 years agoIn rtrequest and rtinit check for sa_len != 0 for the given
Bjoern A. Zeeb [Thu, 4 May 2006 18:33:37 +0000 (18:33 +0000)]
In rtrequest and rtinit check for sa_len != 0 for the given
destination. These checks are needed so we do not install
a route looking like this:
(0)                192.0.2.200        UH       tun0 =>

When removing this route  the kernel will start to walk
the address space which looks like a hang on 64bit platforms
because it'll take ages while on 32bit you should see a panic
when kernel debugging options are turned on.

The problem is in rtrequest1:
if (netmask) {
rt_maskedcopy(dst, ndst, netmask);
} else
bcopy(dst, ndst, dst->sa_len);

In both cases the len might be 0 if the application forgot to
set it.  If so ndst will be all-zero  leading to above
mentioned strange routes.

This is an application error but we must not fail/hang/panic
because of this.

Looks ok: gnn
No objections: net@ (silence)
MFC after: 8 weeks

18 years agoUse G_RAID3_FOREACH_SAFE_BIO() macro instead of G_RAID3_FOREACH_BIO() in
Pawel Jakub Dawidek [Thu, 4 May 2006 13:01:16 +0000 (13:01 +0000)]
Use G_RAID3_FOREACH_SAFE_BIO() macro instead of G_RAID3_FOREACH_BIO() in
two places where g_io_request() is called. g_io_request() can free bio
structure so we can't reference it after and G_RAID3_FOREACH_BIO() macro
was doing this.

Found by: Coverity Prevent analysis tool (with my new models)
MFC after: 1 day

18 years agoThe port number must be network byte order.
Hajimu UMEMOTO [Thu, 4 May 2006 11:28:16 +0000 (11:28 +0000)]
The port number must be network byte order.

18 years agoo style: WARNS= -> WARNS?=.
Maxim Konovalov [Thu, 4 May 2006 09:01:54 +0000 (09:01 +0000)]
o style: WARNS= -> WARNS?=.

Spotted by: ru

18 years agoo By popular demand import getent(1) utility: a program retrieves
Maxim Konovalov [Thu, 4 May 2006 08:44:44 +0000 (08:44 +0000)]
o By popular demand import getent(1) utility: a program retrieves
and displays entries from the administrative database specified by
database, using the lookup order specified in nsswitch.conf(5).

PR: bin/79903, bin/88460, bin/96536
Submitted by: Julien Gabel, Dan Nelson, Daniel J. O'Connor
Obtained from: NetBSD
Discussed with: ume, soc-bushman
MFC after: 1 month

18 years agoFix three more bugs in bfe:
Mike Silbersack [Thu, 4 May 2006 07:41:01 +0000 (07:41 +0000)]
Fix three more bugs in bfe:

- Fix bfe_encap so that it will pass the address of the mbuf back up to its
  caller if/when it modifies it, as it does when doing a m_defrag on a mbuf chain.
- Make sure to unload the dmamap for ALL fragments of a packet, not just the first
- Use BUS_DMA_NOWAIT for all bus_dmamap_load calls so that the allocation of the
  map is not delayed - this driver is not set up to handle such delays.
- Reduce the number of RX and TX buffers bfe uses so that it does not use more
  bounce buffers than busdma is willing to allow it to use

With these changes, the driver now works properly for a user with a 2GB system,
and it also works on my system when the acceptable address range is lowered to 128MB.
Previously, both of these setups would act up after a few minutes of activity.

18 years agoMove the formatting of the NICE column to a new function format_nice()
Bruce Evans [Thu, 4 May 2006 03:56:31 +0000 (03:56 +0000)]
Move the formatting of the NICE column to a new function format_nice()
so that it can be more easily unbroken and extended.

Try to use `static', `const' (as appropriate), prototypes declared together,
and parameter names in prototypes for all private functions, not just the
new one.

18 years agoBelatedly add 2 entries relating to the introduction of scc(4) and
Marcel Moolenaar [Thu, 4 May 2006 03:48:06 +0000 (03:48 +0000)]
Belatedly add 2 entries relating to the introduction of scc(4) and
the overhaul of puc(4). On sparc64 people may end up without serial
console if they upgrade without adding scc(4) to their kernel
configuration file.

18 years agoFixed some style bugs (mainly missing and wrong splitting of long lines).
Bruce Evans [Thu, 4 May 2006 03:00:13 +0000 (03:00 +0000)]
Fixed some style bugs (mainly missing and wrong splitting of long lines).

18 years agoAdd 4Gb Fibre Channel support.
Matt Jacob [Thu, 4 May 2006 02:35:04 +0000 (02:35 +0000)]
Add 4Gb Fibre Channel support.
Work sponsored by LSI-Logic.

18 years agoRemove MPT_PRT_INVARIANT- it was a silly idea.
Matt Jacob [Thu, 4 May 2006 02:34:18 +0000 (02:34 +0000)]
Remove MPT_PRT_INVARIANT- it was a silly idea.

18 years agoGratuitous tag alignment. It bugged me.
Matt Jacob [Thu, 4 May 2006 00:34:07 +0000 (00:34 +0000)]
Gratuitous tag alignment. It bugged me.

18 years agoRemove two lines of debugging which I forgot to remove before the last
Colin Percival [Wed, 3 May 2006 22:09:42 +0000 (22:09 +0000)]
Remove two lines of debugging which I forgot to remove before the last
commit.

Noticed by:     simon

18 years agoThe approach portsnap uses of "pick a random HTTP mirror" doesn't
Colin Percival [Wed, 3 May 2006 21:29:01 +0000 (21:29 +0000)]
The approach portsnap uses of "pick a random HTTP mirror" doesn't
interact very nicely with HTTP proxies: Since proxies do not know
that all the files on portsnap1.freebsd.org are identical to the
files with the same names on portsnap2.freebsd.org, said proxies end
up downloading and storing files in duplicate.

This commit uses the HTTP_PROXY environment variable, if set, to
generate a random number seed for use in selecting a mirror.  This
means that if several systems all have the same HTTP_PROXY value set,
they will ask the proxy to fetch files from the same mirror (unless
that mirror fails, in which case all the systems will use the same
second choice, et cetera).

Portsnap still doesn't interact very well with "transparent" HTTP
proxies, but there's nothing I can do about those.

Requested by: simon
Sponsored by:   FreeBSD security development fundraiser

18 years agoInstead of selecting a mirror and failing if it is inaccessible, keep
Colin Percival [Wed, 3 May 2006 21:19:43 +0000 (21:19 +0000)]
Instead of selecting a mirror and failing if it is inaccessible, keep
track of which mirrors we have tried and try a different mirror if we
fail when trying to download the SSL public key or the snapshot
signature.

Failures later in the download process will not result in switching to
a different mirror, for two reasons:
1. If is very unlikely that a mirror will fail partway through the
process of downloading updates.
2. If we switched from a more recently updated mirror to a less
recently updated mirror partway through the download process, we would
end up failing anyway because we would be trying to fetch files which
the second mirror didn't have yet.

PR: bin/96288
Requested by: lots of people
Sponsored by: FreeBSD security development fundraiser

18 years agoHide another common print under bootverbose.
Scott Long [Wed, 3 May 2006 21:08:39 +0000 (21:08 +0000)]
Hide another common print under bootverbose.

18 years agoo Document security.jail.jailed sysctl.
Maxim Konovalov [Wed, 3 May 2006 20:13:33 +0000 (20:13 +0000)]
o Document security.jail.jailed sysctl.

PR: docs/94711
Submitted by: Andreas Kohn
MFC after: 2 weeks

18 years agoadd ath and wlan crypto support
Sam Leffler [Wed, 3 May 2006 18:15:36 +0000 (18:15 +0000)]
add ath and wlan crypto support

MFC after: 1 month

18 years agoadd ath and wlan crypto support
Sam Leffler [Wed, 3 May 2006 18:13:11 +0000 (18:13 +0000)]
add ath and wlan crypto support

Requested by: many
MFC after: 1 month

18 years agoA few minor wording changes and a clarification about error conditions.
Brian S. Dean [Wed, 3 May 2006 17:33:29 +0000 (17:33 +0000)]
A few minor wording changes and a clarification about error conditions.

18 years agoMake amr_linux work as a module by avoiding calling amr_linux_ioctl_int
Doug Ambrisko [Wed, 3 May 2006 16:45:15 +0000 (16:45 +0000)]
Make amr_linux work as a module by avoiding calling amr_linux_ioctl_int
from the amr_linux.  This simplifies the amr_linux shim and puts the
smarts into amr.c.

I tested this with 2 amr controllers in one box.  It seems to work
okay with them.

18 years agoInstall /etc/nsswitch.conf statically rather than generating it at
Hajimu UMEMOTO [Wed, 3 May 2006 15:14:47 +0000 (15:14 +0000)]
Install /etc/nsswitch.conf statically rather than generating it at
boot.  Autogeneration of nsswitch.conf doesn't makes sense in 7.0
since it's not permitted to upgrade from a pre-nss release without
passing through an intermediate release.

Suggested by: brooks

18 years agoRestore the pre-5.x behavior of only beeping if the user makes a bad
John Baldwin [Wed, 3 May 2006 13:43:46 +0000 (13:43 +0000)]
Restore the pre-5.x behavior of only beeping if the user makes a bad
selection and not always beeping on startup.  The two bytes for the extra
'jmp' instruction were obtained by removing recognition of BSD/OS
partitions.

Requested by: many
Tested by: subset of many
Head nod: imp, keramida
MFC after: 2 weeks

18 years agoAllow bus_dmamap_load() to pass ENOMEM back to the caller. This puts it into
Scott Long [Wed, 3 May 2006 04:14:17 +0000 (04:14 +0000)]
Allow bus_dmamap_load() to pass ENOMEM back to the caller.  This puts it into
conformance with the mbuf and uio load routines.  ENOMEM can only happen
with BUS_DMA_NOWAIT is passed in, thus the deferals are disabled.  I don't
like doing this, but fixing this fixes assumptions in other important drivers,
which is a net benefit for now.

18 years agoDetect the snapshot file being prematurely unlinked.
Tor Egge [Wed, 3 May 2006 00:29:22 +0000 (00:29 +0000)]
Detect the snapshot file being prematurely unlinked.

18 years agoTemporarily undo clusters contribution to global runningbufspace while
Tor Egge [Wed, 3 May 2006 00:10:29 +0000 (00:10 +0000)]
Temporarily undo clusters contribution to global runningbufspace while
handling copy on write for the buffers taking part in the cluster.

18 years agoA side effect of calling runningbufwakeup() is that bp->b_runningbufspace is
Tor Egge [Wed, 3 May 2006 00:04:38 +0000 (00:04 +0000)]
A side effect of calling runningbufwakeup() is that bp->b_runningbufspace is
cleared.  Save old value and restore bp->b_runningbufspace before returning
from ffs_copyonwrite().

18 years agoClose a race when VOP_LOCK() on a snapshot file is attempted at the
Tor Egge [Tue, 2 May 2006 23:52:43 +0000 (23:52 +0000)]
Close a race when VOP_LOCK() on a snapshot file is attempted at the
same time as it is changed back into a normal file.  The locker would
get the shared "snaplk" lock which would no longer be the correct lock
for the vnode.

18 years agoFix previous commit: the resource returned by rman_reserve_resource()
Marcel Moolenaar [Tue, 2 May 2006 23:27:15 +0000 (23:27 +0000)]
Fix previous commit: the resource returned by rman_reserve_resource()
can be NULL. Make sure to only call rman_set_rid() when the resource
is not NULL. While here, improve readability and style.

18 years agoFix alignment problem on AMD64.
Hajimu UMEMOTO [Tue, 2 May 2006 23:02:32 +0000 (23:02 +0000)]
Fix alignment problem on AMD64.

Reported by: Pascal Hofstee <caelian__at__gmail.com>
Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Tested by: Pascal Hofstee <caelian__at__gmail.com>

18 years agoNote that when -d flag is used, mountd(8) will not detach from the
Giorgos Keramidas [Tue, 2 May 2006 21:00:43 +0000 (21:00 +0000)]
Note that when -d flag is used, mountd(8) will not detach from the
controlling terminal.

PR: docs/96660
Submitted by: Jeff Ito <ijk@speakeasy.net>
MFC after: 1 week

18 years agoAvoid coredumps if stddev cannot be computed (if all datapoints are identical)
Poul-Henning Kamp [Tue, 2 May 2006 07:34:38 +0000 (07:34 +0000)]
Avoid coredumps if stddev cannot be computed (if all datapoints are identical)
Small cleanup of label printing.

18 years agoTeach portsnap to parse the output of the host(1) in BIND 8 as well as
Colin Percival [Tue, 2 May 2006 05:27:30 +0000 (05:27 +0000)]
Teach portsnap to parse the output of the host(1) in BIND 8 as well as
the host(1) from BIND 9.  This doesn't matter for HEAD, but will help
people who install portsnap from the ports tree onto older versions of
FreeBSD.

PR: ports/93901
Sponsored by: FreeBSD security development fundraiser

18 years agoOnly print the driver name and version if bootverbose is set.
Scott Long [Tue, 2 May 2006 03:46:59 +0000 (03:46 +0000)]
Only print the driver name and version if bootverbose is set.

18 years agoType.
Pyun YongHyeon [Tue, 2 May 2006 02:12:42 +0000 (02:12 +0000)]
Type.

Submitted by: brad@OpenBSD

18 years agoAdd various constants for the PAT MSR and the PAT PTE and PDE flags.
John Baldwin [Mon, 1 May 2006 22:07:00 +0000 (22:07 +0000)]
Add various constants for the PAT MSR and the PAT PTE and PDE flags.
Initialize the PAT MSR during boot to map PAT type 2 to Write-Combining
(WC) instead of Uncached (UC-).

MFC after: 1 month

18 years agoBreak out socket access control and delivery logic from udp6_input()
Robert Watson [Mon, 1 May 2006 21:39:48 +0000 (21:39 +0000)]
Break out socket access control and delivery logic from udp6_input()
into its own function, udp6_append().  This mirrors a similar structure
in udp_input() and udp_append(), and makes the whole thing a lot more
readable.

While here, add missing inpcb locking in UDP6 input path.

Reviewed by: bz
MFC after: 3 months

18 years agoAdd a new 'pmap_invalidate_cache()' to flush the CPU caches via the
John Baldwin [Mon, 1 May 2006 21:36:47 +0000 (21:36 +0000)]
Add a new 'pmap_invalidate_cache()' to flush the CPU caches via the
wbinvd() instruction.  This includes a new IPI so that all CPU caches on
all CPUs are flushed for the SMP case.

MFC after: 1 month

18 years agoUsing an idea from Stephan Uphoff, use the empty pte's that correspond
Peter Wemm [Mon, 1 May 2006 21:22:38 +0000 (21:22 +0000)]
Using an idea from Stephan Uphoff, use the empty pte's that correspond
to the unused kva in the pv memory block to thread a freelist through.
This allows us to free pages that used to be used for pv entry chunks
since we can now track holes in the kva memory block.

Idea from:  ups

18 years agoo OpenBSD 3.9 added.
Maxim Konovalov [Mon, 1 May 2006 20:44:52 +0000 (20:44 +0000)]
o OpenBSD 3.9 added.

18 years agoFix missing changes required for the amd64->i386 conversion. Add the
Peter Wemm [Mon, 1 May 2006 19:57:00 +0000 (19:57 +0000)]
Fix missing changes required for the amd64->i386 conversion.  Add the
missing VM_ALLOC_WIRED flags to vm_page_alloc() calls I added.

Submitted by:  alc

18 years agoCorrect error messages.
Pawel Jakub Dawidek [Mon, 1 May 2006 12:05:45 +0000 (12:05 +0000)]
Correct error messages.

MFC after: 2 weeks

18 years agoCorrect the interrupt override information.
Christian Brueffer [Mon, 1 May 2006 11:56:18 +0000 (11:56 +0000)]
Correct the interrupt override information.

PR: 93429
Submitted by: Michaël Grünewald <michael.grunewald@laposte.net>
MFC after: 3 days

18 years agoAdd profile libs.
Alexander Leidinger [Mon, 1 May 2006 11:15:45 +0000 (11:15 +0000)]
Add profile libs.

Submitted by: Pawel Worach <pawel.worach@gmail.com>

18 years agoUpdate host.conf every time nsswitch.conf changes, instead of just creating
Dag-Erling Smørgrav [Mon, 1 May 2006 11:02:48 +0000 (11:02 +0000)]
Update host.conf every time nsswitch.conf changes, instead of just creating
it if it does not exist.

Submitted by: Rostislav Krasny <rosti.bsd@gmail.com>
MFC after: 2 weeks

18 years agoAdd inverted amplifier sense quirks for Sony VAIO VGN B1VP/B1XP.
Ariff Abdullah [Mon, 1 May 2006 09:28:28 +0000 (09:28 +0000)]
Add inverted amplifier sense quirks for Sony VAIO VGN B1VP/B1XP.

Reported by: Stan Behrens <s.behrens at kon.de>

18 years agoFor some time now, -i and -P options are mutually exclusive, there's even
Pawel Jakub Dawidek [Mon, 1 May 2006 09:12:52 +0000 (09:12 +0000)]
For some time now, -i and -P options are mutually exclusive, there's even
a regression test init-i-P.t which asserts this, but it looks I forgot to
update nokey.t regression test.

MFC after: 1 day

18 years agoFor the vmstat sub-display:
Bruce Evans [Mon, 1 May 2006 07:02:52 +0000 (07:02 +0000)]
For the vmstat sub-display:

vmstat.c:
Move totfr to be under daefr and prcfr since it logically belongs there.

Move all the count fields (wire, act, inact, cache and free) to near
the bottom of the sub-display (after all the rate fields) to reduce
competition with adjoining sub-displays.

systat.1:
Move things as above.

Attempt to improve missing and poor wording in the description of the
fields.  The long sentence was hard to parse and didn't say anything
about the different units.

Increment .Dd.

18 years agoDon't attach to Marvell 88E805X (Yukon-II) by default, the driver is not
Maxim Sobolev [Mon, 1 May 2006 05:16:36 +0000 (05:16 +0000)]
Don't attach to Marvell 88E805X (Yukon-II) by default, the driver is not
functional yet.

Requested by: bz

18 years agoIn the examples, use "tar.gz" as the extension for
Tim Kientzle [Mon, 1 May 2006 01:34:21 +0000 (01:34 +0000)]
In the examples, use "tar.gz" as the extension for
gzip-compressed tar archives.

Thanks to: Mike Hunter