summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Sharpen the saw:marcel2009-03-301-0/+4
| | | | | o Don't create a GPT scheme underneath another scheme when the probe doesn't allow it.
* Replace v_dd vnode pointer with v_cache_dd pointer to struct namecachekan2009-03-293-34/+92
| | | | | | | | | | | | in directory vnodes. Allow namecache dotdot entry to be created pointing from child vnode to parent vnode if no existing links in opposite direction exist. Use direct link from parent to child for dotdot lookups otherwise. This restores more efficient dotdot caching in NFS filesystems which was lost when vnodes stoppped being type stable. Reviewed by: kib
* o add ic_rt to track the rate table for the current channel; this enablessam2009-03-2915-59/+45
| | | | | calculation of packet transmit times to do things like check txop limits o remove equivalent driver code and convert to use net80211 state
* Fix typo.brueffer2009-03-291-1/+1
|
* toggling fast-frames requires clocking the state machinesam2009-03-291-1/+1
|
* Emulate the FIODGNAME ioctl in our 32-bit emulator.ed2009-03-292-0/+26
| | | | | | | | | | | | | It's quite strange that nobody reported this issue before. It turns out functions like ttyname(), ptsname() and fdevname() don't work in compat32. This means it't not even possible to run applications like script(1) inside a 32-bit FreeBSD jail. Fix this by converting 32-bit fiodgname_arg structures to their 64-bit equivalent. Reported by: kris Tested by: kris
* remove bogus nwid use; that's a compat shim for netbsdsam2009-03-291-1/+1
|
* fix wired-wireless failover example and remove incorrectsam2009-03-291-6/+7
| | | | comment about WPA not working
* Eliminate ic_myaddr so changing the mac address of a device works correctly:sam2009-03-2917-125/+84
| | | | | | | | | | | o remove ic_myaddr from ieee80211com o change ieee80211_ifattach to take the mac address of the physical device and use that to setup the lladdr. o replace all references to ic_myaddr in drivers by IF_LLADDR o related cleanups (e.g. kill dead code) PR: kern/133178 Reviewed by: thompsa, rpaulo
* Query DNS only once per an address family.ume2009-03-291-86/+170
| | | | | Obtained from: KAME MFC after: 2 weeks
* Get rid of VSTAT and replace it with VSTAT_PERMS, which is somewhattrasz2009-03-294-8/+7
| | | | | | better defined. Approved by: rwatson (mentor)
* Unbreak OF_interpret() and its standard implementation after r186347.marius2009-03-292-2/+4
|
* Extend comment in copyright notice as requested by author.mr2009-03-291-1/+1
| | | | Submitted by: G.Otsuji
* Fixup relative pointers after channel realloc. It fixes crash on systemsmav2009-03-291-8/+11
| | | | | | | | with several HDA codecs per controller. While I am there, remove some unneeded dereferences. Submitted by: Tor Egge <Tor.Egge@cvsup.no.freebsd.org>
* Add SDT DTrace probes for VFS vnode operations in the vfs:voprwatson2009-03-291-0/+12
| | | | | | | | | | | | provider namespace. These are inserted dynamically into the VOP_..._AP() functions created from vnode_if.src. Each VOP has entry and return probes, as arg0 the primary vnode, arg1 the vnode operation argument structure pointer, providing access to IN and OUT arguments, and for return probes, arg2 the return value. MFC after: 1 month Sponsored by: Google, Inc.
* Mark the declaration of bus_space_map 'static' as the implementation is.bz2009-03-281-2/+3
| | | | | Follow one of the two most common indent schemes in this file. This unbreaks a few mips kernel builds.
* For kernel builds reduce the impact of svnversion, just scanningbz2009-03-281-1/+7
| | | | | | | | src/sys and not the entire src/ tree. An earlier solution by peter had been comitted in r183528 and backed out in r183566 due to problems with newvers.sh also called from other places during world build. With the extra test this survived a make universe.
* - Add files that should have been added in r190507.lulf2009-03-282-0/+831
|
* Update to include Toshiba LANCT00A card being supported, as well as aimp2009-03-281-1/+16
| | | | | | caution that while the Mitsubishi M8895 has a DP83902, its ASIC is undocumented and doens't work with either the NE2000 or the WD80x3 drivers.
* enable setting the mac address of 802.11 devicessam2009-03-281-0/+1
|
* Import the gvinum work that have been done during and after Summer of Code 2007.lulf2009-03-2820-3472/+4009
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The work have been under testing and fixing since then, and it is mature enough to be put into HEAD for further testing. A lot have changed in this time, and here are the most important: - Gvinum now uses one single workerthread instead of one thread for each volume and each plex. The reason for this is that the previous scheme was very complex, and was the cause of many of the bugs discovered in gvinum. Instead, gvinum now uses one worker thread with an event queue, quite similar to what used in gmirror. - The rebuild/grow/initialize/parity check routines no longer runs in separate threads, but are run as regular I/O requests with special flags. This made it easier to support mounted growing and parity rebuild. - Support for growing striped and raid5-plexes, meaning that one can extend the volumes for these plex types in addition to the concat type. Also works while the volume is mounted. - Implementation of many of the missing commands from the old vinum: attach/detach, start (was partially implemented), stop (was partially implemented), concat, mirror, stripe, raid5 (shortcuts for creating volumes with one plex of these organizations). - The parity check and rebuild no longer goes between userland/kernel, meaning that the gvinum command will not stay and wait forever for the rebuild to finish. You can instead watch the status with the list command. - Many problems with gvinum have been reported since 5.x, and some has been hard to fix due to the complicated architecture. Hopefully, it should be more stable and better handle edge cases that previously made gvinum crash. - Failed drives no longer disappears entirely, but now leave behind a dummy drive that makes sure the original state is not forgotten in case the system is rebooted between drive failures/swaps. - Update manpage to reflect new commands and extend it with some examples. Sponsored by: Google Summer of Code 2007 Mentored by: le Tested by: Rick C. Petty <rick-freebsd2008 -at- kiwi-computer.com>
* Do not dereference NULL pointer. refobj is NULL for the objects that arekib2009-03-281-1/+1
| | | | | | preloaded. Reported and tested by: ed
* Add support for Phenom (Family 10h) to cpufreq.mr2009-03-284-1/+518
| | | | | | | Its a newer version provided by the author than in the PR. PR: kern/128575 Submitted by: Gen Otsuji annona2 [at] gmail.com
* Add some casts to silence compiler warning about signedness.delphij2009-03-282-3/+3
|
* o Don't access VPD even if hardware advertised the capability.yongari2009-03-282-134/+101
| | | | | | | | | | | | | | | | | | | | | | It seems that some revision of controller hang while accessing the VPD. Because VPD access routine are unused, nuke it. o Let TWSI reload EEPROM if VPD capability is detected. Reloading EEPROM will also set ethernet address so age(4) now reads AGE_PAR0 and AGE_PAR1 register to get ethernet address. This removes a lot of hack and enhance readability a lot. o Double PHY reset timeout as it takes more time to take PHY out of power-saving state. o Explicitly check power-saving state by checking undocumented PHY registers. If link is not up, poke undocumented registers to take PHY out of power-saving state. This is the same way what Linux does. On resume, make sure to wake up PHY. o Don't rely on auto-clearing feature of master reset bit, just wait 1ms and check idle status of MAC. o Add PCI device revision information in bootverbose mode. This should fix occasional controller hang in device attach phase. Reported by: barbara < barbara.xxx1975 at libero DOT it > Tested by: barbara < barbara.xxx1975 at libero DOT it >
* Minor changes from Berkeley DB 1.86 and further improvements from OpenBSD.delphij2009-03-2811-130/+237
| | | | | | | | | | This does not include the new hash routines since they will cause problems when reading old hash files. Since mpool(3) has been changed, provide a compatibility shim for older binaries. Obtained from: OpenBSD
* Allow O_SYNC and O_NOFOLLOW flags in dbopen().delphij2009-03-281-2/+2
| | | | Obtained from: OpenBSD
* Plug memory leaks and a potential NULL dereference.delphij2009-03-281-4/+12
| | | | Obtained from: OpenBSD
* Simplify the logic when determining whether to zero out a db file to afterdelphij2009-03-281-15/+5
| | | | | | | | open(). The previous logic only initializes the database when O_CREAT is set, but as long as we can open and write the database, and the database is empty, we should initialize it anyway. Obtained from: OpenBSD
* - If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would causedelphij2009-03-281-6/+18
| | | | | | | | | | | | | | | an invariant (actually, an ugly hack) to fail, and all Hell would break loose. When deleting a big key, the offset of an empty page should be bsize, not bsize-1; otherwise an insertion into the empty page will cause the new key to be elongated by 1 byte. Make the packing more dense in a couple of cases. - fix NULL dereference exposed on big bsize values; Obtained from: NetBSD via OpenBSD
* Avoid NULL deference which causes DEBUG1 to crash, not to print usefuldelphij2009-03-281-1/+1
| | | | | | information. Obtained from: OpenBSD
* - Avoid overwriting the cursor page when the cursor page becomes thedelphij2009-03-281-1/+21
| | | | | | | LRU page. - Fix for sequential retrieval failure when using large key/data pairs. Obtained from: OpenBSD
* Fix a crash when iterating over a hash and removing its elements.delphij2009-03-282-11/+21
| | | | Obtained from: OpenBSD
* Only squeeze a short key/value pair onto a page with other complete key/valuedelphij2009-03-281-3/+9
| | | | | | pairs, not onto a page containing the end of a big pair. Obtained from: NetBSD via OpenBSD
* Diff reduce against OpenBSD, no functional change.delphij2009-03-282-12/+6
|
* When reading via memory, read in (amount + 1) / 2 (to properly roundimp2009-03-281-1/+1
| | | | | | | up) rather than amount + 1 / 2, which is the same as amount, or 2x too many words which leads to data corruption. # This fixes the sbdrop panics I was seeing with the Toshiba LANCT00A.
* Return meaningful errno in overflow case; print error message to stderrdelphij2009-03-281-1/+7
| | | | | | in one more case. Obtained from: NetBSD via OpenBSD
* Use pread(2) and pwrite(2) instead of lseek(2) + read(2) / write(2).delphij2009-03-282-6/+3
| | | | Obtained from: NetBSD via OpenBSD
* db/btree/bt_open.c: check return value of snprintf() and return valuedelphij2009-03-282-6/+21
| | | | | | | | | if the result is truncated. db/hash/hash_page.c: use the same way to create temporary file as bt_open.c; check snprintf() return value. Obtained from: OpenBSD
* Several signed/unsigned warning fixes.delphij2009-03-288-16/+18
|
* It turns out that the Toshiba LANCT00A PC Card is really like theimp2009-03-283-8/+27
| | | | | | | | | | | | | | | | | | Toshiba PCETC ISA card, and even has the same board type code in the card ID (0x14). So, for this card, call ed_probe_WD80x3_generic after setting things up apropriately. This makes the card attach and kinda work (I'm seeing panics in sbdrop). Since history has shown that the WD80x3 probe routine is dangerous, only do it for this card. Also, disable the memory range check to make sure it is an valid ISA memory. I think that it is bogus, but I'm not 100% sure, for these cards. I removed probing for the WD80x3 in 2005 when I added support for the AX88x90 and DL100xx cards since none of my cards had ever matched it and PAO3 removed it and none of the cards in their database died. It is possible there are other quirks about this card too, since no other open source OS supports it, or even claims to support it. But it was a fun half hour hack...
* When allocating memory, zero out them if we don't intend to overwrite themdelphij2009-03-285-28/+11
| | | | | | | | | | | | all; before freeing memory, zero out them before we release it as free heap. This will eliminate some potential information leak issue. While there, remove the PURIFY option. There is a slight difference between the new behavior and the old -DPURIFY behavior, with the latter initializes memory with 0xff's. The difference between old and new approach does not generate observable difference. Obtained from: OpenBSD (partly).
* Add new V* constants, neccessary for granular permission checkstrasz2009-03-271-9/+43
| | | | | | in NFSv4 ACLs. While here, get rid of VALLPERM; it wasn't used anyway. Approved by: rwatson (mentor)
* Add explicit test so that non-existence of /usr/games/fortuneru2009-03-272-2/+2
| | | | doesn't affect command exit status.
* Sort NECINFORTIA correctly.imp2009-03-271-1/+1
|
* Add bromax axnet based cards to the mix. This was harvested from the linuximp2009-03-271-0/+3
| | | | | | | | | | | | | | | driver. Not sure who sold it/rebadged it. Add stub entries for Mitsubishi B8895 and Toshiba LANCT00A to the driver with a comment that they don't work /* NG */.[*] These are DP83902A based cards, which should work, but don't seem to. Likely they are from the days before the ne2000 roamed the earth and use a non-standard hookup (see if_ed_isa or if_ed_cbus for some examples). Unless I happen to stumble into the right one, these may never work, but I'm tired of omitting them from commits. [*] The Japanese adopted OK from English, but also use NG for its opposite.
* Don't strip TTY device name to the last '/'.ed2009-03-271-2/+2
| | | | | | | | | | | | | We've seen this bug in other applications before: we have some applications that use strrchr(tty, '/') on the TTY device name. This isn't valid when using pts(4), because the device name will be stripped to "0" instead of "pts/0". This fixes issues with login(1) ignoring /etc/ttys and missing utmp records. Reported by: Barney Cordoba <barney_cordoba yahoo com> Reviewed by: rwatson
* Harvest a previously unknown Bromax design based on the AX88x90 fromimp2009-03-271-0/+1
| | | | the Linux axnet driver.
* Revert 190445 change to this file restoring:ambrisko2009-03-271-3/+3
| | | | | | | | | | typedef l_long l_off_t; Change l_mmap_argv's to l_ulong for pgoff. This restores prior behaviour to consumers of l_off_t but allows mmap to mmap a 32bit position which a Linux application requires to access SMBIOS data via /dev/mem. Reviewed by: dchagin Prompted by: rdivacky
* The buffer start and end phys addresses should be 0x0 for an OHCI zero lengththompsa2009-03-271-2/+5
| | | | | | packet, this fixes LS/FS devices on the Gateworks 2348 XScale board. Reviewed by: HPS
OpenPOWER on IntegriCloud