]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoTons of fixes to get all the 64bit issues removed.
rrs [Sun, 5 Nov 2006 13:25:18 +0000 (13:25 +0000)]
Tons of fixes to get all the 64bit issues removed.
This also moves two 16 bit int's to become 32 bit
values so we do not have to use atomic_add_16.
Most of the changes are %p, casts and other various
nasty's that were in the orignal code base. With this
commit my machine will now do a build universe.. however
I as yet have not tested on a 64bit machine .. it may not work :-(

17 years agoo Document ServeRAID 7x support.
maxim [Sun, 5 Nov 2006 08:55:21 +0000 (08:55 +0000)]
o Document ServeRAID 7x support.

Submitted by: Andrey V. Elsukov
MFC after: 3 days

17 years agoCreate a bidirectional mapping of the DOS 'read only' attribute
bp [Sun, 5 Nov 2006 06:38:42 +0000 (06:38 +0000)]
Create a bidirectional mapping of the DOS 'read only' attribute
to the 'w' flag.

PR: kern/77958
Submitted by: ghozzy gmail com
MFC after: 1 month

17 years agoIt seems to be safe to ignore 'file not locked' error
bp [Sun, 5 Nov 2006 06:31:08 +0000 (06:31 +0000)]
It seems to be safe to ignore 'file not locked' error
from server.  This effectively suppresses 'Unmapped error 1:158'.

MFC after: 1 month

17 years agoThe rune interface was removed by tjr over two years ago.
trhodes [Sun, 5 Nov 2006 00:39:56 +0000 (00:39 +0000)]
The rune interface was removed by tjr over two years ago.

17 years agoWhen the source and destination objects for VOP_RENAME() are the same,
pjd [Sat, 4 Nov 2006 23:59:51 +0000 (23:59 +0000)]
When the source and destination objects for VOP_RENAME() are the same,
POSIX advice to just ignore the operation and return 0.
We already handle this case in kern_rename(), but don't give bad example -
the source is not removed.

17 years agoVOP_REMOVE() doesn't unlock vnodes nor decrease reference counts.
pjd [Sat, 4 Nov 2006 23:58:15 +0000 (23:58 +0000)]
VOP_REMOVE() doesn't unlock vnodes nor decrease reference counts.

17 years agoTypo, 'from' vnode is locked here, not 'to' vnode.
pjd [Sat, 4 Nov 2006 23:57:02 +0000 (23:57 +0000)]
Typo, 'from' vnode is locked here, not 'to' vnode.

17 years agoRemove the KDTRACE option again because of the complaints about having
jb [Sat, 4 Nov 2006 23:50:12 +0000 (23:50 +0000)]
Remove the KDTRACE option again because of the complaints about having
it as a default.

For the record, the KDTRACE option caused _no_ additional source files
to be compiled in; certainly no CDDL source files. All it did was to
allow existing BSD licensed kernel files to include one or more CDDL
header files.

By removing this from DEFAULTS, the onus is on a kernel builder to add
the option to the kernel config, possibly by including GENERIC and
customising from there. It means that DTrace won't be a feature
available in FreeBSD by default, which is the way I intended it to be.

Without this option, you can't load the dtrace module (which contains
the dtrace device and the DTrace framework). This is equivalent to
requiring an option in a kernel config before you can load the linux
emulation module, for example.

I think it is a mistake to have DTrace ported to FreeBSD, but not
to have it available to everyone, all the time. The only exception
to this is the companies which distribute systems with FreeBSD embedded.
Those companies will customise their systems anyway. The KDTRACE
option was intended for them, and only them.

17 years agoCurrently, we initialize "error" to zero when it's declared, then
csjp [Sat, 4 Nov 2006 20:54:37 +0000 (20:54 +0000)]
Currently, we initialize "error" to zero when it's declared, then
we never initialize it to anything else. However, in the case that
m_uiotombuf fails, we return error (effectively reporting success).

This appears to be a relic of an older revision of this file, where
"error" used to be doing something useful. (See revision 1.1, where
error is used in a loop with uiomove() instead of using m_uiotomubf).

So instead on unconditionally reporting success in the case there is
a failure in m_uiotombuf, explicitly return ENOBUFS. While we are
here, garbage collect the error variable since it's no longer required.

MFC after: 2 weeks

17 years agoWhen the packet is for the bridge then note which interface to send the reply
thompsa [Sat, 4 Nov 2006 10:40:59 +0000 (10:40 +0000)]
When the packet is for the bridge then note which interface to send the reply
to, previously it was always broadcast to all interfaces (a bug). This is
useful when the bridge is the default gateway and vlans are used to isolate
each client, the reply is now kept private to the vlan which the client
resides.

Reported by: Jon Otterholm
Tested by: Jon Otterholm
MFC after: 3 days

