summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | [patch] fortune(6): file not Y2.01K compliantedwin2009-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the time in the fortune to make the joke a little bit more realistic again: Bump year from 2009 to 2039. PR: conf/129860 Submitted by: Alan Amesbury <amesbury@umn.edu> MFC after: 2 days
* | | | [patch] calendar.music: Chuck Berry was born in St. Louis, Missouri, not ↵edwin2009-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | California The /usr/bin/calendar program reports that Chuck Berry was born in San Jose California but he was not born in California. Chuck Berry was born in St. Louis, Missouri in 1926 on October 18. http://www.chuckberry.com/about/bio.htm http://www.khaldea.com/charts/chuckberry.shtml http://en.wikipedia.org/wiki/Chuck_Berry PR: conf/128215 Submitted by: comet--berkeley (aka Pablo Picasso) <comet@transbay.net> MFC after: 2 days
* | | | track rename of CSA iesam2009-06-041-1/+1
| | | | | | | | | | | | | | | | Submitted by: wxs
* | | | When checking for shared writes, use the struct mount returned fromps2009-06-041-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | vn_start_write. Reviewed by: jhb
* | | | Support shared vnode locks for write operations when the offset isps2009-06-043-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | provided on filesystems that support it. This really improves mysql + innodb performance on ZFS. Reviewed by: jhb, kmacy, jeffr
* | | | o station mode channel switch supportsam2009-06-049-22/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o IEEE80211_IOC_CHANSWITCH fixups: - restrict to hostap vaps - return EOPNOTSUPP instead of EINVAL when applied to !hostap vap or to a vap w/o 11h enabled - interpret count of 0 to mean cancel the current CSA Reviewed by: rpaulo, avatar
* | | | Fix upcall races in the client side krpc. For the client side upcall,rmacklem2009-06-042-3/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | holding SOCKBUF_LOCK() isn't sufficient to guarantee that there is no upcall in progress, since SOCKBUF_LOCK() is released/re-acquired in the upcall. An upcall reference counter was added to the upcall structure that is incremented at the beginning of the upcall and decremented at the end of the upcall. As such, a reference count == 0 when holding the SOCKBUF_LOCK() guarantees there is no upcall in progress. Add a function that is called just after soupcall_clear(), which waits until the reference count == 0. Also, move the mtx_destroy() down to after soupcall_clear(), so that the mutex is not destroyed before upcalls are done. Reviewed by: dfr, jhb Tested by: pho Approved by: kib (mentor)
* | | | Fix two races in the server side krpc w.r.t upcalls:rmacklem2009-06-043-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a flag so that soupcall_clear() is only called once to cancel an upcall. Move the test for xprt_registered in the upcall down to after the mtx_lock() of the pool mutex, to catch the case where it is unregistered while the upcall is waiting for the mutex. Also, move the mtx_destroy() of the pool mutex to after SVC_RELEASE(), so that it isn't destroyed before the upcalls are disabled. Reviewed by: dfr, jhb Tested by: pho Approved by: kib (mentor)
* | | | fix a bug introduced in rev.190865 related to the signednessluigi2009-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the credit of a pipe. On passing, also use explicit signed/unsigned types for two other fields. Noticed by Oleg Bulyzhin and Maxim Ignatenko long ago, i forgot to commit the fix. Does not affect RELENG_7.
* | | | Correct typo; errno => error.ed2009-06-041-1/+1
| | | |
* | | | Re-add opt_mac.h include, which is required in order for MNT_MULTILABELrwatson2009-06-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to be set properly on devfs. Otherwise, it isn't possible to set labels on /dev nodes. Reported by: Sergio Rodriguez <sergiorr at yahoo.com> MFC after: 3 days
* | | | Don't panic in nlm_record_lock if we get ENOENT from lf_advlockasync. Thisdfr2009-06-041-2/+2
| | | | | | | | | | | | | | | | | | | | is likely to be because the file was just removed and in our context this is harmless.
* | | | add two prerequisites; if_zydreg.h and if_zydfw for dependency check.weongyo2009-06-041-1/+1
| | | |
* | | | reimplements RF logic for GCT chipset (as known as UW2453) to supportweongyo2009-06-042-155/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ICIDU NI-707503 which is donated by Nick Hibma (great thanks!). Though it has a MAXIM RF (0x8) there's some success reports with using GCT RF (0x9) codes and it worked well for ICIDU NI-707503 too. So codes for MAXIM and GCT RFs are integrated. Before this commit, if I rememeber correctly, MAXIM RF is never tested that it seems it's a first report working with FreeBSD.
* | | | cleanups the device match list.weongyo2009-06-041-48/+52
| | | |
* | | | When a channel switch is done to a channel with different operatingsam2009-06-031-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | characteristics force the stations to re-associate so protocol state is re-initialized. Note that for 11h/DFS this is irrelevant as channel changes are never cross-band. Reviewed by: ctlaw
* | | | After a channel switch mark associated stations so they will immediatelysam2009-06-031-0/+18
| |_|/ |/| | | | | | | | | | | be probed as inactive; this more quickly weeds out stations that don't follow to the new channel.
* | | Re-format the nfsv4.4 man page so that all sentences start on armacklem2009-06-031-10/+20
| | | | | | | | | | | | | | | | | | new line. Approved by: kib (mentor)
* | | Remove unused VM includes.jhb2009-06-032-7/+0
| | |
* | | Add one further check with mac_policy_count to an mbuf copying caserwatson2009-06-031-0/+3
| | | | | | | | | | | | | | | | | | | | | (limited to netatalk) to avoid MAC label lookup on both mbufs if no policies are registered. Obtained from: TrustedBSD Project
* | | Adjust the padding of struct pcpu to r193219.marius2009-06-031-2/+2
| | | | | | | | | | | | Submitted by: Eygene Ryabinkin
* | | Continue work to optimize performance of "options MAC" when no MAC policyrwatson2009-06-0311-96/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modules are loaded by avoiding mbuf label lookups when policies aren't loaded, pushing further socket locking into MAC policy modules, and avoiding locking MAC ifnet locks when no policies are loaded: - Check mac_policies_count before looking for mbuf MAC label m_tags in MAC Framework entry points. We will still pay label lookup costs if MAC policies are present but don't require labels (typically a single mbuf header field read, but perhaps further indirection if IPSEC or other m_tag consumers are in use). - Further push socket locking for socket-related access control checks and events into MAC policies from the MAC Framework, so that sockets are only locked if a policy specifically requires a lock to protect a label. This resolves lock order issues during sonewconn() and also in local domain socket cross-connect where multiple socket locks could not be held at once for the purposes of propagatig MAC labels across multiple sockets. Eliminate mac_policy_count check in some entry points where it no longer avoids locking. - Add mac_policy_count checking in some entry points relating to network interfaces that otherwise lock a global MAC ifnet lock used to protect ifnet labels. Obtained from: TrustedBSD Project
* | | - Remove unused sparc64-bitops.h file. Our ext2fs code doesn't usestas2009-06-031-264/+0
| | | | | | | | | | | | | | | | | | sparc64-specific bitops implemetations and relies on generic ones. Furthermore, bitops implementations present in sparc64-bitops.h are written in C similarly to generic bitops.
* | | treat IEEE80211_S_CSA as a "running state"; this fixessam2009-06-031-4/+4
| | | | | | | | | | | | ap mode 11h channel switch announcements
* | | Trim an obsolete comment.jkoshy2009-06-031-5/+0
| | | | | | | | | | | | Noticed by: lifengkai <lifengkai at huawei dot com>
* | | Make GPT style partitiong endian-safe in U-Boot support library.raj2009-06-031-13/+28
| | | | | | | | | | | | | | | Submitted by: Piotr Ziecik Obtained from: Semihalf
* | | - Style(9) improvements.stas2009-06-031-271/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Convert all K&R definitions to ANSI equialents. - Retire bsd_malloc and bsd_free macros and use malloc/free directly. - Drop some unused debugging calls. This commit brings no functional changes.
* | | - Sync our copies of ext2fs Linux headers to current Linux versions.stas2009-06-035-67/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Minimize differencies between our ext2fs headers and relevant Linux versions by using EXT2_SB macro to access the superblock fields. Most of the differencies in access to these fields are now hidden inside this macro. - Rename the s_db_per_group field of ext2fs_sb_info to s_gdb_count to reflect the similar change in Linux headers. New name also seem to be more appropriate for this field. - Use proper types for s_first_inode and s_inode_size in-core superblock fields. Now they reflec types used in the on-disk superblock version. - Add support for older filesystem revisions that doesn't have proper s_first_ino and s_inode_size fields in the on-disk superblock. In these cases predefined values for these fields are used. - Add simple sanity checks for s_first_inode and s_inode_size correctness. Reviewed by: bde (previous version) MFC after: 2 weeks
* | | Add vm_lowmem event handler for dirhash. This will cause dirhashes to besnb2009-06-032-26/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deleted when the system is low on memory. This ought to allow an increase to vfs.ufs.dirhash_maxmem on machines that have lots of memory, without degrading performance by having too much memory reserved for dirhash when other things need it. The default value for dirhash_maxmem is being kept at 2MB for now, though. This work was mostly done during the 2008 Google Summer of Code. Approved by: dwmalone (mentor), re MFC after: 3 months
* | | Where if not in examples we should follow style(9)?pjd2009-06-032-34/+30
| | |
* | | lchflags(2) takes int, not u_long like chflags(2) and fchflags(2).pjd2009-06-031-1/+1
| | | | | | | | | | | | | | | | | | Strange, isn't it? Pointed out by: bde
* | | Correct comment.pjd2009-06-031-1/+1
| | |
* | | By default, label all network interfaces as biba/equal on attach. Thisrwatson2009-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | makes it easier for first-time users to configure and work with biba as remote acess is still allowed. Effectively, this means that, by default, only local security properties, not distributed ones, are enforced. Obtained from: TrustedBSD Project
* | | Use ISO C99 style inline semantics in msun.ed2009-06-036-15/+30
| | | | | | | | | | | | | | | Because we use ISO C99 nowadays, we can just get rid of enforcing GNU89-style inlining.
* | | calls callout_drain(9) to un-schedule a scan timer to prevent a pageweongyo2009-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | fault in softclock. Submitted by: sam Reviewed by: jhb, sam (original version), thompsa
* | | Mark MAC Framework sx and rm locks as NOWITNESS to suppress warnings thatrwatson2009-06-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | might arise from WITNESS not understanding its locking protocol, which should be deadlock-free. Currently these warnings generally don't occur, but as object locking is pushed into policies for some object types, they would otherwise occur more often. Obtained from: TrustedBSD Project
* | | Add support for the experimental nfs subsystem to the scripts inrmacklem2009-06-026-11/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /etc/rc.d. They use the following new rc variables: nfsv4_server_enable - set to "YES" to run the experimental server nfsuserd_enable - set to "YES" to run nfsuserd for NFSv4 client and server nfsuserd_flags - command line flags for nfsuserd nfscbd_enable - set to "YES" to run the experimental nfs client's NFSv4 callback daemon nfscbd_flags - command line flags for nfscbd Reviewed by: dougb Approved by: kib (mentor)
* | | improve raw xmit failure handlingsam2009-06-021-17/+21
| | |
* | | count frag tx failures as an ifnet errorsam2009-06-021-0/+1
| | |
* | | fix commentsam2009-06-021-1/+1
| | |
* | | restart tdma beacons after vap destroysam2009-06-021-4/+10
| | |
* | | remove another vestige of the null if_softc on detach hacksam2009-06-021-16/+6
| | |
* | | fix typosam2009-06-021-1/+1
| | |
* | | fix setting of ni_txratesam2009-06-021-25/+1
| | | | | | | | | | | | Submitted by: "Paul B. Mahol" <onemda@gmail.com>
* | | partially fix mode setting; this no longer returns an error but stillsam2009-06-021-1/+1
| | | | | | | | | | | | | | | | | | needs to handle the case where the vap is up+running Noticed by: "Paul B. Mahol" <onemda@gmail.com>
* | | Place the fifo and ref counting variables on the stack to prevent races.thompsa2009-06-022-101/+98
| | | | | | | | | | | | Submitted by: Hans Petter Selasky
* | | move if_detach to the top of ieee80211_ifdetach to close various racessam2009-06-021-2/+3
| | | | | | | | | | | | Reviewed by: jhb
* | | move ifq_detach from if_detach to if_free; this permits callers tosam2009-06-021-3/+1
| | | | | | | | | | | | | | | | | | | | | reference if_snd in the period between detach+free which helps simplify detach code Reviewed by: jhb, rwatson
* | | Remove MAC kernel config files and add "options MAC" to GENERIC, with therwatson2009-06-0214-196/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | goal of shipping 8.0 with MAC support in the default kernel. No policies will be compiled in or enabled by default, but it will now be possible to load them at boot or runtime without a kernel recompile. While the framework is not believed to impose measurable overhead when no policies are loaded (a result of optimization over the past few months in HEAD), we'll continue to benchmark and optimize as the release approaches. Please keep an eye out for performance or functionality regressions that could be a result of this change. Approved by: re (kensmith) Obtained from: TrustedBSD Project
* | | Initialize iov and iovlen before use.pjd2009-06-021-0/+2
| | | | | | | | | | | | Reported by: Lucius Windschuh <lwindschuh@googlemail.com>
OpenPOWER on IntegriCloud