summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove pathlen argument from write_entry function. It has never been used.cperciva2007-03-171-5/+2
| | | | | Approved by: kientzle MFC after: 3 days
* - Turn all explicit giant acquires into conditional VFS_LOCK_GIANTs.jeff2007-03-177-644/+236
| | | | | | | | | | | | | | | Only ops which used namei still remained. - Implement a scheme for reducing the overhead of tracking which vops require giant by constantly reducing the number of recursive giant acquires to one, leaving us with only one vfslocked variable. - Remove all NFSD lock acquisition and release from the individual nfs ops. Careful examination has shown that they are not required. This greatly simplifies the code. Sponsored by: Isilon Systems, Inc. Discussed with: rwatson Tested by: kkenn Approved by: re
* - Cast the intermediate value in priority computtion back down tojeff2007-03-171-1/+1
| | | | | | | | | unsigned char. Weirdly, casting the 1 constant to u_char still produces a signed integer result that is then used in the % computation. This avoids that mess all together and causes a 0 pri to turn into 255 % 64 as we expect. Reported by: kkenn (about 4 times, thanks)
* Fix long delay closing/syncing issues on mmaped buffer.ariff2007-03-172-4/+8
|
* Update postfix MTA selection code to point at postfix 2.3 which is thesimon2007-03-171-1/+1
| | | | | | | | current version. PR: misc/110447 Submitted by: Chris Fletcher <fletch.AT.brightsparks.net.au> MFC after: 1 week
* Fix logic bug; we want to do_chdir if arg doesn't start with / _and_ itcperciva2007-03-171-1/+1
| | | | | | | | doesn't start with @/ either. This unbreaks "tar -c -C /no/such/directory @/path/to/archive". MFC after: 3 days
* Don't forget to increment the raw_position (bytes written) counter, evencperciva2007-03-171-0/+1
| | | | | | | when operating in non-buffered mode. Pointy hat to: cperciva MFC after: 3 days
* Unbreak IPv6 after consolidation of TCP options insertion.andre2007-03-171-3/+2
| | | | Submitted by: tegge
* Fix the most obvious of the bugs introduced by recent syncache changeskmacy2007-03-171-0/+3
| | | | | | | | - *ip is not initialized in the case of inet6 connection, but ip->ip_len is being changed anyway Now the question is, why does it think an ipv4 connection is an ipv6 connection? xemacs still doesn't work over X11 forwarding, but the kernel no longer panics.
* - Moved the uninitialized variables from the data to the bss section.kato2007-03-173-14/+19
| | | | - Fixed typos in comment.
* move inline function above use so that -O workskmacy2007-03-171-20/+18
|
* o Add ENVIRONMENT section and mention there that TMPDIR is ignoredmaxim2007-03-161-1/+14
| | | | | | | | when issetugid(3) is true. PR: docs/108346 Obtained from: OpenBSD MFC after: 1 week
* Revert/re-make previous commit in a manner that maintains hyphenation ofrwatson2007-03-161-3/+4
| | | | | | | extended attributes. I'm not sure I like it, but it is grammatically more correct. Requested by: mckusick
* [stage: 9/9]ariff2007-03-163-14/+160
| | | | | | | | | | | | | | | | | | | | - SWAPLR quirk for (unknown, luckily it is mine) broken uaudio stick. Fixing by rewiring is impossible without damaging it. Luckily, we can fix it using "other" methods :) . - Add uaudio_get_vendor(), _product() and _release() in uaudio.c (currently used by uaudio_pcm quirk). - Implement CHANNEL_SETFRAGMENTS(). - Drop channel locking in few places where it is about to sleep somewhere. This should help eliminating illegal locking acquisition where the current thread is about to sleep, and also few deadlock cases. Dropping it right here is quite safe since it is already protected by CHN_F_BUSY flag and other threads won't bother to touch it. Solving other illegal locking issues are quite tricky without converting most usbd_do_request() calls to its equivalent _async() calls, which I intend to do it later after getting full test report from other people with different uaudio hardwares. - Fix memory leak issues during detach. This seems common to any drivers (notably emu10kx, csapcm?) with bridge functions.
* [stage: 8/9]ariff2007-03-164-69/+213
| | | | | | | Implement CHANNEL_SETFRAGMENTS() for snd_atiixp, snd_es137x, snd_hda and snd_via8233. CHANNEL_SETBLOCKSIZE() will basically call CHANNEL_SETFRAGMENTS() internally using conservative blocksize / blockcount hints. Other drivers will be converted later.
* [stage: 7/9]ariff2007-03-161-1/+1
| | | | EWOULDBLOCK -> EAGAIN.
* [stage: 6/9]ariff2007-03-161-115/+147
| | | | | | | - Disable stray buffer management, since sample size aligned buffering are pretty much guaranteed through out the entire feeder_* chain processes. - Few style(9) cleanups.
* [stage: 5/9]ariff2007-03-163-1252/+1225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | channel.c/channel_if.m: - Macros cleanups, prefer inlined min() over MIN(). - Rework chn_read()/chn_write() for better dead interrupt detection policy. Reduce scheduling overhead by doing pure 5 seconds sleep before giving up, instead of several cycle of brute micro sleeping. - Avoid calling wakeup_one() for non-sleeping channel (for example, vchan parent channel). - EWOULDBLOCK -> EAGAIN. - Fix possible divide-by-zero panic on chn_sync(). - Re-enforce ^2 blocksize policy, since there are too many broken userland apps that blindly assume it without even trying to do serious calculations. - New channel method - CHANNEL_SETFRAGMENTS(), a refined version of CHANNEL_SETBLOCKSIZE(). It accept _both_ blocksize and blockcount arguments, so the driver internals will have better hints for buffering and timing calculations. - Hook FEEDER_SWAPLR into feederchain building process. feeder_fmt.c: - Unified version of various filters, avoiding duplications. - malloc()less feeder_fmt. Informations can be retrieved dynamically by doing table lookup on static data. For cases such as converting from stereo to mono or reducing bit depth where input data is larger than output, cycle remaining available free space until it has been exhausted and start kicking 8 bytes reservoir space from there to complete the remaining requested count. - Introduce FEEDER_SWAPLR. Few super broken hardwares (found on several extremely cheap uaudio stick, possibly others) mistakenly wired left and right channels wrongly, screwing output or input.
* [stage: 4/9]ariff2007-03-164-32/+64
| | | | | | | | - Rearrange FEEDER_* constants starting from 0 to 31, so the future additions will be much easier and consistent. - Introduce FEEDER_SWAPLR. Few super broken hardwares (found on several extremely cheap uaudio stick, possibly others) mistakenly wired left and right channels wrongly, screwing output or input.
* [stage: 3.2/9]ariff2007-03-161-91/+76
| | | | | | | malloc()less feeder_vchan. Informations can be retrieved dynamically by doing table lookup on static data. Reduce mixing overhead by doing direct copy on first channel. Mixing process will begin starting from second channel onwards.
* [stage: 3.1/9]ariff2007-03-161-106/+67
| | | | | | malloc()less feeder_volume. Informations can be retrieved dynamically by doing table lookup on static data. Increase resolution from 6bit to PCM_FXSHIFT (8bit) for better resolution and finer volume changes.
* [stage: 2/9]ariff2007-03-161-2/+2
| | | | Use inlined min() rather than MIN() macross.
* [stage: 1/9]ariff2007-03-161-34/+46
| | | | | | | - Convert sx lock to plain mutex. Since the access of /dev/sndstat is pretty much exclusive and protected by toggling sndstat_isopen, plain mutex is more than enough. - Enable SBUF_AUTOEXTEND to avoid buffer truncation.
* Remove an extra "The".bmah2007-03-161-1/+1
| | | | MFC after: 3 days
* Remove unused and #if 0'd net.inet.tcp.tcp_rttdflt sysctl.rwatson2007-03-162-12/+0
|
* Minor white space tweaks in comments.rwatson2007-03-162-15/+15
|
* - Add cxgb(4) entry, remove stale wx(4) entrybrueffer2007-03-161-39/+39
| | | | | | | - (gigabit|fast) ethernet -> (Gigabit|Fast) Ethernet Approved by: rwatson (mentor) MFC after: 3 days
* Imagine a situation where:pjd2007-03-161-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # ls -ld /mnt/{foo,bar} drwxr-xr-x 3 root wheel 512 Mar 16 06:56 /mnt/bar lrwxr-xr-x 1 root wheel 3 Mar 16 12:10 /mnt/foo -> bar # grep /mnt/foo /etc/fstab /dev/da1 /mnt/foo ufs rw 0 0 Which means, we give symbolic link as a mount point to mount(8), but mount(8) use realpath(3) before mounting the file systems, so we get: # mount | grep /dev/da1 /dev/da1 on /mnt/bar (ufs, local) Before the commit: # snapinfo /mnt/foo usage: snapinfo [-v] -a snapinfo [-v] mountpoint # snapinfo /mnt/bar /mnt/bar/snap This commit makes snapinfo(8) to first realpath(3) the given mount point and now we have: # snapinfo /mnt/foo /mnt/bar/snap # snapinfo /mnt/bar /mnt/bar/snap
* Replace xfer->act.hand with xfer->hand.simokawa2007-03-168-36/+34
|
* Remove retry_count.simokawa2007-03-162-3/+0
|
* * Remove xfer->retry_req.simokawa2007-03-168-45/+4
| | | | | It is unnecessary because retry is done by OHCI. Further retry should be done by applications.
* Less verbose debug messages.simokawa2007-03-161-3/+3
|
* Detect cycle lost.simokawa2007-03-162-0/+19
|
* Mention a limitation that was inherted from RFC1952, makingdelphij2007-03-161-1/+9
| | | | | | | | it impossible to obtain correct file size from a file that is larger than 4GB before compression. PR: bin/110329 MFC after: 1 week
* Pass special device to the ufs_disk_fillout() function, instead of mountpjd2007-03-161-12/+9
| | | | | | point path. This way we properly handle the case when file system listed in /etc/fstab was unmounted and another file system was mounted on the same mount point.
* The ufs_disk_fillout(3) can take special device name (with or without /dev/pjd2007-03-161-7/+36
| | | | | | | | | | | | | | | | | | | | | | | prefix) as an argument and mount point path. At the end it has to find device name file system is stored on, which means when mount point path is given, it tries to look into /etc/fstab and find special device corresponding to the given mount point. This is not perfect, because it doesn't handle the case when file system is mounted by hand and mount point is given as an argument. I found this problem while trying to use snapinfo(8), which passes mount points to the ufs_disk_fillout(3) function, but I had file system mounted manually, so snapinfo(8) was exiting with the error below: ufs_disk_fillout: No such file or directory I modified libufs(3) to handle those arguments (the order is important): 1. special device with /dev/ prefix 2. special device without /dev/ prefix 3. mount point listed in /etc/fstab, directory exists 4. mount point listed in /etc/fstab, directory doesn't exist 5. mount point of a file system mounted by hand
* Print warning for large DFLTPHYS.simokawa2007-03-161-0/+5
|
* Fix support for ASUS A7T ALC882 laptop (gpio0 quirk).ariff2007-03-161-0/+3
| | | | Reported/Tested by: cognet
* Support MAXPHYS up to 512KBsimokawa2007-03-161-2/+3
| | | | | | | | | - We need at least two OCBs with indirect pointers allocated in a 4KB page. - SBP_MAXPHYS can increase to 1MB once we separate management OCB/ORB which usually does not need indirect pointers. - We have to increase SBP_DMA_SIZE for MAXPHYS larger than 1MB. MFC after: 3 days
* Just use 'fdrop()' instead of 'FILE_LOCK(); fdrop_locked()' injhb2007-03-151-10/+4
| | | | | dupfdopen(). While I'm at it, move the second fdrop() out from under the filedesc lock.
* - Bring upgrade produce up-to-date for OpenSSL 0.9.8e.simon2007-03-151-2/+3
| | | | - Add reminder to bump version numer in Makefile.inc.
* This commit was generated by cvs2svn to compensate for changes in r167617,simon2007-03-151-1/+1
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import fix from upstream OpenSSL_0_9_8-stable branch:simon2007-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | EVP_CIPHER_CTX_key_length() should return the set key length in the EVP_CIPHER_CTX structure which may not be the same as the underlying cipher key length for variable length ciphers. This fixes problems in OpenSSH using some ciphers, and possibly other applications. See also: http://bugzilla.mindrot.org/show_bug.cgi?id=1291
* | Upgrade to OpenSSL 0.9.8e.simon2007-03-15281-603/+606
| |
* | Resolve conflicts after import of OpenSSL 0.9.8e.simon2007-03-1511-48/+51
| |
* | This commit was generated by cvs2svn to compensate for changes in r167612,simon2007-03-15192-757/+4053
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of OpenSSL 0.9.8e.simon2007-03-15203-805/+4104
| |
* | Spring cleanup on irrelevant NULL checking over M_WAITOK allocations.ariff2007-03-156-47/+3
| |
* | - Put some sanity break statement in few missing places.ariff2007-03-151-6/+4
| | | | | | | | - Remove NULL checking on snd_mtxcreate() (M_WAITOK) .
* | NOOP (for now) for hdac_dma_nocache(). It is a wrong way to enforceariff2007-03-151-1/+3
| | | | | | | | | | | | | | | | cache coherency, besides of causing train wreck in other places (especially on amd64, possibly on i386). Discussed with: kib@, rafan@ Tested by: rafan@
OpenPOWER on IntegriCloud