summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use (unsigned char) cast for ctype macroache2009-09-021-1/+1
|
* Move <locale.h> out of NO_CATGETS define too (as setlocale() in prev.ache2009-09-021-2/+1
| | | | commit)
* 1) Use isprint() instead of hardcoded values to detect non-printable.ache2009-09-021-9/+9
| | | | | | 2) Use (unsigned char) cast in waddch() calls. It fix highlighting bug: sign extension of 8bit to the attributes area. 3) Use setlocale() in any case.
* Don't attempt to bind the current thread to the CPU an IRQ is bound tojhb2009-09-022-18/+24
| | | | | | | when removing an interrupt handler from an IRQ during shutdown. During shutdown we are already bound to CPU 0 and this was triggering a panic. MFC after: 3 days
* Fix regression introduced with NFSv4 ACL support - make acl_to_text(3)trasz2009-09-012-11/+12
| | | | | | | | | and acl_calc_mask(3) return error instead of crashing when acl passed to them is NULL. Submitted by: markus Reviewed by: rwatson MFC after: 3 days
* Add counters for the i7 architecture which were accidentally leftgnn2009-09-012-3/+82
| | | | | | | | | | out of the original commit of i7 support. These are all the counters on pages A-32 and A-33 of the _Intel(R) 64 and IA32 Architectures Software Developer's Manual Vol 3B_, June 2009. Almost all of these counters relate to operations on the L2 cache. Reviewed by: jkoshy MFC after: 1 month
* In case an upper layer protocol tries to send a packet but thebz2009-09-011-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | L2 code does not have the ethernet address for the destination within the broadcast domain in the table, we remember the original mbuf in `la_hold' in arpresolve() and send out a different packet with an arp request. In case there will be more upper layer packets to send we will free an earlier one held in `la_hold' and queue the new one. Once we get a packet in, with which we can perfect our arp table entry we send out the original 'on hold' packet, should there be any. Rather than continuing to process the packet that we received, we returned without freeing the packet that came in, which basically means that we leaked an mbuf for every arp request we sent. Rather than freeing the received packet and returning, continue to process the incoming arp packet as well. This should (a) improve some setups, also proxy-arp, in case it was an incoming arp request and (b) resembles the behaviour FreeBSD had from day 1, which alignes with RFC826 "Packet reception" (merge case). Rename 'm0' to 'hold' to make the code more understandable as well as diffable to earlier versions more easily. Handle the link-layer entry 'la' lock comepletely in the block where needed and release it as early as possible, rather than holding it longer, down to the end of the function. Found by: pointyhat, ns1 Bug hunting session with: erwin, simon, rwatson Tested by: simon on cluster machines Reviewed by: ratson, kmacy, julian MFC after: 3 days
* Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.trasz2009-09-011-2/+1
|
* Delete whitespace not in i386/pmap.cadrian2009-09-011-1/+0
|
* Fix mount reference leak when V_XSLEEP is specified to vn_start_write().kib2009-09-011-1/+1
| | | | Submitted by: tegge
* Reintroduce the r196640, after fixing the problem with my testing.kib2009-09-019-81/+127
| | | | | | | | | | | | | | | | | | | | | | | | | Remove the altkstacks, instead instantiate threads with kernel stack allocated with the right size from the start. For the thread that has kernel stack cached, verify that requested stack size is equial to the actual, and reallocate the stack if sizes differ [1]. This fixes the bug introduced by r173361 that was committed several days after r173004 and consisted of kthread_add(9) ignoring the non-default kernel stack size. Also, r173361 removed the caching of the kernel stacks for a non-first thread in the process. Introduce separate kernel stack cache that keeps some limited amount of preallocated kernel stacks to lower the latency of thread allocation. Add vm_lowmem handler to prune the cache on low memory condition. This way, system with reasonable amount of the threads get lower latency of thread creation, while still not exhausting significant portion of KVA for unused kstacks. Submitted by: peter [1] Discussed with: jhb, julian, peter Reviewed by: jhb Tested by: pho (and retested according to new test scenarious) MFC after: 1 week
* Migrate to use cpuset_t.adrian2009-09-011-5/+4
|
* o Document MALLOC_PRODUCTION knob.maxim2009-09-011-1/+7
| | | | | | PR: docs/136029 Submitted by: anonymous MFC after: 2 weeks
* Merge in the pat_works work from sys/i386/i386/pmap.c - primarily to reduceadrian2009-09-011-65/+74
| | | | diff size.
* Fix broken build.adrian2009-09-011-0/+1
|
* Revert previous commit; that was left-over junk in the tree.adrian2009-08-311-0/+2
|
* Shuffle pagezero() into the same location as in sys/i386/i386/pmap.c.adrian2009-08-312-18/+16
|
* Make sure rx descriptor ring align on 16 bytes. I guess theyongari2009-08-311-2/+4
| | | | | | | | | | alignment requirement could be multiple of 4 bytes but I think using descriptor size would make intention clearer. Previously the size of rx descriptor was not power of 2 so it caused panic in bus_dmamem_alloc(9). Reported by: Jeff Blank (jb000003 <> mr-happy dot com) MFC after: 3 days
* On resume in sta mode program the beacon timers so when roaming (andsam2009-08-311-1/+10
| | | | | | | | | | the previous ap is no longer in range) the device will deliver bmiss interrupts and trigger the state machine. Also arrange to sync the beacon timers on the next received beacon frame so that when we don't roam we re-synchronize with the ap. Tested by: trasz MFC after: 1 week
* This patch fixes the following issues:qingli2009-08-311-5/+48
| | | | | | | | | | | | - Routing messages are not generated when adding and removing interface address aliases. - Loopback route installed for an interface address alias is not deleted from the routing table when that address alias is removed from the associated interface. - Function in_ifscrub() is called extraneously. Reviewed by: gnn, kmacy, sam MFC after: 3 days
* Add NFSv4 ACL support to ls(1).trasz2009-08-311-52/+54
|
* Make the code more readable and fix chmod(1) on symlinks withtrasz2009-08-311-13/+15
| | | | NFSv4 enabled.
* Add regression test for ACLs on device files - mostly to maketrasz2009-08-311-0/+16
| | | | sure we don't crash on attempt to set ACL on them.
* Simplify pmap_change_attr() a bit:jhb2009-08-312-30/+9
| | | | | | | | - Always calculate the cache bits instead of doing it on-demand. - Always set changed to TRUE rather than only doing it if it is false. Discussed with: alc MFC after: 3 days
* Add support for INDEX-9 [1]dougb2009-08-311-3/+3
| | | | | | While I'm here, strip off support for FreeBSD 5.x. Submitted by: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> [1]
* Improve pmap_change_attr() so that it is able to demote a large (2/4MB)jhb2009-08-312-52/+181
| | | | | | | | | | | | | | | | | | | page into 4KB pages as needed. This should be fairly rare in practice on i386. This includes merging the following changes from the amd64 pmap: 180430, 180485, 180845, 181043, 181077, and 196318. - Add basic support for changing attributes on PDEs to pmap_change_attr() similar to the support in the initial version of pmap_change_attr() on amd64 including inlines for pmap_pde_attr() and pmap_pte_attr(). - Extend pmap_demote_pde() to include the ability to instantiate a new page table page where none existed before. - Enhance pmap_change_attr(). Use pmap_demote_pde() to demote a 2/4MB page mapping to 4KB page mappings when the specified attribute change only applies to a portion of the 2/4MB page. Previously, in such cases, pmap_change_attr() gave up and returned an error. - Correct a critical accounting error in pmap_demote_pde(). Reviewed by: alc MFC after: 3 days
* Partially revert 196524: this part of change should not be committed asdelphij2009-08-311-20/+25
| | | | | | part of the changeset - it's an unrelated one. Reported by: danfe
* Backport the 'dirtying dbuf' panic fix from newer ZFS version.pjd2009-08-314-22/+40
| | | | | Reported by: Thomas Backman <serenity@exscape.org> MFC after: 1 week
* Remove empty directory.pjd2009-08-310-0/+0
|
* Make it easier to find proper manual page for newer ServeRAID controllers.trasz2009-08-311-0/+5
|
* Manual page for mfiutil(8) is in section 8 now.trasz2009-08-311-2/+2
|
* Purge some non-useful mergeinfo that is a relic from a temporary USB2 namejhb2009-08-310-0/+0
| | | | for this file.
* Delete some empty mergeinfo.jhb2009-08-310-0/+0
|
* Make the mnt_writeopcount and mnt_secondary_writes counters,kib2009-08-311-2/+4
| | | | | | | | | | | | | | | | | used by the suspension code, not greater then mnt_ref reference counter value. Increment mnt_ref together with write counter in vn_start_write()/ vn_start_secondary_write(), releasing in vn_finished_write/vn_finished_secondary_write(). Since r186197, unmount code requires that no writers occured after all references are expired. We still could get write counter incremented for freed or reused struct mount, but it seems to be innocent, since corresponding vnode should be referenced and reclaimed then. Reported by: pho (last half a year), erwin Reviewed by: attilio Tested by: pho, erwin MFC after: 1 week
* Remove spurious pfs_unlock().kib2009-08-311-1/+0
| | | | | | PR: kern/137310 Reviewed by: des MFC after: 3 days
* As part of r196609, a call to "rtalloc" did not take the fib intoqingli2009-08-311-1/+1
| | | | | | | | account. So call the appropriate "rtalloc_ign_fib()" instead of calling "rtalloc_ign()". Reviewed by:i pointed out by bz MFC after: immediately
* Add missing mountpoint vnode locking.pjd2009-08-301-0/+5
| | | | | | | This fixes panic on assertion with DEBUG_VFS_LOCKS and vfs.usermount=1 when regular user tries to mount dataset owned by him. MFC after: 1 week
* add core dump support to blkfrontkmacy2009-08-301-2/+87
| | | | Obtained from: Frank Suchomel
* Fix build with INVARIANTS.mav2009-08-301-1/+1
|
* Short ATA command format has 28bit address, not 36bit.mav2009-08-305-14/+14
| | | | | | Rename ata_36bit_cmd() into ata_28bit_cmd(), while it didn't become legacy. MFC after: 2 days
* MFp4:mav2009-08-301-27/+120
| | | | | | | - Tune protocol version reporting, - Add supported DMA/PIO modes reporting. - Fix IDENTIFY for ATAPI devices. - Remove confusing "-" for NCQ status.
* ATA_FLUSHCACHE is a 36bit format command, not 48.mav2009-08-301-4/+4
|
* MFp4:mav2009-08-303-56/+196
| | | | | | | | | | | - Add Command Completion Coalescing support. - Add SNTF support. - Add two more power management modes (4, 5), implemented on driver level. - Fix interface mode setting. - Reduce interface reset time. - Do not report meaningless protocol/transport versions. - Report CAP2 register content. - Some performance optimizations.
* MFp4:mav2009-08-301-5/+31
| | | | | - Add SNTF support. - Do not report meaningless transport/protocol versions.
* Fix the reference for the IPV6_V6ONLY option. This option is describedmotoyuki2009-08-301-1/+1
| | | | | | | | in RFC 3493, not 3542. PR: docs/134127 Submitted by: Kenji Rikitake <kenji.rikitake@acm.org> MFC after: 2 weeks
* Make sure FreeBSD binaries without .note.ABI-tag section workbz2009-08-305-10/+19
| | | | | | | | | | | | | | | | | | | | | correctly and do not match a colliding Debian GNU/kFreeBSD brandinfo statements. For this mark the Debian GNU/kFreeBSD brandinfo that it must have an .note.ABI-tag section and ignore the old EI_OSABI brandinfo when comparing a possibly colliding set of options. Due to SYSINIT we add the brandinfo in a non-deterministic order, so native FreeBSD is not always first. We may want to consider to force native FreeBSD to come first as well. The only way a problem could currently be noticed is when running an i386 binary without the .note.ABI-tag on amd64 and the Debian GNU/kFreeBSD brandinfo was matched first, as the fallback to ld-elf32.so.1 does not exist in that case. Reported and tested by: ticso In collaboration with: kib MFC after: 3 days
* Fix the problem that the entry broke into two lines with multi-byteume2009-08-303-12/+24
| | | | | | AM/PM format. Reported by: takawata
* AM/PM date format for ja_JP.eucJP and ja_JP.SJIS wereume2009-08-301-4/+2
| | | | | localized by r193869. However, ja_JP.UTF-8 wasn't. So, reflect it to ja_JP.UTF-8 as well.
* Prevents pam_lastlog from segfaulting on session close when tty is null.jon2009-08-301-0/+5
| | | | MFC after: 1 month
* Prefix on-link verification is being performed on staticallyqingli2009-08-301-0/+9
| | | | | | | | | | configured prefixes. Since these statically configured prefixes do not have any associated advertising routers, these prefixes are treated as unreachable and those prefix routes are deleted from the routing table. Therefore bypass prefixes that are not learned from router advertisements during prefix on-link check. Reviewed by: hrs
OpenPOWER on IntegriCloud