ƒ·g171181 155 1104 426 313 460 241 426 271 299 623 497 586 583 403 473 994 340 314 189 214 420 585 752 441 367 222 262 243 584 1421 172 168 192 313 171 197 210 1201 465 465 164 229 203 802 270 252 1561 173 178 176 274 269 166 246 254 196 152 168 288 202 172 218 179 299 271 364 407 306 161 219 272 290 250 351 203 251 203 191 179 256 137 244 269 984 177 384 160 224 287 254 295 411 229 272 211 251 329 775 231 361 584 301 180 519 519 217 222 438 387 1156 343 406 699 564 249 851 147 200 297 709 485 549 334 402 266 132 355 185 666 289 476 194 268 313 283 190 257 785 200 174 359 249 116 237 174 133 139 469 512 232 611 182 241 204 217 435 K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-03T17:42:37.000000Z K 7 svn:log V 1010 Since rev. 1.199 of sys/kern/kern_conf.c, the thread that calls destroy_dev() from d_close() cdev method would self-deadlock. devfs_close() bump device thread reference counter, and destroy_dev() sleeps, waiting for si_threadcount to reach zero for cdev without d_purge method. destroy_dev_sched() could be used instead from d_close(), to schedule execution of destroy_dev() in another context. The destroy_dev_sched_drain() function can be used to drain the scheduled calls to destroy_dev_sched(). Similarly, drain_dev_clone_events() drains the events clone to make sure no lingering devices are left after dev_clone event handler deregistered. make_dev_credf(MAKEDEV_REF) function should be used from dev_clone event handlers instead of make_dev()/make_dev_cred() to ensure that created device has reference counter bumped before cdev mutex is dropped inside make_dev(). Reviewed by: tegge (early versions), njl (programming interface) Debugging help and testing by: Peter Holm Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-03T17:43:20.000000Z K 7 svn:log V 333 Automatically detect deadlock condition in destroy_dev(), that is, if destroy_dev() is called from csw method, and no d_purge driver method is provided. Transform the direct call to destroy_dev() into destroy_dev_sched(). Reviewed by: njl (programming interface) Debugging help and testing by: Peter Holm Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-03T17:43:56.000000Z K 7 svn:log V 220 Use make_dev_credf(MAKEDEV_REF) instead of make_dev() from snp clone handler. Drain clone events and cdev destruction from the module unload handler. Debugging help and testing by: Peter Holm Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-03T17:44:59.000000Z K 7 svn:log V 367 Use make_dev_credf(MAKEDEV_REF) instead of make_dev() from the clone handler. Lock Giant in the clone handler. Use destroy_dev_sched() explicitely from pty_maybecleanup() and postpone pty_release() until both master and slave cdevs are destroyed by setting it as callback for destroy_dev_sched(). Debugging help and testing by: Peter Holm Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-03T17:45:52.000000Z K 7 svn:log V 148 Use make_dev_credf(MAKEDEV_REF) instead of make_dev() from pty clone handler. Debugging help and testing by: Peter Holm Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-03T17:46:37.000000Z K 7 svn:log V 333 Lock Giant and proctree lock around dereferencing p_session->s_ttyvp->v_rdev. Lock cdev mutex too to close the race with tty being freed. Relock clone_drain_lock to prevent the LOR with proctree lock, thus add #include . Suggested by: tegge Debugging help and testing by: Peter Holm Approved by: re (kensmith) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-07-03T17:49:32.000000Z K 7 svn:log V 174 Use the -n flag on ifconfig so that dhclient does not cause the kernel module to be reloaded when the interface is torn down. Reviewed by: brooks Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-03T18:18:30.000000Z K 7 svn:log V 206 Rev. 1.204 and 1.205 got an erronous version of destroy_dev() that calls destroy_dev_sched() with cdev mutex locked. Commit the code that was actually tested. Pointy hat to: kib Approved by: re (implicit) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-03T18:30:55.000000Z K 7 svn:log V 530 Fix up NFS client write error handling. Errors are split into recoverable and unrecoverable. For the former, we redirty the buffer and hang onto it for future retries. For the latter (eg. ESTALE), we discard the buffer and return the error back to the user on the next syscall. This fixes a number of vfs panics and fixes having a large number of dirty buffers (that cannot be written out and reclaimed) from hanging around. Thanks to ups@ for discussions on this issue. Reported by: kris, Kai, others Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-03T18:31:47.000000Z K 7 svn:log V 404 Fix for a race where out of order loading of NFS attrs into the nfsnode could lead to attrs being stale. One example (that we ran into) was a READDIR+, WRITE. The responses came back in order, but the attrs from the WRITE were loaded before the attrs from the READDIR+, leading to the wrong size from being read on the next stat() call. MFC after: 1 week Submitted by: mohans Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-03T18:37:06.000000Z K 7 svn:log V 493 Tweak the low-level MI SMP code some: - Use cpu_spinwait() in the spin loops in stop_cpus(), restart_cpus(), and smp_rendezvous_action(). - Remove unneeded acq memory barriers in stop_cpus(), restart_cpus(), and smp_rendezvous_action(). - Add an additional synch point in smp_rendezvous() to ensure that all the CPUs will always see an up-to-date value of smp_rv_setup_func. Reviewed by: attilio Approved by: re (kensmith) Tested on: alpha, amd64, i386, sparc64 SMP (for several years) END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-07-03T20:35:07.000000Z K 7 svn:log V 488 MFC rp.c rev 1.73 Fix Rocketport so that it does not crash the system when a device pointer changes for example: (From Craig Leres): tip to a rocketport line run "/etc/rc.d/devfs restart" exit tip (wait for the system to reboot) Thanks to Robert Watson for poking me to fix this. PR: kern/109152 Approved by: imp (mentor) Approved by: re (kensmith) Reviewed by: jhb Submitted by: Craig Leres Approved by: imp (mentor, implicit) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2007-07-03T21:22:58.000000Z K 7 svn:log V 309 - Remove explicit Giant protection from lockf. Use the vnode interlock to protect this datastructure instead. - Preallocate an extra lockf structure in case we want to split a lock on insert or delete. - msleep() on the vnode interlock when blocking on a lock. Reviewed by: rwatson Approved by: re END K 10 svn:author V 4 jeff K 8 svn:date V 27 2007-07-03T21:26:06.000000Z K 7 svn:log V 379 - Use explicit locking in the various fcntl case statements so that we can acquire shared filedescriptor locks in the appropriate cases. - Remove Giant from calls that issue ioctls. The ioctl path has been mpsafe for some time now. - Only acquire giant for VOP_ADVLOCK when the filesystem requires giant. advlock is now mpsafe. Reviewed by: rwatson Approved by: re END K 10 svn:author V 3 scf K 8 svn:date V 27 2007-07-04T00:00:41.000000Z K 7 svn:log V 901 Significantly reduce the memory leak as noted in BUGS section for setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-04T00:18:39.000000Z K 7 svn:log V 248 Temporary disconnect i4bing, i4bisppp and i4bipr from the build for the 7.0 timeframe. This is needed because I4B is not locked and NET_NEEDS_GIANT goes away. The plan is to lock I4B and bring everything back for 7.1. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T00:55:50.000000Z K 7 svn:log V 219 Fix missing prototype warnings. (Compile errors with -Werror on) When using namespace.h/un-namespace.h, you use _ versions of syscalls. Change getsockopt() to _getsockopt() and same for setsockopt(). Approved by: re END K 10 svn:author V 3 gnn K 8 svn:date V 27 2007-07-04T01:03:48.000000Z K 7 svn:log V 97 Remove a last, dangling, file from the Kame IPsec code. Approved by: re Spotted by: rwatson, bz END K 10 svn:author V 6 avatar K 8 svn:date V 27 2007-07-04T03:44:57.000000Z K 7 svn:log V 118 Reintroducing !INET6 + IPSEC building fix which was accidentally reverted in rev. 1.1229. Approved by: re (kensmith) END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-04T04:04:42.000000Z K 7 svn:log V 325 MFC (revision 1.10): Fix no-sound issues with ASUS A9T notebook. Note: The offending quirk should have been made model/codec specific, but since there were no records / log which model requires it, the quirk logic had to be inverted (blacklist instead of whitelist). Tested by: Arkadiy Dudevitch END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-04T04:05:22.000000Z K 7 svn:log V 490 MFC: Revisions: 1.43 src/sys/dev/sound/pci/hda/hdac.c 1.7 src/sys/dev/sound/pci/hda/hdac_private.h - Fix input/microphone support for ASUS A8N-VMCSM series. Submitted by: Simon Schubert - Defer flushing unsolicited response into taskqueue thread rather than handle it directly in interrupt handler, since few of its operations (like measuring/calibrating jack impedance) are quite expensive. - Misc. debugging cleanups. Tested by: joel END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-04T06:56:58.000000Z K 7 svn:log V 659 Since cdev mutex is after system map mutex in global lock order, free() shall not be called while holding cdev mutex. devfs_inos unrhdr has cdev as mutex, thus creating this LOR situation. Postpone calling free() in kern/subr_unit.c:alloc_unr() and nested functions until the unrhdr mutex is dropped. Save the freed items on the ppfree list instead, and provide the clean_unrhdrl() and clean_unrhdr() functions to clean the list. Call clean_unrhdrl() after devfs_create() calls immediately before dropping cdev mutex. devfs_create() is the only user of the alloc_unrl() in the tree. Reviewed by: phk Tested by: Peter Holm LOR: 80 Approved by: re (kensmith) END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-07-04T12:29:15.000000Z K 7 svn:log V 348 MFC rev XXXX: Do not attempt to enable AHCI mode on ALi SATA controllers other than the 5288. It is not correctly implemented in earlier silicon, and the BIOS often lies about AHCI capability on platforms where these chips are deployed. With this change I am able to boot FreeBSD on the ASUS Vintage AH-1 barebones system. Approved by: sos END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-04T12:33:11.000000Z K 7 svn:log V 272 Be much more forgiving towards applications that requesting ioctls that should be a no-op (for example, requesting SYNC on record path). The standards does not indicate that such requests are illegal, so just return it as success instead of EINVAL. Approved by: re (mux) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-04T16:21:27.000000Z K 7 svn:log V 130 Do not install man pages for the three I4B 'modules' that were disabled for the FreeBSD 7.0 timeframe. Approved by: re (rwatson) END K 10 svn:author V 8 ssouhlal K 8 svn:date V 27 2007-07-04T16:42:41.000000Z K 7 svn:log V 164 Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed. For example, sed /foo/Id sed s/foo/bar/Ig Reviewed by: dds Approved by: re (hrs) END K 10 svn:author V 3 gnn K 8 svn:date V 27 2007-07-04T21:47:23.000000Z K 7 svn:log V 150 Document the move from FAST_IPSEC to IPSEC. Point out the need for device crypto in the kernel configuration file when using IPSEC. Approved by: re END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T22:38:28.000000Z K 7 svn:log V 489 Add support for COMPAT6 syscalls. Also, change the visibility of compat syscalls a slightly. Compat syscalls were missing from 'syscalls.h' entirely. This additionally adds them with their compat prefix. eg: SYS_freebsd6_mmap. Also, the syscalls.c names strings have different prefixes to differentiate syscalls. Instead of several "old.mmap" strings, there will now be a "compat.mmap" and "compat6.mmap" etc. Before, both would have had the same "old.mmap" label. Approved by: re END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T22:47:37.000000Z K 7 svn:log V 1325 Create new syscalls for mmap(), lseek(), pread(), pwrite(), truncate() and ftruncate(), but without the pad arg. There are several reasons for this. Consider 'mmap()'. On AMD64, the function call (and syscall) ABI allow for 6 register arguments. Additional arguments go on the stack. mmap(2) has 6 arguments. However, the syscall definition has an extra 'int pad' argument. This pushes it to 7 arguments, which means one must spill into the memory stack. Since the kernel API doesn't match userland API, we have a hack in libc - libc/sys/mmap.c. This implements the userland API by calling __syscall() with an extra argument and the pad argument, for a total of 8 args. This is all unnecessary and inconvenient for several things, including the kernel's syscall handler code which now has to handle merging stack arguments with register arguments. It is a big deal for certain 3rd party code. I'm adding libc glue to make the transition totally painless. I had intended to mark the old syscalls as COMPAT6, but the potential to shoot your feet by building a new kernel without COMPAT_FREEBSD6 but with a slighly older userland was too great. For now, they have manual "freebsd6_" prefixes rather than being COMPAT6. They will go back to being marked 'COMPAT6' after 7-stable starts. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T22:49:55.000000Z K 7 svn:log V 78 Regenerate after mmap/lseek/etc syscall changes. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T22:53:00.000000Z K 7 svn:log V 74 Bump version for new mmap/lseek/etc syscalls Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T22:57:21.000000Z K 7 svn:log V 98 Add freebsd6_ wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:02:40.000000Z K 7 svn:log V 218 Add i386 emulation wrappers for mmap/lseek/etc. These use COMPAT6, so you must use the already existing, already in generic, COMPAT_FREEBSD6 kernel option for running old 32 bit binaries. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:03:50.000000Z K 7 svn:log V 77 Regenerate after mmap/lseek/etc syscall changes Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:04:41.000000Z K 7 svn:log V 102 Add compat6 wrapper code for mmap/lseek/pread/pwrite/truncate/ftruncate. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:06:43.000000Z K 7 svn:log V 115 Don't add the 'pad' argument to the mmap/truncate/etc syscalls. Submitted by: kensmith Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:18:38.000000Z K 7 svn:log V 1105 Adjust the syscall stub macros to be consistent in their meaning. In particular: SYSCALL() makes a syscall, with errno handling, and continues execution directly after the macro in the non-error case. RSYSCALL() is just like SYSCALL(), but returns after success. Both SYSCALL(name) and RSYSCALL(name) export "__sys_name" as a strong symbol, with "_name" and "name" as weak aliases. PSEUDO() is just like RSYSCALL(), but skipping the "name" weak alias. It still does "__sys_name" and "_name". Change i386 to add errno handling to PSEUDO. The same for amd64 and sparc64, with appear to have copied the behavior. ia64 was correct (as was alpha). Just remove some apparently unused variants of the macros. (untested!) I believe powerpc is correct. Fix arm to not export "name" from the PSEUDO case. Remove apparently extra unused variants. (untested!) The errno problem manifested on i386/amd64/sparc64 by having "PSEUDO" classified syscalls return without setting errno. eg: "addr = mmap()" could return with "addr" = 22 instead of setting errno to 22 and returning -1. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:23:01.000000Z K 7 svn:log V 370 Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudo syscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default case will have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT, the .c wrappers will go away and libc will make direct syscalls. After 7-stable starts, the direct syscall method will be default. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:27:38.000000Z K 7 svn:log V 370 Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate to call the pad-less versions of the corresponding syscalls if the running kernel supports it. Check kern.osreldate once per program and cache the result to select the appropriate syscall. This maintains userland compatability with kernel.old's from quite a while back. Approved by: re (kensmith) END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-07-04T23:27:39.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:32:49.000000Z K 7 svn:log V 134 kdump has knowledge of lseek() and mmap() arg decoding. Teach it about the new mmap and lseek syscalls. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-04T23:35:18.000000Z K 7 svn:log V 108 Add missing \ characters in PSEUDO() macro on arm. Oops. Submitted by: cognet Approved by: re (kensmith) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-05T01:56:41.000000Z K 7 svn:log V 704 MFC libarchive 1.9. This is identical to libarchive 2.2.3 from -CURRENT, with all of the performance improvements, bug fixes, and new formats, except that: * archive_read_finish() and archive_write_finish() don't return errors * archive_write_data() has a different return type * user-provided skip callbacks have a slightly different signature These differences maintain ABI compatibility with libarchive 1.3.1 (hence the "1" in "1.9") and allows libarchive 1.9 to have the same SHLIB_MAJOR and otherwise serve as a straight replacement for libarchive 1.3.1 (only better). Thanks to: Many, many people who contributed error reports, bug fixes, and suggestions over the last three years. ;-) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-05T02:30:46.000000Z K 7 svn:log V 172 Forced commit to note that the big MFC included the recent fix to disable attempts to use lseek() on non-regular files. In particular, this fixes "tar -t" on tape drives. END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-05T04:05:51.000000Z K 7 svn:log V 159 Add support for Western Digital MyBook external enclosures. They need this quirk to work. Submitted by: Dierk Sacher PR: usb/99419 Approved by: re (blanket) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-05T05:26:08.000000Z K 7 svn:log V 1467 Add quirks, derived from the linux quirks table for: o Adonics Cable 205 o Aiptek PocketCAM 3Mega o Belkin USB2SCSI o Casio QV DigiCam o CCYU EasyDisk ED1064 o Desknote UCR-61S2B o Epson Stylus Photo 875DC Card Reader o Epson Stylus Photo 895 Card Reader o Feiya 5-in-1 Card Reader o Hitachi Dvd-CAM DZ-MV100A Camcorder o HP CD-WRiter+ CD-4e o Insystem Storage Adapter v2 o Kyocera Finecam S3x o Kyocera Finecam S4 o Kyocera Finecam S5 o Kyocera Finecam L3 o Lexar USB CF Reader o MindAtWork Digital Wallet o Minolta Dimage F300 o Minolta Dimage E223 o Minsumi USB Fdd o Netac USB-CF-Card o NetChip USB Clik! 40 o Onspec MDCFE-B USB CF Reader o Onspec SIIG/Datafab Memory Stick + CF Reader/Writer o Onspec Datafab-based Reader o Onspec PNY/Datafab CF+SM Reader o Onspec SimpleTech/Datafab CF+SM Reader o Onspec MDSM-b Reader o Onspec USB To CF + SM Combo (LC1) o Onspec ImageMate SDDR55 o Panasonic LS-120 Camera o Samsung Techwin Digimax 410 o Shuttle eUSB SmartMedia / CompactFlash Adapter o Skanhex MD 7425 Camera o Skanhex SX 520z Camera o Sony Memorystick NW-MS7 o Sony Portable USB Hardrive V2 o Sony Memorystick PEG N760c o Sony Memorystick MSC-U03 o TREK/IBM USB memory key o Trumpion T33520 USB Flash Card Controller o Trumpion MP3 Player o Vivtar Vivicam 35Xx o WinMaxGroup USB Flash Disk 64M-C o Zoran Digital Camera EX-20 DSC and maybe a few others... Submitted by: Vaidas Damosevicius and flz PR: 79893 Reviewed by: njl, flz Approved by: re (blanket) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T05:32:44.000000Z K 7 svn:log V 79 Remove pad argument from ftruncate wrapper. Oops. Approved by: re (kensmith) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T05:54:47.000000Z K 7 svn:log V 84 Fix bad function type passed to destroy_dev_sched_cb(). Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T05:55:57.000000Z K 7 svn:log V 82 Fix cast-qualifiers warning when INET6 is not present Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T06:04:46.000000Z K 7 svn:log V 179 Fix a second warning, introduced by my last "fix". I committed the wrong diff from the wrong machine. Pointy hat to: peter Approved by: re (rwatson - blanket, several days ago) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T06:12:40.000000Z K 7 svn:log V 174 Temporarily turn nowerror on for i386 and amd64 pmap.c. I'd like to study exactly what effect the options cause to the code with gcc these days. Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T06:27:15.000000Z K 7 svn:log V 72 Fix 'assignment used as truth value' warning Approved by: re (rwatson) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-05T06:28:46.000000Z K 7 svn:log V 153 Prefer device_printf to printf("%s:...", device_get_nameunit(),...); This saves ~300 bytes for uvscom.c and ~100 for uvisor.c Approved by: re (blanket) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-05T06:42:14.000000Z K 7 svn:log V 161 Prefer device_printf to printf("%s: ...", device_get_nameunit()). On amd64, we save about 240 bytes (this is about 20 per instance). Approved by: re (blanket) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T06:45:37.000000Z K 7 svn:log V 101 Fix a bunch of warnings due to a missing forward declaration of a struct. Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T06:51:49.000000Z K 7 svn:log V 58 Initialize DWBuf[3]. Approved by: re (rwatson, blanket) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T06:54:03.000000Z K 7 svn:log V 74 Fix a stray splx() that caused a new warning. Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T06:59:14.000000Z K 7 svn:log V 193 Quiet warnings. These do not appear to be actually used uninitialized, but gcc's optimizer isn't smart enough to see that. Pre-initializing seems harmless enough. Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T07:04:17.000000Z K 7 svn:log V 107 Compile pf/pf_subr.c and netnatm/cc_conn.c without -Werror for the time being. Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T07:06:17.000000Z K 7 svn:log V 78 Turn -Werror back on for amd64 for kernel builds. Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T07:28:38.000000Z K 7 svn:log V 123 __packed has no effect on u_int8_t's except to cause a warning (and never has had any effect). Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T07:38:17.000000Z K 7 svn:log V 85 Quiet warnings. I believe gcc is incorrect about these. Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T07:46:33.000000Z K 7 svn:log V 204 Quiet framelen uninitialized warning. I think it was a false alarm. If check_fhdr() returns false, the frame_ok variable should protect any meaningful evaluations of framelen. Approved by: re (rwatson) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-05T08:53:21.000000Z K 7 svn:log V 179 Fix a build breakage as result of disabling parts of I4B. Check for (temporary gone) kernel options to be defined before using them. Reported by: peter Approved by: re (rwatson) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-05T08:55:14.000000Z K 7 svn:log V 272 Remove netkey directory from cscope/TAGs generation and replace it with netipsec now that KAME IPsec is gone. While here add missing netinet6 directories. Add comments about the ports needed to be able to run those targets. Reviewed by: philip Approved by: re (rwatson) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-05T08:56:46.000000Z K 7 svn:log V 315 Remove the -DFAST_IPSEC from Makefiles again. This was needed during the IPSEC->FAST_IPSEC->IPSEC transition period to not break the build after picking up netipsec header files. Now that the FAST_IPSEC kernel option is gone and the default is IPSEC again those defines are superfluous. Approved by: re (rwatson) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-07-05T09:18:57.000000Z K 7 svn:log V 209 Allow the LACP state to be queried from userland which at the moment is the actor and partner peer info. Print out the active aggregator and per port data in verbose mode from ifconfig. Approved by: re (mux) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T09:30:34.000000Z K 7 svn:log V 67 Turn on -Werror for i386 kernel builds. Approved by: re (rwatson) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-05T09:46:53.000000Z K 7 svn:log V 122 Remove reference to the old ftp-proxy implementation, which was replaced during the pf 4.1 import. Approved by: re (mux) END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-05T10:22:37.000000Z K 7 svn:log V 177 Properly unlock mutex before returning. There was a slight mishap during last major locking cleanup. Reported by: Thierry Herbelot Approved by: re (mux) END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-05T13:04:59.000000Z K 7 svn:log V 197 Revert destroy_dev() to the state before destroy_dev_sched() was introduced. Attempt to spawn destroy_dev_sched() from it causes inadmissible races. Requested by: tegge Approved by: re (kensmith) END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-07-05T13:07:12.000000Z K 7 svn:log V 157 Adopt snp to the destroy_dev_sched() KPI after reverting of destroy_dev() to not call destroy_dev_sched(). Tested by: Peter Holm Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-05T13:16:04.000000Z K 7 svn:log V 254 In preparation for 7.0 privilege cleanup, clean up style: - Sort copyrights by date. - Re-wrap, and in some cases, fix comments. - Fix tabbing, white space, remove extra blank lines. - Remove commented out debugging printfs. Approved by: re (kensmith) END K 10 svn:author V 3 dfr K 8 svn:date V 27 2007-07-05T13:40:07.000000Z K 7 svn:log V 110 If the mech_type argument to gss_display_status is null, use a default mechanism. Approved by: re (kensmith) END K 10 svn:author V 6 avatar K 8 svn:date V 27 2007-07-05T15:06:49.000000Z K 7 svn:log V 155 MFp4: Fixing IPW_DEBUG enabled builds by converting the last piece of ic->ic_des_essid to ic->ic_des_ssid[0]. Reviewed by: sam Approved by: re (kensmith) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-05T15:25:32.000000Z K 7 svn:log V 110 Prefer device_printf to printf + device_get_nameunit. This saves about 100 bytes. Approved by: re (blanket) END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2007-07-05T15:28:59.000000Z K 7 svn:log V 96 Remove unused variable from pf_subr.c to make it -Werror buildable. Approved by: re (kensmith) END K 10 svn:author V 3 gnn K 8 svn:date V 27 2007-07-05T15:33:13.000000Z K 7 svn:log V 87 Added comments eplaining the requirement for device crypto with IPSEC Approved by: re END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-05T16:23:49.000000Z K 7 svn:log V 159 ANSIfy[1] plus some style cleanup nearby. Discussed with: gnn, rwatson Submitted by: Karl Sj?dahl - dunceor [1] Approved by: re (rwatson) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-05T16:29:40.000000Z K 7 svn:log V 41 Space cleanup Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-05T17:42:00.000000Z K 7 svn:log V 149 Fix remaining syntax errors (missing semicolons) Submitted by: Björn König Approved by: re (kensmith, followup commits) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-05T21:52:43.000000Z K 7 svn:log V 177 Forced commit to note a repo-copy of this file from src/sys/i386/include/ so it will be available to all architectures once I4B compiles on those. Approved by: re (kensmith) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2007-07-06T00:05:12.000000Z K 7 svn:log V 887 re(4) devices requires an external EEPROM. Depending on models it would be 93C46(1Kbit) or 93C56(2Kbit). One of differences between them is number of address lines required to access the EEPROM. For example, 93C56 EEPROM needs 8 address lines to read/write data. If 93C56 recevied premature end of required number of serial clock(CLK) to set OP code/address of EEPROM, the result would be unexpected behavior. Previously it tried to detect 93C46, which requires 6 address lines, and then assumed it would be 93C56 if read data was not expected value. However, this approach didn't work in some models/situations as 93C56 requries 8 address lines to access its data. In order to fix it, change EEPROM probing order such that 93C56 is detected reliably. While I'm here change hard-coded address line numbers with defined constant to enhance readability. PR: 112710 Approved by: re (mux) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-06T00:41:53.000000Z K 7 svn:log V 83 Fix warning - add missing #include Submitted by: mjacob Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-06T00:47:44.000000Z K 7 svn:log V 289 Fix warnings. nxge: cast page size fragments down to (int). If the vm's demand paging PAGE_SIZE is ever too big for that, we've got far bigger problems. ofw: move va_start() a little earlier. gcc-4.2 doesn't like us modifying the last arg before the va_start(). Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-06T00:52:29.000000Z K 7 svn:log V 66 Turn on -Werror for sparc64 and sun4v. Approved by: re (rwatson) END K 10 svn:author V 5 peter K 8 svn:date V 27 2007-07-06T01:50:58.000000Z K 7 svn:log V 129 I did not intend to turn -Werror on for pc98. Refine the test for turning it on for i386. Approved by: re (rwatson, followup) END K 10 svn:author V 3 scf K 8 svn:date V 27 2007-07-06T04:04:58.000000Z K 7 svn:log V 194 Take care that the input to setenv() may actually be a pointer straight from environ; make a copy before manipulating it and passing it to setenv(). Approved by: wes Approved by: re (kensmith) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2007-07-06T06:35:50.000000Z K 7 svn:log V 157 Belately note default driver change for NVIDIA network adapters. Requested by: Michael Plass < mfp49_freebsd at plass-family dot net> Approved by: re (hrs) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-06T07:17:22.000000Z K 7 svn:log V 203 I4B header files were repo-copied from sys/i386/include/ to sys/i4b/include/ so they will be available to all architectures once I4B compiles on those. Adapt #include paths. Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-06T07:20:59.000000Z K 7 svn:log V 319 I4B header files were repo-copied from sys/i386/include to sys/i4b/include/ so they will be available to all architectures once I4B compiles on those. I4B header files are now installed in include/i4b/ and no longer in include/machine/. For now we still install the headers for i386 only. Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-06T07:21:56.000000Z K 7 svn:log V 137 I4B header files are now installed in include/i4b/ and no longer in include/machine/. Adapt #include paths. Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-06T07:23:39.000000Z K 7 svn:log V 180 I4B header files were repo-copied from sys/i386/include/ to sys/i4b/include/ so they will be available to all architectures once I4B compiles on those. Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-06T07:24:49.000000Z K 7 svn:log V 119 I4B header files are now installed in include/i4b/ and no longer live in include/machine/. Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-06T07:36:09.000000Z K 7 svn:log V 159 Bump version after repo-copy of I4B headers. The headers will now be installed to include/i4b/ and no longer to include/machine/. Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-07-06T08:05:46.000000Z K 7 svn:log V 237 I4B header files were repo-copied from sys/i386/include/ to sys/i4b/include/ so they will be available to all architectures once I4B compiles on those. We no longer need these "glue" files. Reminded by: nyan Approved by: re (kensmith) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2007-07-06T13:20:44.000000Z K 7 svn:log V 678 Fix some problems with lock_profiling in sx locks: - Adjust lock_profiling stubs semantic in the hard functions in order to be more accurate and trustable - Disable shared paths for lock_profiling. Actually, lock_profiling has a subtle race which makes results caming from shared paths not completely trustable. A macro stub (LOCK_PROFILING_SHARED) can be actually used for re-enabling this paths, but is currently intended for developing use only. - Use homogeneous names for automatic variables in hard functions regarding lock_profiling - Style fixes - Add a CTASSERT for some flags building Discussed with: kmacy, kris Approved by: jeff (mentor) Approved by: re END K 10 svn:author V 8 deischen K 8 svn:date V 27 2007-07-06T13:42:24.000000Z K 7 svn:log V 133 Fix a typo that prevented the quad symbols from being exported (s/SYM_MAP/SYM_MAPS/). Reported by: kan Approved by: re@ (Ken Smith) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-06T15:36:38.000000Z K 7 svn:log V 263 New "version stamp" simplifies determining the exact version of libarchive being used. I've been taking advantage of this with a recent round of updates to libarchive_test so that it can test older and newer versions of the library. Approved by: re (Ken Smith) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-06T15:43:11.000000Z K 7 svn:log V 486 Make test suite work with libarchive 1.3.1: Take advantage of ARCHIVE_VERSION_STAMP to selectively disable tests that don't apply to that version; new "skipping()" function reports skipped tests; modify final summary to report component test failures and skips. Note: I don't currently intend to MFC the test suite itself; anyone interested should just checkout and use this version of the test suite, which should work for any library version. Approved by: re (Ken Smith, blanket) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-06T15:51:59.000000Z K 7 svn:log V 203 Forced commit to document a cast correction needed to get clean compiles using either old or new API. I should have just committed this one-line fix separately. Apologies. Approved by: re (Ken Smith) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-06T16:01:06.000000Z K 7 svn:log V 83 MFC removal of extraneous file. This function has been moved into archive_read.c. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-06T16:08:04.000000Z K 7 svn:log V 421 MFC some comment changes and a reworking of one cast. With this change, libarchive source in -CURRENT and 6-STABLE is exactly identical. The only difference is the version number (1.9 for 6-STABLE, 2.2 for -CURRENT) and SHLIB_MAJOR (2 in 6-STABLE, 4 in -CURRENT). The source has conditionals to compile the old libarchive 1 API/ABI or the newer libarchive 2 API/ABI depending on the version number set at compile time. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-06T16:34:56.000000Z K 7 svn:log V 422 Before doing compile_re() which needs a parameter to identify whether we should ignore case, determine the flag by calling compile_flags() first. Also, make sure that we obtain an initialized cmd->u.s buffer before processing further. We may want to refine this solution later, but for now, make the changes in order to unbreak world build after a sed(1) with rev. 1.29 of compile.c is installed. Approved by: re (hrs) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-06T16:36:52.000000Z K 7 svn:log V 120 Add a test case for sed(1) regression - we should not ignore case when not being asked to do so. Approved by: re (hrs) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-06T20:02:37.000000Z K 7 svn:log V 129 uhub already does the printing and naming of a device, so don't do it again here for compat drivers. Approved by: re@ (blanket) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-06T20:05:39.000000Z K 7 svn:log V 345 Trivial differences with the proposed merged BSD usbdevs file merged in. These are exclusively in the name of the company for this round. No new devices have been added, but the MITEL entry has been eliminated because nothing uses it. You won't see any difference unless you have USBVERBOSE defined for the kernel. Approved by: re@ (blanket) END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-07-06T21:25:21.000000Z K 7 svn:log V 294 When a cached page is reactivated in vm_fault(), update the counter that tracks the total number of reactivated pages. (We have not been counting reactivations by vm_fault() since revision 1.46.) Correct a comment in vm_fault_additional_pages(). Approved by: re (kensmith) MFC after: 1 week END K 10 svn:author V 5 brian K 8 svn:date V 27 2007-07-07T00:54:46.000000Z K 7 svn:log V 1060 Fix a problem introduced in netinet/in.c 1.85.2.7 where in_ifdetach() calls in_delmulti_ifp(). The code now *really* deletes the elements in in_multihead for the ifp that's going away (rather than just decrementing the reference count). Previously we were left with inm and ifma structures containing bogus ifnet pointers after destroying an interface that had more than one IP4 assignment made to it in it's lifetime. I've also added a if_delmulti_ent() to make deleting known ifma structures possible rather than depending on if_findmulti() to end up finding the same thing. It will in fact always find the correct ifma *unless* the passed sockaddr has a bogus sa_len of zero. Finally, when adding a multicast address, we no longer increment the refcount (well, we do, but then we decrement it again). The refcount here is in fact bogus so hopefully readers will see that now. This code is going directly into -stable as it has been rewritten in -current and those changes are deemed too intrusive for -stable consumption right now. Reviewed by: bms END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-07T09:46:34.000000Z K 7 svn:log V 246 Minor UDPv4 cleanup: capitalize comment, move statistics update after mbuf free to be consistent with other error handling, and release socket buffer lock before freeing mbufs and statistics updates rather than after. Approved by: re (kensmith) END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-07-07T11:22:46.000000Z K 7 svn:log V 311 MFC rev 1.33 mdmfs.c -n is used by newfs to tell "do not generate a .snap directory" instead of specifying rotational-positions, reflect that in the command arguments. PR: bin/110178 Submitted by: Alex Kozlov Approved by: imp (mentor) Approved by: imp (mentor, implicit) END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-07-07T11:29:27.000000Z K 7 svn:log V 604 MFC rev 1.33 mdmfs.c o For this change I needed to modify a little extra, since the RELENG_5 version works different then the RELENG_6 or HEAD version that we currently have. I "backported" the -n change to RELENG_5 as well, without modifying the current behaviour for the other options etc. -n is used by newfs to tell "do not generate a .snap directory" instead of specifying rotational-positions, reflect that in the command arguments. PR: bin/110178 Submitted by: Alex Kozlov Approved by: imp (mentor) Approved by: imp (mentor, implicit) END K 10 svn:author V 5 remko K 8 svn:date V 27 2007-07-07T11:36:44.000000Z K 7 svn:log V 469 MFC v 1.124 ata-all.h MFC v 1.204 ata-disk.c Add Viking Interworks 256MB as an ata device; this might give some false positives but at this moment it is better to add support then to dont have it at all (comment from Soren). PR: kern/111516 Submitted by: Thomas Nystrom Approved by: re (kensmith) Approved by: imp (mentor) OK'ed by: sos (With the comment noted above about false positives). Approved by: imp (mentor,implicit) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-07T16:55:42.000000Z K 7 svn:log V 151 Fix installworld: /usr/bin/printf isn't available then, so use awk's printf for the formatting here instead. Pointy hat: Yours Truly Approved by: re END K 10 svn:author V 7 attilio K 8 svn:date V 27 2007-07-07T16:59:01.000000Z K 7 svn:log V 754 Actual code shows several problems in ia32 LDT handling: - When a LDT entry changes, the old one is freed while it is still referenced by gdt and ldtr. This can lead to disruptive behaviours in particular on SMP machines. - When a LDT entry changes, it is assumed that the only one entity sharing the same LDT are threads in the same proc. It doesn't take in account edge cases where two processes share the same VM (rfork'ed ones, for example). This patch addresses these two problems and addictionally it fixes the usage of refcount switching back it to the old manually-grown refcount (since in this case would be faster). Diagnosed by: tegge Tested by: pho (a former version) Reviewed by: kib Approved by: jeff (mentor) Approved by: re END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2007-07-07T16:59:11.000000Z K 7 svn:log V 50 MFC unbreak installworld. Pointy hat: me END K 10 svn:author V 3 njl K 8 svn:date V 27 2007-07-07T17:54:33.000000Z K 7 svn:log V 107 Now that we have a function that can be called from a cdevsw close() entry point, use it. Approved by: re END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-07-08T08:26:10.000000Z K 7 svn:log V 199 MFC (1 of X): - easy linuxulator style(9) fixes (easy = hand removal of non-style code change sections in a full diff) Tested by: scf (i386), Arno J. Klaassen (amd64) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-07-08T08:41:09.000000Z K 7 svn:log V 611 MFC (2 of X): - some linuxulator style(9) fixes - add datatypes and definitions in preparation of further commits - use one (l_sigval) of the new datatypes on amd64 and get rid of a now unused include (this may or may not fix some signal handling issues on amd64) [1] - convert some unconditional debug handling into the common linuxulator way - use some more appropriate format string types in some debug printf's - convert signal validation into a macro Except for [1] on amd64 there is no visible change to a normal user. Tested by: scf (i386), Arno J. Klaassen (amd64) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-07-08T08:44:48.000000Z K 7 svn:log V 387 MFC (3 of X): - In preparation of further linuxulator fixes MFC kern_descrip.c rev 1.296 and syscallsubr.h rev 1.41 by jhb: Add a kern_close() so that the ABIs can close a file descriptor w/o having to populate a close_args struct and change some of the places that do. Tested by: scf (i386, as part of a mega-MFC-patch), Arno J. Klaassen (amd64) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-07-08T09:04:44.000000Z K 7 svn:log V 451 MFC (4 of X): - don't limit number of syscalls to 255 - handle more socket options - bug-/compatibility-fixes to linux * file related (includes fixes which prevent creation of strange files which can only be removed with a fsck) * make ping work * ... - add devfs to the file system type handling/translation Compile tested by: scf (i386, as part of a mega-MFC-patch) Tested by: Arno J. Klaassen (amd64) END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-07-08T11:47:52.000000Z K 7 svn:log V 236 Fix a bug of retrieving configuration ROM. - Handle directories and leaves other than unit directories and text leaves correctly. - Now we can retrieve CROM of iSight correctly. Approved by: re (hrs) Tested by: flz MFC after: 3 days END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-07-08T12:20:36.000000Z K 7 svn:log V 304 MFC (5 of X): - linuxulator mmap handling - memleak fixes - extend linux errno mapping - handle address space limits for linux processes - sync linprocfs (/proc/sys/... part) Compile tested by: scf (i386, as part of a mega-MFC-patch) Tested by: Arno J. Klaassen (amd64) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-07-08T12:22:15.000000Z K 7 svn:log V 168 MFC (5a of X): - linuxulator mmap handling Compile tested by: scf (i386, as part of a mega-MFC-patch) Tested by: Arno J. Klaassen (amd64) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2007-07-08T12:23:37.000000Z K 7 svn:log V 35 regen after syscalls.master change END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-08T14:01:11.000000Z K 7 svn:log V 260 MFC: New sysctl: "hw.snd.compat_linux_mmap" to allow PROT_EXEC page mapping, due to recent changes in linux compatibility layer which require it. All linux applications that using sound + mmap() (mostly games) require this to be enabled. Disabled by default. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2007-07-08T15:30:28.000000Z K 7 svn:log V 89 MFC: Convert MSDOSFS_LARGE compile time option to a "-o large" mount option. PR: 105964 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2007-07-08T15:56:12.000000Z K 7 svn:log V 569 MFp4: - Plug memory leak. - Respect underlying vnode's properties rather than assuming that the user want root:wheel + 0755. Useful for using tmpfs(5) for /tmp. - Use roundup2 and howmany macros instead of rolling our own version. - Try to fix fsx -W -R foo case. - Instead of blindly zeroing a page, determine whether we need a pagein order to prevent data corruption. - Fix several bugs reported by Coverity. Submitted by: Mingyan Guo , Howard Su, delphij Coverity ID: CID 2550, 2551, 2552, 2557 Approved by: re (tmpfs blanket) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2007-07-08T18:17:42.000000Z K 7 svn:log V 192 NULL_LDT_BASE is used in !SMP kernels too and set_user_ldt() is not properly called. Address these two issues. Reported by: Tinderbox Tested by: le Approved by: jeff (mentor) Approved by: re END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-07-08T19:42:52.000000Z K 7 svn:log V 383 Eliminate the special case handling of OBJT_DEVICE objects in vm_fault_additional_pages() that was introduced in revision 1.47. Then as now, it is unnecessary because dev_pager_haspage() returns zero for both the number of pages to read ahead and read behind, producing the same exact behavior by vm_fault_additional_pages() as the special case handling. Approved by: re (rwatson) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2007-07-09T01:13:00.000000Z K 7 svn:log V 98 Fix typo. Reported by: Danny Braniss Approved by: re (bmah) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-07-09T04:58:16.000000Z K 7 svn:log V 172 dma_tag is a static structure. Testing for it being a NULL pointer doesn't make sense. Rewrite to what was intended. Correctly warned about by: GCC Approved by: re (bmah) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-09T05:47:32.000000Z K 7 svn:log V 220 More vendors from the merged list. Sort NETGEAR list per convention. Swap QUALCOMM and QUALCOMM2. Add a few vendor products. no md5 changes with this file (except when USBVERBOSE is enabled) Approved by: re@ (blanket) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-09T06:20:07.000000Z K 7 svn:log V 190 Further diff reduction against the proposed merged usbdevs: Add a few more vendors, use slightly more standardized names. No md5 chagnes for !USBVERBOSE kernels Approved by: re@ (blanket) END K 10 svn:author V 3 jmg K 8 svn:date V 27 2007-07-09T06:24:10.000000Z K 7 svn:log V 98 document the call to wakeup after a task has been run... Approved by: re (hrs) MFC after: 3 days END K 10 svn:author V 3 dfr K 8 svn:date V 27 2007-07-09T09:03:49.000000Z K 7 svn:log V 164 Correct a reference-counting mistake in the ZFS code which led to abnormal memory usage and pessimal cache performance. Reviewed by: pjd Approved by: re (rwatson) END K 10 svn:author V 3 bms K 8 svn:date V 27 2007-07-09T10:36:47.000000Z K 7 svn:log V 692 Fix a regression in IPv4 multicast join path (IP_ADD_MEMBERSHIP). With the in_mcast.c code, if an interface for an IPv4 multicast join was not specified, and a route did not exist for the specified group in the unicast forwarding tables, the join would be rejected with the error EADDRNOTAVAIL. This change restores the old behaviour whereby if no interface is specified, and no route exists for the group destination, the IPv4 address list is walked to find a non-loopback, multicast-capable interface to satisfy the join request. This should resolve problems with starting multicast services during system boot or when a default forwarding entry does not exist. Approved by: re (rwatson) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-09T14:26:08.000000Z K 7 svn:log V 107 Fix duplicates that crept in at the last minute :-(. Noticed by: Ian Freislich Approved by: re@ (blanket) END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-09T15:39:58.000000Z K 7 svn:log V 82 updates for 802.11-related parameters Reviewed by: thompsa Approved by: re (hrs) END K 10 svn:author V 4 bmah K 8 svn:date V 27 2007-07-09T15:53:56.000000Z K 7 svn:log V 265 New release notes: sed(1) case-insensitive matching, setenv(3) API change. Modified release notes: Clarify architectures for nfe(4) note and mention that it replaces nve(4) in i386/amd64 GENERIC [1]. Suggested by: Michael Plass [1] Approved by: re (implicitly) END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-09T15:57:10.000000Z K 7 svn:log V 156 fixup mcast handling in bpf program; this enables forthcoming support for 802.1x over wired interfaces Submitted by: Jouke Witteveen Approved by: re (hrs) END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-09T16:15:06.000000Z K 7 svn:log V 24 Import of hostapd 0.5.8 END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-09T16:15:06.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r171322, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2007-07-09T16:15:07.000000Z K 7 svn:log V 78 This commit was manufactured by cvs2svn to create tag 'hostapd-vendor-v0_5_8'. END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-09T16:20:41.000000Z K 7 svn:log V 41 resolve conflicts Approved by: re (hrs) END K 10 svn:author V 3 sam K 8 svn:date V 27 2007-07-09T16:26:48.000000Z K 7 svn:log V 47 update for 0.5.8 import Approved by: re (hrs) END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-09T16:58:07.000000Z K 7 svn:log V 376 When all the other drivers were converted to scheduling a taskqueue to do the heavy lifting of the 'mii_tick' function, rue was left behind. Implement this in a naive way. Reports from the field show this makes the driver functional with some locking issues, as opposed to an instant panic. Those will be addressed in a later version of the driver. Approved by: re@ (bmah) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-07-09T17:47:04.000000Z K 7 svn:log V 415 General style, white space, and comment cleanup; move to ANSI C prototypes, don't use register, etc. Synchronize structure and layout to the IPv4 versions of these functions to a greater extent, making visual comparison easier. Remove now stale or incorrect comments. Enable full lock assertions, and correct one exception handling case where the wrong label was jumped to. Tested by: bz Approved by: re (bmah) END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-09T20:41:23.000000Z K 7 svn:log V 137 Fix stream suspend/resume activity due to its states being clobbered by pcm channel start/stop trigger operation. Approved by: re (hrs) END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-07-09T20:42:11.000000Z K 7 svn:log V 516 - Add codec id for Realtek ALC268. - Add controller id for Intel 82801I (ICH9). PR: kern/114399 Submitted by: Michael Fuckner - MSI support. Disable by default due to various issues with too many broken hardwares. MSI can be enabled through device.hints(5) or kenv(8) by setting "hint.pcm.%d.msi=1". Partially submitted by: kevlo YAMAMOTO Taku Tested by: joel, kevlo, YAMAMOTO Taku Approved by: re (hrs) MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2007-07-09T20:56:39.000000Z K 7 svn:log V 90 Missed in last commit: add usb task for rue to use for its ticks. Approved by: re (bmah) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2007-07-09T22:50:51.000000Z K 7 svn:log V 143 MFC revision 1.11: Add support for the HTTP_TIMEOUT environment variable. MFC revision 1.12: Add support for HTTP/1.0 Persistent Connections. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-07-10T00:01:30.000000Z K 7 svn:log V 111 Fix alignment of context switch traces. MFC after: 1 week Approved by: re (rwatson: "I like simple patches.") END K 10 svn:author V 6 marcel K 8 svn:date V 27 2007-07-10T04:40:00.000000Z K 7 svn:log V 121 Cast the arguments to atomic_*_ptr() when mapping it to atomic_*_32() This is a minimal fix. Approved by: re (kensmith) END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2007-07-10T06:01:45.000000Z K 7 svn:log V 340 MFp4 122896 - reduce cpu usage by as much as 25% (40% -> 30) by doing txq reclaim more efficiently - use mtx_trylock when trying to grab the lock to avoid spinning during long encap loop - add per-txq reclaim task - if mbufs were successfully re-claimed try another pass - track txq overruns with sysctl Approved by: re (blanket) END