brian [Mon, 19 Mar 2007 18:56:40 +0000 (18:56 +0000)]
MFC: Account for di_blocks allocations when IN_SPACECOUNTED is set in an
inode's i_flag. This fixes an eventual df/du discrepency resulting
from fs_pendingblocks being reduced to less than zero.
kmacy [Mon, 19 Mar 2007 04:50:15 +0000 (04:50 +0000)]
The driver would hang during attach on RELENG_6 - by "fixing" the issue
by adding debug print statements I've come to the conclusion that too little
time is being allowed to pass between register updates. Increasing the DELAY
interval by a constant interval eliminates this issue on my hardware.
yar [Wed, 14 Mar 2007 14:19:42 +0000 (14:19 +0000)]
MFC:
As suggested more than once in the lists, drop -M from flags to mfs
for /tmp and /var. This makes the memory discs swap-backed instead
of malloc-backed. A swap-backed memory disc should not be worse
than a malloc-backed one in any scenario because it will start
touching swap only when needed. OTOH, a malloc-backed disc can
starve limited kernel resources and evenually crash the system.
Reflect the change in the rc.conf(5) manpage. Also stop telling
lies there about softupdates: it does not waste disc space, it
just can delay its freeing.
bms [Tue, 13 Mar 2007 22:12:23 +0000 (22:12 +0000)]
MFC rev 1.203:
Fix IP_SENDSRCADDR semantics.
* To use this option with a UDP socket, it must be bound to a local port,
and INADDR_ANY, to disallow possible collisions with existing udp inpcbs
bound to the same port on other interfaces at send time.
* If the socket is bound to INADDR_ANY, specifying IP_SENDSRCADDR with
INADDR_ANY will be rejected as it is ambiguous.
* If the socket is bound to an address other than INADDR_ANY, specifying
IP_SENDSRCADDR with INADDR_ANY will be disallowed by in_pcbbind_setup().
Reviewed by: silence on -net
Tested with: src/tools/regression/netinet/ipbroadcast
bms [Tue, 13 Mar 2007 21:59:20 +0000 (21:59 +0000)]
MFC rev 1.159:
Comply with RFC 3927, by forcing ARP replies which contain a source
address within the link-local IPv4 prefix 169.254.0.0/16, to be
broadcast at link layer.
thomas [Tue, 13 Mar 2007 20:28:24 +0000 (20:28 +0000)]
MFC mount_nfs.c rev. 1.72, mount_nfs.8 rev. 1.47:
Add "fg" option as antonym to "bg"; add "hard" option as antonym to "soft".
This is for better compatibility with other environments (Linux, Solaris,
HP-UX, AIX and Tru64 support these options).
joerg [Mon, 12 Mar 2007 21:41:01 +0000 (21:41 +0000)]
Merge Peter's fix from rev 1.14 back to RELENG_6. This line of code
appears to have been accidentally committed in rev 1.11, and was never
meant to go into any official code.
ru [Mon, 12 Mar 2007 12:13:53 +0000 (12:13 +0000)]
MFC: Don't block on the socket zone limit during the socket()
syscall which can lock up a system otherwise; instead, return
ENOBUFS as documented, which matches the FreeBSD 4.x behavior.
ariff [Mon, 12 Mar 2007 02:03:25 +0000 (02:03 +0000)]
MFC (revision 1.31)
Fix long standing multi playback/recording issues, caused by
excessive interrupt clock timer reset, screwing interrupt generation
for already active channels. Track moving DMA pointer and call buffer
interrupt on each blocksize boundary.
Disable RPC exponential back-off for FreeBSD.org systems (IE. hidden
behind _FREEFALL_CONFIG). This is done mainly to make NIS even more
resistant to packet loss.
This is not enabled by default for "normal" FreeBSD since it might cause
the server providing the RPC service to be hit heavily with RPC traffic
in case of problems. freefall.FreeBSD.org and hub.FreeBSD.org have been
running with a patch similar to this for a couple of weeks.
simon [Sun, 11 Mar 2007 09:59:51 +0000 (09:59 +0000)]
MFC 1.50:
- Bump _yplib_timeout limit from 10 to 20 seconds to better handle
packet loss when talking to a NIS server.
- Set 1 second retry timeout to further realistically handle UDP
packet loss for yp_next packet bursts. If the packet hasn't come
back within 1 second its rather unlikely to come back at all. There
is still back-off mechanism in RPC so if there is another reason
than packet loss for the lack of response within 1 second, the NIS
server will not be totally bombarded with requests.
This reduces the risk of NIS failing with:
yp_next: clnt_call: RPC: Timed out
considerably. This is mainly a problem if you have larger NIS maps
(like at FreeBSD.org) since enumerations of the lists will cause a UDP
packet bursts where a few packets being lost once in a while do
happen.
Discussed with: peter
Problem mainly diagnosed by: peter
yar [Sat, 10 Mar 2007 14:04:01 +0000 (14:04 +0000)]
MFC rev. 1.10:
Improve rc.d conformance:
- don't play a needless trick with prestart, just use start method;
- provide no-op stop method so that we don't get bogus "abi not running" error.
yar [Sat, 10 Mar 2007 14:00:51 +0000 (14:00 +0000)]
MFC rev. 1.18:
Syscons cannot be stopped, so provide a no-op stop method.
The default stop method from rc.subr isn't suited for this
case and produces a bogus warning: "syscons not running".
Use the refcount API to manage the reference count for user credentials
rather than using pool mutexes.
MFC changes:
The cr_mtxp field of struct ucred is preserved as padding to keep structure
size intact. nfs_srvsock.c change is nullified by rev. 1.96, that was MFCed
as rev. 1.94.2.2.
jhb [Thu, 8 Mar 2007 16:23:04 +0000 (16:23 +0000)]
MFC:
- Flesh out list of UART simple comms programming interfaces.
- Add list of PIC base peripheral programming interfaces.
- Add VPD capability register offsets.
bms [Thu, 8 Mar 2007 13:19:03 +0000 (13:19 +0000)]
MFC rev 1.270:
Fix undirected broadcast sends for the case where SO_DONTROUTE has also
been set at the socket layer, in our somewhat convoluted IPv4 source
selection logic in ip_output().
IP_ONESBCAST is actually a special case of SO_DONTROUTE, as 255.255.255.255
must always be delivered on a local link with a TTL of 1.
If IP_ONESBCAST has been set at the socket layer, also perform destination
interface lookup for point-to-point interfaces based on the destination
address of the link; previously it was not possible to use the option with
such interfaces; also, the destination/broadcast address fields map to the
same field within struct ifnet, which doesn't help matters.
bms [Thu, 8 Mar 2007 13:15:27 +0000 (13:15 +0000)]
MFC rev 1.266:
Fix a bug in if_findmulti(), whereby it would not find (and thus delete)
a link-layer multicast group membership.
Such memberships are needed in order to support protocols such as
IS-IS without putting the interface into PROMISC or ALLMULTI modes.
sa_equal() is not OK for comparing sockaddr_dl as it has deeper structure
than a simple byte array, so add sa_dl_equal() and use that instead.
mjacob [Thu, 8 Mar 2007 05:35:08 +0000 (05:35 +0000)]
Synchronize with -current as of this date. There is a lot of source
churn, but it's there to make diffs in the future easier. There isn't
much substantive change that springs to mind.
trhodes [Thu, 8 Mar 2007 03:01:00 +0000 (03:01 +0000)]
MFC:
Add a 3rd entry in the cache, which keeps the end position
from just before extending a file. This has the desired effect
of keeping the write speed constant. And yes, that helps a lot
copying large files always at full speed now, and I have seen
improvements using benchmarks/bonnie.
Bring in a SNMP module to support monitoring if_bridge(4) interfaces
via bsnmpd(1). The module implements IETF BRIDGE-MIB and RSTP-MIB as defined in
RFC4188 and RFC4318 and a private BEGEMOT-BRIDGE-MIB.
Sponsored by: Google Summer of Code 2006
Approved by: bz (mentor)
syrinx [Wed, 7 Mar 2007 18:45:14 +0000 (18:45 +0000)]
To make sure build of newer RELENG_6 on older ones work,
advance __FreeBSD_version check for gensnmptree in the
list of bootstrap-tools.
This is needed for the upcoming MFC of snmp_bridge module,
which makes use of new features of gensnmptree.
Vendor patch: add support for the BITS construct and enumerations in
both gensnmpdef and gensnmptree. Add include and typedef directives to
gensnmptree.