ƒ´m268525 175 132 142 327 173 189 210 1096 269 383 404 1117 146 134 364 137 297 234 205 301 162 252 209 252 209 182 422 260 531 219 156 159 901 187 217 155 168 299 141 227 155 137 250 211 285 254 185 240 538 240 610 153 590 357 715 494 494 135 422 169 168 183 208 106 451 178 739 169 223 892 400 540 145 193 891 139 527 291 221 221 221 212 484 222 397 475 214 275 432 202 249 1039 257 1191 310 528 819 467 360 180 381 147 316 167 254 482 150 500 505 636 173 217 147 259 230 278 321 523 608 146 224 225 450 934 168 244 208 212 276 165 169 249 168 184 157 151 276 176 176 163 163 130 148 107 166 98 207 202 180 601 695 147 308 437 193 252 144 175 856 612 323 291 197 148 384 134 319 317 557 416 179 161 211 366 178 164 K 10 svn:author V 2 ae K 8 svn:date V 27 2014-07-11T06:34:15.814421Z K 7 svn:log V 41 Fix condition. Sponsored by: Yandex LLC END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-07-11T06:52:48.795606Z K 7 svn:log V 47 Integrate upstream changes. MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-11T07:31:55.721876Z K 7 svn:log V 231 Remove unused readline header Readline is no longer installed after r268461. A readline compatibility header is provided by libedit, but readline definitions do not seem to be used by LLDB anyhow. Submitted by: markj, Jan Beich END K 10 svn:author V 5 jceel K 8 svn:date V 27 2014-07-11T12:51:07.125440Z K 7 svn:log V 79 Fix ioctl() requested buffer size - it should be specified in bytes, not bits. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-07-11T13:58:48.659550Z K 7 svn:log V 93 All mbuf external free functions never fail, so let them be void. Sponsored by: Nginx, Inc. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-07-11T14:34:29.407180Z K 7 svn:log V 113 Fix style bug: rename the refcount field of m_ext to ext_cnt, to match other members. Sponsored by: Nginx, Inc. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-11T16:16:26.377008Z K 7 svn:log V 1002 Fix some edge cases with rewinddir(): - In the unionfs case, opendir() and fdopendir() read the directory's full contents and cache it. This cache is not refreshed when rewinddir() is called, so rewinddir() will not notice updates to a directory. Fix this by splitting the code to fetch a directory's contents out of __opendir_common() into a new _filldir() function and call this from rewinddir() when operating on a unionfs directory. - If rewinddir() is called on a directory opened with fdopendir() before any directory entries are fetched, rewinddir() will not adjust the seek location of the backing file descriptor. If the file descriptor passed to fdopendir() had a non-zero offset, the rewinddir() will not rewind to the beginning. Fix this by always seeking back to 0 in rewinddir(). This means the dd_rewind hack can also be removed. While here, add missing locking to rewinddir(). CR: https://phabric.freebsd.org/D312 Reviewed by: jilles MFC after: 1 week END K 10 svn:author V 2 cy K 8 svn:date V 27 2014-07-11T16:26:51.471894Z K 7 svn:log V 177 Remove redundant USE_INET6 test that enables INET6 in the ipfilter userland regardless of the setting in make.conf. PR: 190964 Approved by: glebius (mentor) MFC after: 1 week END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2014-07-11T16:45:55.027700Z K 7 svn:log V 285 Fix vmstat -M after r263620 renamed 'cnt' to 'vm_cnt'. This was showing as: vmstat: undefined symbols: _cnt To remain backwards compatible with older dumps, if 'vm_cnt' symbol is not found then try again with 'cnt'. Reported by: pho Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-07-11T17:31:40.589947Z K 7 svn:log V 308 Bugfix: When a remote address was added to an endpoint, a source address was selected and cached, but it was not stored that is was cached. This resulted in selecting different source addresses for the INIT-ACK and COOKIE-ACK when possible. Thanks to Niu Zhixiong for reporting the issue. MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-07-11T19:40:50.840732Z K 7 svn:log V 1019 Improve reference counting of EXT_SFBUF pages attached to mbufs. o Do not use UMA refcount zone. The problem with this zone is that several refcounting words (16 on amd64) share the same cache line, and issueing atomic(9) updates on them creates cache line contention. Also, allocating and freeing them is extra CPU cycles. Instead, refcount the page directly via vm_page_wire() and the sfbuf via sf_buf_alloc(sf_buf_page(sf)) [1]. o Call refcounting/freeing function for EXT_SFBUF via direct function call, instead of function pointer. This removes barrier for CPU branch predictor. o Do not cleanup the mbuf to be freed in mb_free_ext(), merely to satisfy assertion in mb_dtor_mbuf(). Remove the assertion from mb_dtor_mbuf(). Use bcopy() instead of manual assignments to copy m_ext in mb_dupcl(). [1] This has some problems for now. Using sf_buf_alloc() merely to increase refcount is expensive, and is broken on sparc64. To be fixed. Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-11T21:02:54.571561Z K 7 svn:log V 55 cxgbe(4): Add an iSCSI softc to the adapter structure. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-07-11T21:15:40.386401Z K 7 svn:log V 39 Whitespace changes. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-11T22:22:08.350366Z K 7 svn:log V 271 Avoid hardcoding "gcc" in the DTrace tests. At least one test doesn't work yet without gcc, however gcc is not always available in base. Using the environment compiler is more trustable and will also work with an external compiler. Reviewed by: markj MFC after: 3 days END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-11T22:38:05.659464Z K 7 svn:log V 43 The month's name shall not be abbreviated. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-07-11T23:41:56.567562Z K 7 svn:log V 196 Allow up to 512K for boot code on GPT with BIOS. As pmbr.s says in a comment, "545K should be enough for any boot code". This rounds down slightly. Reported by: Matthew Fuller MFC after: 2 weeks END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-12T00:54:34.781050Z K 7 svn:log V 138 Automatically build and link DTrace USDT probes. This completely replaces bsd.dtrace.mk which never worked reliably. MFC after: 3 weeks END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-12T00:57:00.746778Z K 7 svn:log V 109 Remove _DTRACE_VERSION from sdt.h. It will now come from the command line (bsd.dep.mk). MFC after: 3 weeks END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-12T01:04:10.995497Z K 7 svn:log V 205 Move iic.h to sys/ so that it's automatically installed in /usr/include/sys. This lets us call iic(4) ioctls without needing the kernel source code and follows the same model of GPIO. MFC after: 3 weeks END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-12T01:06:29.424994Z K 7 svn:log V 67 Optimisation: replace ${_D:R} with just ${_D}. MFC after: 3 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T01:59:07.259227Z K 7 svn:log V 159 MFC r267986: Remove odd practice of inverting error codes. -EPERM is equal to ERESTART, returning which from ioctl() handler causes infinite syscall restart. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:03:29.017708Z K 7 svn:log V 116 MFC r268419: Fix use-after-free on XPT_RESET_BUS. That command is not queued, so does not use later status update. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:04:45.491973Z K 7 svn:log V 159 MFC r267986: Remove odd practice of inverting error codes. -EPERM is equal to ERESTART, returning which from ioctl() handler causes infinite syscall restart. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:05:51.919730Z K 7 svn:log V 116 MFC r268419: Fix use-after-free on XPT_RESET_BUS. That command is not queued, so does not use later status update. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:17:10.433749Z K 7 svn:log V 90 MFC r267877: Lock devstat updates in block backend to make it usable. Polish lock names. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:24:52.085501Z K 7 svn:log V 329 MFC r267905: Add READ BUFFER and improve WRITE BUFFER SCSI commands support. This gives some use to 512KB per-LUN buffers, allocated for Copan-specific processor code and not used. It allows, for example, to test transport performance and/or correctness without accessing the media, as supported by Linux version of sg3_utils. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:26:11.507258Z K 7 svn:log V 167 MFC r267906: Allow MODE SENSE commands through Write Exclusive persistent reservation, as required by SPC-4. Report that fact in persistent reservation capabilities. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:28:11.289847Z K 7 svn:log V 438 MFC r267933: Simplify statistics calculation. Instead of trying to guess size of disk I/O operations (it just won't work that way for newly added commands, and is equal to data move size for old ones), account data move traffic. If disk I/Os are that interesting, then backends have to account and provide that information. Block backend already exports the information about disk I/Os via devstat, so having it here too is excessive. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:29:33.847139Z K 7 svn:log V 126 MFC r268204: Use separate memory type M_CTLIO for I/Os. CTL allocate large amount of RAM. This change give some more stats. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:33:03.640008Z K 7 svn:log V 64 MFC r268392: Do not return statuses for aborted iSCSI commands. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T02:40:25.043240Z K 7 svn:log V 67 MFC r268283: Improve readability of XML generated by CTL_LUN_LIST. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-12T04:34:39.607835Z K 7 svn:log V 808 MFC r267643, r267873, r268391, r268398: Introduce fine-grained CTL locking to improve SMP scalability. Split global ctl_lock, historically protecting most of CTL context: - remaining ctl_lock now protects lists of fronends and backends; - per-LUN lun_lock(s) protect LUN-specific information; - per-thread queue_lock(s) protect request queues. This allows to radically reduce congestion on ctl_lock. Create multiple worker threads, depending on number of CPUs, and assign each LUN to one of them. This allows to spread load between multiple CPUs, still avoiging congestion on queues and LUNs locks. On 40-core server, exporting 5 LUNs, each backed by gstripe of SATA SSDs, accessed via 6 iSCSI connections, this change improves peak request rate from 250K to 680K IOPS. Sponsored by: iXsystems, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-12T05:40:13.442157Z K 7 svn:log V 92 Expose in_pcbbind_check_bindmulti() so the upcoming IPv6 RSS changes can be made to use it. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-12T05:42:57.011806Z K 7 svn:log V 121 Add some hash types for UDP RSS for both IPv4 and IPv6. Nothing is yet using this but I'd like to reserve these values. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-12T05:43:43.467139Z K 7 svn:log V 60 Add RSS hashing awareness for IPv6 and TCP IPv6 hash types. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-12T05:44:16.349582Z K 7 svn:log V 73 Add the IPv6 versions of the multi-bind, hash/hash type and RSS options. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-12T05:45:53.755545Z K 7 svn:log V 203 Add INP_RSS_BUCKET_SET awareness for IPv6 pcbgroup entries. This ensures that a listen socket with INP_RSS_BUCKET_SET set will use the pre-determined PCBGROUP rather than what the hashing path chooses. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-12T05:46:33.316312Z K 7 svn:log V 46 Add IPv6 flowid, bindmulti and RSS awareness. END K 10 svn:author V 2 cy K 8 svn:date V 27 2014-07-12T05:59:19.448615Z K 7 svn:log V 135 MFC r268286: Fix compile-time errors when NO_WERROR and WITHOUT_INET6_SUPPORT (NO_INET6) are specified. Approved by: glebius (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-12T06:23:42.133079Z K 7 svn:log V 60 Revert r268543. We should probably fix sys/gpio.h instead. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-12T07:46:18.882338Z K 7 svn:log V 42 Remove bsd.dtrace.mk. MFC after: 3 weeks END K 10 svn:author V 8 theraven K 8 svn:date V 27 2014-07-12T07:47:50.791088Z K 7 svn:log V 152 Turn off exceptions and rtti when building the c++ version of users. Neither is used in the program and this saves us 10KB (around 40%) in binary size. END K 10 svn:author V 3 jlh K 8 svn:date V 27 2014-07-12T10:18:33.612655Z K 7 svn:log V 118 Make the description of the "no_prefer_iface" flag easier to understand. Reviewed by: Silence on -net@ and from ume@ END K 10 svn:author V 6 jilles K 8 svn:date V 27 2014-07-12T10:27:30.985267Z K 7 svn:log V 189 sh: Consistently treat ${01} like $1. Leading zeroes were ignored when checking whether a positional parameter is set, but not when expanding its value. Ignore leading zeroes in any case. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-12T15:19:30.055498Z K 7 svn:log V 161 strfmon: reduce unnecessary snprintf. No need for the snprintf/asprintf dance; use fixed width formats. Obtained from: NetBSD (CVS rev. 1.8) MFC after: 1 week END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-12T15:35:04.016647Z K 7 svn:log V 93 Clear nonblock and async on devctl close instaed of open. This is a purely cosmetic change. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-12T17:39:13.673253Z K 7 svn:log V 147 MFC r268272: minor perf enhancement for UTF-8 Reduce some duplicate code. Reference: https://www.illumos.org/issues/628 Obtained from: Illumos END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-12T18:23:35.081667Z K 7 svn:log V 445 MFC r268130, r268224, r268230, r268231: Various DTrace Merges from OpenSolaris/Illumos: 15-Sep-2008: 6735480 race between probe enabling and provider registration 20-Apr-2008: 6822482 DOF validation needs to handle loadable sections flagged as unloadable 22-Apr-2009: 6823388 DTrace ioctl handlers must validate all structure members 30-Jun-2009: 6851093 system drops to kmdb with anonymous dtrace probes + kmdb Obtained from: OpenSolaris END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-12T18:30:35.486028Z K 7 svn:log V 147 MFC r268272: minor perf enhancement for UTF-8 Reduce some duplicate code. Reference: https://www.illumos.org/issues/628 Obtained from: Illumos END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-12T18:44:47.444841Z K 7 svn:log V 517 MFC r267627: strptime: add support for %t and %n Posix strptime() requires support for %t and %n, which were added to the illumos port. Curiously we were skipping white spaces by default in most other cases making %t meaningless. We now skip spaces in the case of the %e specifier as strftime(3) explicitly adds a space for the single digit case. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html PR: 173421 Obtained from: Illumos (Rev. a11c1571b6942161b0186d0588609448066892c2) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-12T21:24:28.363515Z K 7 svn:log V 58 Add bsd.dtrace.mk to obsolete files. MFC after: 3 weeks. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2014-07-12T21:54:11.402174Z K 7 svn:log V 494 sh: Correctly handle positional parameters beyond INT_MAX on 64-bit systems. Currently, there can be no more than INT_MAX positional parameters. Make sure to treat all higher ones as unset to avoid incorrect results and crashes. On 64-bit systems, our atoi() takes the low 32 bits of the strtol() and sign-extends them. On 32-bit systems, the call to atoi() returned INT_MAX for too high values and there is not enough address space for so many positional parameters, so there was no issue. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-07-12T22:27:21.691483Z K 7 svn:log V 264 Initial commit of a script to generate VHD files for the Microsoft Azure environment. There are a few issues outstanding with the image in the Azure environment, however this script does generate images that boot in Hyper-V. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2014-07-12T22:56:41.772755Z K 7 svn:log V 619 MFC 267929, 267937, 267939, 267940, 267941, 267942, 267987, 268006: 2915 DTrace in a zone should see "cpu", "curpsinfo", et al 2916 DTrace in a zone should be able to access fds[] 2917 DTrace in a zone should have limited provider access 4477 DTrace should speak JSON Add stubs for CTF functions which are not yet implemented. 4474 DTrace Userland CTF Support 4475 DTrace userland Keyword 4476 DTrace tests should be better citizens 4479 pid provider types 4480 dof emulation is missing checks 4471 DTrace count() with histogram 4472 DTrace full width distribution histograms 4473 DTrace frequency trails END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2014-07-12T23:27:38.530176Z K 7 svn:log V 396 MFC: r268008 There might be a potential race condition for the NFSv4 client when a newly created file has another open done on it that update the open mode. This patch moves the code that updates the open mode up into the block where the mutex is held to ensure this cannot happen. No bug caused by this potential race has been observed, but this fix is a safety belt to ensure it cannot happen. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2014-07-13T00:19:39.361732Z K 7 svn:log V 396 MFC: r268008 There might be a potential race condition for the NFSv4 client when a newly created file has another open done on it that update the open mode. This patch moves the code that updates the open mode up into the block where the mutex is held to ensure this cannot happen. No bug caused by this potential race has been observed, but this fix is a safety belt to ensure it cannot happen. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-13T06:01:23.678276Z K 7 svn:log V 43 Merge several equal serialization indexes. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-13T07:39:28.641592Z K 7 svn:log V 324 Fix performance problems with AXGE network adapter in RX direction: - Remove 4 extra bytes from the ethernet payload. - The maximum RX buffer was incorrectly set. Increase it to 64K for now, until the exact limit is understood. - Enable hardware checksumming again. - Make hardware data structure packed. MFC after: 3 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-13T09:34:59.906939Z K 7 svn:log V 72 Turn off blinking device leds at attach. MFC after: 3 days PR: 183735 END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-07-13T10:31:29.609901Z K 7 svn:log V 74 Add a headphone redirection quirk for the Lenovo G580. MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-13T10:38:01.542791Z K 7 svn:log V 87 Unbreak with gcc. I'm tired to see tinderbox spamming. Feel free to fix it your way. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-07-13T15:13:25.191262Z K 7 svn:log V 113 MFC r268487: Enable 8051 before downloading firmware. Tested by: Carlos Jacobo Puga Medina (original version) Phabric: D95 END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-07-14T06:00:01.924888Z K 7 svn:log V 196 Make bind(2) and connect(2) return EAFNOSUPPORT for AF_UNIX on wrong address family. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191586 for the original discussion. Reviewed by: terry END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-14T07:25:30.920605Z K 7 svn:log V 123 MFC r268354: Improve support for Intel Lynx Point USB 3.0 controllers by masking the port routing bits like done in Linux. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-14T07:27:10.920740Z K 7 svn:log V 123 MFC r268354: Improve support for Intel Lynx Point USB 3.0 controllers by masking the port routing bits like done in Linux. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-14T07:30:04.941426Z K 7 svn:log V 123 MFC r268354: Improve support for Intel Lynx Point USB 3.0 controllers by masking the port routing bits like done in Linux. END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T08:17:11.787692Z K 7 svn:log V 119 Remove code separator lines which do not conform to style(9). Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T08:34:54.543342Z K 7 svn:log V 391 Generalize vn_get_ino() to allow filesystems to use custom vnode producer, instead of hard-coding VFS_VGET(). New function, which takes callback, is called vn_get_ino_gen(), standard callback for vn_get_ino() is provided. Convert inline copies of vn_get_ino() in msdosfs and cd9660 into the uses of vn_get_ino_gen(). Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T08:41:13.716994Z K 7 svn:log V 129 In kern_linkat(), avoid passing doomed vnode to the VOP. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T08:45:29.358376Z K 7 svn:log V 304 The tmpfs_link() must not dereference the filesystem-specific data for a vnode until it is verified that the vnode indeed belongs to tmpfs mount. Otherwise, it might access random memory, at least in the debug kernel. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T08:55:02.488282Z K 7 svn:log V 382 Add some assertions for the code handling vm_object for tmpfs vnode. In particular, vnode must be exclusively locked when the tmpfs vnode and object are divorced. When the vnode is opened, the object must be still alive, since only live vnode can be opened, and the tmpfs node owns a reference on the object. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T08:59:25.586287Z K 7 svn:log V 121 Add convenience macro to assert tmpfs node lock. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T09:02:40.153881Z K 7 svn:log V 182 In tmpfs_alloc_file(), code after the 'out' label does only 'return error;'. Replace goto's with the return. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T09:10:00.889914Z K 7 svn:log V 339 Extract the code to put a filesystem into the suspended state (at the unmount time) in the helper vfs_write_suspend_umnt(). Use it instead of two inline copies in FFS. Fix the bug in the FFS unmount, when suspension failed, the ufs extattrs were not reinitialized. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T09:13:56.636884Z K 7 svn:log V 109 Style. Add comment about lock mode. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T09:16:55.729079Z K 7 svn:log V 156 Use tmpfs_vn_get_ino_gen() to handle the races with reclaim in tmpfs dotdot lookup. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T09:30:37.610524Z K 7 svn:log V 946 The OBJ_TMPFS flag of vm_object means that there is unreclaimed tmpfs vnode for the tmpfs node owning this object. The flag is currently used for two purposes. First, it allows to correctly handle VV_TEXT for tmpfs vnode when the ref count on the object is decremented to 1, similar to vnode_pager_dealloc() for regular filesystems. Second, it prevents some operations, which are done on OBJT_SWAP vm objects backing user anonymous memory, but are incorrect for the object owned by tmpfs node. The second kind of use of the OBJ_TMPFS flag is incorrect, since the vnode might be reclaimed, which clears the flag, but vm object operations must still be disallowed. Introduce one more flag, OBJ_TMPFS_NODE, which is permanently set on the object for VREG tmpfs node, and used instead of OBJ_TMPFS to test whether vm object collapse and similar actions should be disabled. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T09:35:14.530622Z K 7 svn:log V 164 Change forgotten in r268615. Set the OBJ_TMPFS_NODE flag for vm_object of VREG tmpfs node. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-14T09:52:33.201575Z K 7 svn:log V 1097 Rework the tmpfs unmount. - Suspend filesystem for unmount. This prevents new tmpfs nodes from instantiating, and also ensures that only unmount thread can destroy nodes. - Do not start tmpfs node deletion until all vnodes are reclaimed, which guarantees that no thread can access tmpfs data. For this, call vflush() in the loop, until the mnt_nvnodelistsize is non-zero. Note that after mnt_nvnodelistsize becomes 0, insmntque() blocks insertion of a vnode germ into the mount list of vnodes. - Fail node allocation when the filesystem is being unmounted. This is race-free due to the vflush() call in loop. This is mostly cosmetic, avoiding some more work which might be done until suspension in unmount is started. Note that there is currently no way to prevent new vnode instantiation from readers during the unmount. Due to this, forced unmount might live-lock if vflush() loop cannot get to the zero vnode count due to races with readers. The unmount would proceed after the load is lifted. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 4 tijl K 8 svn:date V 27 2014-07-14T11:07:43.173126Z K 7 svn:log V 216 MFC r267441: Don't install GSS-API headers when the GSSAPI option has been disabled. Some ports assume GSS-API is supported when they find the headers. PR: 189156 Submitted by: Garrett Cooper END K 10 svn:author V 4 gahr K 8 svn:date V 27 2014-07-14T12:24:38.047250Z K 7 svn:log V 434 Unbreak the build by re-enabling exceptions. Disabling them breaks build on archs using GCC. The problem is at line 156 of bits/basic_ios.h: if (this->exceptions() & __state) __throw_exception_again; With exceptions disabled __throw_exception_again is defined as #define __throw_exception_again at line 45 of exception_defines.h and the code results in an empty loop body, which fails because of -Werror. Approved by: cognet END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-07-14T13:53:10.319413Z K 7 svn:log V 725 Make generation of nslexer.c more robust. Ensure that lex errors fail the build instead of being silently ignored due to the piped call. Also postpone the update of the nslexer.c file until we are sure we have generated it properly. These changes fix some very obscure build failures I encountered while building FreeBSD within a chroot that did not have devfs mounted. The specific errors looked like: .../libc.so.7: undefined reference to `_nsyyerror' .../libc.so.7: undefined reference to `_nsyyin' .../libc.so.7: undefined reference to `_nsyylex' .../libc.so.7: undefined reference to `_nsyylineno' .../libc.so.7: undefined reference to `_nsyytext' and were caused due to a mangled nslexer.c being linked into libc. END K 10 svn:author V 3 smh K 8 svn:date V 27 2014-07-14T14:33:03.463482Z K 7 svn:log V 374 Don't report non-native block-size pools under zpool status -x zpool status -x is used to identify pools that are exhibiting errors or are otherwise unavailable, therefore non-native block-size pools shouldn't be reported. Also update man page to clarify other additional conditions which won't cause a pool to be displayed under zpool status -x. Sponsored by: Multiplay END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-14T15:54:50.211266Z K 7 svn:log V 267 MFC r268538: Avoid hardcoding "gcc" in the DTrace tests. At least one test doesn't work yet without gcc, however gcc is not always available in base. Using the environment compiler is more trustable and will also work with an external compiler. Reviewed by: markj END K 10 svn:author V 3 alc K 8 svn:date V 27 2014-07-14T17:16:09.652898Z K 7 svn:log V 88 Eliminate dead code. There is no direct map. This code was cut-and-pasted from amd64. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-07-14T17:42:22.132030Z K 7 svn:log V 280 On my Lenovo laptop, the firmware maps the EFI framebuffer with MTRRs set to uncacheable. This leads to execrable console performance. Once PMAP is up, remap the framebuffer as write-combining. This reduces boot time on my laptop by 60% when booting with EFI. MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-14T17:54:36.093591Z K 7 svn:log V 51 Bump mdoc date after r268621. X-MFC-With: r268621 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-14T18:02:36.527590Z K 7 svn:log V 219 4951 ZFS administrative commands should use reserved space, not fail with ENOSPC (fix call) Approved by: Christopher Siden illumos/illumos-gate@c39f2c8cacf297ec37acd421f4c4fec127991995 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-14T18:04:16.586733Z K 7 svn:log V 71 Record MFV of 268626. The change is already in FreeBSD as of r268473. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-14T19:16:49.026883Z K 7 svn:log V 161 Minor (mostly cosmetic) cleanups Several whitespace fixes convert *rootDir from external to static. Obtained from: NetBSD, OpenBSD (partial) MFC after: 3 days END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-14T20:07:23.072439Z K 7 svn:log V 389 fsck_msdosfs: be a bit more permissive The free space value in the FSInfo block is merely unitialized when it is 0xffffffff. This fixes a bug found in NetBSD. It must be noted that we never supported all the checks that NetBSD does as some of them would cause failures with a freshly created FAT32 from MS-Windows. While here, bring some space fixes. Obtained from: NetBSD (rev. 1.22) END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-14T20:13:24.187464Z K 7 svn:log V 58 Revert r268629: This was supposed to go to head first :( END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-14T20:17:09.655135Z K 7 svn:log V 407 fsck_msdosfs: be a bit more permissive The free space value in the FSInfo block is merely unitialized when it is 0xffffffff. This fixes a bug found in NetBSD. It must be noted that we never supported all the checks that NetBSD does as some of them would cause failures with a freshly created FAT32 from MS-Windows. While here, bring some space fixes. Obtained from: NetBSD (rev. 1.22) MFC after: 3 days END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-14T20:58:02.610721Z K 7 svn:log V 412 msdosfs: Assorted fixes from other BSDs. When truncating cluster chains fix the length of the cluster head. http://marc.info/?t=140304310700005&r=1&w=2 Avoid infinite loops in cluster chain linked lists. http://marc.info/?l=openbsd-tech&m=140275150804337&w=2 Avoid off-by-one on FAT12 filesystems. http://marc.info/?l=openbsd-tech&m=140234174104724&w=2 Obtained from: NetBSD (from OpenBSD) MFC after: 1 week END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-14T20:58:57.358364Z K 7 svn:log V 543 Fix the Zedboard/Zynq ethernet driver to handle media speed changes so that it can connect to switches at speeds other than 1gb. This requires changing the reference clock speed. Since we still don't have a general clock API that lets a SoC-independant driver manipulate its own clocks, this change includes a weak reference to a routine named cgem_set_ref_clk(). The default implementation is a no-op; SoC-specific code can provide an implementation that actually changes the speed. Submitted by: Thomas Skibo END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-14T21:12:59.559978Z K 7 svn:log V 81 Manage struct sigacts refcnt with atomics instead of a mutex. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-14T21:32:40.509547Z K 7 svn:log V 124 newfs_msdosfs: Respect FSFIXFAT Fix some whitespace issues while here. Obtained from: NetBSD (rev. 1.9) MFC after: 3 days END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-14T22:40:46.235729Z K 7 svn:log V 55 Plug p_pptr null test in do_execve. It is always true. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-14T23:25:29.814629Z K 7 svn:log V 164 fortune(8): Search fortune files installed by ports/packages as well as those supplied by the base system. PR: 191800 Submitted by: Andy Kosela MFC after: 1 week END K 10 svn:author V 6 grehan K 8 svn:date V 27 2014-07-15T00:25:54.769088Z K 7 svn:log V 134 Add a call to synthesize a C/H/S value for block emulations that require it (ahci). The algorithm used is from the VHD specification. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2014-07-15T00:27:08.113866Z K 7 svn:log V 182 Use the blockif CHS routine to create fake CHS values, and then populate them in the identity page. This fixes a divide-by-zero error at probe time with NetBSD. MFC after: 1 week. END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-15T01:03:29.740079Z K 7 svn:log V 229 Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl. The firmware allows up to 48B to be read this way but the driver limits itself to 8B at a time to remain compatible with old cxgbetool binaries. MFC after: 1 week END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-15T02:18:55.475896Z K 7 svn:log V 427 Fix an issue with service(8) where utilities such as screen(1) and tmux(1) would behave differently when utilizing rc-script was invoked manually vs. service(8). The issue being that these utilities require the TERM environ variable to be set and service(8) was not passing it down. Reported by: Michael Dexter PR: bin/191869 Reviewed by: allanjude MFC after: 3 days X-MFC-to: stable/10, stable/9 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-15T02:21:35.494319Z K 7 svn:log V 515 libc/gen: small updates to code originating at OpenBSD arc4random.c - CVS rev. 1.22 Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as ``-upper_bound % upper_bound''. Simplifies the code and makes it the same on both ILP32 and LP64 architectures, and also slightly faster on LP64 architectures by using a 32-bit remainder instead of a 64-bit remainder. - CVS rev. 1.23 Spacing readpassphrase.c -CVS rev. v 1.24 most obvious unsigned char casts for ctype Obtained from: OpenBSD MFC after: 5 days END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-07-15T02:21:51.822514Z K 7 svn:log V 52 Document that listen(2) can fail with EDESTADDRREQ. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-15T03:28:37.535162Z K 7 svn:log V 131 libc/stdlib: Minor cleanups to code originating in NetBSD Mostly ANSIfication and typos. Obtained from: NetBSD MFC after: 5 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T04:33:11.001483Z K 7 svn:log V 128 MFC r267572: MFV r249332 (illumos-gate 14005:55fc53126003) Illumos ZFS issues: 3654 zdb should print number of ganged blocks END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-15T04:39:23.804661Z K 7 svn:log V 354 Add image_data() for checking whether a sequence of blocks has data. Use this for VHD and VMDK to avoid allocating space in the image for empty sectors. Note that this negatively affects performance because mkimg uses a temporary file for the intermediate storage. When mkimg has better internal book keeping, performance can be significantly improved. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T04:39:55.133123Z K 7 svn:log V 837 MFC r266771: MFV r266766: Add a new zfs property, "redundant_metadata" which can have values "all" or "most". The default will be "all", which is the current behavior. When set to all, ZFS stores an extra copy of all metadata. If a single on-disk block is corrupt, at worst a single block of user data (which is recordsize bytes long) can be lost. Setting to "most" will cause us to only store 1 copy of level-1 indirect blocks of user data files. This can improve performance of random writes, because less metadata has to be written. In practice, at worst about 100 blocks (of recordsize bytes each) of user data can be lost if a single on-disk block is corrupt. The exact behavior of which metadata blocks are stored redundantly may change in future releases. Illumos issue: 3835 zfs need not store 2 copies of all metadata END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T04:44:06.184321Z K 7 svn:log V 72 MFC r260142: MFV r258972: 4373 add block contents print to zstreamdump END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T04:53:34.272749Z K 7 svn:log V 147 MFC r268075: MFV r267565: 4757 ZFS embedded-data block pointers ("zero block compression") 4913 zfs release should not be subject to space checks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T05:00:46.274670Z K 7 svn:log V 111 MFC r268079: MFV r267566: 4390 i/o errors when deleting filesystem/zvol can lead to space map corruption END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T05:12:16.446897Z K 7 svn:log V 115 MFC r268082: MFV r267567: 4881 zfs send performance degradation when embedded block pointers are encountered END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-07-15T05:16:00.345839Z K 7 svn:log V 183 Align partitions on 1MB boundaries. This seems to (unexpectedly) increase boot time in Hyper-V, and may fix some recent issues in Azure itself. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T05:28:58.420419Z K 7 svn:log V 69 MFC r268084: MFV r267568: 4891 want zdb option to dump all metadata END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T05:32:53.371494Z K 7 svn:log V 73 MFC r268085: MFV r267569: 4897 Space accounting mismatch in L2ARC/zpool END K 10 svn:author V 3 alc K 8 svn:date V 27 2014-07-15T05:34:27.861714Z K 7 svn:log V 156 Eliminate repeated calculation of next_bucket in pmap_protect() and pmap_remove(). Eliminate an unnecessary variable from pmap_remove() and pmap_advise(). END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T05:36:26.031734Z K 7 svn:log V 72 MFC r268086: MFV r267570: 4756 metaslab_group_preload() could deadlock END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T05:39:22.242582Z K 7 svn:log V 88 MFC r268123: MFV r268119: 4914 zfs on-disk bookmark structure should be named *_phys_t END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T05:42:09.150574Z K 7 svn:log V 61 MFC r268126: MFV r268121: 4924 LZ4 Compression for metadata END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-15T05:45:50.505761Z K 7 svn:log V 55 MFC r268128: MFV r268122: 4929 want prevsnap property END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-15T09:30:43.623844Z K 7 svn:log V 183 Make amd64 pmap_copy_pages() functional for pages not mapped by DMAP. Requested and reviewed by: royger Tested by: pho, royger Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-15T10:01:33.267756Z K 7 svn:log V 84 MFC r268383: Correct si_code for the SIGBUS signal generated by the alignment trap. END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-15T10:04:09.126234Z K 7 svn:log V 84 MFC r268383: Correct si_code for the SIGBUS signal generated by the alignment trap. END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-15T10:05:52.864653Z K 7 svn:log V 71 MFC r268385: Make this compilable on latest Linux'es without warnings. END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-15T10:07:05.964720Z K 7 svn:log V 71 MFC r268385: Make this compilable on latest Linux'es without warnings. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2014-07-15T10:34:21.295277Z K 7 svn:log V 36 Properly #ifdef evdev-related code. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2014-07-15T10:38:05.217277Z K 7 svn:log V 54 Add routine translating scancodes to evdev key codes. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2014-07-15T10:38:22.627774Z K 7 svn:log V 13 Minor fixes. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2014-07-15T10:39:14.145579Z K 7 svn:log V 72 Add evdev support for AT keyboards, PS/2 mices and keyboard mutiplexer. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2014-07-15T11:03:51.322140Z K 7 svn:log V 5 MFC. END K 10 svn:author V 3 pho K 8 svn:date V 27 2014-07-15T13:29:36.123342Z K 7 svn:log V 114 Fix trailing blanks. For tmpfs2.sh create mount point if not found. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-15T15:29:43.242827Z K 7 svn:log V 108 Add a comment to explain the EAGAIN is only there for POSIX compliance Resquested by: kib Reviewed by: des END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-15T15:40:33.032214Z K 7 svn:log V 88 Fix build with SMP disabled. CR: https://phabric.freebsd.org/D407 Reviewed by: royger END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T16:49:35.329358Z K 7 svn:log V 508 MFC r267639: Increase CTL_DEVID_LEN from 16 to 64 bytes. SPC-4 recommends T10 vendor ID based LUN ID was created by concatenating product name and serial number (and istgt follows that). But product name is 16 bytes long by itself, so 16 bytes total length is clearly not enough to fit both. To keep compatibility with existing configurations, pad short device IDs to old length of 16, same as before. This change probably breaks CTL user-level ABI, so control tools should be rebuilt after this change. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T16:53:04.755688Z K 7 svn:log V 602 MFC r268096, r268306, r268361: Add more formal and strict command parsing and validation. For every supported command define CDB length and mask of bits that are allowed to be set. This allows to remove bunch of checks through the code and still make the validation more strict. To properly do it for commands supporting multiple service actions, formalize their parsing by adding subtables for each of such commands. As visible effect, this change allows to add support for REPORT SUPPORTED OPERATION CODES command, reporting to client all the data about supported SCSI commands, except timeouts. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T16:54:04.251747Z K 7 svn:log V 55 MFC r268103: Add support for REPORT TIMESTAMP command. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T16:55:13.559555Z K 7 svn:log V 215 MFC r268265: Remove targ_enable()/targ_disable() frontend methods. Those methods were never implemented, and I believe that their concept is wrong, since single frontend (SCSI port) can not handle several targets. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T16:57:30.211175Z K 7 svn:log V 344 MFC r268266, r268275: Separate concepts of frontend and port. Before iSCSI implementation CTL had no knowledge about frontend drivers, it had only frontends, which really were ports (alike to LUNs, if comparing to backends). But iSCSI added there ioctl() method, which does not belong to frontend as a port, but belongs to a frontend driver. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T16:58:38.781489Z K 7 svn:log V 100 MFC r268280: Make options KPI more generic to allow it to be used for ports too, not only for LUNs. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T16:59:46.025826Z K 7 svn:log V 159 MFC r268284: Introduce new IOCTL CTL_PORT_LIST reporting in more flexible XML format. Leave old CTL_GET_PORT_LIST in place so far. Garbage-collect it later. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:00:41.230190Z K 7 svn:log V 52 MFC r268287: Implement and use ctl_frontend_find(). END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:01:39.746575Z K 7 svn:log V 83 MFC r268288: Improve CTL_BEARG_* flags support, including optional values copyout. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:05:11.859272Z K 7 svn:log V 763 MFC r268291: Create separate CTL port for every iSCSI target (and maybe portal group). Having single port for all iSCSI connections makes problematic implementing some more advanced SCSI functionality in CTL, that require proper ports enumeration and identification. This change extends CTL iSCSI API, making ctld daemon to control list of iSCSI ports in CTL. When new target is defined in config fine, ctld will create respective port in CTL. When target is removed -- port will be also removed after all active commands through that port properly aborted. This change require ctld to be rebuilt to match the kernel. As a minor side effect, this allows to have iSCSI targets without LUNs. While that may look odd and not very useful, that is not incorrect. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:06:10.825859Z K 7 svn:log V 519 MFC r268293: Burry devid port method, which was a gross hack. Instead make ports provide wanted port and target IDs, and LUNs provide wanted LUN IDs. After that core Device ID VPD code only had to link all of them together and add relative port and port group numbers. LUN ID for iSCSI LUNs no longer created by CTL, but by ctld, and passed to CTL as "scsiname" LUN option. This makes LUNs to report the same set of IDs, independently from the port through which it is accessed, as required by SCSI specifications. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:07:07.230246Z K 7 svn:log V 230 MFC r268302: Pass through iSCSI session ISID from LOGIN request to the CTL frontend. ISID is an important part of initiator transport ID for iSCSI. It is not used now, but should be to properly implement persistent reservation. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:08:04.623198Z K 7 svn:log V 198 MFC r268307: Move lun_map() method from command nexus to port. Previous implementation made impossible to do some things, such as calling it for ports other then one through which command arrived. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:09:02.306617Z K 7 svn:log V 104 MFC r268308: Make REPORT TARGET PORT GROUPS command report realistic data instead of hardcoded garbage. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:09:52.549247Z K 7 svn:log V 56 MFC r268309: Add support for SCSI Ports (88h) VPD page. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:10:48.335244Z K 7 svn:log V 291 MFC r268328: Close race in r268291 between port destruction, delayed by sessions teardown, and new port creation during `service ctld restart`. Close it by returning iSCSI port internal state, that allows to identify dying ports, which should not be counted as existing, from really alive. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:11:42.770010Z K 7 svn:log V 42 MFC r268330: Make gcc happy, init idlen2. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:12:37.141900Z K 7 svn:log V 226 MFC r268353: Implement ABORT TASK SET and I_T NEXUS RESET task management functions. Use the last one to terminate active commands on iSCSI session termination. Previous code was aborting only commands doing some data moves. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:13:49.315767Z K 7 svn:log V 224 MFC r268356, r268357: When new connection comes in, check whether we already have session from the same intiator (Name+ISID). If so -- terminate the old session and let the new one take its place, as required by iSCSI RFC. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:14:53.667610Z K 7 svn:log V 464 MFC r268362: Teach ctl_add_initiator() to dynamically allocate IIDs from pool. If port passed negative IID value, the function will try to allocate IID from the pool of unused, based on passed wwpn or name arguments. It does all its best to make IID unique and persistent across reconnects. This makes persistent reservation properly work for iSCSI. Previously, in case of reconnects, reservation could be unexpectedly lost, or even migrate between intiators. END K 10 svn:author V 3 alc K 8 svn:date V 27 2014-07-15T17:16:06.011378Z K 7 svn:log V 323 Actually set the "no execute" bit on 1 MB page mappings in pmap_protect(). Previously, the "no execute" bit was being set directly in the PTE, instead of the local variable in which the new PTE value is being constructed. So, when the local variable was finally assigned to the PTE, the "no execute" bit setting was lost. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:16:06.743063Z K 7 svn:log V 87 MFC r268363: Add support for READ FULL STATUS action of PERSISTENT RESERVE IN command. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:16:58.018007Z K 7 svn:log V 69 MFC r268364: Fix "use after free" on port creation error in r268291. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:17:52.840692Z K 7 svn:log V 118 MFC r268387: Fix task management functions status: task not found is not an error, while not implemented function is. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:18:50.432583Z K 7 svn:log V 273 MFC r268418: Enable TAS feature: notify initiator if its command was aborted by other. That should make operation more kind to multi-initiator environment. Without this, other initiators may find out that something bad happened to their commands only via command timeout. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:19:43.942856Z K 7 svn:log V 86 MFC r268421: Remove status setting from datamove() path. Leave that to other places. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-15T17:20:40.820473Z K 7 svn:log V 72 MFC r268447: Add LUN options to specify 64-bit EUI and NAA identifiers. END