17 years agoXref pthread_condattr.3, pthread_attr.3, and pthread_mutexattr.3.
trhodes [Sat, 4 Nov 2006 10:08:16 +0000 (10:08 +0000)]
Xref pthread_condattr.3, pthread_attr.3, and pthread_mutexattr.3.

PR: 60679
Submitted by: roam (with minor modifications)

17 years agoDocument return values for res_query and res_search.
lawrance [Sat, 4 Nov 2006 09:42:22 +0000 (09:42 +0000)]
Document return values for res_query and res_search.
h_errno is not an extern int, just a macro providing an integer lvalue.

PR: doc/50573
Submitted by: Ronald F.Guilmette <rfg@monkeys.com>
Reviewed by: trhodes
MFC after: 3 days

17 years ago- clock_gettime is in time.h instead of sys/time.h
danger [Sat, 4 Nov 2006 09:35:36 +0000 (09:35 +0000)]
- clock_gettime is in time.h instead of sys/time.h

Approved by: trhodes (mentor), keramida (mentor)
PR: docs/104707
MFC-after: 3 days

17 years agoFix pointer arithmetic to be 64-bit friendly.
ru [Sat, 4 Nov 2006 08:45:50 +0000 (08:45 +0000)]
Fix pointer arithmetic to be 64-bit friendly.

17 years agoRemove bogus casts that Randall for some reason didn't borrow
ru [Sat, 4 Nov 2006 08:19:01 +0000 (08:19 +0000)]
Remove bogus casts that Randall for some reason didn't borrow
from my supplied patch.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r163976,
dougb [Sat, 4 Nov 2006 07:53:25 +0000 (07:53 +0000)]
This commit was generated by cvs2svn to compensate for changes in r163976,
which included commits to RCS files with non-trunk default branches.

17 years agoUpdate to version 9.3.2-P2, which addresses the vulnerability
dougb [Sat, 4 Nov 2006 07:53:25 +0000 (07:53 +0000)]
Update to version 9.3.2-P2, which addresses the vulnerability
announced by ISC dated 31 October (delivered via e-mail to the
bind-announce@isc.org list on 2 November):

Description:
        Because of OpenSSL's recently announced vulnerabilities
        (CAN-2006-4339, CVE-2006-2937 and CVE-2006-2940) which affect named,
        we are announcing this workaround and releasing patches.  A proof of
        concept attack on OpenSSL has been demonstrated for CAN-2006-4339.

        OpenSSL is required to use DNSSEC with BIND.

Fix for version 9.3.2-P1 and lower:
        Upgrade to BIND 9.3.2-P2, then generate new RSASHA1 and
        RSAMD5 keys for all old keys using the old default exponent
        and perform a key rollover to these new keys.

        These versions also change the default RSA exponent to be
        65537 which is not vulnerable to the attacks described in
        CAN-2006-4339.

17 years agoDoh! Actually commit checking against NULL for res.
imp [Sat, 4 Nov 2006 06:56:51 +0000 (06:56 +0000)]
Doh!  Actually commit checking against NULL for res.

Noticed by: dougb@

17 years agoRemove a bogus cast in an attempt to fix the tinderbox builds on
jb [Sat, 4 Nov 2006 05:39:39 +0000 (05:39 +0000)]
Remove a bogus cast in an attempt to fix the tinderbox builds on
lots of arches.

17 years agoBackout the previous change. It was not intended to be part of the
jb [Sat, 4 Nov 2006 05:27:21 +0000 (05:27 +0000)]
Backout the previous change. It was not intended to be part of the
commit and, while something like that is probably required for sparc64,
it hadn't been tested.

17 years agoBuild in kernel support for loading DTrace modules by default. This
jb [Sat, 4 Nov 2006 04:58:10 +0000 (04:58 +0000)]
Build in kernel support for loading DTrace modules by default. This
adds the hooks that DTrace modules register with, and adds a few functions
which have the dtrace_ prefix to allow the DTrace FBT (function boundary
trace) provider to avoid tracing because they are called from the DTtrace
probe context.

Unlike other forms of tracing and debug, DTrace support in the kernel
incurs negligible run-time cost.

I think the only reason why anyone wouldn't want to have kernel support
enabled for DTrace would be due to the license (CDDL) under which DTrace
is released.

17 years agoAllow a makefile to set IGNORE_PRAGMA so that OpenSolaris code can
jb [Sat, 4 Nov 2006 04:39:05 +0000 (04:39 +0000)]
Allow a makefile to set IGNORE_PRAGMA so that OpenSolaris code can
be built with other gcc warnings enabled.

Every Solaris source file has a #pragma ident in it. We can just
ignore those definitions.

