summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Add shim to simplify migration to the CAM-based ATA. For each new adaXmav2011-04-2616-6/+119
| | | | | | | | | device in /dev/ create symbolic link with adY name, trying to mimic old ATA numbering. Imitation is not complete, but should be enough in most cases to mount file systems without touching /etc/fstab. - To know what behavior to mimic, restore ATA_STATIC_ID option in cases where it was present before. - Add some more details to UPDATING.
* With the typical memory size of the system in tenth of gigabytessobomax2011-04-261-5/+38
| | | | | | | | | | | | | counting memory being dumped in 16MB increments is somewhat silly. Especially if the dump fails and everything you've got for debugging is screen filled with numbers in 16 decrements... Replace that with percentage-based progress with max 10 updates all fitting into one line. Collapse other very "useful" piece of crash information (total ram) into the same line to save some more space. MFC after: 1 week
* Fix a kernel linking problem introduced by r221032, r221040rmacklem2011-04-262-3/+22
| | | | | | | | | | when building kernels that don't have "options NFS_ROOT" specified. I plan on moving the functions that use these data structures into the shared code in sys/nfs/nfs_diskless.c in a future commit. At that time, these definitions will no longer be needed in nfs_vfsops.c and nfs_clvfsops.c. MFC after: 2 weeks
* Document timeout_task.kib2011-04-261-4/+31
| | | | | | | | While there, fix the type of the func argument of INIT_TASK macro, and use the modern name of the analogous facility from Linux kernel. Sponsored by: The FreeBSD Foundation MFC after: 1 month
* Implement the delayed task execution extension to the taskqueuekib2011-04-264-32/+197
| | | | | | | | | mechanism. The caller may specify a timeout in ticks after which the task will be scheduled. Sponsored by: The FreeBSD Foundation Reviewed by: jeff, jhb MFC after: 1 month
* - Catch up to falloc() changes.jeff2011-04-263-5/+14
| | | | | - PHOLD() before using a task structure on the stack. - Fix a LOR between the sleepq lock and thread lock in _intr_drain().
* This builds OK using the parent dir's WARNS=6.obrien2011-04-261-2/+0
| | | | [built on both AMD64 and i386]
* Catch up with r57841 which removed the possible linking against libutilobrien2011-04-261-1/+0
| | | | by not bothering to include its API.
* Stop trying to zero UFS1 superblocks if we fall off the end of the disk.cperciva2011-04-261-1/+4
| | | | | | | | | | This avoids a potentially many-hours-long loop of failed writes if newfs finds a partially-overwritten superblock (or, for that matter, random garbage which happens to have superblock magic bytes); on one occasion I found newfs trying to zero 800 million superblocks on a 50 MB disk. Reviewed by: mckusick MFC after: 1 week
* Update the /etc/rc.d scripts for mountd and nfsd so theyrmacklem2011-04-263-17/+30
| | | | | | | | | | can use the "-o" option to force the old NFS server to run. Running the old NFS server is enabled by setting oldnfs_server_enable="YES". The scripts will only enable providing service for NFSv4 if nfsv4_server_enable="YES" is set. Reviewed by: dougb (rc)
* - Add the RX refresh changes from igb to ixgbejfv2011-04-252-49/+84
| | | | | | | | | | - Also a couple minor tweaks to the TX code from the same source. - Add the INET ioctl code which has been missing from this driver, and which caused IP aliases to reset the interface. - Last, some minor logic changes that just reflect upcoming hardware support, but have no other functional effect now. MFC after a week
* Modify the experimental (newnfs) NFS client so that it uses thermacklem2011-04-254-147/+30
| | | | | | | | same diskless NFS root code as the regular client, which was moved to sys/nfs by r221032. This fixes the newnfs client so that it can do an NFSv3 diskless root file system. MFC after: 2 weeks
* Remove prototypes of non-existent functions.marcel2011-04-251-5/+0
|
* Fix the experimental NFS client so that it does not boguslyrmacklem2011-04-2511-21/+53
| | | | | | | | | | | | | | set the f_flags field of "struct statfs". This had the interesting effect of making the NFSv4 mounts "disappear" after r221014, since NFSMNT_NFSV4 and MNT_IGNORE became the same bit. Move the files used for a diskless NFS root from sys/nfsclient to sys/nfs in preparation for them to be used by both NFS clients. Also, move the declaration of the three global data structures from sys/nfsclient/nfs_vfsops.c to sys/nfs/nfs_diskless.c so that they are defined when either client uses them. Reviewed by: jhb MFC after: 2 weeks
* - Removed duplicate {_bxe} definition.davidch2011-04-251-1/+0
| | | | MFC after: One week
* - Added bxe(4) driver for i386 and amd64. Currently untested on otherdavidch2011-04-251-0/+4
| | | | | | CPU architectures. MFC after: One week
* sh: Set $? to 0 for background commands.jilles2011-04-254-3/+19
| | | | | | | | | | For backgrounded pipelines and subshells, the previous value of $? was being preserved, which is incorrect. For backgrounded simple commands containing a command substitution, the status of the last command substitution was returned instead of 0. If fork() fails, this is an error.
* printf(1): Move non-bugs from the BUGS section to a new section CAVEATS.jilles2011-04-251-10/+10
|
* Typo fixcognet2011-04-251-1/+1
|
* Add the possibility to verify MD5 hash of incoming TCP packets.attilio2011-04-254-8/+179
| | | | | | | | | | As long as this is a costy function, even when compiled in (along with the option TCP_SIGNATURE), it can be disabled via the net.inet.tcp.signature_verify_input sysctl. Sponsored by: Sandvine Incorporated Reviewed by: emaste, bz MFC after: 2 weeks
* We need in.h for both INET and INET6, as according to RFC 3493 itbz2011-04-251-1/+4
| | | | | | | | | defines struct in6_addr, which is needed by ip6_hdr used in here. Reviewed by: gnn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 5 days
* Be less strict on includes than in r220746. We need in.h for bothbz2011-04-251-0/+5
| | | | | | | | | | INET or INET6 as it holds all the IPPROTO_* definitions needed for the SYSCTL_NODE definitions. Reviewed by: gnn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 5 days
* After r220885 compile the various NIC drivers depending on INETbz2011-04-251-11/+11
| | | | | | | | | | unconditionally backing out r193997, so that they are available for IPv6-only setups as well. Reviewed by: gnn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 5 days
* Wrap the MIMO stuff in #ifdef AH_SUPPORT_AR5416, as the channeladrian2011-04-251-0/+4
| | | | state doesn't have MIMO stuff in it by default.
* Fix the experimental NFS client so that it does not boguslyrmacklem2011-04-251-1/+0
| | | | | | | | set the f_flags field of "struct statfs". This had the interesting effect of making the NFSv4 mounts "disappear" after r221014, since NFSMNT_NFSV4 and MNT_IGNORE became the same bit. MFC after: 2 weeks
* Add missing bit in r221015.attilio2011-04-251-1/+12
| | | | | | | Sponsored by: Sandvine Incorporated Reviewed by: des MFC after: 1 week X-MFC: r221015
* Don't assume that SMI are enabled when attaching ichwd and then doattilio2011-04-251-0/+1
| | | | | | | | correct unwind based on former state. Sponsored by: Sandvine Incorporated Reviewed by: des MFC after: 1 week
* Modify the experimental NFS client so that it uses the samermacklem2011-04-254-130/+37
| | | | | | | | | | | | | | "struct nfs_args" as the regular NFS client. This is needed so that the old mount(2) syscall will work and it makes sharing of the diskless NFS root code easier. Eary in the porting exercise I introduced a new revision of nfs_args, but didn't actually need it, thanks to nmount(2). I re-introduced the NFSMNT_KERB flag, since it does essentially the same thing and the old one would not have been used because it never worked. I also added a few new NFSMNT_xxx flags to sys/nfsclient/nfs_args.h that are used by the experimental NFS client. MFC after: 2 weeks
* printf(1): Mention effect of '#' modifier on other conversions.jilles2011-04-251-5/+5
|
* sh: Check setuid()/setgid() return values.jilles2011-04-251-2/+4
| | | | | | | | | | | | If the -p option is turned off, privileges from a setuid or setgid binary are dropped. Make sure to check if this succeeds. If it fails, this is an error which will cause the shell to abort except in interactive mode or if 'command' was used to make 'set' or an outer 'eval' or '.' non-special. Note that taking advantage of this feature and writing setuid shell scripts seems unwise. MFC after: 1 week
* sh: Remove duplicate code resetting uid/gid for set +p/+o privileged.jilles2011-04-251-10/+5
| | | | MFC after: 1 week
* Whitespace nitdes2011-04-251-2/+2
|
* correct variable type name in commentticso2011-04-251-2/+2
|
* Create a function for the code from r192246 so that it can be used bothdougb2011-04-251-11/+15
| | | | | | | | times mount is called. Limit the automatic behavior to when AUTO is specified (as it is in etc/defaults/rc.conf) and for everything else take advantage of all of the goodness in checkyesno.
* Add svn:executable propertydougb2011-04-251-0/+0
|
* When msk_detach() is called from msk_attach(), ifp may beglebius2011-04-251-1/+2
| | | | yet not initialized.
* Break out the PLL setup into an overridable method.adrian2011-04-243-5/+13
| | | | | The only method right now is ar5416InitPLL() which handles multiple chipsets; this can now be overridden by newer chipset HAL code.
* Use the refactored ar5416WriteTxPowerRateRegisters() call in the ar9285 code.adrian2011-04-241-67/+18
|
* Eliminate code duplication between AR5416/AR9160/AR9280 and AR9285.adrian2011-04-242-70/+113
| | | | | | Writing the TX power registers is the same between all of these chips and later NICs (AR9287, AR9271 USB, etc.) so this will reduce code duplication when those NICs are added to the HAL.
* Fix typo.kib2011-04-241-1/+1
| | | | MFC after: 3 days
* VFS sometimes is unable to inactivate a vnode when vnode use countkib2011-04-243-23/+31
| | | | | | | | | | | | | | | | | | | | | | goes to zero. E.g., the vnode might be only shared-locked at the time of vput() call. Such vnodes are kept in the hash, so they can be found later. If ffs_valloc() allocated an inode that has its vnode cached in hash, and still owing the inactivation, then vget() call from ffs_valloc() clears VI_OWEINACT, and then the vnode is reused for the newly allocated inode. The problem is, the vnode is not reclaimed before it is put to the new use. ffs_valloc() recycles vnode vm object, but this is not enough. In particular, at least v_vflag should be cleared, and several bits of UFS state need to be removed. It is very inconvenient to call vgone() at this point. Instead, move some parts of ufs_reclaim() into helper function ufs_prepare_reclaim(), and call the helper from VOP_RECLAIM and ffs_valloc(). Reviewed by: mckusick Tested by: pho MFC after: 3 weeks
* One key is expected from providers smaller than or equal to (2^20)*sectorsizepjd2011-04-241-6/+0
| | | | | | | | bytes. Remove bogus assertion and while here remove another too obvious assertion. Reported by: Fabian Keil <freebsd-listen@fabiankeil.de> MFC after: 2 weeks
* Explicitly note that device numbers are starting from zero.mav2011-04-241-2/+3
|
* Switch the GENERIC kernels for all architectures to the new CAM-based ATAmav2011-04-2426-135/+151
| | | | | | | | | | | | | stack. It means that all legacy ATA drivers are disabled and replaced by respective CAM drivers. If you are using ATA device names in /etc/fstab or other places, make sure to update them respectively (adX -> adaY, acdX -> cdY, afdX -> daY, astX -> saY, where 'Y's are the sequential numbers for each type in order of detection, unless configured otherwise with tunables, see cam(4)). ataraid(4) functionality is now supported by the RAID GEOM class. To use it you can load geom_raid kernel module and use graid(8) tool for management. Instead of /dev/arX device names, use /dev/raid/rX.
* Patch the mountd and nfsd man pages to reflect the recent changesrmacklem2011-04-242-26/+14
| | | | | done by r220980 to deprecate the -e option and add the -o option. This is a content change for both man pages.
* This patch changes the default NFS server to the new one, which wasrmacklem2011-04-243-17/+25
| | | | | | | | referred to as the experimental server. It also adds a new command line option "-o" to both mountd and nfsd that forces them to use the old/regular NFS server. The "-e" option for these commands is now a no-op, since the new server is the default. I will be committing rc script and man changes soon. Discussed on freebsd-fs@.
* Fix display of the drm sysctls.kib2011-04-231-1/+1
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days
* sh: Allow EV_EXIT through function calls, make {...} <redir more consistent.jilles2011-04-236-13/+62
| | | | | | | | | | | | | | | | | | | | | If EV_EXIT causes an exit, use the exception mechanism to unwind redirections and local variables. This way, if the final command is a redirected command, an EXIT trap now executes without the redirections. Because of these changes, EV_EXIT can now be inherited by the body of a function, so do so. This means that a function no longer prevents a fork before an exec being skipped, such as in f() { head -1 /etc/passwd; }; echo $(f) Wrapping a single builtin in a function may still cause an otherwise unnecessary fork with command substitution, however. An exit command or -e failure still invokes the EXIT trap with the original redirections and local variables in place. Note: this depends on SHELLPROC being gone. A SHELLPROC depended on keeping the redirections and local variables and only cleaning up the state to restore them.
* Fix two bugs in r218670.kib2011-04-231-4/+11
| | | | | | | | | | | | | Hold the vnode around the region where object lock is dropped, until vnode lock is acquired. Do not drop the vnode reference for a case when the object was deallocated during unlock. Note that in this case, VV_TEXT is cleared by vnode_pager_dealloc(). Reported and tested by: pho Reviewed by: alc MFC after: 3 days
* - Clarification on kld_file_stat.sizegjb2011-04-231-4/+4
| | | | | | | | | - While here, remove a few C comments that don't seem to contribute anything additional to the man page. PR: 146047 Submitted by: arundel MFC after: 3 days
OpenPOWER on IntegriCloud