summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* As a followup to r252547, propate const down the call stack.peter2013-07-0322-47/+47
|
* Attempt to deal with a compile failure that shows up with gcc, whichpeter2013-07-032-0/+4
| | | | | has -Werror on. Without this, yylex() is inconsistently or redundantly defined.
* Port 0 needs to wait for ACK only if it issued the RESET.davidcs2013-07-031-3/+5
|
* Catch up with r238990. LLE_DELETED does not clobber everything else innp2013-07-031-1/+1
| | | | la_flags since said revision.
* Don't perform the acpi_DeviceIsPresent() check for PCI-PCI bridges. Ifjhb2013-07-032-10/+7
| | | | | | | | | | | | | | we are probing a PCI-PCI bridge it is because we found one by enumerating the devices on a PCI bus, so the bridge is definitely present. A few BIOSes report incorrect status (_STA) for some bridges that claimed they were not present when in fact they were. While here, move this check earlier for Host-PCI bridges so attach fails before doing any work that needs to be torn down. PR: kern/91594 Tested by: Jack Vogel @ Intel MFC after: 1 week
* Fix NULL-deference kernel panic on attempt of destroying non-existingmav2013-07-031-8/+3
| | | | ramdisk-backed CTL LUN.
* Revert previous revision, local change that accidentally snuck in.zeising2013-07-031-34/+0
|
* Regenerate after r252561zeising2013-07-032-1/+46
| | | | | PR: docs/180025 Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
* Document WITHOUT_SVNLITE and WITH_SVN.zeising2013-07-032-0/+9
| | | | | PR: docs/180025 Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
* - Fix double frees/user after free.davide2013-07-031-113/+56
| | | | | | | - Allocate using smb_rq_alloc() instead of inlining it. Reported by: uqs Found with: Coverity Scan
* Fix a typo (s/error/errno/).hrs2013-07-031-1/+1
|
* There is no reason to disallow setting the password or account expirydes2013-07-031-4/+0
| | | | | | date to the current date. MFC after: 3 days
* Fix a compiler warning.hrs2013-07-031-0/+1
| | | | MFC after: 1 week
* Replace the #define for "iconv" so it is for the function name instead ofpeter2013-07-036-10/+12
| | | | | | a macro with parameters. Remove a __DECONST hack and add consts instead for gnu libiconv API compatability. This makes it work with things like devel/boost-libs that expects to use "iconv" as though it were a pointer.
* hastResourceWorkerPid is read-only.trociny2013-07-031-1/+1
| | | | | Submitted by: jilles MFC after: 3 days
* A problem with the old NFS client where large writes to large filesrmacklem2013-07-031-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | would sometimes result in a corrupted file was reported via email. This problem appears to have been caused by r251719 (reverting r251719 fixed the problem). Although I have not been able to reproduce this problem, I suspect it is caused by another thread increasing np->n_size after the mtx_unlock(&np->n_mtx) but before the vnode_pager_setsize() call. Since the np->n_mtx mutex serializes updates to np->n_size, doing the vnode_pager_setsize() with the mutex locked appears to avoid the problem. Unfortunately, vnode_pager_setsize() where the new size is smaller, cannot be called with a mutex held. This patch returns the semantics to be close to pre-r251719 (actually pre-r248567, r248581, r248567 for the new client) such that the call to vnode_pager_setsize() is only delayed until after the mutex is unlocked when np->n_size is shrinking. Since the file is growing when being written, I believe this will fix the corruption. A better solution might be to replace the mutex with a sleep lock, but that is a non-trivial conversion, so this fix is hoped to be sufficient in the meantime. Reported by: David G. Lawrence (dg@dglawrence.com) Tested by: David G. Lawrence (to be done soon) Reviewed by: kib MFC after: 1 week
* Make better use of metadata area by avoiding using it for data blocksmckusick2013-07-022-3/+25
| | | | | | that no should no longer immediately follow their indirect blocks. MFC after: 2 weeks
* Remove extranious '.'eadler2013-07-021-1/+1
| | | | Submitted by: swildner@DragonflyBSD.org
* When listing with -f, skip all memory disks that are not vnode-backed.delphij2013-07-021-1/+2
| | | | | Noticed by: kevlo MFC after: 3 days
* Enable VFP on Raspberry Pi. This has worked as of r251712.andrew2013-07-021-0/+3
|
* Add a mib for worker process ID.trociny2013-07-023-1/+19
| | | | MFC after: 3 days
* Style fix: spaces.pfg2013-07-021-1/+1
| | | | | | | Cleanup the incomplete revert. Reported by: bde MFC after: 4 weeks
* Plug a memory leak.delphij2013-07-021-0/+7
|
* Properly handle input lines containing NUL characters such that pgets()obrien2013-07-021-1/+1
| | | | | | | accurately fills the read buffer. Callers of pgets() still mis-process the buffer contents if the read line contains NUL characters, but this at least makes pgets() accurate.
* Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same.obrien2013-07-021-2/+7
| | | | | | | The former makes a copy of stdin, but was not accurately putting the content of stdin into a temp file. This lead to the undercounting the number of lines in hunks containing NUL characters when reading from stdin. Thus resulting in "unexpected end of file in patch" errors.
* - Allow ND6_IFF_AUTO_LINKLOCAL for IFT_BRIDGE. An interface with IFT_BRIDGEhrs2013-07-026-33/+164
| | | | | | | | | | | | | | | | | | | | | | | is initialized with !ND6_IFF_AUTO_LINKLOCAL && !ND6_IFF_ACCEPT_RTADV regardless of net.inet6.ip6.accept_rtadv and net.inet6.ip6.auto_linklocal. To configure an autoconfigured link-local address (RFC 4862), the following rc.conf(5) configuration can be used: ifconfig_bridge0_ipv6="inet6 auto_linklocal" - if_bridge(4) now removes IPv6 addresses on a member interface to be added when the parent interface or one of the existing member interfaces has an IPv6 address. if_bridge(4) merges each link-local scope zone which the member interfaces form respectively, so it causes address scope violation. Removal of the IPv6 addresses prevents it. - if_lagg(4) now removes IPv6 addresses on a member interfaces unconditionally. - Set reasonable flags to non-IPv6-capable interfaces. [*] Submitted by: rpaulo [*] MFC after: 1 week
* Fix a panic when leaving MC group in a kernel with VIMAGE enabled.hrs2013-07-021-0/+2
| | | | | in_leavegroup() is called from an asynchronous task, and igmp_change_state() requires that curvnet is set by the caller.
* Explicitly include <cstdarg> to fix compilation with libc++. It is implicitlyasomers2013-07-021-0/+1
| | | | | | | included by libstdc++. Reported By: Oliver Hartmann Approved by: gibbs (co-mentor, implicit)
* When acquiring a lease, record the value of the BOOTP siaddr fieldbms2013-07-023-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contained in the DHCP offer, and write it out to the lease file as an unquoted value of the "next-server" keyword. The value is ignored when the lease is read back by dhclient, however other applications are free to parse it. The intent behind this change is to allow easier interoperability with automated installation systems e.g. Cobbler, Foreman, Razor; FreeBSD installation kernels can automatically probe the network to discover deployment servers. There are no plans to MFC this change unless a backport is specifically requested. The syntax of the "next-server <ip>" lease keyword is intended to be identical to that used by the ISC DHCPD server in its configuration files. The required defines are already present in dhclient but were unused before this change. (Note: This is NOT the same as Option 66, tftp-server-name). It has been exercised in a university protocol testbed environment, with Cobbler and an mfsBSD image containing pc-sysinstall (driven by Cobbler Cheetah templates). The SYSLINUX memdisk driver is used to boot mfsBSD. Currently this approach requires that a dedicated system profile has been created for the node where FreeBSD is to be deployed. If this is not present, the pc-sysinstall wrapper will be unable to obtain a node configuration. There is code in progress to allow mfsBSD images to obtain the required hints from the memdisk environment by parsing the MBFT ACPI chunk. This is non-standard as it is not linked into the platform's ACPI RSDT. Reviewed by: des
* - Update newvers.sh to include svn revision in uname(1) if thegjb2013-07-021-2/+12
| | | | | | | | | | | | system has svnliteversion. - If svnliteversion is not found, look for svnversion in /usr/bin and /usr/local/bin, since svnlite can be installed as svn if WITH_SVN is set.[1] - Remove /bin from binary search paths.[1] Discussed with: kib [1] MFC after: 3 days Approved by: kib (mentor)
* Import an implementation of the CAIA Delay-Gradient (CDG) congestion controllstewart2013-07-025-1/+862
| | | | | | | | | | | | | | | | | | algorithm, which is based on the 2011 v0.1 patch release and described in the paper "Revisiting TCP Congestion Control using Delay Gradients" by David Hayes and Grenville Armitage. It is implemented as a kernel module compatible with the modular congestion control framework. CDG is a hybrid congestion control algorithm which reacts to both packet loss and inferred queuing delay. It attempts to operate as a delay-based algorithm where possible, but utilises heuristics to detect loss-based TCP cross traffic and will compete effectively as required. CDG is therefore incrementally deployable and suitable for use on shared networks. In collaboration with: David Hayes <david.hayes at ieee.org> and Grenville Armitage <garmitage at swin edu au> MFC after: 4 days Sponsored by: Cisco University Research Program and FreeBSD Foundation
* Work around an ARM EABI issue where clang would sometimes incorrectly alignandrew2013-07-021-1/+1
| | | | | | | | | | | | | the stack in a leaf function that uses TLS. The issue is, when using TLS, the function is no longer a leaf as it calls __aeabi_read_tp. With statically linked programs this is not an issue as it doesn't make use of the stack, however with dynamically linked applications we enter rtld which does use the stack and makes assumptions about it's alignment. This is only a temporary fix until a better patch can be made and submitted upstream.
* Fix receiving fd over unix socket broken in r247740.mjg2013-07-021-2/+2
| | | | | | | | If n fds were passed, it would receive the first one n times. Reported by: Shawn Webb <lattera@gmail.com>, koobs, gleb Tested by: koobs, gleb Reviewed by: pjd
* Add Planex MZK-UE150N.hrs2013-07-022-0/+2
| | | | | Submitted by: Yusuke Tanaka MFC after: 3 days
* Fix indentation.rpaulo2013-07-021-3/+3
| | | | Submitted by: jmallet
* Add register definitions for the Wii IPC system.rpaulo2013-07-021-0/+65
|
* Add RealTek 8192SU product IDs.rpaulo2013-07-021-1/+38
|
* Fix up option parsing to allow a colon in the config section.grehan2013-07-011-13/+8
| | | | | | | Clean up some other unnecessary code. Submitted by: Dinakar Medavaram dinnu sun at gmail Reviewed by: neel
* Be sure to destory the fasttrap cleanup mutex when unloading the fasttrapmarkj2013-07-011-0/+1
| | | | module. This should be MFCed with r250953.
* Add a new gptboot(8) man page. Factor out the redundant informationwblock2013-07-014-66/+264
| | | | | | | in gpart(8) and boot(8), adding references to gptboot(8) in both. Reviewed by: jhb, ae, pjd, Paul Schenkeveld <bsdcan@psconsult.nl>, david_a_bright@dell.com (portions), gjb MFC after: 1 week
* Wrap cxgbe declaration around MK_SOURCELESS_UCODE checkrmh2013-07-011-1/+5
|
* Fix typo in vfs_mount(9) item.delphij2013-07-011-1/+1
|
* style(9) fixes, including the removal of page break characters. No functionalasomers2013-07-011-19/+19
| | | | | | changes. Approved by: gibbs (co-mentor)
* Change i_gen in UFS to an unsigned type.pfg2013-07-011-1/+1
| | | | | | | | | | Revert the simplification of the i_gen calculation. It is still a good idea to avoid zero values and for the case of old filesystems there is probably no advantage in using the complete 32 bits anyways. Discussed with: bde MFC after: 4 weeks
* Document the fact that an NFSv4 mount uses the host uuid to uniquelyrmacklem2013-07-011-1/+15
| | | | | | | | | identify the client to the server. As such, NFSv4 mounts will break if host_enable="NO" is specified. This is a content change. Suggested by: lars@netapp.com MFC after: 3 days
* Add a SIGINFO handler to devd. It will send useful statistics to syslog orasomers2013-07-011-0/+19
| | | | | | | | stderr as appropriate. Currently, the only statistic printed is the number of events received. Reviewed by: eadler Approved by: gibbs (co-mentor)
* Add syslog(3) support to devd(8).asomers2013-07-014-36/+65
| | | | | | | | | | | | | | | | | | | | | sbin/devd/devd.cc All output will now go to syslog(3) if devd is daemonized, or stderr if it's running in the foreground. sbin/devd/devd.8 Remove the "-D" flag. Filtering messages by priority now happens in the usual syslog way. For performance reasons, a few extra-verbose debugging statements are now conditional on the "-d" (do not daemonize) flag. etc/syslog.conf etc/newsyslog.conf Direct messages from devd(8) to /var/log/devd.log, but leave it disabled by default Reviewed by: eadler Approved by: gibbs (co-mentor) MFC after: never (removed a command-line option from devd)
* Correct a typo in comment.delphij2013-07-011-1/+1
|
* A recent version of the oldnfs NFS client in head/currentrmacklem2013-07-011-2/+2
| | | | | | | | | | will crash when doing a large write, since m_get2() would return NULL. This patch fixes the problem, since nfsm_uiotombuf() will allocate additional mbufs, as required. Reported by: sbruno Tested by: sbruno Discussed with: glebius
* Ignore guest PAT settings by default in EPT mappings.grehan2013-07-011-2/+10
| | | | | | | From experimentation, other hypervisors also do this. Diagnosed by: tycho nightingale at pluribusnetworks com Reviewed by: neel
OpenPOWER on IntegriCloud