1. 15 Dec, 2019 8 commits
  2. 14 Dec, 2019 15 commits
    • Conrad Meyer's avatar
      linuxkpi: Drop incompatible __deprecated definition · 9d471059
      Conrad Meyer authored
      Probably all of these linuxkpi stubs should be '#ifndef' guarded, but maybe
      that would prevent people from noticing when they are defined.
      
      Introduced in r355759.  For some reason I only ran a buildworld and not a
      kernel.  Mea culpa.
      
      Reported by:	Mark Millard
      X-MFC-with:	r355759
      9d471059
    • Conrad Meyer's avatar
      cdefs: Add __deprecated(message) function attribute macro · 215332ff
      Conrad Meyer authored
      The legacy version of GCC4 currently in base does not support the
      parameterized form of this function attribute, as recent introduced in
      stdlib.h (r355747).
      
      As we have done for other function attributes with similar compatibility
      problems, add a version-compatibile definition in sys/cdefs.h.  Note that
      Clang defines itself to be GCC 4, so one must check for __clang__ in
      addition to __GNUC__ version.  On legacy GCC 4, the macro expands to just
      the __deprecated__ attribute; on modern GCC or Clang, the macro expands to
      the parameterized variant with the message.
      
      Ignoring legacy or unsupported compilers, the macro is also beneficial in
      that it is a bit more ergonomic than the full
      __attribute__((__deprecated__())) boilerplate.
      
      Reported by:	CI (but not tinderbox); imp and others
      Reviewed by:	imp
      Differential Revision:	https://reviews.freebsd.org/D22817
      215332ff
    • Rick Macklem's avatar
      Update the mount_nfs.8 man page to include NFSv4.2. · 547a4dba
      Rick Macklem authored
      r355677 added NFSv4.2 support to the NFS client. This patch updates the
      mount_nfs.8 man page to reflect that.
      It also clarifies that the "nolockd" option does not apply to NFSv4 mounts.
      
      This is a content change.
      547a4dba
    • Doug Moore's avatar
      Simplify the processing a leaf mask to find big-enough ranges of set · 9f70442a
      Doug Moore authored
      bits, by storing and modifying the complement of the original leaf
      mask, and by avoiding some unnecessary intermediate variables in
      computing the shift amounts. The logic is similar to what has recently
      been committed to sys/sys/bitstring.h.
      
      Compute better hint updates for the case when the cursor starts in
      mid-leaf, and eliminates some otherwise viable solutions. Assume the
      worst case, that all the eliminated offsets could have been solutions,
      and you can still compute a better hint than we use now.
      
      Eliminate some unnecessary conditional control flow.
      
      Approved by: alc
      Tested by: pho
      Differential Revision: https://reviews.freebsd.org/D22666
      9f70442a
    • Michal Meloun's avatar
      Add driver for Rockchip PCIe root complex found in RK3399 SOC. · dfd1d0fc
      Michal Meloun authored
      Unfortunately, there are some limitations:
      - memory aperture of his controller is only 16MiB, so it is nearly
        unusable for graphic cards
      - every attempt to generate type 1 config cycle always causes trap.
        These config cycles are disabled now and we don't support cards
        with PCIe switch.
      - in some cases, attempt to do config cycle to (probably) not-yet ready
        card also causes trap. This cannot be detected at runtime, but it seems
        like very rare issue.
      
      MFC after:	3 weeks
      Differential Revision:  https://reviews.freebsd.org/D22724
      dfd1d0fc
    • Edward Tomasz Napierala's avatar
      Add sync_file_range(2) implementation to linux(4); it's a thin wrapper · cf69fe66
      Edward Tomasz Napierala authored
      over the usual fsync(2).
      
      This silences some warnings when running "apt-get upgrade".
      
      Reviewed by:	brooks, emaste
      MFC after:	2 weeks
      Sponsored by:	The FreeBSD Foundation
      Differential Revision:	https://reviews.freebsd.org/D22371
      cf69fe66
    • Edward Tomasz Napierala's avatar
      Regen after r355752. · 0cde2b32
      Edward Tomasz Napierala authored
      MFC after:	2 weeks
      Sponsored by:	The FreeBSD Foundation
      Differential Revision:	https://reviews.freebsd.org/D22371
      0cde2b32
    • Edward Tomasz Napierala's avatar
      Fix definitions for linuxulator's sync_file_range(2). · 0610f417
      Edward Tomasz Napierala authored
      Reviewed by:	brooks, emaste
      MFC after:	2 weeks
      Sponsored by:	The FreeBSD Foundation
      Differential Revision:	https://reviews.freebsd.org/D22371
      0610f417
    • Edward Tomasz Napierala's avatar
      Add 'sesutil show' subcommand to show enclosure and its contents · 8ad16e55
      Edward Tomasz Napierala authored
      in a user-friendly way.
      
      Reviewed by:	allanjude, bcr (manpages)
      MFC after:	2 weeks
      Relnotes:	yes
      Sponsored by:	Klara Inc.
      Differential Revision:	https://reviews.freebsd.org/D22567
      8ad16e55
    • Edward Tomasz Napierala's avatar
      Add -M option to nc(1), which makes it print the TCP connection · 1e62eced
      Edward Tomasz Napierala authored
      statistics obtained with stats(3) in JSON format to standard error.
      
      Reviewed by:	allanjude, thj, cem (earlier version)
      Tested by:	thj
      MFC after:	2 weeks
      Relnotes:	yes
      Sponsored by:	Klara Inc.
      Differential Revision:	https://reviews.freebsd.org/D21324
      1e62eced
    • Conrad Meyer's avatar
      Deprecate sranddev(3) API · c62ff280
      Conrad Meyer authored
      It serves no useful purpose and wasn't as popular as its equally meritless
      cousin, srandomdev(3).
      
      Setting aside the problems with rand(3) in general, the problem with this
      interface is that the seed isn't shared with the caller (other than by
      attacking the output of the generator, which is trivial, but not a hallmark of
      pleasant API design).  The (arguable) utility of rand(3) or random(3) is as a
      semi-fast simulation generator which produces consistent results from a given
      seed.  These are mutually at odd.  Furthermore, sometimes people got the
      mistaken impression that a high quality random seed meant a weak generator like
      rand(3) or random(3) could be used for things like cryptographic key
      generation.  This is absolutely not so.
      
      The API was never part of a standard and was not widely used in tree.  Existing
      in-tree uses have all been removed.
      
      Possible replacement in out of tree codebases:
      
      	char buf[3];
      	time_t t;
      
      	time(t);
      	strftime(buf, sizeof(buf), "%S", gmtime(&t));
      	srand(atoi(buf));
      
      Relnotes:	yes
      c62ff280
    • Ryan Libby's avatar
      uma dbg: flexible size for slab debug bitset too · 815db204
      Ryan Libby authored
      Recently (r355315) the size of the struct uma_slab bitset field us_free
      became dynamic instead of conservative.  Now, make the debug bitset
      size dynamic too.  The debug bitset is INVARIANTS-only, so in fact we
      don't care too much about the space savings that results from this, but
      enabling minimally-sized slabs on INVARIANTS builds is still important
      in order to be able to test new slab layouts effectively.
      
      Reviewed by:	jeff (previous version), markj (previous version)
      Sponsored by:	Dell EMC Isilon
      Differential Revision:	https://reviews.freebsd.org/D22759
      815db204
    • Kristof Provost's avatar
      pf: Make request_maxcount runtime adjustable · cca2ea64
      Kristof Provost authored
      There's no reason for this to be a tunable. It's perfectly safe to
      change this at runtime.
      
      Reviewed by:	Lutz Donnerhacke
      Differential Revision:	https://reviews.freebsd.org/D22737
      cca2ea64
    • Kristof Provost's avatar
      pfctl: Warn users when they run into kernel limits · 3c7fbb06
      Kristof Provost authored
      Warn users when they try to add/delete/modify more items than the kernel will
      allow.
      
      Reviewed by:	allanjude (previous version), Lutz Donnerhacke
      Differential Revision:	https://reviews.freebsd.org/D22733
      3c7fbb06
    • Mateusz Guzik's avatar
      6f836483
  3. 13 Dec, 2019 17 commits