ƒ²f150341 191 349 3209 174 298 246 193 143 155 171 173 186 150 179 212 180 132 162 165 176 199 193 317 112 372 287 760 253 401 142 456 107 274 175 247 219 364 336 503 378 282 202 288 416 246 218 305 277 220 225 194 114 152 145 145 112 140 160 411 403 276 175 150 187 220 194 187 272 356 656 203 181 153 264 726 373 222 235 312 368 409 320 202 383 294 175 222 149 154 231 593 244 216 164 447 196 207 162 239 172 113 144 327 194 398 382 314 115 119 244 316 211 113 363 142 273 207 168 126 112 128 225 1108 129 244 317 315 525 188 217 248 394 334 211 116 121 316 366 288 227 107 239 105 229 213 209 286 215 204 151 263 427 854 116 522 240 636 442 166 1023 159 527 184 182 159 136 206 192 169 106 307 301 304 210 395 332 178 439 190 129 396 457 283 677 423 202 146 179 173 285 257 1254 K 10 svn:author V 6 damien K 8 svn:date V 27 2005-09-19T18:59:04.000000Z K 7 svn:log V 253 Use phk's kernel unit number allocator to associate unique ids to neighbors in an IBSS. Store ids directly into ieee80211_node's instead of managing our own private association table. Idea and code by Sam Leffler. Submitted by: sam MFC after: 5 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-19T19:56:48.000000Z K 7 svn:log V 3115 Rewamp DEVFS internals pretty severely [1]. Give DEVFS a proper inode called struct cdev_priv. It is important to keep in mind that this "inode" is shared between all DEVFS mountpoints, therefore it is protected by the global device mutex. Link the cdev_priv's into a list, protected by the global device mutex. Keep track of each cdev_priv's state with a flag bit and of references from mountpoints with a dedicated usecount. Reap the benefits of much improved kernel memory allocator and the generally better defined device driver APIs to get rid of the tables of pointers + serial numbers, their overflow tables, the atomics to muck about in them and all the trouble that resulted in. This makes RAM the only limit on how many devices we can have. The cdev_priv is actually a super struct containing the normal cdev as the "public" part, and therefore allocation and freeing has moved to devfs_devs.c from kern_conf.c. The overall responsibility is (to be) split such that kern/kern_conf.c is the stuff that deals with drivers and struct cdev and fs/devfs handles filesystems and struct cdev_priv and their private liason exposed only in devfs_int.h. Move the inode number from cdev to cdev_priv and allocate inode numbers properly with unr. Local dirents in the mountpoints (directories, symlinks) allocate inodes from the same pool to guarantee against overlaps. Various other fields are going to migrate from cdev to cdev_priv in the future in order to hide them. A few fields may migrate from devfs_dirent to cdev_priv as well. Protect the DEVFS mountpoint with an sx lock instead of lockmgr, this lock also protects the directory tree of the mountpoint. Give each mountpoint a unique integer index, allocated with unr. Use it into an array of devfs_dirent pointers in each cdev_priv. Initially the array points to a single element also inside cdev_priv, but as more devfs instances are mounted, the array is extended with malloc(9) as necessary when the filesystem populates its directory tree. Retire the cdev alias lists, the cdev_priv now know about all the relevant devfs_dirents (and their vnodes) and devfs_revoke() will pick them up from there. We still spelunk into other mountpoints and fondle their data without 100% good locking. It may make better sense to vector the revoke event into the tty code and there do a destroy_dev/make_dev on the tty's devices, but that's for further study. Lots of shuffling of stuff and churn of bits for no good reason[2]. XXX: There is still nothing preventing the dev_clone EVENTHANDLER from being invoked at the same time in two devfs mountpoints. It is not obvious what the best course of action is here. XXX: comment out an if statement that lost its body, until I can find out what should go there so it doesn't do damage in the meantime. XXX: Leave in a few extra malloc types and KASSERTS to help track down any remaining issues. Much testing provided by: Kris Much confusion caused by (races in): md(4) [1] You are not supposed to understand anything past this point. [2] This line should simplify life for the peanut gallery. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-19T20:55:44.000000Z K 7 svn:log V 82 Dump the environment for reference. Add a function to add customization commands. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-09-19T20:56:10.000000Z K 7 svn:log V 200 MFC revision 1.5: When (re)allocating space for an array of pointers to char, use sizeof(*list), not sizeof(**list). (i.e., sizeof(pointer) rather than sizeof(char)). Approved by: re (scottl) END K 10 svn:author V 6 marcus K 8 svn:date V 27 2005-09-19T21:50:31.000000Z K 7 svn:log V 150 MFC: Correct a mis-merge from HEAD, and make sure the socket permissions are set to 0666. Reported by: delphij via rwatson Approved by: re (scottl) END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-19T21:59:49.000000Z K 7 svn:log V 99 Replace custom mbuf writeability test with generic M_WRITEABLE() test covering all edge cases too. END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-19T22:04:41.000000Z K 7 svn:log V 49 Replace m_extadd() with macro version MEXTADD(). END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-19T22:16:31.000000Z K 7 svn:log V 61 Start time_uptime with 1 instead of 0. Discussed with: phk END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-19T22:27:07.000000Z K 7 svn:log V 77 Use monotonic time_uptime instead of 'time_second' as timebase for timeouts. END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-19T22:31:45.000000Z K 7 svn:log V 79 Use monotonic 'time_uptime' instead of 'time_second' as timebase for timeouts. END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-19T22:54:55.000000Z K 7 svn:log V 92 Use monotonic 'time_uptime' instead of 'time_second' as timebase for rt->rt_rmx.rmx_expire. END K 10 svn:author V 5 ticso K 8 svn:date V 27 2005-09-19T23:33:00.000000Z K 7 svn:log V 56 Protect includes for kernel specific use from userland. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-09-20T00:34:54.000000Z K 7 svn:log V 83 MFC: 1.61 Clarify wording for -m flag. PR: docs/84704 Approved by: re (hrs) END K 10 svn:author V 3 ups K 8 svn:date V 27 2005-09-20T01:12:06.000000Z K 7 svn:log V 119 Multiple interrupt handlers may try to queue an event for a nested kqueue. (4.X only race condition) Found by: Yahoo! END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-20T01:59:54.000000Z K 7 svn:log V 87 MFC v1.129 src/sys/net/rtsock.c Make sysctl_rtsock MP safe. Approved by: re (scottl) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T02:38:43.000000Z K 7 svn:log V 40 Sprinkle a few stars where they belong. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-20T04:48:30.000000Z K 7 svn:log V 65 MFC: Add manual page for snd_t4dwave(4). Approved by: re (hrs) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-20T04:49:59.000000Z K 7 svn:log V 68 MFC: rev. 1.40 by joel Xref snd_t4dwave(4). Approved by: re (hrs) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-20T04:51:32.000000Z K 7 svn:log V 79 MFC: Auto generate device listings for snd_t4dwave(4). Approved by: re (hrs) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-20T04:53:12.000000Z K 7 svn:log V 101 MFC: rev. 1.886 by joel New release notes: snd_t4dwave(4) manual page added. Approved by: re (hrs) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T06:45:38.000000Z K 7 svn:log V 100 Call the passed function on cis scanning for all nodes in the CIS chains, not just the 'real' ones. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T06:47:33.000000Z K 7 svn:log V 224 Implement /dev/pccardN.cis. This mirrors the CIS for the card to userland. pccardc dumpcis /dev/pccardN.cis will work now, but I may rewrite pccardc. Also, move more of the private data to a new file called pccardvarp.h. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T06:48:55.000000Z K 7 svn:log V 20 Add pccard_device.c END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-09-20T07:48:00.000000Z K 7 svn:log V 275 MFC 1.64 by kientzle: The bsdtar_warnc() reporting function requires the program name to be set up before it is called, so move the progname initialization before the first possible call to bsdtar_warnc(). Thanks to: Stanislav Sedov PR: bin/83366 Approved by: re (scottl) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-09-20T08:02:38.000000Z K 7 svn:log V 190 Mention the default location of alternative super block on a UFS2 file system, in fsck_ffs(8). Submitted by: KOMATSU Shinichiro PR: docs/86362 MFC After: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-20T08:38:59.000000Z K 7 svn:log V 667 Create an /etc/nanobsd.conf in the built image and put the disk drive name there for scripts to use. Create a noauto fstab entry for the configuration partition (/cfg). Add NANO_TOOLS env-var to point to the nanobsd sources relative to NANO_SRC. Add -h argument which prints a usage. Add -b argument which skips build steps and goes directly to install steps. Complain about extraneous arguments, it's usually a forgotten '-c' Add convenience function to register customization function. Add some sample customization functions: cust_comconsole cust_allow_ssh_root Rename setup_diskless() to setup_nanobsd(), it makes more sense. Add various comments etc. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-20T09:07:18.000000Z K 7 svn:log V 160 Add a convenience function to set NANO_MEDIASIZE, NANO_HEADS and NANO_SECTS for commonly used flash devices by FlashDevice Sandisk 256MB in the config file. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T09:16:10.000000Z K 7 svn:log V 304 Suppress warning, to avoid fake bug reports from users of 6.0-RELEASE. Push warning in net_add_domain() down under DIAGNOSTIC. At the moment, the only loadable domain is netgraph and it has no problems to be loaded at runtime, since it doesn't use if_afdata[AF_NETGRAPH], yet. Approved by: re (scottl) END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-20T09:52:53.000000Z K 7 svn:log V 50 Move code macros from if_sis*reg*.h to if_sis.*c* END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T09:55:36.000000Z K 7 svn:log V 359 Correct an incorrect comment from the dawn of time: neither tprintf() nor uprintf() is believed to perform tsleep() or msleep() as written, as ttycheckoutq() is called with '0' as its sleep argument. Remove recently added WITNESS warnings for sleep as the comment was incorrect. This should silence a warning from the nfs_timer() code. Discussed with: bde END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T10:25:51.000000Z K 7 svn:log V 11 Fix build. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T11:13:28.000000Z K 7 svn:log V 177 Add a new rc.conf entry, kerberos5_server_flags, which allows the administrator to specify additional start-up flags to the Kerberos 5 Authentication Server. MFC after: 3 days END K 10 svn:author V 5 imura K 8 svn:date V 27 2005-09-20T11:16:05.000000Z K 7 svn:log V 81 Add geom_bsd_enc.c which we've been wanting to be in geon_bsd. Reviewed by: phk END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T13:26:21.000000Z K 7 svn:log V 150 Merge kenv.1:1.12, kenv.c:1.8 from HEAD to RELENG_6: Add a "-q" quiet flag to kenv so that warnings can be suppressed. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T13:27:05.000000Z K 7 svn:log V 122 Merge kenv.1:1.12, kenv.c:1.8 from HEAD to RELENG_5: Add a "-q" quiet flag to kenv so that warnings can be suppressed. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T13:28:01.000000Z K 7 svn:log V 267 Merge dumpon:1.10 from HEAD to RELENG_6: Use kenv -q to extract dumpdev rather than kenv, in order to avoid spamming the console in the event that a loader tunable 'dumpdev' isn't defined, which is not a relevant failure to report. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T13:28:35.000000Z K 7 svn:log V 239 Merge dumpon:1.10 from HEAD to RELENG_5: Use kenv -q to extract dumpdev rather than kenv, in order to avoid spamming the console in the event that a loader tunable 'dumpdev' isn't defined, which is not a relevant failure to report. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T13:29:37.000000Z K 7 svn:log V 406 Merge savecore.c:1.76 from HEAD to RELENG_6: Don't consider being unable to open the bounds file worthy of printing at LOG_WARNING by default; instead, consider it something to be printed to the tty when 'verbose' mode is set. This avoids printing out extra lines at every boot on a system with crash dumps enabled, but that has not yet had to generate a crashdump. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T13:33:07.000000Z K 7 svn:log V 281 Merge fifo_vnops.c:1.123 from HEAD to RELENG_5: As a result of kqueue locking work, socket buffer locks will always be held when entering a kqueue filter for fifos via a socket buffer event: as such, assert the lock unconditionally rather than acquiring it conditionally. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T13:37:17.000000Z K 7 svn:log V 185 Check IFF_DRV_RUNNING and presense of packets in queue before calling em_start_locked(). This fixes panic on shutdown with active traffic passing through router. Sponsored by: Rambler END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T13:40:55.000000Z K 7 svn:log V 105 Merge locking of ng_pptpgre node. See 1.38, 1.39 log for longer description. Approved by: re (kensmith) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T13:42:20.000000Z K 7 svn:log V 191 MFC 1.69: When message can't fit into socket receive buffer return ENOBUFS to userland program instead of letting it wait until end of days. PR: kern/85907 Approved by: re (kensmith) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T13:44:36.000000Z K 7 svn:log V 319 MFC 1.84 by yar: Test the new M_VLANTAG packet flag before calling m_tag_locate(). This adds little overhead of a simple bitwise operation in case hardware VLAN acceleration is on, yet saves the more expensive function call if the acceleration is off. Reviewed by: ru, glebius Approved by: re (kensmith) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T13:46:15.000000Z K 7 svn:log V 149 MFC typo fix from 1.75: Dej'a vu of revision 1.35 PR: kern/86258 Submitted by: Hiroshi Oota Approved by: re (kensmith) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T13:47:59.000000Z K 7 svn:log V 121 MFC typo fix from 1.75: Dej'a vu of revision 1.35 PR: kern/86258 Submitted by: Hiroshi Oota END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T13:57:17.000000Z K 7 svn:log V 208 Merge fifo_vnops.c:1.125 from HEAD to RELENG_6: The socket pointers in fifoinfo are not permitted to be NULL, so don't check if they are, it just confuses the fifo code more. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-20T13:58:59.000000Z K 7 svn:log V 180 Merge fifo_vnops.c:1.125 from HEAD to RELENG_5: The socket pointers in fifoinfo are not permitted to be NULL, so don't check if they are, it just confuses the fifo code more. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-20T14:52:57.000000Z K 7 svn:log V 123 Remove queue check from last commit. In most cases there is smth in queue, when start function is called. Reviewed by: ru END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-20T17:48:57.000000Z K 7 svn:log V 127 Correct the documentation for archive_read_data_into_buffer() Thanks to: Marcus Alves Grando PR: docs/85854 MFC after: 7 days END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-20T17:58:59.000000Z K 7 svn:log V 97 MFC bsdtar.c 1.64: Correct warning message on locale error (program name was set up incorrectly) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T19:34:10.000000Z K 7 svn:log V 22 remove some dead code END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T19:45:08.000000Z K 7 svn:log V 60 Eliminate support for oldcard by removing the compat shims. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T19:46:54.000000Z K 7 svn:log V 53 Remove support for oldcard by removing compat shims. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T19:49:33.000000Z K 7 svn:log V 53 Remove oldcard support by removing the compat shims. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T19:50:27.000000Z K 7 svn:log V 20 Better use of gone. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T19:54:11.000000Z K 7 svn:log V 48 Remove OLDCARD support by removing compat shims END K 10 svn:author V 5 peter K 8 svn:date V 27 2005-09-20T22:08:27.000000Z K 7 svn:log V 66 Remove unused (but initialized) variable 'objsize' from vm_mmap() END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-09-20T22:36:32.000000Z K 7 svn:log V 316 MFC: Retain generation count when writing zeroes instead of an inode to disk. Don't free a struct inodedep if another process is allocating saved inode memory for the same struct inodedep in initiate_write_inodeblock_ufs[12](). Handle disappearing dependencies in softdep_disk_io_initiation(). END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-09-20T22:37:54.000000Z K 7 svn:log V 308 MFC: Retain generation count when writing zeroes instead of an inode to disk. Don't free a struct inodedep if another process is allocating saved inode memory for the same struct inodedep in initiate_write_inodeblock(). Handle disappearing dependencies in softdep_disk_io_initiation(). END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-20T23:48:06.000000Z K 7 svn:log V 183 Use the correct minor number for the pccardX.cis device. Don't destroy a NULL device. This should fix the panics on boot people are seeing on systems with more than one pccard slot. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2005-09-21T02:44:09.000000Z K 7 svn:log V 79 MFC rev. 1.21 to RELENG_6: fix module unloading panic Approved by: re(scottl) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2005-09-21T02:47:12.000000Z K 7 svn:log V 54 MFC rev. 1.21 to RELENG_5: fix module unloading panic END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-21T03:12:45.000000Z K 7 svn:log V 90 MFC archive_read_extract.c 1.42 and 1.43: Correctly restore file flags. Approved by: re END K 10 svn:author V 7 yongari K 8 svn:date V 27 2005-09-21T03:18:30.000000Z K 7 svn:log V 123 MFC rev. 1.29 to RELENG_6: fix LOR by dropping driver lock before calling resource_int_value(9). Approved by: re(scottl) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2005-09-21T03:20:36.000000Z K 7 svn:log V 98 MFC rev. 1.29 to RELENG_5: fix LOR by dropping driver lock before calling resource_int_value(9). END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-21T03:21:35.000000Z K 7 svn:log V 90 Style fix: Correct a compiler warning from GCC 4 Thanks to: Divacky Roman PR: bin/84993 END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-21T04:25:06.000000Z K 7 svn:log V 174 Add a lot of error checks, based on the patches provided by Dan Lukes. Also fixes a memory leak reported by Andrew Turner. PR: bin/83476 Thanks to: Dan Lukes, Andrew Turner END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-21T04:36:40.000000Z K 7 svn:log V 260 Fix an unaligned I/O memory access in the event that a SCB times out. The FXP_SCR_FLOWCONTROL registers is at offset 0x19, but 2 bytes wide. It cannot be read as a word without causing a panic on architectures that enforce strict alignment. MFC after: 3 days END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-21T04:48:52.000000Z K 7 svn:log V 558 In archive_read_open(), do not set the internal archive state to "HEADER" unless the open is successful. Instead, leave the state as "NEW." In particular, if archive_read_open() fails, a subsequent call to archive_read_next_header() will now cause an explicit assertion failure instead of a silent segmentation fault. This may need a little more work to fully realize the intention: If archive_read_open() fails, you should be able to call it again on the same archive handle to open a different archive (or the same archive using a different mechanism). END K 10 svn:author V 4 grog K 8 svn:date V 27 2005-09-21T05:20:03.000000Z K 7 svn:log V 109 Remove one possible way of shooting yourself in the foot. Submitted by: Ulrich Sperlein END K 10 svn:author V 4 grog K 8 svn:date V 27 2005-09-21T05:33:46.000000Z K 7 svn:log V 88 Initialize uninitialized variables. PR: 71653 Submitted by: Dan Lukes END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-21T09:40:45.000000Z K 7 svn:log V 61 Update these scripts to be more userfriendly and usage safe. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-21T10:19:57.000000Z K 7 svn:log V 167 Add discussion of Giant, the MPSAFE flag, and NDHASGIANT() to namei(9). Add a VFS_LOCK_GIANT(9)/VFS_UNLOCK_GIANT(9) man page. Discussed with: jeff MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-21T11:58:10.000000Z K 7 svn:log V 629 Several fixes to rt_setgate(), that fix problems with route changing: - Rearrange code so that in a case of failure the affected route is not changed. Otherwise, a bogus rtentry will be left and later rt_check() can recurse on its lock. [1] - Remove comment about protocol cloning. - Fix two places where rtentry mutex was recursed on, because accessed via two different pointers, that were actually pointing to the same rtentry in some cases. [1] - Return EADDRINUSE instead of bogus EDQUOT, in case when gateway uses the same route. [2] Reported & tested by: ps, Andrej Zverev [1] PR: kern/64090 [2] END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-21T12:24:46.000000Z K 7 svn:log V 276 - Understand EADDRINUSE, and forget EDQUOT. [1] - Add description for EEXIST. - Change description for ENOBUFS. Routing socket can return this error for many different reasons, including general memory shortage, mbuf memory shortage and rtentry zone. PR: kern/64090 [1] END K 10 svn:author V 6 philip K 8 svn:date V 27 2005-09-21T12:32:06.000000Z K 7 svn:log V 126 Fix typo. MAILWRAPER -> MAILWRAPPER. Spotted by: Andrea Campi Pointy hat to: philip END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-21T14:30:14.000000Z K 7 svn:log V 139 Close the tty file descriptor once we're done with it. Use O_NONBLOCK when opening the tty device. Suggested by: bde Submitted by: ru END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-21T15:01:09.000000Z K 7 svn:log V 216 Make sure we have a bufobj before calling bstrategy(). I'm not sure this is the right thing to do, but at least I don't panic anymore when swapping on a NFS file without using md(4). X-MFC after: proper review END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-21T15:28:07.000000Z K 7 svn:log V 271 Pass 'curthread' into VFS_STATFS() from acctwatch(), rather than passing NULL. The NFS client expects that a thread will always be present for a VOP so that it can check for signal conditions, and will dereference a NULL pointer if one isn't present. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-21T15:30:54.000000Z K 7 svn:log V 312 Merge uipc_socket2.c:1.148 from HEAD to RELENG_6: Re-comment sbcompress() to explain what it is it does; it took me quite a bit of reading to figure it out, and I want to avoid figuring it out again. Convert an if (foo) else printf("this is almost a panic") into a KASSERT. Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-21T15:31:26.000000Z K 7 svn:log V 223 Merge fifo_vnops.c:1.126 from HEAD to RELENG_6: Assert that (vp) is locked in fifo_close(), since we rely on the exclusive vnode lock to synchronize the reference counts on struct fifoinfo. Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-21T15:32:21.000000Z K 7 svn:log V 105 Merge uipc_socket.c:1.248 from HEAD to RELENG_6: Fix spelling in a comment. Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-21T15:33:26.000000Z K 7 svn:log V 286 Merge uipc_socket2.c:1.148 from HEAD to RELENG_5: Re-comment sbcompress() to explain what it is it does; it took me quite a bit of reading to figure it out, and I want to avoid figuring it out again. Convert an if (foo) else printf("this is almost a panic") into a KASSERT. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-21T15:35:08.000000Z K 7 svn:log V 197 Merge fifo_vnops.c:1.126 from HEAD to RELENG_5: Assert that (vp) is locked in fifo_close(), since we rely on the exclusive vnode lock to synchronize the reference counts on struct fifoinfo. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-21T15:36:04.000000Z K 7 svn:log V 79 Merge uipc_socket.c:1.248 from HEAD to RELENG_5: Fix spelling in a comment. END K 10 svn:author V 3 des K 8 svn:date V 27 2005-09-21T16:08:40.000000Z K 7 svn:log V 129 Narrow the use of user credentials. Fix one case where openpam_restore_cred() might be called twice in a row. MFC after: 3 days END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-09-21T18:42:56.000000Z K 7 svn:log V 52 Style fix: "if (pointer)" -> "if (pointer != NULL)" END K 10 svn:author V 5 dougb K 8 svn:date V 27 2005-09-21T19:04:10.000000Z K 7 svn:log V 60 Remove a fortune that is duplicated verbatim in fortunes2-o END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2005-09-21T19:27:08.000000Z K 7 svn:log V 133 Add COMPAT_FREEBSD5 option. This should have been done back when I added it to GENERIC... Pointed out by: jhb Pointy hat: kensmith END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-21T19:47:00.000000Z K 7 svn:log V 500 Split power state control into two variables. hw.pci.do_powerstate has been removed. It has been replaced by hw.pci.do_power_nodriver and hw.pci.do_power_resume. The former defaults to 0 while the latter defaults to 1. When do_powerstate was set to 0, it broke suspend/resume for a lot of people as an unintended consequence. This change will only affect the areas that were intended to affect. This change will have no effect on servers, but will help laptops quite a bit. MFC After: 3 days. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-21T19:49:42.000000Z K 7 svn:log V 151 Use correct VFS locking rather than unconditionally grabbing Giant around namei() calls in kern_alternate_path(). Reviewed by: csjp MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-21T20:08:24.000000Z K 7 svn:log V 123 Don't confuse the tuple code and the tuple length. Ooops. Since most CIS are tiny, this likely hasn't bit anybody yet... END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-09-21T20:08:25.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-09-21T20:27:50.000000Z K 7 svn:log V 350 MFC: 1.16: In mountd_precmd(), use rc_args, not mountd_args to override the value of mountd_args. This fixes the problem where mountd_args was not properly being set if weak_mountd_authentifcation="YES" was set in rc.conf. PR: conf/86260 Submitted by: Thierry Herbelot Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-21T21:04:16.000000Z K 7 svn:log V 103 MFC: Add witness checks to make sure exiting threads don't hold any locks. Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-21T21:05:19.000000Z K 7 svn:log V 114 MFC: Destroy sx locks created with SX_SYSINIT() during module unload via a SYSUNINIT. Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-21T21:06:39.000000Z K 7 svn:log V 70 MFC: Use if_printf() and device_printf(). Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-21T21:09:36.000000Z K 7 svn:log V 146 MFC: Several improvements to the manual page including mentioning that mtx_trylock() only works with MTX_DEF mutexes. Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-21T21:11:28.000000Z K 7 svn:log V 80 MFC: Various small cleanups. No functional change. Approved by: re (kensmith) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-21T22:45:14.000000Z K 7 svn:log V 21 Remove OLDCARD shims END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-21T23:57:26.000000Z K 7 svn:log V 52 Better descriptions for the Jack of Diamonds cards. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-09-22T01:19:37.000000Z K 7 svn:log V 230 Temporarily disable nice threshold detection code, as it can starve a thread holding critical resource, e.g mutex or other implicit synchronous flags. Give thread which exceeds nice threshold a minimum time slice. PR: kern/86087 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2005-09-22T01:25:31.000000Z K 7 svn:log V 98 This is a forced commit. The previous change, revision 1.158 was intend to fix the PR kern/86067. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2005-09-22T01:46:11.000000Z K 7 svn:log V 301 Fix an alignment panic my preserving the 2byte padding (ETHER_ALIGN) on our copied mbuf, which keeps the IP header 32-bit aligned. This copied mbuf is reinjected back into ether_input and off to the IP routines. Reported and tested by: Peter van Dijk Approved by: mlaier (mentor) MFC after: 3 days END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-09-22T01:50:00.000000Z K 7 svn:log V 284 Remove the OPTIONS section, since it only documents FE_DEBUG and wrongly so. If the full list of fe(4) options is documented we can revive the entire section. PR: docs/86228 Submitted by: n-kogane@syd.odn.ne.jp Helped by: Masahiro Sekiguchi MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T04:46:56.000000Z K 7 svn:log V 221 MFp4: KNF (mostly remove K&R function definitions). Fix some spaces left over from de__Ping. # Didn't fix the -Exxxx return statements that appaer to be linuxisms # (and wrong) since I don't have hardware to test with. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T04:49:17.000000Z K 7 svn:log V 23 MFp4: trivial KNF nits END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T04:51:11.000000Z K 7 svn:log V 27 MFp4: Remove OLDCARD shims END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2005-09-22T04:56:59.000000Z K 7 svn:log V 149 Set allow_memio to 1 if fetching the allow_memio hint fails. This is the default behavior according the the bootverbose printf in the failure case. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2005-09-22T05:01:37.000000Z K 7 svn:log V 221 Correct bug that caused the completed "recovery" scb to have its timer reset rather than the timer of an SCB still pending on the controller after recovery completed. This should correct timeout loops seen in the field. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2005-09-22T05:06:03.000000Z K 7 svn:log V 116 Enhance diagnostic printfs for the chains of free lists used to avoid SCB ID collissions to non-packetized targets. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T05:06:37.000000Z K 7 svn:log V 21 Remove OLDCARD shims END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2005-09-22T05:11:35.000000Z K 7 svn:log V 268 Use the AHC_DISABLE_PCI_PERR flag to silence parity error reporting on chips where setting the FAILDIS bit is not effective. While here, try again to make it clear that reported parity errors indicate a failure of some PCI device *other than* the aic7xxx controller. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T05:11:50.000000Z K 7 svn:log V 50 MFp4: save mac addr hint, eliminage OLDCARD shims END K 10 svn:author V 3 des K 8 svn:date V 27 2005-09-22T05:35:24.000000Z K 7 svn:log V 180 Do not use passphraseless keys for authentication unless the nullok option was specified. PR: bin/81231 Submitted by: "Daniel O'Connor" MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T05:47:04.000000Z K 7 svn:log V 114 Remove broken OLDCARD compat shims. "PC Card" is the correct spelling. "PC-Card" isn't, per the PCMCIA standard. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T05:51:07.000000Z K 7 svn:log V 76 Finish last commit: actually remove compat methods from bt3c_pccard_methods END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T05:52:54.000000Z K 7 svn:log V 34 PC Card instead of other variants END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T05:56:32.000000Z K 7 svn:log V 20 Eliminate dead code END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T06:01:44.000000Z K 7 svn:log V 36 'PC Card' instead of other variants END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-09-22T07:11:27.000000Z K 7 svn:log V 127 Add HTTP proxy authentication, via the HTTP_PROXY_AUTH environment variable. Tested by: Emil Mikulic X-MFC-After: 6.0-RELEASE END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-22T10:51:12.000000Z K 7 svn:log V 1010 Add fi_sx, an sx lock to serialize I/O operations on the socket pair underlying the POSIX fifo implementation. In 6.x/7.x, fifo access is moved from the VFS layer, where it was serialized using the vnode lock, to the file descriptor layer, where access is protected by a reference count but not serialized. This exposed socket buffer locking to high levels of parallelism in specific fifo workloads, such as make -j 32, which expose as yet unresolved socket buffer bugs. fi_sx re-adds serialization about the read and write routines, although not paths that simply test socket buffer mbuf queue state, such as the poll and kqueue methods. This restores the extra locking cost previously present in some cases, but is an effective workaround for the instability that has been experienced. This workaround should be removed once the bug in socket buffer handling has been fixed. Reported by: kris, jhb, Julien Gabel , Peter Holm , others MFC after: 3 days END K 10 svn:author V 5 brian K 8 svn:date V 27 2005-09-22T11:18:30.000000Z K 7 svn:log V 35 Fix a typo Obtained from: OpenBSD END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-22T11:20:33.000000Z K 7 svn:log V 152 - RBX_MASK wasn't updated when RB_PAUSE was changed from 0x40000 to 0x100000 in rev. 1.67. - NOPT wasn't updated (decremented) in previous revision. END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-09-22T11:49:52.000000Z K 7 svn:log V 224 Since special interface types get their own subsections (not in mdoc(7) sense yet) in ifconfig(8) manpage, create such subsections for gif(4) and vlan(4) so that their specific options are not mixed up with general options. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2005-09-22T12:36:39.000000Z K 7 svn:log V 217 Fix a whitespace screw-up I made when doing the MFC of COMPAT_FREEBSD5. It's supposed to be "option", "space", "tab"; not "option", "tab", "tab". Approved by: re (scottl) Pointed out by: rwatson Pointy hat: kensmith END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-09-22T12:46:01.000000Z K 7 svn:log V 427 MFC 1.167: panic on attach failure... % When bus_alloc_resource_any() fails, dc_detach() is called and it % attempts to deallocate busdma tags and resources that haven't been % allocated yet, causing a panic every time a dc interface fails to % attach. Fix by checking that we really have something to dealloc % before calling bus_dma*() functions. % % Approved by: jhb % MFC after: 1 week Approved by: re (kensmith) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T14:51:11.000000Z K 7 svn:log V 96 Remove compat layer for OLDCARD compatibility. All instances of it are now gone from the tree. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-22T15:06:58.000000Z K 7 svn:log V 125 Add loader(8) variables for RB_DFLTROOT, RB_MUTE, and RB_PAUSE: "boot_dfltroot", "boot_mute", and "boot_pause" respectively. END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-22T15:14:13.000000Z K 7 svn:log V 156 Cause all flags passed by boot2 to set the respective loader(8) boot_* variable. The end effect is that all flags from boot2 are now passed to the kernel. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-22T15:30:21.000000Z K 7 svn:log V 297 Merge sysctl.8:1.59, sysctl.c:1.68 from HEAD to RELENG_6: Add "-q" argument to sysctl(8), which suppresses a limited set of warnings/ errors generated. In particular, it suppresses "unknown oid" when attempting to get or set a sysctl not present in the kernel. Approved by: re (kensmith) END K 10 svn:author V 3 ups K 8 svn:date V 27 2005-09-22T15:34:15.000000Z K 7 svn:log V 241 Don't pretend to be thread0 when calling sync(). It confuses the lock manager since in some places thread0 is then used for vnode locking while curthread is used for vnode unlocking. Found by: Yahoo! Reviewed by: ps@,jhb@ MFC after: 3 days END K 10 svn:author V 3 ups K 8 svn:date V 27 2005-09-22T15:46:21.000000Z K 7 svn:log V 118 Fix the "fpudna: fpcurthread == curthread XXX times" problem. Tested by: kris@ Reviewed by: peter@ MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T16:56:28.000000Z K 7 svn:log V 24 Clarify supported cards END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T16:56:48.000000Z K 7 svn:log V 29 Note Hawking PN652TX support END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-22T16:58:56.000000Z K 7 svn:log V 219 Merge rc.initdiskless:1.45 from HEAD to RELENG_6: Use sysctl -q when querying for kern.bootp_cookie in order to avoid printing boot-time errors that don't reflect true error conditions. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-22T17:53:57.000000Z K 7 svn:log V 269 Merge sysctl.8:1.59, sysctl.c:1.68 from HEAD to RELENG_5: Add "-q" argument to sysctl(8), which suppresses a limited set of warnings/ errors generated. In particular, it suppresses "unknown oid" when attempting to get or set a sysctl not present in the kernel. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-22T17:55:29.000000Z K 7 svn:log V 191 Merge rc.initdiskless:1.45 from HEAD to RELENG_5: Use sysctl -q when querying for kern.bootp_cookie in order to avoid printing boot-time errors that don't reflect true error conditions. END K 10 svn:author V 2 mp K 8 svn:date V 27 2005-09-22T18:32:53.000000Z K 7 svn:log V 135 Bump up BUFSIZE from 4k to 8k. This was requested by portmgr@ to allow ports builds in the cluster to work correctly. Tested by: kris END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-22T18:41:56.000000Z K 7 svn:log V 11 Fix build. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-22T18:46:29.000000Z K 7 svn:log V 146 Forgot to commit ata-card fixes last night. Fix gleb's attempt to do the right thing by merging in the changes I neglected to commit last night. END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-09-22T19:15:33.000000Z K 7 svn:log V 12 Fix comment END K 10 svn:author V 5 krion K 8 svn:date V 27 2005-09-23T11:58:16.000000Z K 7 svn:log V 134 Fix typo, FRG and GDR became UNO members in 1973, not in 1993. PR: conf/86193 Submitted by: Matthias Buelow END K 10 svn:author V 5 krion K 8 svn:date V 27 2005-09-23T12:02:27.000000Z K 7 svn:log V 118 Frank Lloyd Wright birth year is 1867, not 1869. PR: conf/82051 Submitted by: Derek Jones END K 10 svn:author V 5 krion K 8 svn:date V 27 2005-09-23T12:15:52.000000Z K 7 svn:log V 114 Whitespaces cleanup. PR: conf/81926 Submitted by: Gavin Atkinson END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-23T12:39:51.000000Z K 7 svn:log V 189 For reasons of consistency (and necessity), assert an exclusive vnode lock on the fifo vnode in fifo_open(): we rely on the vnode lock to serialize access to v_fifoinfo. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-23T12:41:06.000000Z K 7 svn:log V 118 Canonicalize the UNIX domain socket copyright layout: original holders before more recent holders. MFC after: 3 days END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-23T12:55:22.000000Z K 7 svn:log V 112 Fix vgrind(1) indexing I broke in previous revision. PR: bin/86343 Submitted by: Matej Vela END K 10 svn:author V 4 mnag K 8 svn:date V 27 2005-09-23T13:06:23.000000Z K 7 svn:log V 58 Add myself to FreeBSD calendar Approved by: pav (mentor) END K 10 svn:author V 7 wollman K 8 svn:date V 27 2005-09-23T16:54:09.000000Z K 7 svn:log V 166 If we're not installing OpenSSH in the base, don't install its startup file either. This clears the way for third-party SSH ports to install an RCng startup script. END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-09-23T18:06:11.000000Z K 7 svn:log V 334 MFC: Harden the hotplug support for SATA devices. This also fixes a few races that was present in the timeout/detach code. Fix support for the VIA 6421 controller. Fixes the losage of some ATAPI device that reported failed probing. Fix problem finding the still working disk in a broken mirror on VIA. Approved by: re@ (scottl) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-09-23T20:49:57.000000Z K 7 svn:log V 757 Restore a historical ufs_inactive behavior that has been changed in rev. 1.40 of ufs_inode.c, which allows an inode being truncated even when the filesystem itself is marked RDONLY. A subsequent call of UFS_TRUNCATE (ffs_truncate) would panic the system as it asserts that it can only be called when the filesystem is mounted read-write (same changeset, rev. 1.74 of sys/ufs/ffs/ffs_inode.c). Because ffs_mount() already takes care of sync'ing the filesystem to disk before being downgraded to readonly, it appears to be more desirable that we should not permit this sort of writes to disk. This change would fix a panic that occours when read-only mounted a corrupted filesystem and doing some file operations. MT6/5/4 candidate Reviewed by: mckusick END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-23T21:59:11.000000Z K 7 svn:log V 24 Remove obsolete include END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-23T23:22:22.000000Z K 7 svn:log V 426 MFC rev 1.101 and 1.102: revision 1.101 date: 2005/09/18 19:23:35; author: cognet; state: Exp; lines: +14 -5 Slightly change the API for the SNPSTTY ioctl so that the userland now provides a file descriptor instead of a dev_t. revision 1.102 date: 2005/09/19 13:48:45; author: ru; state: Exp; lines: +5 -5 Restore the ability to detach from a tty via SIOCSTTY and document recent changes in a manpage. Approved by: re END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-23T23:23:54.000000Z K 7 svn:log V 144 MFC rev 1.5: revision 1.5 date: 2005/09/19 10:14:05; author: mux; state: Exp; lines: +1 -1 Fix the module build for snp(4). Approved by: re END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-23T23:24:55.000000Z K 7 svn:log V 540 MFC rev 1.32, 1.33, 1.34: revision 1.32 date: 2005/09/18 19:24:05; author: cognet; state: Exp; lines: +8 -2 Open the tty device and pass the fd for SNPSTTY. revision 1.33 date: 2005/09/19 13:48:45; author: ru; state: Exp; lines: +3 -3 Restore the ability to detach from a tty via SIOCSTTY and document recent changes in a manpage. revision 1.34 date: 2005/09/21 14:30:14; author: cognet; state: Exp; lines: +8 -8 Close the tty file descriptor once we're done with it. Use O_NONBLOCK when opening the tty device. Approved by: re END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-23T23:52:26.000000Z K 7 svn:log V 349 Add '-q' option, which (when used with '-m' option) just tells if the given module is loaded or compiled into the kernel. This is useful mostly in startup scripts, when module should be loaded only if it wasn't compiled into the kernel nor already loaded, eg.: kldstat -q -m g_eli || kldload geom_eli.ko || err 1 'geom_eli module failed to load.' END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-23T23:53:35.000000Z K 7 svn:log V 74 Simplify the code a bit by using newly added (to kldstat(8) '-q') option. END K 10 svn:author V 5 brian K 8 svn:date V 27 2005-09-24T01:19:53.000000Z K 7 svn:log V 928 Modify the code path of the ifdef NOTYET part of _kse_single_thread(): o Don't reinitialise the atfork() handler list in the child. We are meant to call the child handler, and on subsequent fork()s should call all three functions as normal. o Don't reinitialise the thread specific keyed data in the child after a fork. Applications may require this for context. o Reinitialise curthread->tlflags after removing ourselves from (and reinitialising) the various internal thread lists. o Reinitialise __malloc_lock in the child after fork() (to balance our explicitly taking the lock prior to the fork()). With these changes, it is possible to enable the NOTYET code in thr_kern.c to allow the use of non-async-safe functions after fork()ing from a threaded program. Reviewed by: Daniel Eischen [_malloc_lock reinitialisation has since been moved to avoid polluting the !NOTYET code] END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-09-24T01:59:40.000000Z K 7 svn:log V 62 MFC: a lot of manpage fixes from HEAD. Approved by: re (hrs) END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-24T07:03:09.000000Z K 7 svn:log V 434 Make rule zero really magical, that way we don't have to do anything when we mount and get zero cost if no rules are used in a mountpoint. Add code to deref rules on unmount. Switch from SLIST to TAILQ. Drop SYSINIT, use SX_SYSINIT and static initializer of TAILQ instead. Drop goto, a break will do. Reduce double pointers to single pointers. Combine reaping and destroying rulesets. Avoid memory leaks in a some error cases. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-24T07:07:55.000000Z K 7 svn:log V 87 Fix typo. PR: 86522 Submitted by: Stephen Hurd MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-24T07:13:37.000000Z K 7 svn:log V 85 MFC: rev. 1.2 Use the correct function name as .Nm argument. Approved by: re (hrs) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-24T07:14:34.000000Z K 7 svn:log V 62 MFC: rev. 1.2 Use the correct function name as .Nm argument. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-24T07:24:41.000000Z K 7 svn:log V 39 MFC: Sort list of supported hardware. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-24T07:35:13.000000Z K 7 svn:log V 108 MFC: rev. 1.5 Change the DESCRIPTION section into HARDWARE, since it already lists the supported hardware. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-24T07:45:21.000000Z K 7 svn:log V 95 MFC: rev. 1.286 Don't claim matcd(4) support, it was removed long ago. Approved by: re (hrs) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-24T07:48:04.000000Z K 7 svn:log V 72 MFC: rev. 1.286 Don't claim matcd(4) support, it was removed long ago. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-24T08:20:45.000000Z K 7 svn:log V 14 Update usage. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-24T10:46:38.000000Z K 7 svn:log V 209 MFC: - Sort the list of ethernet devices by driver-name. - Sort the list of disk controllers by driver-name. The notable exception is ata(4), which should stay on top. - Add esp(4). Approved by: re (hrs) END K 10 svn:author V 5 simon K 8 svn:date V 27 2005-09-24T12:26:59.000000Z K 7 svn:log V 206 Make it possible to set the NANO_TOOLS variable to a directory outside of $NANO_SRC, which can e.g. be used if the nanobsd scripts are not in the source tree being built. Improved by: phk Approved by: phk END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-24T13:17:33.000000Z K 7 svn:log V 208 MFC rev 1.27: revision 1.27 date: 2005/09/19 13:48:45; author: ru; state: Exp; lines: +8 -5 Restore the ability to detach from a tty via SIOCSTTY and document recent changes in a manpage. Approved by: re END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-24T13:18:30.000000Z K 7 svn:log V 113 The function inplace_edit() doesn't exist anymore, remove the prototype. Submitted by: Leonardo Chiquitto Filho END K 10 svn:author V 6 cognet K 8 svn:date V 27 2005-09-24T13:19:20.000000Z K 7 svn:log V 299 It seems I can't MFC something without forgetting half the files. MFC rev 1.25 revision 1.25 date: 2005/09/18 19:23:35; author: cognet; state: Exp; lines: +2 -4 Slightly change the API for the SNPSTTY ioctl so that the userland now provides a file descriptor instead of a dev_t. Approved by: re END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-09-24T14:49:36.000000Z K 7 svn:log V 234 This part of the struct isn't needed on FreeBSD: ---snip--- FYI this bit isn't needed for FreeBSD - I think it came from either OpenBSD or NetBSD where arc4random() wasn't available during cold boot. ---snip--- Explained by: iedowse END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-24T15:57:17.000000Z K 7 svn:log V 86 Simplify the code by making use of 'kldstat -q -m '. No objections from: mlaier END K 10 svn:author V 5 wilko K 8 svn:date V 27 2005-09-24T16:47:34.000000Z K 7 svn:log V 344 Try to avoid crashes during kernel startup by limiting the # of EISA slots to probe. Problems have been reported in this area, lets hope this bandaid helps. !! Owners of EISA-equipped Alpha machines are requested to at least !! boot-test a 6-BETA build and report back to the Alpha list. Thanks! Approved by: re (scottl) Suggested by: ticso END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-24T17:32:20.000000Z K 7 svn:log V 98 The DLink DE650 has the same ID as Linksys EthernetCard, so we don't need a sperate entry for it. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-24T17:32:57.000000Z K 7 svn:log V 37 Remove unnecessary Dlink de650 entry END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-24T17:36:43.000000Z K 7 svn:log V 303 I have confirmed with my Epson EEN10B that it needs to look at the attribute memory at 0xff0 to find its MAC address. This is another instance of the IBM ethercard II from all apperances (short of popping the lid). Update the entry to document which cards we support actually need this functionality. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-24T19:31:10.000000Z K 7 svn:log V 364 Add two convenience functions for device drivers: bus_alloc_resources() and bus_free_resources(). These functions take a list of resources and handle them all in one go. A flag makes it possible to mark a resource as optional. A typical device driver can save 10-30 lines of code by using these. Usage examples will follow RSN. MFC: A good idea, eventually. END K 10 svn:author V 5 krion K 8 svn:date V 27 2005-09-24T19:41:56.000000Z K 7 svn:log V 188 Remove '\n' since it's redundant in case if file doesn't exist while running 'pkg_info -g' Based on PR: bin/42609 Submitted by: Jeff King MFC after: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-24T20:07:03.000000Z K 7 svn:log V 584 Split struct resource in an external and internal part. The external part is still called 'struct resource' but the contents is now visible to drivers etc. This makes it part of the device driver ABI so it not be changed lightly. A comment to this effect is in place. The internal part is called 'struct resource_i' and contain its external counterpart as one field. Move the bus_space tag+handle into the external struct resource, this removes the need for device drivers to even know about these fields in order to use bus_space to access hardware. (More in following commit). END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-24T20:11:07.000000Z K 7 svn:log V 330 Add convenience macros for bus_space usage that doesn't require specification of bus tag+handle. Instead of bus_space_write_1(sc->tag, sc->handle, ...) this macros offer bus_write_1(sc->resource, ...) The name+argument transformation is constant and the the macros are generated (by hand) by the script in tools/bus_macro.sh. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-24T20:44:55.000000Z K 7 svn:log V 109 Use new bus_space/resource convenience functions. Pretend the 10-bit I/O ISA addressing is not our problem. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-24T20:46:02.000000Z K 7 svn:log V 54 Use the new bus_space/resource convenience functions. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-24T21:15:00.000000Z K 7 svn:log V 82 signed/unsigned fixes (thanks to GCC4) and a few related minor style corrections. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-24T21:17:47.000000Z K 7 svn:log V 76 Detect Mac OS X's broken ACL library. Thanks to: Diego "Flameeyes" Petten? END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2005-09-24T21:19:57.000000Z K 7 svn:log V 187 Fix -u with absolute paths (e.g., "tar -uf foo.tar /bar") by handling pathname edits before comparing pathnames on disk to those in the archive. Thanks to: Gareth Bailey, Lowell Gilbert END K 10 svn:author V 5 krion K 8 svn:date V 27 2005-09-24T21:41:47.000000Z K 7 svn:log V 162 Do not bitch about bsdpan modules not having origin. Based on PR: bin/82269 Submitted by: Steven Hartland MFC after: 3 days END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-24T23:47:04.000000Z K 7 svn:log V 1159 Implement new world order in VFS locking for extended attributes. This will remove the unconditional acquisition of Giant for extended attribute related operations. If the file system is set as being MP safe and debug.mpsafevfs is 1, do not pickup Giant. Mark the following system calls as being MP safe so we no longer pickup Giant in the system call handler: o extattrctl o extattr_set_file o extattr_get_file o extattr_delete_file o extattr_set_fd o extattr_get_fd o extattr_delete_fd o extattr_set_link o extattr_get_link o extattr_delete_link o extattr_list_file o extattr_list_link o extattr_list_fd -Pass MPSAFE flags to namei(9) lookup and introduce vfslocked variable which will keep track of any Giant acquisitions. -Wrap any fd operations which manipulate vnodes in VFS_{UN}LOCK_GIANT -Drop VFS_ASSERT_GIANT into function which operate on vnodes to ensure that we are sufficiently protected. I've tested these changes with various TrustedBSD MAC policies which use extended attribute a lot on SMP and UP systems (thanks to Scott Long for making some SMP hardware available to me for testing). Discussed with: jeff Requested by: jhb, rwatson END