17 years agoUpdated release note: em(4) 6.2.9.
bmah [Sat, 4 Nov 2006 02:01:52 +0000 (02:01 +0000)]
Updated release note:  em(4) 6.2.9.

17 years ago- change ABI for user trap handler for sun4v (eventually will sync sparc64 no
kmacy [Fri, 3 Nov 2006 23:43:18 +0000 (23:43 +0000)]
- change ABI for user trap handler for sun4v (eventually will sync sparc64 no
  hardware set up to test at the moment)

Approved by: scottl (standing in for mentor rwatson)

17 years ago- map hardware trap numbers to those used by by sparc64 for inter-compatibility
kmacy [Fri, 3 Nov 2006 23:41:53 +0000 (23:41 +0000)]
- map hardware trap numbers to those used by by sparc64 for inter-compatibility
  and to make user-level trap handlers work
- add new trap entry to trap table to enable fast fetching of floating point trap
  context
- remove unused debug code
- map unimplemented floating point trap to SIGFPE

Approved by: scottl (standing in for mentor rwatson)

17 years agomake pcb pad area accessible from asm
kmacy [Fri, 3 Nov 2006 23:33:40 +0000 (23:33 +0000)]
make pcb pad area accessible from asm
Approved by: scottl (standing in for rwatson as mentor)

17 years agoMore 64 bit pointer fun.
rrs [Fri, 3 Nov 2006 23:04:34 +0000 (23:04 +0000)]
More 64 bit pointer fun.
%p changed in multiple prints
the mtod() was also fixed.

17 years agoThe relocation definitions are now defined in the machine independent
jb [Fri, 3 Nov 2006 23:03:46 +0000 (23:03 +0000)]
The relocation definitions are now defined in the machine independent
elf_common.h so that one arch can identify relocations on another
arch.

17 years agoRemove no longer existing opt_bdg.h and opt_bge.h.
ru [Fri, 3 Nov 2006 21:41:19 +0000 (21:41 +0000)]
Remove no longer existing opt_bdg.h and opt_bge.h.

17 years agoRegen.
ru [Fri, 3 Nov 2006 21:23:33 +0000 (21:23 +0000)]
Regen.

17 years agoFix build breakage introduced in previous commit (redeclatation
ru [Fri, 3 Nov 2006 21:21:28 +0000 (21:21 +0000)]
Fix build breakage introduced in previous commit (redeclatation
of sctp functions).

17 years agoFix two of the 64bit errors on the printfs.
rrs [Fri, 3 Nov 2006 21:19:54 +0000 (21:19 +0000)]
Fix two of the 64bit errors on the printfs.

17 years agoNitpicking.
ru [Fri, 3 Nov 2006 21:09:03 +0000 (21:09 +0000)]
Nitpicking.

17 years agoSomehow I missed this one. The sys/cdef.h was out
rrs [Fri, 3 Nov 2006 19:48:56 +0000 (19:48 +0000)]
Somehow I missed this one. The sys/cdef.h was out
of order with respect to the FSBID..

17 years agoThis commits the remake in kern/ make sysent to get
rrs [Fri, 3 Nov 2006 18:57:49 +0000 (18:57 +0000)]
This commits the remake in kern/ make sysent to get
the correct syscalls.master's $FreeBSD$ tag record and
a make sysent in sys/compat/freebsd32. Thanks Ruslan
for pointing out the steps I missed :-0
Approved by: gnn

17 years agoOpps... in my fix up of all the $FreeBSD:$-> $FreeBSD$ I
rrs [Fri, 3 Nov 2006 17:21:53 +0000 (17:21 +0000)]
Opps... in my fix up of all the $FreeBSD:$-> $FreeBSD$ I
inserted a few to the new files.. but I falied to
add the #include <sys/cdef.h>

Which causes a compile error.. sorry about that... got it
now :-)

Approved by:gnn

17 years agoOk, here it is, we finally add SCTP to current. Note that this
rrs [Fri, 3 Nov 2006 15:23:16 +0000 (15:23 +0000)]
Ok, here it is, we finally add SCTP to current. Note that this
work is not just mine, but it is also the works of Peter Lei
and Michael Tuexen. They both are my two key other developers
working on the project.. and they need ata-boy's too:
****
peterlei@cisco.com
tuexen@fh-muenster.de
****
I did do a make sysent which updated the
syscall's and sysproto.. I hope that is correct... without
it you don't build since we have new syscalls for SCTP :-0

So go out and look at the NOTES, add
option SCTP (make sure inet and inet6 are present too)
and play with SCTP.

I will see about comitting some test tools I have after I
figure out where I should place them. I also have a
lib (libsctp.a) that adds some of the missing socketapi
functions that I need to put into lib's.. I will talk
to George about this :-)

There may still be some 64 bit issues in here, none of
us have a 64 bit processor to test with yet.. Michael
may have a MAC but thats another beast too..

