1. 22 Oct, 2021 11 commits
  2. 21 Oct, 2021 24 commits
  3. 20 Oct, 2021 5 commits
    • Roy Marples's avatar
      net: Allow binding of unspecified address without address existance · 5c534010
      Roy Marples authored
      Previously in_pcbbind_setup returned EADDRNOTAVAIL for empty
      V_in_ifaddrhead (i.e., no IPv4 addresses configured) and in6_pcbbind
      did the same for empty V_in6_ifaddrhead (no IPv6 addresses).
      An equivalent test has existed since 4.4-Lite.  It was presumably done
      to avoid extra work (assuming the address isn't going to be found
      In normal system operation *_ifaddrhead will not be empty: they will
      at least have the loopback address(es).  In practice no work will be
      Further, this case caused net/dhcpd to fail when run early in boot
      before assignment of any addresses.  It should be possible to bind the
      unspecified address even if no addresses have been configured yet, so
      just remove the tests.
      The now-removed "XXX broken" comments were added in 59562606,
      which converted the ifaddr lists to TAILQs.  As far as I (emaste) can
      tell the brokenness is the issue described above, not some aspect of
      the TAILQ conversion.
      PR:		253166
      Reviewed by:	ae, bz, donner, emaste, glebius
      MFC after:	1 month
      Differential Revision:	https://reviews.freebsd.org/D32563
    • youzhongyang's avatar
      Skip snapshot in zfs_iter_mounted() · ec64fdb9
      youzhongyang authored
      The intention of the zfs_iter_mounted() is to traverse the dataset
      and its descendants, not the snapshots. The current code can cause
      a mounted snapshot to be included and thus zfs_open() on the snapshot
      with ZFS_TYPE_FILESYSTEM would print confusing message such as "cannot
      open 'rpool/fs@snap': snapshot delimiter '@' is not expected here".
      Reviewed-by: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
      Signed-off-by: default avatarYouzhong Yang <yyang@mathworks.com>
      Closes #12447
      Closes #12448 
    • Tony Hutter's avatar
      vdev_id: Fix enclosure_symlinks feature · 1886cdfc
      Tony Hutter authored
      The vdev_id.conf "enclosure_symlinks" option persistently creates
      and maps /dev/by-enclosure symlinks to dynamic /dev/sg* devices.
      This patch fixes two issues:
      1. The enclosure_symlinks feature was accidentally broken in:
         vdev_id: Support daisy-chained JBODs in multipath mode
      2. Even when working, the feature numbered the enclosure
         sequentially rather than by HBA port number.  That meant that
         if a port was down or didn't appear in sysfs, then the
         enclosure_sumlinks numbers would be numbered wrong.
      Reviewed-by: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
      Reviewed-by: default avatarArshad Hussain <arshad.hussain@aeoncomputing.com>
      Signed-off-by: default avatarTony Hutter <hutter2@llnl.gov>
      Closes #12660 
    • Leandro Lupori's avatar
      powerpc64le: stand fixes · f8328864
      Leandro Lupori authored
      Fix boot1 and loader on PowerPC64 little-endian (LE).
      Due to endian issues, boot1 couldn't find the UFS boot partition
      and loader wasn't able to load the kernel. Most of the issues
      happened because boot1 and loader were BE binaries trying to access
      LE UFS partitions and because loader expects the kernel ELF image
      to use the same endian as itself.
      To fix these issues, boot1 and loader are now built as LE binaries
      on PPC64LE. To support this, the functions that call OpenFirmware
      were enhanced to correctly perform endian conversion on its input
      and output arguments and to change the CPU into BE mode before
      making the calls, as OpenFirmware always runs in BE. Besides that,
      some other small fixes were needed.
      Submitted by:		bdragon (initial version)
      Reviewed by:		alfredo, jhibbits
      Sponsored by:		Instituto de Pesquisas Eldorado (eldorado.org.br)
      Differential Revision:	https://reviews.freebsd.org/D32160
    • Konstantin Belousov's avatar
      sys/bus.h: silence warnings about write-only variables · 2ff7c2cc
      Konstantin Belousov authored
      in the generated functions for bus accessors.  These are the most
      noising instances for drivers when non-debug kernel is compiled with
      clang 13.
      Reviewed by:	imp
      Sponsored by:	The FreeBSD Foundation
      MFC after:	1 week
      Differential revision:	https://reviews.freebsd.org/D32578