ƒ¹224634 137 401 825 193 321 1068 348 241 443 177 198 563 242 241 239 131 349 334 312 242 312 892 589 290 278 979 432 501 378 308 426 142 142 142 142 677 1623 509 509 146 398 373 1348 413 325 202 280 719 193 334 323 247 166 217 237 276 242 1041 2417 654 620 604 257 793 351 593 412 433 217 258 695 268 531 169 169 298 450 478 478 278 379 208 157 1078 829 340 372 268 353 351 111 337 300 313 140 343 134 115 146 262 383 216 130 278 137 163 137 230 175 230 297 175 212 646 269 1019 1019 182 182 2717 125 171 140 210 187 311 173 835 436 1329 271 223 260 182 145 177 217 136 K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T13:39:11.405409Z K 7 svn:log V 305 Add in a dirty hack that allows for AR9280/AR9285/AR9287 embedded systems, in the same way that AR9130 embedded systems work. This isn't -everything- that is required - the PCI glue still needs to be taught about the eepromdata hint, along the same lines as the AHB glue. Approved by: re (kib, blanket) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-03T14:29:20.160187Z K 7 svn:log V 732 MFC r223988: While fixing the looping of a thread while devfs vnode is reclaimed, r179247 introduced a possibility of devfs_allocv() returning spurious ENOENT. If the vnode is selected by vnlru daemon for reclamation, then devfs_allocv() can get ENOENT from vget() due to devfs_close() dropping vnode lock around the call to cdevsw d_close method. Use LK_RETRY in the vget() call, and do some part of the devfs_reclaim() work in devfs_allocv(), clearing vp->v_data and de->de_vnode. Retry the allocation of the vnode, now with de->de_vnode == NULL. The check vp->v_data == NULL at the start of devfs_close() cannot be affected by the change, since vnode lock must be held while VI_DOOMED is set, and only dropped after the check. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-08-03T18:11:53.875602Z K 7 svn:log V 97 MFC r224231,224251-224252: Make ZFS work better with respect to device nodes. PR: kern/159010 END K 10 svn:author V 4 zack K 8 svn:date V 27 2011-08-03T18:50:19.426546Z K 7 svn:log V 227 Fix an NFS server issue where it was not correctly setting the eof flag when a READ had hit the end of the file. Also, clean up some cruft in the code. Approved by: re (kib) Reviewed by: rmacklem MFC after: 2 weeks END K 10 svn:author V 6 brooks K 8 svn:date V 27 2011-08-03T19:14:22.610423Z K 7 svn:log V 972 Add support for dynamically adjusted buffers to allow the full use of the bandwidth of long fat pipes (i.e. 100Mbps+ trans-oceanic or trans-continental links). Bandwidth-delay products up to 64MB are supported. Also add support (not compiled by default) for the None cypher. The None cypher can only be enabled on non-interactive sessions (those without a pty where -T was not used) and must be enabled in both the client and server configuration files and on the client command line. Additionally, the None cypher will only be activated after authentication is complete. To enable the None cypher you must add -DNONE_CIPHER_ENABLED to CFLAGS via the make command line or in /etc/make.conf. This code is a style(9) compliant version of these features extracted from the patches published at: http://www.psc.edu/networking/projects/hpn-ssh/ Merging this patch has been a collaboration between me and Bjoern. Reviewed by: bz Approved by: re (kib), des (maintainer) END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-08-03T19:26:57.334908Z K 7 svn:log V 255 Unbreak catman(1) by removing calls to col(1). col(1) was mangling the SGR escapes and is not strictly required. See r222647, r222648, r222650, and r222653 for more details. Reported by: delphij Reviewed by: ru Approved by: re (kib) MFC after: 3 weeks END K 10 svn:author V 6 brooks K 8 svn:date V 27 2011-08-03T20:00:36.559803Z K 7 svn:log V 145 Enable keyword expansion for $FreeBSD$ on files where it was added it r224638. Submitted by: bz Approved by: re (implicit) Point hat to: brooks END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-08-03T20:21:00.175186Z K 7 svn:log V 347 The result of a joint work between rrs@ and myself at the IETF: * Decouple the path supervision using a separate HB timer per path. * Add support for potentially failed state. * Bring back RTO.min to 1 second. * Accept packets on IP-addresses already announced via an ASCONF * While there: do some cleanups. Approved by: re@ MFC after: 2 months. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2011-08-03T20:21:52.740539Z K 7 svn:log V 82 Fix two more $FreeBSD$ keywords. Reported by: pluknet Approved by: re (implicit) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T23:36:04.068946Z K 7 svn:log V 102 Hold the ath_node lock when doing TX completion so the rate control code doesn't trample over itself. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T23:57:38.425555Z K 7 svn:log V 467 Undo this for now. It's "right", but it means everything will rely on the ar9130 code. Since at least one kernel config specifies individual ath HAL chips rather than just "device ath_hal" (arm/AVILA), I'm doing this so people aren't caught out when they update to -HEAD or 9.0 and discover their ath setup doesn't compile. I'll revisit this with a proper fix sometime before 9.0-RELEASE. Approved by: re (kib, blanket) Pointed out by: ray@ Pointy hat to: adrian@ END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-08-04T03:04:05.389777Z K 7 svn:log V 145 MFC r224583: Add PCI ID for RocketRAID 4321 and 4322. A FreeNAS user have tested the change on RocketRAID 4322. Sponsored by: iXsystems, Inc. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-04T07:29:08.499822Z K 7 svn:log V 149 MFC r224566: Correctly link bsdcpio and bsdtar against libmd and libcrpyto by applying the change from r221472 (libarchive). Reviewed by: kientzle END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-04T07:32:21.523722Z K 7 svn:log V 147 MFC r224579: Fix integer overflow in txg_delay() by initializing the variable "timeout" as clock_t. Filed as Illumos Bug #1313 Reviewed by: avg END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-08-04T08:50:33.384637Z K 7 svn:log V 40 Clean up markup. Approved by: re (kib) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-04T10:37:12.367026Z K 7 svn:log V 257 MFC r208545, r208577 (unbreak make release): MFC r208545 (delphij): libarchive now needs libcrypto and liblzma. MFC r208577 (delphij): Reorder to have -lcrypto after -larchive. Our linker doesn't seem to like the current ordering :( Reported by: olgeni END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-08-04T14:18:09.639818Z K 7 svn:log V 238 Don't try to free() an address returned by mmap(). This appears to be triggered by the same .o being included twice on the command line. Found by: Nima Misaghian at Sandvine Reviewed by: kientzle, kaiw Approved by: re MFC after: 1 week END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-08-04T14:20:13.121534Z K 7 svn:log V 214 Flesh out the cap_test regression test. Add more regression testing, some of which is expected to fail until we commit more kernel implementation. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-04T14:38:30.539958Z K 7 svn:log V 146 The release/pc98/mkisoimages.sh added as part of r221466 now also takes "-b" to indicate the creation of a bootable image. Approved by: re (kib) END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-08-04T17:17:57.923434Z K 7 svn:log V 214 Flesh out the cap_test regression test. Add more regression testing, some of which is expected to fail until we commit more kernel implementation. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-05T06:57:44.206769Z K 7 svn:log V 796 Flip back to having the TXQ lock held during the whole of ath_tx_processq(). I'll deal with correcting the locking later so LORs don't occur. For now, this will let me write TX packet completion functions to implement BAW tracking and aggregation, which will update per-TID state. Having the TXQ locked in this way means that: (a) the order of TXQ completions being processed will be correct - ie, multiple concurrent calls to ath_tx_processq() for the same TXQ won't mess things up; (b) the per-TID state is correctly locked, so concurrent TX scheduling and TX completion isn't going to end up with subtle race conditions. As long as completions are only ever called from ath_tx_proc(), this should be fine - it won't race with itself. The race conditions are what I'm worried about. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-05T11:12:50.343121Z K 7 svn:log V 497 The change in r224615 didn't take into account that vn_fullpath_global() doesn't operate on locked vnode. This could cause a panic. Fix by unlocking vnode, re-locking afterwards and verifying that it wasn't renamed or deleted. To improve readability and reduce code size, move code to a new static function vfs_verify_global_path(). In addition, fix missing giant unlock in unmount(). Reported by: David Wolfskill Reviewed by: kib Approved by: re (bz) MFC after: 2 weeks END K 10 svn:author V 7 roberto K 8 svn:date V 27 2011-08-05T15:02:17.984275Z K 7 svn:log V 193 Add back ftp4, a new machine has taken its place. ftp2 and ftp8 are both IPv6 capable mirrors. cvsup4/ftp4 have already been added to the handbook. Reviewed by: nathanw Approved by: re (kib) END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-08-05T15:07:28.472498Z K 7 svn:log V 185 For POLA reasons, disable SGR sequences in catpages. See r222647 for a similar change to bsd.doc.mk after SGR was generally turned on in groff. Suggested by: ru Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-05T17:15:46.987089Z K 7 svn:log V 883 Begin fleshing out BAW tracking. baw_head/baw_tail implement a sliding window. tx_buf is an array of active frames inside the BAW. Frames that are being TXed are added to the relevant spot in tx_buf, with the baw_head/baw_tail sliding window updated. Frames that have been transmitted (successfully or not) are removed from the tx_buf array, and txa_start (the BAW left edge) is then updated. This is in no way complete and is missing a few things, notably keeping the BAW up to date when flushing a TID/node, or when a TID/node aggregation session is being torn down. There's no software retransmit, and there's currently no support yet for sending a BAR when the TX window has been forcibly moved after a TX failure. There's also a "gap" between the advertised BAW start during ADDBA and the first sequence number that is queued as an aggregate frame. Obtained from: Atheros END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-08-05T17:33:12.095739Z K 7 svn:log V 340 Remove NIS entries from /etc/nsswitch.conf for WITHOUT_NIS. We already modify various configuration files in /etc based on build configuration. This is not done for nsswitch.conf right now when setting WITHOUT_NIS. This breaks various utilities, including crond, that depend on working databases. Approved by: re (kib) MFC after: 1 month END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-08-05T17:43:11.700012Z K 7 svn:log V 403 Expect fchflags(2) to fail with EOPNOTSUPP on NFS. Even if we have CAP_FCHFLAGS, fchflags(2) fails on NFS. This is normal and expected, so don't fail the test because of it. Note that, whether or not we are on NFS, fchflags(2) should always fail with ENOTCAPABLE if we are using a capability that does not have the CAP_FCHFLAGS right. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-05T22:54:42.064024Z K 7 svn:log V 282 Make octeon_ap_boot 64 bits to handle MAXCPU up to 64. Better construction of CPU mask in platform_cpu_mask(). Release cores still in reset when platform_start_ap() is called. Reviewed by: imp, marcel Obtained from: Juniper Networks, Inc Author: Andrew Duane Approved by: re (kib) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-05T23:05:46.617641Z K 7 svn:log V 212 Remove stray semicolon in pmap_kextract() that turned the conditional "return (0)" into an unconditional one and as such broke PBVM address queries -- such as during kernel core dumps. Approved by: re (blanket) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-05T23:10:47.919104Z K 7 svn:log V 330 Follow-up commit: refactor pmap_kextract() to make it easier to catch and debug issues like the one fixed in the previous commit: Replace all return statements with goto statements so that we end up at a single place with a value for the physical address. Print a message for all unknown KVA addresses. Approved by: re (blanket) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-08-06T00:43:54.592127Z K 7 svn:log V 50 Provide a more user friendly URL to the IETF site END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-08-06T00:44:29.504446Z K 7 svn:log V 50 Provide a more user friendly URL to the IETF site END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-08-06T00:44:52.380528Z K 7 svn:log V 50 Provide a more user friendly URL to the IETF site END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-08-06T00:45:33.728954Z K 7 svn:log V 50 Provide a more user friendly URL to the IETF site END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-06T03:40:33.722069Z K 7 svn:log V 581 Fix kernel core dumps now that the kernel is using PBVM. The basic problem to solve is that we don't have a fixed mapping from kernel text to physical address so that libkvm can bootstrap itself. We solve this by passing the physical address of the bootinfo structure to the consumer as the entry point of the core file. This way, libkvm can extract the PBVM page table information and locate the kernel in the core file. We also need to dump memory chunks of type loader data, because those hold the kernel and the PBVM page table (among other things). Approved by: re (blanket) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-06T04:49:25.126183Z K 7 svn:log V 1526 Now that aggregation and BAW tracking are in place, a whole lot of bad assumptions (on my part, unfortunately) have crept up. * Add some more debugging. * Store away the original packet priority in ath_buf * The TID is being incorrectly assigned. The TID should be 16 for non-QoS packets, regardless of what the priority is. The trouble is, the rest of the code assumes all packets in the given TID are destined for the same hardware txq - ie, they all have the same WME access class/priority value. For example, if a packet has priority 0 (via M_WME_GETAC()) and is a QoS enabled packet, it'll get a TID of 0. When aggregation is enabled, these packets will also be tossed into the aggregation state. Fine. If a packet has priority 0 but isn't a QoS enabled packet, it'll also get a TID of 0. This breaks things - non-QoS packets get thrown into the aggregation state and suddenly everything is unhappy. If I put non-QoS packets into TID 16, then I'm in the unhappy situation that the packet priority may be non-zero (well, it may be non-constant) and things suddenly crash. This actually occurs in ieee80211_mgmt_output(): ieee80211_send_setup(ni, m, IEEE80211_FC0_TYPE_MGT | type, IEEE80211_NONQOS_TID, vap->iv_myaddr, ni->ni_macaddr, ni->ni_bssid); ... M_WME_SETAC(m, params->ibp_pri); So before I can continue, I likely need to correctly handle TID=16 (non-QoS frames) which can have differing AC/PRI, and thus different hardware TX queues. This influences what the locking requirements are. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-06T07:00:26.895390Z K 7 svn:log V 417 MFC r224523, r224524: MFC r224523: Fix invalid assertion of C++ external static data member declarations as anonymous namespaces are local to the current translation. MFC r224524: Fix accidential dos-style endings to unix-style line endings from last commit (r224523) to match the version approved by re@ GCC PR: c++/33094 Reviewed by: uqs Obtained from: gcc (branches/redhat/gcc-4_1-branch, rev. 129554, GPLv2) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-06T07:01:16.075789Z K 7 svn:log V 417 MFC r224523, r224524: MFC r224523: Fix invalid assertion of C++ external static data member declarations as anonymous namespaces are local to the current translation. MFC r224524: Fix accidential dos-style endings to unix-style line endings from last commit (r224523) to match the version approved by re@ GCC PR: c++/33094 Reviewed by: uqs Obtained from: gcc (branches/redhat/gcc-4_1-branch, rev. 129554, GPLv2) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-06T09:11:30.732417Z K 7 svn:log V 52 Fix a silly typo on my part. Approved by: re (hrs) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-06T09:13:09.090875Z K 7 svn:log V 303 Gavin documented these alternate options in good faith in r222751 based on the patch in the PR, however he was unaware that they were undocumented intentionally. This patch moves the information about these alternates into a comment which also explains why they are undocumented. Approved by: re (hrs) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-06T09:16:53.224673Z K 7 svn:log V 278 Rather than edit the nsswitch.conf file based on ${MK_NIS} == "no" comment out the NIS _compat options by default, but leave them in the file for the convenience of users who want to enable it. Update the comment in the file accordingly. Reviewed by: ed Approved by: re (hrs) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-06T10:12:59.515950Z K 7 svn:log V 1251 Introduce some rather annoying work arounds to make the TID->AC map consistent. The introduction of BAW tracking and blocking have shown short-comings in my code. Specifically, I assumed that the TID->AC mapping would be consistent. I've found a few things that get that wrong, specifically: * frames with no QOS bit set were being dumped into TID=0, regardless of the access category; * That resulted in raw management frames with no TID getting TID=0 instead of TID=16 (IEEE80211_NONQOS_TID), but with AC's that could vary; * So frames were being scheduled in the wrong TID, then unscheduling them ended up selecting the wrong AC and thus hardware queue, and the lock assertions would trigger. The workarounds: * store the per-TID AC in ath_tid, just as a short-cut; * make TID 16 map to AC WME_AC_BE (best effort); * override the priority/TID that net80211 gives us, so frames that don't have the QOS bit set will end up being shovelled into WME_AC_BE and TID 16; * direct-dispatch multicast frames to the multicast software queue. This still hasn't resolved the BAW issues I've begun seeing. I'll investigate those shortly. It does however fix all the lock assertions from incorrect/inconsistent hardware queue / AC / TID mapping. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-06T11:33:17.358662Z K 7 svn:log V 320 MFC r224522: Fix a race in the device pager allocation. If another thread won and allocated the device pager for the given handle, then the object fictitious pages list and the object membership in the global object list still need to be initialized. Otherwise, dev_pager_dealloc() will traverse uninitialized pointers. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-06T11:43:00.417274Z K 7 svn:log V 229 Try to figure out why an A-MPDU session hangs shortly after the session is established. * Add ATH_DEBUG_SW_TX_BAW, specifically for doing BAW debugging * Enforce that the relevant TXQ lock is held in the BAW update functions. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-06T12:08:53.535008Z K 7 svn:log V 106 Add a comment about a recursive lock which I've discovered whilst debugging. Primarily so I don't forget. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-06T14:25:11.634041Z K 7 svn:log V 184 The HT methods get overridden by ieee80211_ht_attach(), so we have to set them up -after- we call ieee80211_attach(). The addba setup/teardown routines are now properly being called. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-06T15:59:54.288315Z K 7 svn:log V 623 Add support for PBVM addresses. In a nutshell this means: o get the physical address and size of the PBVM page table. This can be found in the bootinfo structure, of which the physical address is recorded as the ELF entry point. o translate region 4 virtual addresses to physical addresses using the PBVM page table. In _kvm_kvatop() make the distinction between physical address and core file offset a little clearer to avoid confusion. To further enhance readability, always store the translated address into pa so that it's obvious how the translation from va to pa happened. Approved by: re (blanket) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-06T17:45:11.677130Z K 7 svn:log V 98 Remove a shortcut which is invalid with MAXCPU > IDR_CHEETAH_MAX_BN_PAIRS. Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-06T17:45:52.647775Z K 7 svn:log V 238 - Merge from r147740: When the last, possibly partially filled buffer is flushed, we didn't reset fragsz to 0 and as such would stop reflecting reality. - Use __FBSDID. - Wrap a too long line. Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-06T17:48:30.377050Z K 7 svn:log V 227 The tid member of struct pthread actually is long so read it as such. Accessing it as an int causes failure on big-endian LP64, i.e. mips64be, powerpc64 and sparc64. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-06T17:49:21.366142Z K 7 svn:log V 151 Use the size of struct fpreg rather than of the pointer to it when copying the FPU state. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-06T17:50:37.716167Z K 7 svn:log V 71 Implement Reviewed by: marcel Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-06T17:52:25.739230Z K 7 svn:log V 121 Implement functions necessary for compiling fbsd-threads.c. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-06T17:53:45.389506Z K 7 svn:log V 141 Compile fbsd-threads.c. Amongst others this is necessary for a working kgdb(1). Reviewed by: marcel Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2011-08-06T19:20:17.012317Z K 7 svn:log V 179 Properly initialise the "len" argument to getsockname(2) in the tcpdrop regression test so that it works (more) consistently. Approved by: re (bz) Sponsored by: Juniper Networks END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-08-07T00:11:39.849122Z K 7 svn:log V 149 Fix an error in kmem_alloc_attr(). Unless "tries" is updated, kmem_alloc_attr() could get stuck in a loop. Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-07T08:35:15.657966Z K 7 svn:log V 949 Fix NetBSD PR bin/44114: makefs with -t cd9660 -o rockridge against directories with deep structure creates a corrupted cd9660 image. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114 Fix NetBSD PR bin/45217: makefs creates ISO9660 images that violate the ECMA-119 (ISO9660) specification. This is caused by erroneously writing 32 bytes with value 0x20 to the volume_set_id field and 128 bytes with value 0x20 to the the following 37-byte fields in the PVD: copyright_file_id, abstract_file_id, bibliographic_file_id This causes, among other unwanted results the reserved4 field to be overwritten with the value 0x20. To comply with the specification, this field muse be zero. As a result, all FreeBSD distribution images created with makefs have not been 100% valid ISO9660 files. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217 Reviewed by: kientzle Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-07T08:42:36.708624Z K 7 svn:log V 2324 Add compatibility for ISO images created with unfixed makefs that violated ECMA-119 (ISO9660): allow reserved4 to be 0x20 in PVD. This allows tar to read FreeBSD distribution ISO images created with makefs prior to NetBSD bin/45217 bugfix (up to 9.0-BETA1). In addition, merge following important bugfixes from libarchive's release/2.8 branch: Revision 2812: Merge 2811 from trunk: Don't try to verify that compression-level=0 produces larger results than the default compression, since this isn't true for all versions of liblzma. Revision 2817: Merge 2814 from trunk: Fix Issue 121 (mtree parser error) http://code.google.com/p/libarchive/issues/detail?id=121 Revision 2820: Fix issue 119. Change the file location check that a file location does not exceed volume block. New one is that a file content does not exceed volume block(end of an ISO image). It is better than previous check even if the issue did not happen. While reading an ISO image generated by an older version of mkisofs utility, a file location indicates the end the ISO image if its file size is zero and it is the last file of all files of the ISO image, so it is possible that the location value is the same as the number of the total block of the ISO image. http://code.google.com/p/libarchive/issues/detail?id=119 Revision 2955: Issue 134: Fix libarchive 2.8 crashing in archive_write_finish() when the open has failed and we're trying to write Zip format. http://code.google.com/p/libarchive/issues/detail?id=134 Revision 2958: Followup on Issue 134: 1) Port test_open_failure to libarchive 2.8 branch to test the problem reported in Issue 134. This test also shows that archive_read_open() sometimes fails to report open errors correctly. 2) Fix the bug in archive_read.c 3) Comment out the tests that close functions are invoked promptly when open fails; that's fully fixed in libarchive 3.0, but I don't think it's worth fixing here. Revision 3484: Use uintmax_t with %ju Revision 3487: Fix issue 163. Correctly allocate enough memory for a input buffer saved. http://code.google.com/p/libarchive/issues/detail?id=163 Revision 3542: Merge 2516, 2536 from trunk: Allow path table offset values of 0 and 18, which are used by some ISO writers. Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-07T13:17:35.866214Z K 7 svn:log V 558 Fix a subtle race condition in addba setup - make sure the net80211 addba state is updated before the TID is unpaused, or some frames may get queued as normal when they should get queued as aggregate. This completely breaks the BAW tracking. Add some further debugging to expose race conditions. Flesh out some other, currently unused stuff. This finally(!) makes BAW tracking work and has eliminated the last obvious race conditions. It works until the first interface reset (where buffers are flushed w/out updating the BAW), or addba session teardown. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-07T15:52:13.564738Z K 7 svn:log V 524 Change lwp to int64_t as thr_pread_long() always uses a 64-bit value in order to account for LP64 targets when cross-debugging on ILP32, allowing r224683 to compile on ILP32. Note that thr_p{read,write}_{long,ptr}() still incorrectly use the size of the respective types on the host rather than that on the target when accessing the target address space which still needs to be fixed. This means that r224683 alone may not be sufficient to solve the problem it's intended to fix when cross-debugging. Approved by: re (hrs) END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-07T17:18:22.310620Z K 7 svn:log V 511 MFC r224498: In some cases, at least on Marvell 88SE912x controllers, Current Command Slot field of the PxCMD register may point to an empty command slot. That breaks command timeout detection logic, making impossible to find what command actually caused timeout, and leading to infinite wait. Workaround that by checking whether pointed command slot is really used and can timeout in its time. And if not, fallback to the dumb algorithm used with FBS -- let all commands to time out and then fail all of them. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-07T17:19:59.565757Z K 7 svn:log V 164 MFC r224531: Higher-priority initialization request can eat request scheduling done from adaclose(). Add immediate_priority check into adaschedule() to restore it. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-07T17:28:08.201398Z K 7 svn:log V 700 MFC r224496: In some cases failed SATA disks may report their presence, but don't respond to any commands. I've found, that because of multiple command retries, each of which cause 30s timeout, bus reset and another retry or requeue for many commands, it may take ages to eventually drop the failed device. The odd thing is that those retries continue even after XPT considered device as dead and invalidated it. This patch makes cam_periph_error() to block any command retries after periph was marked as invalid. With that patch all activity completes in 1-2 minutes, just after several timeouts, required to consider device death. This should make ZFS, gmirror, graid, etc. operation more robust. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-07T17:30:03.434279Z K 7 svn:log V 258 MFC r224497: Add control for ATA disk read-ahead, alike to the previously added write cache control. Some controller BIOS'es tend to disable read-ahead, that dramatically reduces read performance. Previously ata(4) always enabled read-ahead unconditionally. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-08-07T18:37:05.519882Z K 7 svn:log V 496 Convert pmcstat about using cpuset_t rather than relying on plain 32 bit ints. That fixes a first bug where pmcstat wasn't using the old cpumask_t interface and now also brings the full support for more than 32 cpus. While here, make the functions pmcstat_clone_event_descriptor() and pmcstat_get_cpumask() private to pmcstat. The problem of assuming cpu dense masks still persists and should be eventually fixed, as reported by avg. Tested by: pluknet Reviewed by: gnn Approved by: re (kib) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-08-07T20:16:46.149544Z K 7 svn:log V 314 Change all the sample kernel configurations to use NFSCL, NFSD instead of NFSCLIENT, NFSSERVER since NFSCL and NFSD are now the defaults. The client change is needed for diskless configurations, so that the root mount works for fstype nfs. Reported by seanbru at yahoo-inc.com for i386/XEN. Approved by: re (hrs) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-07T20:24:32.671909Z K 7 svn:log V 341 Merge revision 3554 from libarchive's release/2.8 branch: Partial merge of 2431 from trunk: Retry writes on EINTR. This should fix the SIGINT handler in bsdtar. Note: The rest of r2431 can't be merged, since it interacts with a big write-side rearchitecture. PR: bin/149409 Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-08-08T03:09:03.127598Z K 7 svn:log V 124 Fix a pathname (s,netinet/if_ether.h,net/ethernet.h,). PR: docs/159341 Submitted by: Garrett Cooper Approved by: re (kib) END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-08-08T05:22:09.044725Z K 7 svn:log V 163 catstrg() does not set the resulting string length. PR: bin/152549 Submitted by: Henning Petersen Approved by: re (hrs) END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-08-08T05:25:51.691816Z K 7 svn:log V 600 In rtinit1(), before rtrequest1_fib() is called, info.rti_flags is initialized by flags (function argument) or-ed with ifa->ifa_flags. If both NIC has a loopback route to itself, so IFA_RTSELF is set on ifa(s). As IFA_RTSELF is defined by RTF_HOST, rtrequest1_fib() is called with RTF_HOST flag even if netmask is not NULL. Consequently, netmask is set to zero in rtrequest1_fib(), and request to add network route is changed under hands to request to add host route. Tested by: Andrew Boyer Submitted by: Svatopluk Kraus Approved by: re (hrs) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-08T08:22:15.838222Z K 7 svn:log V 175 MFC r224581: Fix the LK_NOSHARE lockmgr flag interaction with LK_UPGRADE and LK_DOWNGRADE lock ops. Namely, the ops should be NOP since LK_NOSHARE locks are always exclusive. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-08T11:33:07.479076Z K 7 svn:log V 435 Find another panic - this time, TID=16 traffic that occured with aggregation enabled * add some more debugging * absolutely, positively ensure that IEEE80211_NONQOS_TID TIDs never get assigned an aggregation session And to fix the actual issue: * recycling ath_buf's wasn't involving a bzero() to reset the state to blank; so a left-over completion handler from an aggregate packet. Blanking the handler fixes this behaviour. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-08-08T12:16:42.162227Z K 7 svn:log V 73 MFC r224571: Add missing MODULE_VERSION() definition. PR: kern/159345 END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-08-08T12:19:20.741297Z K 7 svn:log V 73 MFC r224571: Add missing MODULE_VERSION() definition. PR: kern/159345 END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-08-08T13:13:22.936916Z K 7 svn:log V 200 Change "options NFSCLIENT" to "options NFSCL" in diskless.8, since that is now the default NFS client. This is a content change. Reported by: shuvaev at physik.uni-wuerzburg.de Approved by: re (hrs) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-08T13:15:39.274316Z K 7 svn:log V 354 Add another HAL method - ah_isFastClockEnabled - which returns AH_TRUE if 5ghz fast clock is enabled in the current operating mode. It's slightly dirty, but it's part of the reference HAL and used by the (currently closed-source) radar event code to map radar pulses back to microsecond durations. Obtained from: Atheros Approved by: re (kib, blanket) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-08-08T13:56:27.763258Z K 7 svn:log V 382 MFC r224047: Remove note that claims pthread_set_name_np is for debugging only. As Garrett points out, It is no more a debugging interface than setproctitle(3), and has not been since the name started getting stuffed into the kernel. This statement may have made sense when the name was only visible in thread state dumps and the debugger. PR: threads/158815 END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-08-08T13:58:39.325481Z K 7 svn:log V 382 MFC r224047: Remove note that claims pthread_set_name_np is for debugging only. As Garrett points out, It is no more a debugging interface than setproctitle(3), and has not been since the name started getting stuffed into the kernel. This statement may have made sense when the name was only visible in thread state dumps and the debugger. PR: threads/158815 END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-08T14:02:08.685484Z K 7 svn:log V 186 Revert r224655 and r224614 because vn_fullpath* does not always work on nullfs mounts. Change shall be reconsidered after 9.0 is released. Requested by: re (kib) Approved by: re (kib) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-08T14:40:23.791927Z K 7 svn:log V 284 - Use the Turbo Boyer-Moore algorithm for literal patterns - Patterns containing . will still use the quick sort algorithm because it is harder to adapt the TBM algorithm for this case but this is broken atm anyway - Use a larger hash table to reduce hash collisions at insertion END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-08T15:41:03.689152Z K 7 svn:log V 112 Fix method naming to match the reference HAL definition. Obtained from: Atheros Approved by: re (kib, blanket) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-08T15:42:37.037235Z K 7 svn:log V 62 .. and add a missing bracket. Approved by: re (kib, blanket) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-08T16:22:42.350736Z K 7 svn:log V 982 Introduce some more DFS related hooks, inspired both by local work and the Atheros reference code. The radar detection code needs to know what the current DFS domain is. Since net80211 doesn't currently know this information, it's extracted from the HAL regulatory domain information. The specifics: * add a new ath_dfs API hook, ath_dfs_init_radar_filters(), which updates the radar filters whenever the regulatory domain changes. * add HAL_DFS_DOMAIN which describes the currently configured DFS domain . * add a new HAL internal variable which tracks the currently configured HAL DFS domain. * add a new HAL capability, HAL_CAP_DFS_DMN, which returns the currently configured HAL DFS domain setting. * update the HAL DFS domain setting whenever the channel setting is updated. Since this isn't currently used by any radar code, these should all be no-ops for existing users. Obtained from: Atheros Submitted by: KBC Networks, sibridge Approved by: re (kib, blanket) END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-08-08T16:29:07.136406Z K 7 svn:log V 731 When setting a fixed channel on adapters with 11n support the scan channel list ends up with 2 entries, the HT and the legacy channel. The scan itself is currently always done at legacy rates so we end up receiving scan results for legacy networks on the HT channel and erroneously assigning the BSS to the 11n channel. As the channel's capabilities are used to setup the adapter we might end up with non-working settings and/or firmware crashes. Fix this by ensuring that scan results received on a HT channel are only assigned to that channel if the htcap IE is available, else use the legacy channel equivalent. Tested by: Pawel Worach, Raoul Megelas, Maciej Milewski, Andrei Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-08T17:33:35.960830Z K 7 svn:log V 244 The older HAL code sets up the regulatory domain once; FreeBSD/net80211 allows it to be overridden at runtime. Thus, add a function which updates ah_dfsDomain after a channel set call to ath_hal_set_channels(). Approved by: re (kib, blanket) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-08T18:05:22.592608Z K 7 svn:log V 276 Bitten again by the optional HALDEBUG compilation. Remove this debugging, it's not needed anymore and when not enabled, those variables trigger a compiler warning. Approved by: re (kib, blanket) Pointy-hat-to: adrian, for not testing a non-debug compile of this code enough END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-08T19:03:26.466113Z K 7 svn:log V 172 And add another missing brace. Another pointy hat moment. This one however isn't used by any public code yet, so it didn't break the build. Approved by: re (kib, blanket) END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-08-08T20:36:52.775269Z K 7 svn:log V 255 Create timeval2timespec() and timespec2timeval(). These functions will be used by process descriptors to convert process creation time into process descriptor [acm]time. Approved by: re (kib), mentor (rwatson) Suggested by: jhb Sponsored by: Google Inc END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-08-08T20:53:04.404495Z K 7 svn:log V 258 Fix buffer overflow in sys/boot/common/util.c's printf(), when printing large (>= 10^10) numbers. In theory, 20 characaters should be enough, but bump the buffer to 32 characters, so we have some room for the future. Reviewed by: pjd Approved by: re (kib) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-08T22:16:07.246976Z K 7 svn:log V 17 - Fix matching . END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-09T04:24:56.458814Z K 7 svn:log V 241 Remove this call, now that I've solved the radar module problem without needing this particular modification. It can be called during ath_dfs_radar_enable() and still achieve the same functionality, so I am. Approved by: re (kib, blanket) END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-09T07:35:56.813414Z K 7 svn:log V 207 MFC r224603: Do not force AHCI mode on NVIDIA MCP89 SATA controllers. Recent Apple Mac with this chipset does not initialize AHCI mode unless it is started from EFI loader. However, legacy ATA mode works. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-09T07:42:19.129907Z K 7 svn:log V 218 Make clear that the -U option can be dangerous. [1] In -p mode install the group file with the same permissions as normally done in etc/Makefile. Update the copyright. Requested by: peter [1] Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-09T08:09:32.025880Z K 7 svn:log V 48 MFC r224613: Corrections for the iBCS2 support. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-09T08:11:26.945883Z K 7 svn:log V 250 Do not block zero report ID. It is correct value for devices with single ID. This fixes USB_SET_IMMED call (synchronous operation) of the uhid(4) driver on devices with single report ID. Reviewed by: hselasky Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-08-09T12:23:27.196421Z K 7 svn:log V 43 Vendor import of bwk's 7-Aug-2011 release. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-08-09T12:24:33.250200Z K 7 svn:log V 24 Tag a 20110807 release. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-08-09T12:54:43.823389Z K 7 svn:log V 55 Update to a 7-Aug-2011 release. Approved by: re (kib) END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-08-09T14:06:50.804295Z K 7 svn:log V 164 Remove timeval2timespec and its converse, since we already have TIMEVAL_TO_TIMESPEC() in . Spotted by: bde Approved by: re (kib), mentor (rwatson) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-08-09T15:29:58.668663Z K 7 svn:log V 290 Merge 220876, 220877, and 221537 from the new NFS client to the old: Allow the NFS client to use a max file size larger than 1TB for v3 mounts. It now allows files up to OFF_MAX subject to whatever limit the server advertises. Reviewed by: rmacklem Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-09T15:46:52.777689Z K 7 svn:log V 120 Remove the now unneeded references to these DFS methods. Sorry for the noise everyone. Approved by: re (kib, blanket) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-09T15:47:54.734180Z K 7 svn:log V 36 - Simplify cast Submitted by: ache END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-08-09T16:42:31.293435Z K 7 svn:log V 181 Add the PCI ID for the PCH DH89xxCC on ichsmb as got from Linux counterpart. Sponsored by: Sandvine Incorporated Reviewed by: emaste, rstone Approved by: re (bz) MFC after: 3 days END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-09T19:59:22.617763Z K 7 svn:log V 43 MFC r224672: Fix a silly typo on my part. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-09T20:02:43.292156Z K 7 svn:log V 69 MFC r209031: mdoc nitpicking: the title argument shall be uppercase END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-09T20:07:16.304630Z K 7 svn:log V 43 MFC r224672: Fix a silly typo on my part. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-09T20:38:21.464714Z K 7 svn:log V 135 MFC r208027: mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the bottom of the manpages and order them consistently. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-09T20:41:43.786741Z K 7 svn:log V 81 MFC r224673: Put information about supported-but-deprecated headers in comments END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-09T20:52:12.066467Z K 7 svn:log V 135 MFC r208027: mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the bottom of the manpages and order them consistently. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-09T20:53:33.930918Z K 7 svn:log V 204 Do not update mountpoint generation counter to the value which was not yet acted upon by devfs_populate(). Submitted by: Kohji Okuno Approved by: re (bz) MFC after: 1 week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-09T20:54:00.226829Z K 7 svn:log V 81 MFC r224673: Put information about supported-but-deprecated headers in comments END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-08-09T20:55:54.105022Z K 7 svn:log V 115 Revert r224736 as the introduced value was already present. Reported by: tinderbox, pluknet Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-09T21:01:36.905789Z K 7 svn:log V 553 - Move the PG_UNMANAGED flag from m->flags to m->oflags, renaming the flag to VPO_UNMANAGED (and also making the flag protected by the vm object lock, instead of vm page queue lock). - Mark the fake pages with both PG_FICTITIOUS (as it is now) and VPO_UNMANAGED. As a consequence, pmap code now can use use just VPO_UNMANAGED to decide whether the page is unmanaged. Reviewed by: alc Tested by: pho (x86, previous version), marius (sparc64), marcel (arm, ia64, powerpc), ray (mips) Sponsored by: The FreeBSD Foundation Approved by: re (bz) END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-08-10T06:17:06.033579Z K 7 svn:log V 174 If RTF_HOST flag is specified, then we are interested in destination address. PR: kern/159600 Submitted by: Svatopluk Kraus Approved by: re (hrs) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-10T08:21:39.117691Z K 7 svn:log V 927 MFC r224690: Fix NetBSD PR bin/44114: makefs with -t cd9660 -o rockridge against directories with deep structure creates a corrupted cd9660 image. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114 Fix NetBSD PR bin/45217: makefs creates ISO9660 images that violate the ECMA-119 (ISO9660) specification. This is caused by erroneously writing 32 bytes with value 0x20 to the volume_set_id field and 128 bytes with value 0x20 to the the following 37-byte fields in the PVD: copyright_file_id, abstract_file_id, bibliographic_file_id This causes, among other unwanted results the reserved4 field to be overwritten with the value 0x20. To comply with the specification, this field muse be zero. As a result, all FreeBSD distribution ISO images created with makefs have not been 100% valid ISO9660 files. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217 Reviewed by: kientzle Obtained from: NetBSD END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-10T08:28:37.898899Z K 7 svn:log V 927 MFC r224690: Fix NetBSD PR bin/44114: makefs with -t cd9660 -o rockridge against directories with deep structure creates a corrupted cd9660 image. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114 Fix NetBSD PR bin/45217: makefs creates ISO9660 images that violate the ECMA-119 (ISO9660) specification. This is caused by erroneously writing 32 bytes with value 0x20 to the volume_set_id field and 128 bytes with value 0x20 to the the following 37-byte fields in the PVD: copyright_file_id, abstract_file_id, bibliographic_file_id This causes, among other unwanted results the reserved4 field to be overwritten with the value 0x20. To comply with the specification, this field muse be zero. As a result, all FreeBSD distribution ISO images created with makefs have not been 100% valid ISO9660 files. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217 Reviewed by: kientzle Obtained from: NetBSD END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-10T08:33:45.795079Z K 7 svn:log V 91 Remove svn:mergeinfo from files under usr.sbin/makefs This is a direct commit to stable/8 END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-10T08:34:00.457722Z K 7 svn:log V 91 Remove svn:mergeinfo from files under usr.sbin/makefs This is a direct commit to stable/7 END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-10T08:40:59.011546Z K 7 svn:log V 2624 MFC r224691, r224700 [1]: MFC r224961: Add compatibility for ISO images created with unfixed makefs that violated ECMA-119 (ISO9660): allow reserved4 to be 0x20 in PVD. This allows tar to read FreeBSD distribution ISO images created with makefs prior to NetBSD bin/45217 bugfix (up to 9.0-BETA1). In addition, merge following important bugfixes from libarchive's release/2.8 branch: Revision 2812: Merge 2811 from trunk: Don't try to verify that compression-level=0 produces larger results than the default compression, since this isn't true for all versions of liblzma. Revision 2817: Merge 2814 from trunk: Fix Issue 121 (mtree parser error) http://code.google.com/p/libarchive/issues/detail?id=121 Revision 2820: Fix issue 119. Change the file location check that a file location does not exceed volume block. New one is that a file content does not exceed volume block(end of an ISO image). It is better than previous check even if the issue did not happen. While reading an ISO image generated by an older version of mkisofs utility, a file location indicates the end the ISO image if its file size is zero and it is the last file of all files of the ISO image, so it is possible that the location value is the same as the number of the total block of the ISO image. http://code.google.com/p/libarchive/issues/detail?id=119 Revision 2955: Issue 134: Fix libarchive 2.8 crashing in archive_write_finish() when the open has failed and we're trying to write Zip format. http://code.google.com/p/libarchive/issues/detail?id=134 Revision 2958: Followup on Issue 134: 1) Port test_open_failure to libarchive 2.8 branch to test the problem reported in Issue 134. This test also shows that archive_read_open() sometimes fails to report open errors correctly. 2) Fix the bug in archive_read.c 3) Comment out the tests that close functions are invoked promptly when open fails; that's fully fixed in libarchive 3.0, but I don't think it's worth fixing here. Revision 3484: Use uintmax_t with %ju Revision 3487: Fix issue 163. Correctly allocate enough memory for a input buffer saved. http://code.google.com/p/libarchive/issues/detail?id=163 Revision 3542: Merge 2516, 2536 from trunk: Allow path table offset values of 0 and 18, which are used by some ISO writers. MFC r224700 [1]: Merge revision 3554 from libarchive's release/2.8 branch: Partial merge of 2431 from trunk: Retry writes on EINTR. This should fix the SIGINT handler in bsdtar. Note: The rest of r2431 can't be merged, since it interacts with a big write-side rearchitecture. PR: bin/149409 [1] Reviewed by: kientzle END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-08-10T08:52:27.527671Z K 7 svn:log V 29 MFC r223922: Use strlcpy(). END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-08-10T08:53:33.890900Z K 7 svn:log V 75 MFC r223924: Match size_t and ssize_t by using %zu and %zd instead of %d. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-08-10T08:54:35.308218Z K 7 svn:log V 44 MFC r223925: Use %zu when printing size_t. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-08-10T08:55:46.520153Z K 7 svn:log V 113 MFC r223926: peeraddr is only used in sizeof() evaluations, so instead of declaring it a variable, use typedef. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-10T13:24:32.099013Z K 7 svn:log V 93 - Drop reverse matching code. We always need the first match so it cannot be applied here. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-10T15:19:14.035827Z K 7 svn:log V 216 - Make fg->pattern always hold SB/MB string and fg->wpattern always hold wide string. This is more logical and allows simplifying some parts of the code. - Cleanup and style changes according to TRE's coding style END K 10 svn:author V 5 rafan K 8 svn:date V 27 2011-08-10T15:49:24.530210Z K 7 svn:log V 79 - Remove myself from ncurses maintainer due to ENOTIME Approved by: re (kib@) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-10T16:13:43.066972Z K 7 svn:log V 739 Fix the (current) major issue where BAW tracking was failing, causing the TX side to hang. When ath_tx_draintxq() was called, flushing hardware-queued TX frames, they'd be immediately freed. The bf_comp handler wasn't being called. So frames in an aggregation session would be freed without their seqnum being updated in the BAW. If enough frames were skipped, the current seqnum would be outside the BAW and thus TX on that TID would stop. This fixes the initial issue of hanging TX during an aggregation session. This also causes the receiver to have to slide the BAW over as there will be gaps in what's transmitted but without a BAR being sent to force the RX side to update. That's (for now) preferable to having things just hang. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-10T19:05:22.749375Z K 7 svn:log V 340 o Improve 224494: - Ignore some more internal SAS device status change events. - Correct inverted Bus and TargetID arguments in a warning. o Add a warning for MPI_EVENT_SAS_DISCOVERY_ERROR events, which can help identifying broken disks. Submitted by: Andrew Boyer Approved by: re (kib) Committed from: Chaos Communication Camp 2011 END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-08-10T19:12:21.423212Z K 7 svn:log V 1232 Sync makefs(8) ISO 9660 support with NetBSD: o cd9960 -> cd9660 o Move inclusion of sys/endian.h from cd9660_eltorito.c to cd9660.h since actual user is not cd9660_eltorito.c but iso.h and cd9660_eltorito.h. Actually, include order/place of sys/endian.h doesn't matter on netbsd since it is always included by sys/types.h but it's not true on other system. This should fix cross build breakage on freebsd introduced by rev. 1.16 of cd9660_eltorito.c. Problem reported and fix suggested on twitter. o Fix fd leaks in error cases. Found by cppcheck. o RRIP RE length should be 4, not 0 o Apply fixes for PR bin/44114 (makefs(8) -t cd9660 -o rockridge creates corrupted cd9660fs), iso9660_rrip.c part: - cd9660_rrip_finalize_node() should check rr_real_parent in node->parent, not in node itself in RRIP_PL case - cd9660_rrip_initialize_node() should update only node passed as arg so handle RRIP_PL in DOTDOT case Fixes malformed dotdot entries in deep (more than 8 level) directories moved into .rr_moved dir. Should be pulled up to netbsd-5. (no official ISO has such deep dirs, but cobalt restorecd is affected) Reviewed by: mm Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-10T19:16:04.489186Z K 7 svn:log V 176 - Add comments - Make FILL_BMGS and such consistent with FILL_QSBC - Avoid duplicated code by introducing a new macro - Simplify a switch to be consistent with earlier changes END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-10T19:40:23.817235Z K 7 svn:log V 128 - Align backslashes of macros - Defer copying of pattern after all checks are passed; this also makes the code easier to read END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-10T20:52:02.079426Z K 7 svn:log V 165 Revert r224760, and enhance the sed patterns from r224659 to comment out the _compat entries in the WITHOUT_NIS case rather then delete them. Approved by: re (kib) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-10T21:32:13.160376Z K 7 svn:log V 88 - TRE-specific changes to support better those systems that do not have wchar-support END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-08-10T21:39:47.155097Z K 7 svn:log V 51 - Fix a wchar-cleanness issue - TRE-specific style END K 10 svn:author V 2 np K 8 svn:date V 27 2011-08-10T22:03:34.497215Z K 7 svn:log V 86 Move cxgbtool from usr.sbin to tools/tools. Approved by: re (kib) MFC after: 1 month END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-11T02:04:21.875243Z K 7 svn:log V 121 Include a TODO/README file with things I come across during this development and things I should likely fix/think about. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-11T02:08:02.502894Z K 7 svn:log V 41 Add a couple more things I've forgotten. END