If you have a mac and want to use SCTP contact Michael
he maintains a web site with a loadable module with
this code :-)

Reviewed by: gnn
Approved by: gnn

17 years agoRemove the -C option as it does more harm than good. To be fully
ru [Fri, 3 Nov 2006 12:02:24 +0000 (12:02 +0000)]
Remove the -C option as it does more harm than good.  To be fully
compatible, it would have to (at least):

- support the "compat-compat" -T option,
- *not* support the -l, -O, and -v options,
- default to soft updates being disabled.

Worse, the compatibility mode makes it impossible to mount_mfs(8)
a file system from fstab(5) with soft updates disabled (-S).  [1]

Now, the only difference when called as "mount_mfs" or "mfs" (as
opposed to "mdmfs") is that the file mode of the mount point is
set by default to 01777.  All options available to mdmfs(8) are
also available to mount_mfs(8); the -C option is still recognized
but ignored for backward compatibility.

PR: bin/98860 [1]
MFC after: 2 weeks

17 years agoMFp4:
imp [Fri, 3 Nov 2006 07:39:37 +0000 (07:39 +0000)]
MFp4:
o Fix the packet statistics
o Make sure we set the FD bit when in full duplex
o Improve TX side efficency by eliminating a data copy for
  unfragmented mbufs (the hardware can't do s/g).
o Minor busdma pedantry
o better comments in some places, more XXX in others
o Minor style nits.

This solves a problem I was seeing where I'd get no ethernet when not
booting with a NFS root.  Well, unless I unplugged the cable and
plugged it back in first so I'd get the same up down up messages I get
for NFS root...

Thanks to sam and scottl for suggestions on making this driver more
efficient through better use of approrpiate APIs.

17 years agoFix initialization sequence for console
kmacy [Fri, 3 Nov 2006 07:29:09 +0000 (07:29 +0000)]
Fix initialization sequence for console
Fix commenting convention slightly
Approved by: rwatson (mentor)
Reviewed by: jb

17 years agomake sure physmem is initialized
kmacy [Fri, 3 Nov 2006 07:27:55 +0000 (07:27 +0000)]
make sure physmem is initialized
add clarifying comments
Reviewed by: jb
Approved by: rwatson (mentor)

17 years agoDocument IBM ServeRAID 8k support.
brueffer [Fri, 3 Nov 2006 06:50:03 +0000 (06:50 +0000)]
Document IBM ServeRAID 8k support.

17 years agoAdd a low level function to write a string to the hypervisor
jb [Fri, 3 Nov 2006 06:31:56 +0000 (06:31 +0000)]
Add a low level function to write a string to the hypervisor
console directly.

Discussed with: kmacy

17 years agoAlways init the console before trying to cnadd it to
jb [Fri, 3 Nov 2006 06:23:53 +0000 (06:23 +0000)]
Always init the console before trying to cnadd it to
avoid the case where the console name isn't set and
cnadd wants to use printf to complain about it.

17 years agoRemove extra whitespace
njl [Fri, 3 Nov 2006 05:42:15 +0000 (05:42 +0000)]
Remove extra whitespace

17 years agoAdd PCI Id for ServeRAID 8k.
scottl [Fri, 3 Nov 2006 04:57:23 +0000 (04:57 +0000)]
Add PCI Id for ServeRAID 8k.

Submitted by: Danny Braniss

17 years agoMake this compile on EFI32. The EFI_PHYSICAL_ADDRESS type is always
marcel [Fri, 3 Nov 2006 04:19:31 +0000 (04:19 +0000)]
Make this compile on EFI32. The EFI_PHYSICAL_ADDRESS type is always
64-bit, even when sizeof(void *) is 32-bit.

17 years agoMake sure kern_envp is never NULL. If we don't get a pointer to
marcel [Fri, 3 Nov 2006 04:06:17 +0000 (04:06 +0000)]
Make sure kern_envp is never NULL. If we don't get a pointer to
the environment from the loader, use the static environment.

17 years agoProperly calculate the checksum of the APIC table.
marcel [Fri, 3 Nov 2006 04:04:19 +0000 (04:04 +0000)]
Properly calculate the checksum of the APIC table.

17 years agoDefer sending the bpdu from bstp_update_info as all code paths will test this
thompsa [Fri, 3 Nov 2006 03:34:04 +0000 (03:34 +0000)]
Defer sending the bpdu from bstp_update_info as all code paths will test this
flag anyway.

17 years agoFix some negotiation issues (like not being able to negotiate async)
mjacob [Thu, 2 Nov 2006 23:19:00 +0000 (23:19 +0000)]
Fix some negotiation issues (like not being able to negotiate async)

17 years agoadd some missing MPT<>CAM and CAM<>MPT bogolocks
mjacob [Thu, 2 Nov 2006 23:18:25 +0000 (23:18 +0000)]
add some missing MPT<>CAM and CAM<>MPT bogolocks

17 years agoAdd a tunable that allows one to turn off the automatic sending of
mjacob [Thu, 2 Nov 2006 21:12:37 +0000 (21:12 +0000)]
Add a tunable that allows one to turn off the automatic sending of
the ORDERED tag. This recoups significant performance gains for many
arrays.

The default is still to send out the ORDERED tag periodically.

Reviewed by: scsi (justin+timeout)

17 years agoOnly use the filename part of the kernel configuration file as an argument to
n_hibma [Thu, 2 Nov 2006 20:43:20 +0000 (20:43 +0000)]
Only use the filename part of the kernel configuration file as an argument to
KERNCONF after the file has been copied to the sys/${ARCH}/conf directory. This
allows the use of one kernel config file for multiple images. E.g.:

NANO_KERNEL=../../../../software/nanobsd/default/SOEKRIS

MFC: after 6.2

17 years agoCross-reference libmemstat(3), malloc(9), uma(9).
rwatson [Thu, 2 Nov 2006 19:53:57 +0000 (19:53 +0000)]
Cross-reference libmemstat(3), malloc(9), uma(9).

17 years agoFix typo.
ceri [Thu, 2 Nov 2006 19:10:05 +0000 (19:10 +0000)]
Fix typo.

17 years agoProperly htole16() PSM in sockaddr_l2cap
emax [Thu, 2 Nov 2006 18:57:09 +0000 (18:57 +0000)]
Properly htole16() PSM in sockaddr_l2cap

MFC after: 3 days

17 years agoUnbreak compile with ELF_VERBOSE defined, and fix format warnings.
ru [Thu, 2 Nov 2006 17:52:43 +0000 (17:52 +0000)]
Unbreak compile with ELF_VERBOSE defined, and fix format warnings.

17 years agoUse the improved m_uiotombuf() function instead of home grown sosend_copyin()
andre [Thu, 2 Nov 2006 17:45:28 +0000 (17:45 +0000)]
Use the improved m_uiotombuf() function instead of home grown sosend_copyin()
to do the userland to kernel copying in sosend_generic() and sosend_dgram().

sosend_copyin() is retained for ZERO_COPY_SOCKETS which are not yet supported
by m_uiotombuf().

Benchmaring shows significant improvements (95% confidence):
 66% less cpu (or 2.9 times better) with new sosend vs. old sosend (non-TSO)
 65% less cpu (or 2.8 times better) with new sosend vs. old sosend (TSO)

(Sender AMD Opteron 852 (2.6GHz) with em(4) PCI-X-133 interface and receiver
DELL Poweredge SC1425 P-IV Xeon 3.2GHz with em(4) LOM connected back to back
at 1000Base-TX full duplex.)

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 month

17 years agoRename m_getm() to m_getm2() and rewrite it to allocate up to page sized
andre [Thu, 2 Nov 2006 17:37:22 +0000 (17:37 +0000)]
Rename m_getm() to m_getm2() and rewrite it to allocate up to page sized
mbuf clusters.  Add a flags parameter to accept M_PKTHDR and M_EOR mbuf
chain flags.  Provide compatibility macro for m_getm() calling m_getm2()
with M_PKTHDR set.

Rewrite m_uiotombuf() to use m_getm2() for mbuf allocation and do the
uiomove() in a tight loop over the mbuf chain.  Add a flags parameter to
accept mbuf flags to be passed to m_getm2().  Adjust all callers for the
extra parameter.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 month

17 years agoRevert the last change. Masking only 2 MSBs of the virtual address
ru [Thu, 2 Nov 2006 17:28:38 +0000 (17:28 +0000)]
Revert the last change.  Masking only 2 MSBs of the virtual address
to get the physical address doesn't work for all values of KVA_PAGES,
while masking 8 MSBs works for all values of KVA_PAGES that are
multiple of 4 for non-PAE and 8 for PAE.  (This leaves us limited
with 12MB for non-PAE kernels and 14MB for PAE kernels.)

To get things right, we'd need to subtract the KERNBASE from the
virtual address (but KERNBASE is not easy to figure out from here),
or have physical addresses set properly in the ELF headers.

Discussed with: jhb

17 years agoRewrite kern_sendfile() to work in two loops, the inner which turns as many
andre [Thu, 2 Nov 2006 16:53:26 +0000 (16:53 +0000)]
Rewrite kern_sendfile() to work in two loops, the inner which turns as many
VM pages into mbufs as it can -- up to the free send socket buffer space.
The outer loop then drops the whole mbuf chain into the send socket buffer,
calls tcp_output() on it and then waits until 50% of the socket buffer are
free again to repeat the cycle. This way tcp_output() gets the full amount
of data to work with and can issue up to 64K sends for TSO to chop up in
the network adapter without using any CPU cycles. Thus it gets very efficient
especially with the readahead the VM and I/O system do.

The previous sendfile(2) code simply looped over the file, turned each 4K
page into an mbuf and sent it off. This had the effect that TSO could only
generate 2 packets per send instead of up to 44 at its maximum of 64K.

Add experimental SF_MNOWAIT flag to sendfile(2) to return ENOMEM instead of
sleeping on mbuf allocation failures.

Benchmarking shows significant improvements (95% confidence):
 45% less cpu (or 1.81 times better) with new sendfile vs. old sendfile (non-TSO)
 83% less cpu (or 5.7 times better) with new sendfile vs. old sendfile (TSO)

(Sender AMD Opteron 852 (2.6GHz) with em(4) PCI-X-133 interface and receiver
DELL Poweredge SC1425 P-IV Xeon 3.2GHz with em(4) LOM connected back to back
at 1000Base-TX full duplex.)

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 month

17 years agoFix ia64 build breakage.
pjd [Thu, 2 Nov 2006 16:24:18 +0000 (16:24 +0000)]
Fix ia64 build breakage.

17 years agoReplace the SEE ALSO xrefs with a more reasonable set stolen from POSIX.
ru [Thu, 2 Nov 2006 14:10:56 +0000 (14:10 +0000)]
Replace the SEE ALSO xrefs with a more reasonable set stolen from POSIX.

17 years agoOn trap while inside ddb, the trap handler calls kdb_reenter(), that
kib [Thu, 2 Nov 2006 11:47:38 +0000 (11:47 +0000)]
On trap while inside ddb, the trap handler calls kdb_reenter(), that
longjmp to the default context. As result, "alltrace" command may
be prematurely terminated (without error message). This is happens,
for instance, when system is low on memory and referenced page in
kernel-mode thread stack is swapped out.

Protect "alltrace" against termination on trap by setting temporary
kdb_jmpbuf context.

Submitted by: Peter Holm

17 years agoBump .Dd for -f|-F.
ceri [Thu, 2 Nov 2006 10:44:02 +0000 (10:44 +0000)]
Bump .Dd for -f|-F.

17 years agoDocument Elf{32,64}_Lword. Keep the list of ELF types sorted.
jkoshy [Thu, 2 Nov 2006 09:21:57 +0000 (09:21 +0000)]
Document Elf{32,64}_Lword.  Keep the list of ELF types sorted.

Describe the contents of the 'e_shnum' and 'e_shstrndx' fields when
using extended section numbering.

17 years ago- Use g_duplicate_bio() instead of g_clone_bio(), so there memory is
pjd [Thu, 2 Nov 2006 09:14:18 +0000 (09:14 +0000)]
- Use g_duplicate_bio() instead of g_clone_bio(), so there memory is
  allocated with M_WAITOK flag.
- Check 'buf' instead of 'error' so Prevent is not confused.

CID: 1562, 1563
Found by: Coverity Prevent analysis tool

17 years agoI want CPU number here.
pjd [Thu, 2 Nov 2006 09:01:34 +0000 (09:01 +0000)]
I want CPU number here.

Noticed by: ru

17 years agoDo not test all the conditions if the port is already forwarding. Also print a
thompsa [Thu, 2 Nov 2006 08:44:19 +0000 (08:44 +0000)]
Do not test all the conditions if the port is already forwarding. Also print a
debug message if the port is agreed as it is an important condition of the
protocol.

17 years agoFix a resource leak when the mbuf pointer changes.
thompsa [Thu, 2 Nov 2006 08:04:13 +0000 (08:04 +0000)]
Fix a resource leak when the mbuf pointer changes.

CID: 1564, 1565
Found by: Coverity Prevent (tm)

17 years agoo There is no securenets(5) man page, refer to ypserv(8).
maxim [Thu, 2 Nov 2006 07:36:33 +0000 (07:36 +0000)]
o There is no securenets(5) man page, refer to ypserv(8).

Obtained from: DragonFlyBSD
MFC after: 1 week

17 years agoFix "1 day ago", "yesterday" and similar relative-time phrases
kientzle [Thu, 2 Nov 2006 04:16:15 +0000 (04:16 +0000)]
Fix "1 day ago", "yesterday" and similar relative-time phrases
when parsing dates.

PR: bin/104934: bug in some date handling of bsdtar
Reported by: Herve Boulouis
MFC after: 3 days

17 years agoUse 2K Login f/w.
mjacob [Thu, 2 Nov 2006 03:23:01 +0000 (03:23 +0000)]
Use 2K Login f/w.

17 years agoAdd 4Gb (24XX) support and lay the foundation for a lot of new stuff.
mjacob [Thu, 2 Nov 2006 03:21:32 +0000 (03:21 +0000)]
Add 4Gb (24XX) support and lay the foundation for a lot of new stuff.

17 years agoSync the EFI headers with version 1.10.14.62 of the Intel sample EFI
marcel [Thu, 2 Nov 2006 02:42:48 +0000 (02:42 +0000)]
Sync the EFI headers with version 1.10.14.62 of the Intel sample EFI
implementation. This re-introduces C99 style comments that previously
were replaced by original C comments.

17 years agoExtend struct devdesc with a unit field, called d_unit. Promote the
marcel [Thu, 2 Nov 2006 01:23:18 +0000 (01:23 +0000)]
Extend struct devdesc with a unit field, called d_unit. Promote the
device (kind) specific unit field to the common field. This change
allows a future version of libefi to work without requiring anything
more than what is defined in struct devdesc and as such makes it
possible to compile said version of libefi for different platforms
without requiring that those platforms have identical derivatives
of struct devdesc.

17 years ago2nd and final commit that moves us to CAM_NEW_TRAN_CODE
mjacob [Thu, 2 Nov 2006 00:54:38 +0000 (00:54 +0000)]
2nd and final commit that moves us to CAM_NEW_TRAN_CODE
as the default.

Reviewed by multitudes.

17 years agoIf the port is agreed or edge then allow it go go straight to forwarding rather
thompsa [Thu, 2 Nov 2006 00:39:36 +0000 (00:39 +0000)]
If the port is agreed or edge then allow it go go straight to forwarding rather
than waiting another tick (1s) for the states to be checked again.

17 years agoGrr, fix one more build breakage.
pjd [Thu, 2 Nov 2006 00:37:39 +0000 (00:37 +0000)]
Grr, fix one more build breakage.

17 years agoDon't unconditionally compile-in the bcache code. It's only used on
marcel [Thu, 2 Nov 2006 00:26:45 +0000 (00:26 +0000)]
Don't unconditionally compile-in the bcache code. It's only used on
i386/amd64 and pc98. Remove useless calls to bcache_init() from the
ia64 and sparc64 loaders, as well as from the OFW common code.

17 years agoRemove <sys/types.h>; including both <sys/param.h> and <sys/types.h>
marius [Thu, 2 Nov 2006 00:05:15 +0000 (00:05 +0000)]
Remove <sys/types.h>; including both <sys/param.h> and <sys/types.h>
violates style(9).

17 years agoo Make sure to clear f->f_devdata if d_dev->dv_open() fails. It
marcel [Thu, 2 Nov 2006 00:02:22 +0000 (00:02 +0000)]
o  Make sure to clear f->f_devdata if d_dev->dv_open() fails. It
   would otherwise cause devclose() to free() the memory again.
o  Refactor devopen() so that it's more readable.

17 years ago- In sunkbd_probe_keyboard() don't bother to determine the keyboard layout
marius [Thu, 2 Nov 2006 00:01:15 +0000 (00:01 +0000)]
- In sunkbd_probe_keyboard() don't bother to determine the keyboard layout
  as we have no use for that info. Instead let this function return the
  keyboard ID and verify at its invocation in sunkbd_configure() that we're
  talking to a Sun type 4/5/6 keyboard, i.e. a keyboard supported by this
  driver.
- Add an option SUNKBD_EMULATE_ATKBD whose code is based on the respective
  code in ukbd(4) and like UKBD_EMULATE_ATSCANCODE causes this driver to
  emit AT keyboard/KB_101 compatible scan codes in K_RAW mode as assumed by
  kbdmux(4). Unlike UKBD_EMULATE_ATSCANCODE, SUNKBD_EMULATE_ATKBD also
  triggers the use of AT keyboard maps and thus allows to use the map files
  in share/syscons/keymaps with this driver at the cost of an additional
  translation (in ukbd(4) this just is the way of operation).
- Implement an option SUNKBD_DFLT_KEYMAP, which like the equivalent options
  of the other keyboard drivers allows to specify the default in-kernel
  keyboard map. For obvious reasons this made to only work when also using
  SUNKBD_EMULATE_ATKBD.
- Implement sunkbd_check(), sunkbd_check_char() and sunkbd_clear_state(),
  which are also required for interoperability with kbdmux(4).
- Implement K_CODE mode and FreeBSD keypad compose.
- As a minor hack define KBD_DFLT_KEYMAP also in the !SUNKBD_EMULATE_ATKBD
  case so we can obtain fkey_tab from <dev/kbd/kbdtables.h> rather than
  having to duplicate it and #ifdef some more code.
- Don't use the TX-buffer for writing the two command bytes for setting the
  keyboard LEDs as this consequently requires a hardware FIFO that is at
  least two bytes in depth, which the NMOS-variant of the Zilog SCCs doesn't
  have. Thus use an inlined version of uart_putc() to consecutively write
  the command bytes (a cleaner approach would be to do this via the soft
  interrupt handler but that variant wouldn't work while in ddb(4)). [1]
- Fix some minor style(9) bugs.

PR: 90316 [1]
Reviewed by: marcel [1]

17 years agoDocument MNT_GJOURNAL option.
pjd [Wed, 1 Nov 2006 23:40:44 +0000 (23:40 +0000)]
Document MNT_GJOURNAL option.

17 years agoNow, that we have gjournal in the tree add possibility to configure
pjd [Wed, 1 Nov 2006 22:51:49 +0000 (22:51 +0000)]
Now, that we have gjournal in the tree add possibility to configure
gmirror and graid3 in a way that it is not resynchronized after a
power failure or system crash.
It is safe when gjournal is running on top of gmirror/graid3.

17 years agoG_TYPE_NONE was replaced with G_TYPE_BOOL.
pjd [Wed, 1 Nov 2006 22:28:11 +0000 (22:28 +0000)]
G_TYPE_NONE was replaced with G_TYPE_BOOL.

17 years agoChange spaces to tabs where needed.
pjd [Wed, 1 Nov 2006 22:16:53 +0000 (22:16 +0000)]
Change spaces to tabs where needed.

17 years agoSpaces to tabs. (I shouldn't copy and paste from diff output to a terminal)
jb [Wed, 1 Nov 2006 21:33:17 +0000 (21:33 +0000)]
Spaces to tabs. (I shouldn't copy and paste from diff output to a terminal)

Noticed by: pjd

17 years agoStyle nits.
pjd [Wed, 1 Nov 2006 18:59:06 +0000 (18:59 +0000)]
Style nits.

17 years agoFix md(4) panic which occurs when I/O request different than
pjd [Wed, 1 Nov 2006 18:56:18 +0000 (18:56 +0000)]
Fix md(4) panic which occurs when I/O request different than
BIO_READ/BIO_WRITE is sent to vnode-backed provider (BIO_DELETE or
BIO_FLUSH).

Reported by: ceri

Add support for BIO_FLUSH to vnode-backed md(4) devices based on
VOP_FSYNC().

17 years agoFix compile botch in the last panic botch fix. :(
jhb [Wed, 1 Nov 2006 18:24:12 +0000 (18:24 +0000)]
Fix compile botch in the last panic botch fix. :(

Pointy hat: jhb
Reported by: brueffer

17 years agoRemove the atkbd(4), atkbdc(4) and psm(4) hints. In theory they can be
marius [Wed, 1 Nov 2006 18:17:53 +0000 (18:17 +0000)]
Remove the atkbd(4), atkbdc(4) and psm(4) hints. In theory they can be
used on sparc64 but that would be totally wrong in practice.

17 years agoIncrement nb_allocated while holding the pt_mtx lock to avoid races.
jhb [Wed, 1 Nov 2006 16:50:13 +0000 (16:50 +0000)]
Increment nb_allocated while holding the pt_mtx lock to avoid races.

17 years agoComment and style tweak.
jhb [Wed, 1 Nov 2006 16:48:33 +0000 (16:48 +0000)]
Comment and style tweak.

17 years agoSkip disabled CPU, because after we sched_bind() to a disabled CPU,
pjd [Wed, 1 Nov 2006 16:05:06 +0000 (16:05 +0000)]
Skip disabled CPU, because after we sched_bind() to a disabled CPU,
we won't be able to exit from the thread.

Function g_eli_cpu_is_disabled() stoled from kern_pmc.c.

PR: 104669
Reported by: Nikolay Mirin <nik@optim.com.ru>
MFC after: 1 week

17 years agoFix botch in last commit (I tested on 6.x which doesn't have TSO):
jhb [Wed, 1 Nov 2006 15:36:47 +0000 (15:36 +0000)]
Fix botch in last commit (I tested on 6.x which doesn't have TSO):
- Test the mac_type rather than if_hwassist (since ifp doesn't exist yet)
  to determine if the adapter supports TSO and thus to change the sizes
  for the bus_dma tag.

Reviewed by: glebius

17 years agoForgot to remove this line.
pjd [Wed, 1 Nov 2006 14:09:59 +0000 (14:09 +0000)]
Forgot to remove this line.

Reported by: maxim

17 years agoAquire Giant in the softdep_flush for clear_remove() and clear_inodedeps()
kib [Wed, 1 Nov 2006 13:48:44 +0000 (13:48 +0000)]
Aquire Giant in the softdep_flush for clear_remove() and clear_inodedeps()
processing when QUOTA is set.

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