summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mdoc: drop even more redundant .Pp callsuqs2010-10-1913-20/+0
| | | | | | No change in rendered output, less mandoc lint warnings. Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp
* Fix the type of the 3rd argument for nm_getinfo so that it worksrmacklem2010-10-193-7/+7
| | | | | | | for architectures like sparc64. Suggested by: kib MFC after: 2 weeks
* When readdirplus() is handled on the exported filesystem that doeskib2010-10-191-12/+13
| | | | | | | | | not support VFS_VGET, like msdosfs, do not call VOP_LOOKUP() for dotdot on the root directory. Our filesystems expect that VFS handles dotdot lookups on root on its own. Reported and tested by: kevlo MFC after: 2 weeks
* Modify the NFS clients and the NLM so that the NLM can be usedrmacklem2010-10-1914-45/+168
| | | | | | | | | | | | | by both clients. Since the NLM uses various fields of the nfsmount structure, those fields were extracted and put in a separate nfs_mountcommon structure stored in sys/nfs/nfs_mountcommon.h. This structure also has a function pointer for a function that extracts the required information from the mount point and nfs vnode for that particular client, for information stored differently by the clients. Reviewed by: jhb MFC after: 2 weeks
* MFV: nc(1) from OpenBSD 4.8.delphij2010-10-194-32/+32
| | | | | | | | While I'm there, bump WARNS level to 2 as the vendor have the right printf format string now. MFC after: 1 month Obtained from: OpenBSD
* Set default type to PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, thisdavidxu2010-10-181-0/+1
| | | | is the type we are using.
* Replace spaces by a tab after the date.culot2010-10-181-1/+1
| | | | | Reported by: gavin@, brucec@ Approved by: sahil@ (mentor)
* Do not synchronously start the nfsiod threads at all. The r212506kib2010-10-184-80/+48
| | | | | | | | | | | | | | | | | | | fixed the issues with file descriptor locks, but the same problems are present for vnode lock/user map lock. If the nfs_asyncio() cannot find the free nfsiod, schedule task to create new nfsiod and return error. This causes fall back to the synchronous i/o for nfs_strategy(), or does not start read at all in the case of readahead. The caller that holds vnode and potentially user map lock does not wait for kproc_create() to finish, preventing the LORs. The change effectively reverts r203072, because we never hand off the request to newly created nfsiod thread anymore. Reviewed by: jhb Tested by: jhb, pluknet MFC after: 3 weeks
* We've already set p = td->td_proc, so use it.emaste2010-10-181-4/+4
|
* Remove extra word, which looks like a left-over from a deleted sentence.brucec2010-10-181-1/+0
|
* Fix grammar.brucec2010-10-181-2/+2
|
* Fix typo: Offlaod -> Offload.pluknet2010-10-181-1/+1
| | | | | | PR: docs/150756 Approved by: avg (mentor) MFC after: 3 days
* Update links for taskqueue(9) functions.pjd2010-10-181-1/+7
|
* Add links for libradius(3) functions.pjd2010-10-181-0/+33
|
* Set of legacy mode SATA enchancements:mav2010-10-1812-159/+512
| | | | | | | | | | | | - Implement proper combined mode decoding for Intel controllers to properly identify SATA and PATA channels and associate ATA channels with SATA ports. This fixes wrong reporting and in some cases hard resets to wrong SATA ports. - Improve SATA registers support to handle hot-plug events and potentially interface errors. For ICH5/6300ESB chipsets these registers accessible via PCI config space. For later ones they may be accessible via PCI BAR(5). - For controllers not generating interrupts on hot-plug events, implement periodic status polling. Use it to detect hot-plug on Intel and VIA controllers. Same probably could also be used for Serverworks and SIS.
* Unbreak buildworld by including pthread_rwlockattr_setkind_np anddavidxu2010-10-182-0/+4
| | | | pthread_rwlockattr_getkind_np.
* Revert r213867; while this driver really doesn't use any of the genericmarius2010-10-181-0/+4
| | | | subroutines, at least mii_capabilities is used within itself.
* Log if fopen() fails.glebius2010-10-181-1/+4
| | | | Reviewed by: brian
* "b64decode -r" did not handle arbitary breaks in base64 encodededwin2010-10-181-5/+31
| | | | | | | | | | | | | | | | | | | | data. White space should be accepted anywhere in a base64 encoded stream, not just after every chunk (4 characters). Test-scenario: VmVsb2NpdHkgUmV3YXJkcw== and VmVsb2NpdHkgUmV3YXJkcw == should both produce "Velocity Rewards" PR: bin/124739 Submitted by: Mark Andrews <marka@isc.org> MFC after: 2 weeks
* sort function name.davidxu2010-10-181-2/+2
|
* s/||/&&davidxu2010-10-181-2/+2
|
* Add pthread_rwlockattr_setkind_np and pthread_rwlockattr_getkind_np, thedavidxu2010-10-185-4/+64
| | | | | | | | | functions set or get pthread_rwlock type, current supported types are: PTHREAD_RWLOCK_PREFER_READER_NP, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, PTHREAD_RWLOCK_PREFER_WRITER_NP, default is PTHREAD_RWLOCK_PREFER_WRITER_NONCECURSIVE_NP, this maintains binary compatible with old code.
* Re-implement the root mount logic using a recursive approach, whereby eachmarcel2010-10-181-326/+738
| | | | | | | | | | | | | | | | | | | | | root file system (starting with devfs and a synthesized configuration) can contain directives for mounting another file system as root. The old root file system is re-mounted under the new root file system (with /.mount or /mnt as the mount point) to allow access to the underlying file system. The configuration allows for creating vnode-backed memory disks that can subsequently be mounted as root. This allows for an efficient and low- cost way to distribute and boot FreeBSD software images that reside on some storage media. When trying a mount, the kernel will wait for the device in question to arrive. The timeout is configurable and is part of the configuration. This allows arbitrarily complex GEOM configurations to be constructed on the fly. A side-effect of this change is that all root specifications, whether compiled into the kernel or typed at the prompt can contain root mount options.
* In vfs_filteropt(), only print the errmsg when there's no errmsgmarcel2010-10-181-1/+3
| | | | mount option. Otherwise errors tend to get printed multiple times.
* Rename boot() to kern_reboot() and make it visible outside ofmarcel2010-10-182-8/+8
| | | | | kern_shutdown.c. This makes it easier for emulators and other parts of the kernel to initiate a reboot.
* Allow the MDIOCATTACH ioctl operation to originate from within the kernel.marcel2010-10-181-8/+16
| | | | | | To protect against malicious software, we demand that the file name is at a particular location (i.e. appended to the mdio structure) for it to be treated as in-kernel.
* Stylify of uudecode(1)edwin2010-10-181-29/+35
| | | | | | | Part of PR bin/124739. PR: bin/124739 Submitted by: Mark Andrews <marka@isc.org>
* Fix a possible race where the directory dirent is moved to the locationkevlo2010-10-181-3/+8
| | | | | | | | | that was used by ".." entry. This change seems fixed panic during attempt to access msdosfs data over nfs. Reviewed by: kib MFC after: 1 week
* Re-add opt_mps.h and opt_cam.h, lost in the previous rev.scottl2010-10-171-1/+1
|
* Add myself to calendar.freebsd.culot2010-10-171-0/+1
| | | | Approved by: sahil@ (mentor)
* Add an entry for myself to committers-ports.dot.culot2010-10-171-0/+5
| | | | Approved by: sahil@ (mentor)
* Fix an XXX comment by answering 'no'. OS X does not set the day-of-weeknwhitehorn2010-10-171-4/+0
| | | | | | | | counter on SMU-based systems, which causes FreeBSD to reject the RTC time when used in a dual-boot environment. Since we don't use the day-of-week counter anyway, solve this by just not checking that it matches. MFC after: 3 weeks
* - In oneshot-mode it doesn't make sense to try to compensate the clockmarius2010-10-171-45/+41
| | | | | | | | | | | | | drift in order to achieve a more stable clock as the tick intervals may vary in the first place. In fact I haven't seen this code kick in when in oneshot-mode so just skip it in that case. - There's no need to explicitly stop the (S)TICK counter in oneshot-mode with every tick as it just won't trigger again with the (S)TICK compare register set to a value in the past (with a wrap-around once every ~195 years of uptime at 1.5 GHz this isn't something we have to worry about in practice). - Given that we'll disable interrupts completely anyway there's no need to enter critical sections.
* Document vunref(9), add some important notes for vrele(9) and vput(9).kib2010-10-173-71/+49
| | | | | | Merge all three manpages to one, removing separate file for vput(9). MFC after: 1 week
* Log correct connection when canceling half-open connection.pjd2010-10-171-1/+2
| | | | | Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* - Insert thread0 into correct thread hash link list.davidxu2010-10-173-21/+9
| | | | | | | | | | | - In thr_exit() and kthread_exit(), only remove thread from hash if it can directly exit, otherwise let exit1() do it. - In thread_suspend_check(), fix cleanup code when thread needs to exit. This change seems fixed the "Bad link elm " panic found by Peter Holm. Stress testing: pho
* Use one fprintf() instead of two.pjd2010-10-161-2/+1
| | | | MFC after: 3 days
* Clear signal mask before executing a hook.pjd2010-10-161-0/+3
| | | | | Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* zfs: add vop_getpages method implementationavg2010-10-161-0/+91
| | | | | | | | | | | | | This should make vnode_pager_getpages path a bit shorter and clearer. Also this should eliminate problems with partially valid pages. Having this method opens room for future optimizations. To do: try to satisfy other pages besides the required one taking into account tradeofs between number of page faults, read throughput and read latency. Also, eventually vop_putpages should be added too. Reviewed by: kib, mm, pjd MFC after: 3 weeks
* MfP4 CH182763 (original version):bz2010-10-161-0/+15
| | | | | | | | | | | | | | | | Make it harder to exploit certain in_control() related races between the intiial lookup at the beginning and the time we will remove the entry from the lists by re-checking that entry is still in the list before trying to remove it. (*) It is believed that with the current code and locking strategy we cannot completely fix all race. Reported by: Nima Misaghian (nima_misa hotmail.com) on net@ 20100817 Tested by: Nima Misaghian (nima_misa hotmail.com) (original version) PR: kern/146250 Submitted by: Mikolaj Golub (to.my.trociny gmail.com) (different version) MFC after: 1 week
* Allow umass to use bigger transactions for USB 3.0 devices. It is lessmav2010-10-161-0/+1
| | | | | | | | | | | | important for USB 2.0 devices and some of them reported to have problems with large transactions. But USB 3.0 benchmarks show that limited number of transactions per second on USB makes impossible to reach high transfer speeds without using bigger transactions. On my tests this change allows to read up to 220MB/s from USB-attached SSD (at block size of 256-512KB), comparing to only 113MB/s without it. Reviewed by: hselasky
* Close a race acquiring the IF_ADDR_LOCK() for each entry while iteratingbz2010-10-161-0/+4
| | | | | | | | | over all interfaces to make sure the address will neither change nor be freed while we are working on it. PR: kern/146250 Submitted by: Mikolaj Golub (to.my.trociny gmail.com) MFC after: 1 week
* lltable_drain() has never been used so far, thus #if 0 it for now.bz2010-10-162-0/+6
| | | | | | | While touching it add the missing locking to the now disabled code for the time when we'll resurrect it. MFC after: 3 days
* Fix a grammatical error connected to the previous commit.bcr2010-10-161-1/+1
| | | | Spotted by: gjb@
* Correct some typos in comments, no functional changes.bcr2010-10-165-11/+11
|
* sh(1): Clarify subshells/processes for pipelines.jilles2010-10-161-10/+8
| | | | | | | | | For multi-command pipelines, 1. all commands are direct children of the shell (unlike the original Bourne shell) 2. all commands are executed in a subshell (unlike the real Korn shell) MFC after: 1 week
* sh: Use <stddef.h> rather than <sys/stddef.h>.jilles2010-10-161-1/+1
| | | | <sys/stddef.h> is only for the kernel and conflicts with <stddef.h>.
* - Add support for libusbhid in 32-bit compatibility mode.hselasky2010-10-163-3/+25
| | | | | | - Add missing check for ugd_actlen being too small. - Add missing inclusion guard to usbvar.h header file. - This also fixes buildworld breakage since r213852.
* atrtc: remove (pre-)historic check of RTC NVRAM at address 0x0eavg2010-10-161-4/+1
| | | | | | | | | | | | | | Old scrolls tell that once upon a time IBM AT BIOS was known to put some useful system diagnostic information into RTC NVRAM. It is not really known if and for how long PC BIOSes followed that convention, but I believe that many, if not all, modern BIOSes do not do that any more (not mentioning other types of x86 firmware). Some diagnostic bits don't even make any sense any longer. The check results in confusing messages upon boot on some systems. So I am removing it. Discussed with: bde, jhb, mav MFC after: 3 weeks
* Document vfs.ncsizefactor and vfs.ncnegfactor.kib2010-10-161-1/+19
| | | | MFC after: 2 weeks
OpenPOWER on IntegriCloud