summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct two issues in ping6:mtm2007-04-191-19/+68
| | | | | | | | | | | | | | | | | | | | 1. The static buffer that ping6(8) uses to hold the control data it gets from recvmsg(2) is too small in some cases. 2. When it prints the extra header information it doesn't do any checking to make sure the data it's printing is within the bounds of the supplied buffer. Fix this by: o Increasing the buffer to hold extra headers to 10240 bytes (the minimum according to RFC3542 sec. 20.1) and allocate it dynamically. o In verbose mode, specify a warning if any control data from recvmsg(2) was truncated because the buffer was too small. o When printing the extra headers make sure not to overrun the buffer boundaries. Reviewed By: mlaier PR: kern/99425 MFC After: 1 month
* Zero the CCBs when mallocing them.scottl2007-04-191-2/+2
|
* Split the camisr into per-SIM done queues. This optimizes the locking ascottl2007-04-193-45/+49
| | | | | little bit and allows for direct dispatch of the doneq from certain contexts that would otherwise face recursive locking problems.
* - Add new 'a' and 'j' options into usagerafan2007-04-191-1/+1
| | | | | Approved by: delphij (mentor, implicit) Forgotten by: stas ('a') and rafan ('j')
* Grammer correction from: emastephk2007-04-191-1/+1
|
* - AC97 quirk / patch cleanups. Most quirks doesn't work in general senseariff2007-04-194-20/+59
| | | | | | | | | | and should only be applied on certain specific card / vendor, hence the addition of ac97_getsubvendor(). - Fix low volume issue on several MSI laptops through ALC655 quirk. Reported/Tested by: Christian Mueller <raptor-freebsd-multimedia@xpls.de> MFC after: 1 week
* - Fix mbuf/node leakage in drivers' raw_xmit().sephe2007-04-194-14/+39
| | | | | | | | | | - For ural(4): o Fix node leakage in ural_start(), if ural_tx_mgt() fails. o Fix mbuf leakage in ural_tx_{mgt,data}(), if usbd_transfer() fails. o In ural_tx_{mgt,data}(), set ural_tx_data.{m,ni} to NULL, if usbd_transfer() fails, so they will not be freed again in ural_stop(). Approved by: sam (mentor)
* - More work on making send lock contention.rrs2007-04-1911-88/+214
| | | | | | | | | | | | | | | | | | | | - Removed free-oqueue cache. - Fix counter for sq entries - Increased the amount of information retained on ASOC_TSN logging on the association. - Made it so with the ASOC_TSN logging on sending or recieving an abort we dump the log. - Went through and added invariant's around some panic's that needed them. - decrements went to atomic_subtact_int instead of add -1 - Removed residual count increment that threw off a strm oq count. - Tracks and complaints if we don't have a LAST fragment and clean up the sp structure. - Track a new stat that counts number of abandoned msgs that happen if you close without reading. - Fix lookup of frag point to be aware of a 0 assoc-id. Reviewed by: gnn
* Loosen return value spec for fputs to be standards compliant so peoplephk2007-04-191-5/+2
| | | | don't program against our more restrictive behaviour.
* style nitphk2007-04-191-1/+2
|
* Fix witness(4) warnings about mutex use.jkoshy2007-04-194-20/+40
| | | | | | | | | | | | | | | | | | Group mutexes used in hwpmc(4) into 3 "types" in the sense of witness(4): - leaf spin mutexes---only one of these should be held at a time, so these mutexes are specified as belonging to a single witness type "pmc-leaf". - `struct pmc_owner' descriptors are protected by a spin mutex of witness type "pmc-owner-proc". Since we call wakeup_one() while holding these mutexes, the witness type of these mutexes needs to dominate that of "sleepq chain" mutexes. - logger threads use a sleep mutex, of type "pmc-sleep". Submitted by: wkoszek (earlier patch)
* Valid error codes for err() and errx() are 1..255.des2007-04-192-27/+29
| | | | The correct format specifier for ssize_t is %zd.
* Add more tests to verify last sendfile(2) breakage: test sending morepjd2007-04-191-3/+38
| | | | than a page size and nbytes=0.
* Fix a bug in sendfile(2) when files larger than page size and nbytes=0.pjd2007-04-191-2/+2
| | | | | | | When nbytes=0, sendfile(2) should use file size. Because of the bug, it was sending half of a file. The bug is that 'off' variable can't be used for size calculation, because it changes inside the loop, so we should use uap->offset instead.
* Correct contigmalloc2()'s implementation of M_ZERO. Specifically,alc2007-04-191-1/+1
| | | | | | | | | contigmalloc2() was always testing the first physical page for PG_ZERO, not the current page of interest. Submitted by: Michael Plass PR: 81301 MFC after: 1 week
* Correct two comments.alc2007-04-191-2/+2
| | | | Submitted by: Michael Plass
* Bump the interrupt storm detection counter to 1000. My slow fileservernjl2007-04-192-5/+6
| | | | | | | | | | | gets a bogus irq storm detected when periodic daily kicks off at 3 am and disconnects the disk. Change the print logic to print once per second when the storm is occurring instead of only once. Otherwise, it appeared that something else was causing the errors each night at 3 am since the print only occurred the first time. Reviewed by: jhb MFC after: 1 week
* Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).yar2007-04-183-3/+45
| | | | | | | | | | | | | | The support for RFC 2640 (UTF8) is optional and rudimentary. The server just advertises its capability to handle UTF-8 file names and relies on its own 8-bit cleanness, as well as on the backward compatibility of UTF-8 with ASCII. So uploaded files will have UTF-8 names, but the initial server contents should be prepared in UTF-8 by hand, no on-the-fly conversion of file names will be done. PR: bin/111714 Submitted by: Zhang Weiwu <see email in the PR> MFC after: 1 week
* Fix style(9) and comments.jkim2007-04-181-12/+16
| | | | Submitted by: Scot Hetzel (swhetzel at gmail dot com)
* sndbuf_alloc() now accept dmaflags argument which will be forwarded toariff2007-04-1828-35/+38
| | | | | internal bus_dmammem_alloc() for greater flexibility on setting up DMA / page attributes.
* Break ABI / module compatibility for the upcoming sndbuf_alloc() changes.ariff2007-04-181-3/+3
|
* Make tcp_twrespond() use tcp_addoptions() instead of a home grown version.andre2007-04-182-22/+12
|
* style(9) says sizeof's are not be followed by a space. Fix them.jkim2007-04-181-3/+3
|
* Implement settimeofday() for Linuxulator/amd64.jkim2007-04-182-1/+27
| | | | Submitted by: Scot Hetzel (swhetzel at gmail dot com)
* Notes on the acct(5) format switch.dds2007-04-181-0/+11
|
* Change the export option from -w (write) to -X.dds2007-04-182-15/+15
| | | | | | | While implementing import it became apparent that write as a mnemonic is ambiguous and confusing. MFC after: 8 days
* MFp4: Fix automatic snapshot mount when unprivileged user does lookuppjd2007-04-182-14/+16
| | | | | | | | | | | | on a snapshot directory: - Remove PRIV_VFS_MOUNT check - regular users can mount snapshots via lookups on snapshot directory. - Reset mount credential to kcred, so user won't be able to unmount the snapshot. - Reset owner uid. - Unlock vnode in case of a failure. Reported by: simokawa
* MFp4: We check for PRIV_VFS_MOUNT already in mount(2) syscall and we don'tpjd2007-04-182-8/+0
| | | | | want to do the check when snapshot is automatically mounted by an unprivileged user doing lookup on a snapshot directory.
* Quick kill posix4 directory.trhodes2007-04-182-7/+1
| | | | Submitted by: rodrigc (BSD.include.dist).
* On AMD's Geode LX: Force the TSC to run through core-suspension so we canphk2007-04-181-0/+8
| | | | | | use it as a timecounter. Sponsored by: Soekris Engineering
* Complain on write errors.dds2007-04-181-2/+6
| | | | | | Use correct type for write_text. MFC after: 8 days
* Add export capability through the new -w flag.dds2007-04-182-7/+57
| | | | | Discussed in: -arch MFC after: 8 days
* Missed locking the dump and shutdown entry points in the scsi_da driver.scottl2007-04-181-2/+9
|
* Revert a driver API change to xpt_alloc_ccb that isn't necessary. Fix ascottl2007-04-187-24/+35
| | | | couple of associated error checks.
* Ignore trailing '/' when comparing pathnames, so thatkientzle2007-04-181-3/+26
| | | | | "tar -u" works again. Otherwise, "tar -u" wants to treat every dir as new and re-adds it.
* When testing basic functionality, strip trailing '/' fromkientzle2007-04-181-3/+3
| | | | dir names, so they match the names generated by 'find'.
* Don't reinitialize the hardware if only PROMISC flag was changed.yongari2007-04-182-4/+13
| | | | | | | | | | Previously whenever PROMISC mode turned on/off link renegotiation occurs and it could resulted in network unavailability for serveral seconds.(Depending on switch STP settings it could last several tens seconds.) Reported by: Prokofiev S.P. < proks AT logos DOT uptel DOT net > Tested by: Prokofiev S.P. < proks AT logos DOT uptel DOT net >
* Add support for hw-assisted checksums on 6105M.phk2007-04-174-34/+144
| | | | Sponsored by: Soekris Engineering
* Simplify.pjd2007-04-172-8/+0
|
* Fix build breakage. Most of ZFS code is also compiled in userland and Ipjd2007-04-172-0/+2
| | | | should really stop forgetting about that.
* - Fix a leftover - vfs_mount_alloc() is now exported properly.pjd2007-04-172-8/+10
| | | | | | | | This fixes stange panics when listing .zfs/snapshot/ directory for me. Reported by: simokawa Reported by: Johan Hendriks <Johan@double-l.nl> - Hide cache_purge() under FREEBSD_NAMECACHE like in other files. - Protect mnt_flag with mount interlock.
* Export vfs_mount_alloc() as it is used in ZFS.pjd2007-04-172-3/+3
|
* Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and i386 byjhb2007-04-172-0/+10
| | | | | | | | mapping the pages as UC (uncacheable) using pmap_change_attr(). MFC after: 1 week Requested by: ariff Reviewed by: scottl
* Ignore hostid check for root-on-ZFS configurations. Making hostid availablepjd2007-04-172-2/+10
| | | | | | | before the root is mounted is tricky and having it in /boot/ is not really desire. Reported by: Zephiris <zephiris@gmail.com>
* No need to throw tag+handle around on the stack.phk2007-04-174-36/+14
|
* o Add missed w/space in the error message.maxim2007-04-171-1/+1
| | | | | Spotted by: Ivan Voras MFC after: 1 week
* Link libzpool, ztest and zdb against libpthread.pjd2007-04-174-8/+8
| | | | Requested by: ru
* When we run into the syncache entry limits syncache_add() triesandre2007-04-171-2/+2
| | | | | | | | | to free the oldest entry in the current bucket row. The global entry limit may be smaller than the bucket rows and their limit combined however. Thus only try to free a syncache entry if we found one in this bucket row. Reported by: kris
* When trying to allocate a PnP BIOS memory resource, the code loops tryingjhb2007-04-171-1/+1
| | | | | | | to move up the start address until the allocation succeeds. If the alignment of the resource was 0, then the code would keep trying the same request in an infinite loop and hang. Force the request to always move start up by at least 1 byte each time through the loop.
* Change $P4$ ID strings to P4 ID strings so that they are not auto-expandedrwatson2007-04-174-4/+4
| | | | | when integrated back into Perforce. This avoids unnecessary conflicts during the loopback of files maintained in Perforce.
OpenPOWER on IntegriCloud