]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 years agoChange /etc/rmt symlink from absolute to relative path,
rgrimes [Sun, 5 Mar 2017 04:09:18 +0000 (04:09 +0000)]
Change /etc/rmt symlink from absolute to relative path,
correcting the mistake made in r6499

Approved by: grehan
MFC after: 1 week

7 years agoMove me from Alumni to active src committer.
rgrimes [Sun, 5 Mar 2017 04:02:47 +0000 (04:02 +0000)]
Move me from Alumni to active src committer.
Promote Peter Grehan to a brother of day1 by
adding Peter Grehan (grehan) as my mentor.

Reviewed by: gjb
Approved by: grehan
Verified by: dot to make sure it produces output and no cycles occur

7 years agoDocument 3 more src/ directories
rgrimes [Sun, 5 Mar 2017 03:58:57 +0000 (03:58 +0000)]
Document 3 more src/ directories

Approved by: grehan(mentor)
MFC after: 1 week
Verified by: igor (same errors before and after)

7 years agoremove procfs ctl interface
badger [Sun, 5 Mar 2017 03:05:24 +0000 (03:05 +0000)]
remove procfs ctl interface

This interface has no in-tree consumers and has been more or less
non-functional for several releases.

Remove manpage note that the procfs special file 'mem' is grouped to
kmem. This hasn't been true since r81107.

Remove procfs' README file. It is an out of date duplication of the manpage
(quoth the README: "since the bsd kernel is single-processor...").

Reviewed by: vangyzen, bcr (manpage)
Approved by: des (procfs maintainer), vangyzen (mentor)
Differential Revision: https://reviews.freebsd.org/D9802

7 years agoiwn: drop 'channel' parameter from iwn*_set_txpower()
avos [Sat, 4 Mar 2017 23:07:54 +0000 (23:07 +0000)]
iwn: drop 'channel' parameter from iwn*_set_txpower()

For 4965 just extract 'is_chan_5ghz' flag from the RXON structure
(like it was done in r281287); for others it was never used.

Tested with Intel 6205, STA mode.

7 years agosh: Fix crash if a -T trap is taken during command substitution.
jilles [Sat, 4 Mar 2017 22:58:34 +0000 (22:58 +0000)]
sh: Fix crash if a -T trap is taken during command substitution.

Code like  t=$(stat -f %m "$file")  segfaulted if -T was active and a trap
was taken while the shell was waiting for the child process to finish.

What happened was that the dotrap() call in waitforjob() was hit. This
re-entered command execution (including expand.c) at a point not expected by
expbackq(), and global state (unallocated stack string and argbackq) was
corrupted.

To fix this, change expbackq() to prepare for command execution to be
re-entered.

Reported by: bdrewery
MFC after: 1 week

7 years agops(1): Only detect terminal width if stdout is a tty
cem [Sat, 4 Mar 2017 22:38:10 +0000 (22:38 +0000)]
ps(1): Only detect terminal width if stdout is a tty

If stdout isn't a tty, use unlimited width output rather than truncating to
79 characters.  This is helpful for shell scripts or e.g., 'ps | grep foo'.

This hardcoded width has some history: In The Beginning of History[0], the
width of ps was hardcoded as 80 bytes.  In 1985, Bloom@ added detection
using TIOCGWINSZ on stdin.[1]  In 1986, Kirk merged a change to check
stdout's window size instead.  In 1990, the fallback checks to stderr and
stdin's TIOCGWINSZ were added by Marc@, with the commit message "new
version."[2]

OS X Darwin has a very similar modification to ps(1), which simply sets
UNLIMITED for all non-tty outputs.[3]  I've chosen to respect COLUMNS
instead of behaving identically to Darwin here, but I don't feel strongly
about that.  We could match OS X for parity if that is desired.

[0]: https://svnweb.freebsd.org/csrg/bin/ps/ps.c?annotate=1065
[1]: https://svnweb.freebsd.org/csrg/bin/ps/ps.c?r1=18105&r2=18106
[2]:
https://svnweb.freebsd.org/csrg/bin/ps/ps.c?r1=40675&r2=40674&pathrev=40675
[3]:
https://opensource.apple.com/source/adv_cmds/adv_cmds-168/ps/ps.c.auto.html

PR: 217159
Reported by: Deepak Nagaraj <n.deepak at gmail.com>

7 years agoReconfigure the fifo watermark levels on the pl011 uart to interrupt when
ian [Sat, 4 Mar 2017 22:00:05 +0000 (22:00 +0000)]
Reconfigure the fifo watermark levels on the pl011 uart to interrupt when
the fifos are 3/4 full (rc) or empty (tx).

7 years agoFix bugs exposed by the recent enabling of FIFOs in the pl011 uart. These
ian [Sat, 4 Mar 2017 21:47:43 +0000 (21:47 +0000)]
Fix bugs exposed by the recent enabling of FIFOs in the pl011 uart.  These
have been in the code all along, but were masked by having a fifo depth of
one byte at the hardware level, so everything kinda worked by accident.

The hardware interrupts when the TX fifo is half empty, so set
sc->sc_txfifosz to 8 bytes (half the hardware fifo size) to match.  This
eliminates dropped characters on output.

Restructure the read loop to consume all the bytes in the fifo by using
the "rx fifo empty" bit of the flags register rather than the "rx ready"
bit of the interrupt status register.  The rx-ready interrupt is cleared
when the number of bytes in the fifo fall below the interrupt trigger
level, leaving the fifo half full every time receive routine was called.
Now it loops until the fifo is completely empty every time (including
when the function is called due to a receive timeout as well as for
fifo-full).

7 years agofts: Fix a potential memory leak in error case
cem [Sat, 4 Mar 2017 20:46:57 +0000 (20:46 +0000)]
fts: Fix a potential memory leak in error case

Dan Krejsa reports a potential memory leak in an fts_build error case,
detected by Coverity.  (It doesn't seem to show up in Coverity Scan, so I
don't have a CID to point to.)

I don't know whether it is actually possible to arrive in this case with a
non-empty 'head' list.  The cost is low, though.  One additional branch in a
terminal error case isn't the end of the world.

PR: 217125
Submitted by: Dan Krejsa <dan.krejsa at gmail.com>

7 years agoFix build after r314656
ngie [Sat, 4 Mar 2017 20:35:34 +0000 (20:35 +0000)]
Fix build after r314656

Some of the changes I introduced to use .ALLSRC were correct in spirit,
but incorrect in reality -- in particular, ../Makefile.inc hadn't been
pulled in via bsd.init.mk (via bsd.lib.mk, bsd.prog.mk), so the value
of .ALLSRC (evaluated immediately) was empty. .include bsd.init.mk
explicitly so we can be certain that the values used as dependencies in
the targets are defined when the target recipe has been evaluated.

Reminder: thou shalt separate out separate functional changes before
          committing them.

(YUGE) Pointyhat to: ngie
In collaboration with: bdrewery
MFC after: 1 month
Reported by: Jenkins, cy, ler, O. Hartmann, Michael Butler
Sponsored by: Dell EMC Isilon

7 years agoRemove duplicate prototype in the LinuxKPI to fix compilation warning.
hselasky [Sat, 4 Mar 2017 20:06:47 +0000 (20:06 +0000)]
Remove duplicate prototype in the LinuxKPI to fix compilation warning.

Reported by: emaste @
MFC after: 1 week
Sponsored by: Mellanox Technologies

7 years ago[rpi] rpi3 should use the same cpufreq logic as rpi2, not rpi-b
gonzo [Sat, 4 Mar 2017 17:34:36 +0000 (17:34 +0000)]
[rpi] rpi3 should use the same cpufreq logic as rpi2, not rpi-b

RPi3 cpufreq is more like that on RPi2. Setting arm frequency
above min (say, "sysctl hw.cpufreq.arm_freq=600000001") turns on
turbo mode, and the firmware automatically raises voltage, sets
frequency to max 1200MHz, and throttle when overheat, etc.

Swap if/else parts and use SOC_BCM2835 def so RPi3 can share the
same cpufreq logic as RPi2, instead of falling to that for RPi.

Submitted by: Jia-Shiun Li <jiashiun@gmail.com>
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9640

7 years agonewfs_nandfs: Fix unaligned pointer warning
cem [Sat, 4 Mar 2017 16:59:55 +0000 (16:59 +0000)]
newfs_nandfs: Fix unaligned pointer warning

PR: 217532
Submitted by: Trond Endrestol <Trond.Endrestol at ximalas.info>

7 years agoAdd UPDATING entry per r314669: removal of classic i486 configuration.
pfg [Sat, 4 Mar 2017 15:23:06 +0000 (15:23 +0000)]
Add UPDATING entry per r314669: removal of classic i486 configuration.

7 years agoDrop i486 from the default i386 GENERIC kernel configuration.
pfg [Sat, 4 Mar 2017 15:04:17 +0000 (15:04 +0000)]
Drop i486 from the default i386 GENERIC kernel configuration.

80486 production was stopped by Intel on September 2007. Dropping the 486
configuration option from the GENERIC kernel improves performance
slightly.

Removing I486_CPU is consistent at this time: we don't support any
processor without a FPU and the PC-98 arch, which frequently involved i486
CPUs, is also gone so we don't test such platforms anymore.

Relnotes: yes
MFC after: 2 weeks
https://reviews.freebsd.org/D9879

7 years agoioat: don't specify inline for function with variable argument list
avg [Sat, 4 Mar 2017 12:51:57 +0000 (12:51 +0000)]
ioat: don't specify inline for function with variable argument list

Modern GCC and Clang simply ignore the qualifier, while the old base GCC
produces a warning (treated as an error in the kernel build).

Approved by: cem
MFC after: 5 days

7 years agousr.sbin: normalize paths using SRCTOP-relative paths or :H when possible
ngie [Sat, 4 Mar 2017 11:38:03 +0000 (11:38 +0000)]
usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agocrypto: normalize paths using SRCTOP-relative paths or :H when possible
ngie [Sat, 4 Mar 2017 11:35:30 +0000 (11:35 +0000)]
crypto: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agokerberos5: normalize paths using SRCTOP-relative paths or :H when possible
ngie [Sat, 4 Mar 2017 11:34:36 +0000 (11:34 +0000)]
kerberos5: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agosbin: normalize paths using SRCTOP-relative paths or :H when possible
ngie [Sat, 4 Mar 2017 11:33:01 +0000 (11:33 +0000)]
sbin: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agobin: normalize paths using SRCTOP-relative paths or :H when possible
ngie [Sat, 4 Mar 2017 11:31:08 +0000 (11:31 +0000)]
bin: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agocddl: normalize paths using SRCTOP-relative paths or :H when possible
ngie [Sat, 4 Mar 2017 11:30:04 +0000 (11:30 +0000)]
cddl: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

While here, remove bogus CFLAGS which look for headers in cddl/lib/libumem.
There aren't any source files there (just Makefiles)

MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agolibexec: normalize paths using SRCTOP-relative paths or :H when possible
ngie [Sat, 4 Mar 2017 11:28:03 +0000 (11:28 +0000)]
libexec: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agoshare: normalize paths using SRCTOP-relative paths or :H when possible
ngie [Sat, 4 Mar 2017 11:26:40 +0000 (11:26 +0000)]
share: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agosys/modules: normalize .CURDIR-relative paths to SRCTOP
ngie [Sat, 4 Mar 2017 10:10:17 +0000 (10:10 +0000)]
sys/modules: normalize .CURDIR-relative paths to SRCTOP

This simplifies make output/logic

Tested with: `cd sys/modules; make ALL_MODULES=` on amd64
MFC after: 1 month
Sponsored by: Dell EMC Isilon

7 years agoFix warnings in lib/msun/tests/... to help pave way for WARNS?= 6.
ngie [Sat, 4 Mar 2017 10:07:46 +0000 (10:07 +0000)]
Fix warnings in lib/msun/tests/... to help pave way for WARNS?= 6.

- Staticize variables.
- Use nitems liberally. Wherever nitems is used, use unsigned integers
- Remove unused variables (argc, argv, etc)

This fixes most issues -- some issues remain in logarithm_test though.

MFC after: 1 week
Sponsored by: Dell EMC Isilon

7 years agoConvert lib/msun/ctrig_test from TAP to ATF
ngie [Sat, 4 Mar 2017 09:16:51 +0000 (09:16 +0000)]
Convert lib/msun/ctrig_test from TAP to ATF

This is being done as a precursor for work needed to annontate failing
testcases with clang 4.0+.

MFC after: 1 week
PR: 217528
Sponsored by: Dell EMC Isilon

7 years agoStyle(9).
dchagin [Sat, 4 Mar 2017 08:59:21 +0000 (08:59 +0000)]
Style(9).

MFC after: 1 month

7 years agoRemove attribute __packed from some IPC struct definition since
dchagin [Sat, 4 Mar 2017 08:57:39 +0000 (08:57 +0000)]
Remove attribute __packed from some IPC struct definition since
Linuxulator is x86 only.
The only notable differences in algnment for an LP64 64-bit system
when compared to a 32-bit system is an eight or large byte types
alignment.

MFC after: 1 month

7 years agoImplement ec_putc() (emergency kernel [syscons] console putc()) and use
bde [Sat, 4 Mar 2017 08:47:31 +0000 (08:47 +0000)]
Implement ec_putc() (emergency kernel [syscons] console putc()) and use
it in emergency in sc_cnputc().

Locking fixes in sc_cnputc() previously turned off normal output in
near-deadlock conditions and added deferred output which might never
be completed.  Emergency output goes to the frame buffer using
sufficiently atomic non-blocking writes if the console is in text
mode (in graphics mode, nothing is done, modulo races setting the
graphics mode bit).  Screen updates overwrite the emergency output
if the emergency condition clears enough to reach them.

ec_putc() also works for "early" console output in normal x86 text
mode as soon as this mode is initialized (if ever).  This uses a
hard-coded x86 frame buffer address before cninit() and a hopefully
MI address after cninit().  But non-x86 is more likely to not support
text mode, when ec_putc() will be null.  ec_putc() has no dependencies
of syscons before cninit(), and only has them later to track syscons'
mode changes.  This commit doesn't attach ec_putc() for early use.

To test emergency use, put a breakpoint in central syscons output code
like sc_puts() and do some user output.  The system used to race or
deadlock in ddb output soon after entry to ddb.  The locking fixes
deferred the output until after leaving ddb, so ddb was unusable and
you had to try typing c[ontinue] blindly until it exited, or better use
a serial console in parallel.  Now the output goes to a window in the
middle 2/3 of the screen.  Scrolling is circular and there is no cursor,
but otherwise ec_putc() provides full dumb terminal functionality and
very fast output that hides artificates from dumb overwrites.

7 years agoFix "make depend" with nvme.ko: add opt_cam.h to SRCS
ngie [Sat, 4 Mar 2017 08:46:57 +0000 (08:46 +0000)]
Fix "make depend" with nvme.ko: add opt_cam.h to SRCS

MFC after: 1 week
X-MFC with: r301778
Sponsored by: Dell EMC Isilon

7 years agoFix "make depend" with geom_uzip.ko: add opt_geom.h to SRCS
ngie [Sat, 4 Mar 2017 08:28:33 +0000 (08:28 +0000)]
Fix "make depend" with geom_uzip.ko: add opt_geom.h to SRCS

MFC after: 1 week
Sponsored by: Dell EMC Isilon

7 years agoHide Linux socketcall constants under corresponding #ifdef since
dchagin [Sat, 4 Mar 2017 06:54:05 +0000 (06:54 +0000)]
Hide Linux socketcall constants under corresponding #ifdef since
they are used only in i386 Linuxulator.

MFC after: 1 week

7 years agoCorrect nuance of -a :service -> "*" in r314563, r314585
ngie [Sat, 4 Mar 2017 06:19:41 +0000 (06:19 +0000)]
Correct nuance of -a :service -> "*" in r314563, r314585

My attempt to correct the sender/receiver behavior was incorrect.
The source port of the sender for forwarded datagrams is filtered
with -a, and my change in r314585 didn't clarify that point at all.

Wording is based on suggestion by hrs.

MFC after: 28 days
X-MFC with: r314563, r314585
Reported by: hrs
In collaboration with: hrs, rgrimes
Sponsored by: Dell EMC Isilon

7 years agoColorize syscons kernel console output according to a table indexed
bde [Sat, 4 Mar 2017 06:19:12 +0000 (06:19 +0000)]
Colorize syscons kernel console output according to a table indexed
by the CPU number.

This was originally for debugging near-deadlock conditions where
multiple CPUs either deadlock or scramble each other's output trying
to report the problem, but I found it interesting and sometimes
useful for ordinary kernel messages.  Ordinary kernel messages
shouldn't be interleaved, but if they are then the colorization
makes them readable even if the interleaving is for every character
(provided the CPU printing each message doesn't change).

The default colors are 8-15 starting at 15 (bright white on black)
for CPU 0 and repeating every 8 CPUs.  This works best with 8 CPUs.
Non-bright colors and nonzero background colors need special
configuration to avoid unreadable and ugly combinations so are not
configured by default.  The next bright color after 15 is 8 (bright
black = dark gray) is not very readable but is the only other color
used with 2 CPUs.  After that the next bright color is 9 (bright
blue) which is not much brighter than bright black, but is used with
3+ CPUs.  Other bright colors are brighter.

Colorization is configured by default so that it gets tested.  It can
only be turned off by configuring SC_KERNEL_CONS_ATTR to anything other
than FG_WHITE.  After booting, all colors can be changed using the
syscons.kattr sysctl.  This is a SYSCTL_OPAQUE, and no utility is
provided to change it (sysctl only displays it).

The default colors work in all VGA modes that I could test.  In 2-color
graphics modes, all 8 bright colors are displayed as bright white, so
the colorization has no effect, but anything with a nonzero background
gives white on white unless the foreground is zero.  I don't have an
mono or VGA grayscale hardware to test on.  Support for mono mode seems
to have never worked right in syscons (I think bright white gives white
underline with either bold or bright), but VGA grayscale should work
better than 2-color graphics.

7 years agoFix formatting. ruptime output on FreeBSD cluster machines annoyed me
bde [Sat, 4 Mar 2017 04:06:33 +0000 (04:06 +0000)]
Fix formatting.  ruptime output on FreeBSD cluster machines annoyed me
by usually being double-spaced due to auto-wrap at column 80.

r212771 increased width of the hostname field from 12 to 25.  This was
supposed to allow for 80-column output with all 3 load averages taking
5 characters each, but it actually gave width exactly 80 and thus worse
than useless auto-wrap in that case.  3 wide load average fields are
unusual, but later expansion of another field gave the auto-wrap with
just 2 wide load average fields.

Change to dynamic field widths for all fields except the uptime.  This
also fixes the formatting of high (above 9999) user counts and not
very high (above 9.99) load averages.  The formatting for numbers now
breaks at 99999.99, but scientific notation should be used starting
well below that.

The field width for the uptime remains hard-coded to work consistently
for uptimes less than 10000 days, but this gives too much space for
small uptimes.  Punctuation between fields could be improved in many
ways, for example by removing it.

7 years agoadd a module that provides support for DRAM ECC error injection on AMD CPUs
avg [Fri, 3 Mar 2017 22:51:04 +0000 (22:51 +0000)]
add a module that provides support for DRAM ECC error injection on AMD CPUs

I imagine that the module would be useful only to a very limited number
of developers, so that's my excuse for not writing any documentation.
On a more serious note, please see DRAM Error Injection section of BKDGs
for families 10h - 16h.  E.g. section 2.13.3.1 of  BKDG for AMD Family 15h
Models 00h-0Fh Processors.

Many thanks to kib for his suggestions and comments.

Discussed with: kib
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D9824

7 years agosh: Add some already working tests that exercise new code paths.
jilles [Fri, 3 Mar 2017 22:46:20 +0000 (22:46 +0000)]
sh: Add some already working tests that exercise new code paths.

7 years agoMCA: add AMD Error Thresholding support
avg [Fri, 3 Mar 2017 22:42:43 +0000 (22:42 +0000)]
MCA: add AMD Error Thresholding support

Currently the feature is implemented only for a subset of errors
reported via Bank 4.  The subset includes only DRAM-related errors.

The new code builds upon and reuses the Intel CMC (Correctable MCE
Counters) support code.  However, the AMD feature is quite different
and, unfortunately, much less regular.

For references please see AMD BKDGs for models 10h - 16h.
Specifically, see MSR0000_0413 NB Machine Check Misc (Thresholding)
Register (MC4_MISC0).
http://developer.amd.com/resources/developer-guides-manuals/

Reviewed by: jhb
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D9613

7 years agoFix leak (free str before returning when ctx's calloc fails).
cy [Fri, 3 Mar 2017 21:32:27 +0000 (21:32 +0000)]
Fix leak (free str before returning when ctx's calloc fails).

Submitted by: trix_juniper.net (Tom Rix)
Discovered by: clang's static analyzer
MFC after: 4 days
Relnotes: ngie
Differential Revision: D9877

7 years agoFix grammar in some comments in subr_sleepqueue.c
vangyzen [Fri, 3 Mar 2017 21:03:28 +0000 (21:03 +0000)]
Fix grammar in some comments in subr_sleepqueue.c

While I'm here, remove trailing whitespace.

Reviewed by: kib, mostly, as part of a larger review
MFC after: 3 days

7 years agoFix a ticks comparison in sched_pctcpu_update().
markj [Fri, 3 Mar 2017 20:57:40 +0000 (20:57 +0000)]
Fix a ticks comparison in sched_pctcpu_update().

We may fail to reset the %CPU tracking window if a thread does not run
for over half of the ticks rollover period, resulting in a bogus %CPU
value for the thread until ticks fully rolls over. Handle this by comparing
the unsigned difference ticks - ts_ltick with SCHED_TICK_TARG instead.

Reviewed by: cem, jeff
MFC after: 1 week
Sponsored by: Dell EMC Isilon

7 years agoReject userland CCBs that have CAM_UNLOCKED set.
markj [Fri, 3 Mar 2017 20:51:57 +0000 (20:51 +0000)]
Reject userland CCBs that have CAM_UNLOCKED set.

CAM_UNLOCKED is internal flag and cannot correctly be set by userland.
Return EINVAL from CAMIOCOMMAND and CAMIOQUEUE if it is set.

Also fix leaks in some of the error paths for CAMIOQUEUE.

PR: 215356
Reviewed by: ken, mav
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9869

7 years agoMake sure guid table is compiled before we use it.
imp [Fri, 3 Mar 2017 20:23:23 +0000 (20:23 +0000)]
Make sure guid table is compiled before we use it.

Sponsored by: Netflix

7 years agoAs suggested by several people, note that I prefer to communicate by email.
des [Fri, 3 Mar 2017 20:23:21 +0000 (20:23 +0000)]
As suggested by several people, note that I prefer to communicate by email.

7 years agoIf the guid specified can't be decoded as a GUID, try looking it up in
imp [Fri, 3 Mar 2017 20:23:18 +0000 (20:23 +0000)]
If the guid specified can't be decoded as a GUID, try looking it up in
the known guid to name table.

Sponsored by: Netflix

7 years agoImplement -d / --device-path to print the ascii representation of a variable that...
imp [Fri, 3 Mar 2017 20:23:14 +0000 (20:23 +0000)]
Implement -d / --device-path to print the ascii representation of a variable that contains a UEFI device path.

Sponsored by: Netflix

7 years agoImplement --guid/-g to print the known GUIDs as human readable. The
imp [Fri, 3 Mar 2017 20:23:10 +0000 (20:23 +0000)]
Implement --guid/-g to print the known GUIDs as human readable. The
list of known GUIDs can be found with --list-guids.

Sponsored by: Netflix

7 years agoActually implement efivar -L
imp [Fri, 3 Mar 2017 20:23:05 +0000 (20:23 +0000)]
Actually implement efivar -L

Sponsored by: Netflix

7 years agoPrint just the variables when we're not printing the values.
imp [Fri, 3 Mar 2017 20:23:01 +0000 (20:23 +0000)]
Print just the variables when we're not printing the values.

Sponsored by: Netflix

7 years agoOnly compile the known uuid table once.
imp [Fri, 3 Mar 2017 20:22:56 +0000 (20:22 +0000)]
Only compile the known uuid table once.

Sponsored by: Netflix

7 years agoMove uuid_table definition to efivar.h.
imp [Fri, 3 Mar 2017 20:22:47 +0000 (20:22 +0000)]
Move uuid_table definition to efivar.h.
Create new function efi_known_guid() to return list of guids.

Sponsored by: Netflix

7 years agoFix matching table entry value. Use real table value instead of its index
ae [Fri, 3 Mar 2017 20:22:42 +0000 (20:22 +0000)]
Fix matching table entry value. Use real table value instead of its index
in valuestate array.

When opcode has size equal to ipfw_insn_u32, this means that it should
additionally match value specified in d[0] with table entry value.
ipfw_table_lookup() returns table value index, use TARG_VAL() macro to
convert it to its value. The actual 32-bit value stored in the tag field
of table_value structure, where all unspecified u32 values are kept.

PR: 217262
Reviewed by: melifaro
MFC after: 1 week
Sponsored by: Yandex LLC

7 years agoIntegrate indent tests added in r313544 into ATF/Kyua and the FreeBSD
ngie [Fri, 3 Mar 2017 20:15:22 +0000 (20:15 +0000)]
Integrate indent tests added in r313544 into ATF/Kyua and the FreeBSD
test suite

This change does the following:

- Introduces symmetry in the test inputs/outputs by adding the exit
  code to the files. This simplified the test driver notably by
  requiring less filename/test name manipulation.
- Adds a test driver for the testcases added in r313544, patterned
  after bin/sh/tests/functional_test.sh . The driver calls indent as
  noted in r313544, with an exception: The $FreeBSD$ RCS keyword's
  expansion is reindented with indent, which means that the output
  differs from the expected output. Thus, all lines with $FreeBSD$
  in them are deleted on the fly, both in the input file and the
  output file.

  The test inputs/outputs are copied to the kyua sandbox before the
  test is run as the pathing in some of the files relies on pathing
  normalized to the current directory (copying the files is the
  easiest way to resolve the issue).

Approved by: pstef (maintainer)
Reviewed by: pstef
X-MFC with: r313544
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9682

7 years agoMerge ACPICA 20170303.
jkim [Fri, 3 Mar 2017 18:56:15 +0000 (18:56 +0000)]
Merge ACPICA 20170303.

7 years agoClean up ddb(4) slightly
ngie [Fri, 3 Mar 2017 18:44:20 +0000 (18:44 +0000)]
Clean up ddb(4) slightly

- Delete empty Li macro uses [1]. This removes some spaces between
  the optional command/subcommand arguments.
- Attempt to clarify "show lock" subcommand by being more
  terse/direct. This addresses an issue with a contraction [2].

MFC after: 1 week
Reported by: make manlint [1], igor [2]
Reviewed by: wblock
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9858

7 years agoUpdate the LinuxKPI RCU and SRCU wrappers for the concurrency kit, CK.
hselasky [Fri, 3 Mar 2017 16:28:03 +0000 (16:28 +0000)]
Update the LinuxKPI RCU and SRCU wrappers for the concurrency kit, CK.

- Optimise the RCU implementation to not allocate and free
ck_epoch_records during runtime. Instead allocate two sets of
ck_epoch_records per CPU for general purpose use. The first set is
only used for reader locks and the second set is only used for
synchronization and barriers and is protected with a regular mutex to
prevent simultaneous issues.

- Move the task structure away from the rcu_head structure and into
the per-CPU structures. This allows the size of the rcu_head structure
to be reduced down to the size of two pointers.

- Fix a bug where the linux_rcu_barrier() function only waited for one
per-CPU epoch record to be completed instead of all.

- Use a critical section or a mutex to protect ck_epoch_begin() and
ck_epoch_end() depending on RCU or SRCU type. All the ck_epoch_xxx()
functions, except ck_epoch_register(), ck_epoch_unregister() and
ck_epoch_recycle() are not re-entrant and needs a critical section or
a mutex to operate in the LinuxKPI, after inspecting the CK
implementation of the above mentioned functions. The simultaneous
issues arise from per-CPU epoch records being shared between multiple
threads depending on the amount of taskswitching and how many threads
are involved with the RCU and SRCU operations.

- Properly free all epoch records by using safe list traversal at
LinuxKPI module unload. It turns out the ck_epoch_recycle() always
have the records on an internal list and use a flag in the epoch
record to track allocated and free entries. This would lead to use
after free during module unload.

- Remove redundant synchronize_rcu() call from the
linux_compat_uninit() function. Let the linux_rcu_runtime_uninit()
function do the final rcu_barrier() instead.

MFC after: 1 week
Sponsored by: Mellanox Technologies

7 years agoregen src.conf.5 for clang-4.0.0 merge
emaste [Fri, 3 Mar 2017 16:07:46 +0000 (16:07 +0000)]
regen src.conf.5 for clang-4.0.0 merge

Note that makeman's use of 'make showconfig' interacts poorly with
the COMPILER_FEATURES test in share/mk/src.opts.mk, because it tests the
host compiler, not the bootstrap compiler that will actually be used to
build world. This causes it to report that Clang is enabled by default
on MIPS and PowerPC.

For example:
% make TARGET_ARCH=mips64 showconfig | grep CLANG
MK_CLANG         = yes
MK_CLANG_BOOTSTRAP = no
MK_CLANG_EXTRAS  = no
MK_CLANG_FULL    = yes
MK_CLANG_IS_CC   = no

I am committing this version anyway to avoid extraneous diffs in
src.conf.5 after every other WITH_/WITHOUT_FOO change.

In addition, we intend to switch to a C++11 compiler for all archs for
12.0 (either by fixing Clang for those archs, or by requiring an
external toolchain), and then src.conf.5 will be correct.

Sponsored by: The FreeBSD Foundation

7 years agoRegen src.conf.5 after r314579.
np [Fri, 3 Mar 2017 15:47:50 +0000 (15:47 +0000)]
Regen src.conf.5 after r314579.

Sponsored by: Chelsio Communications

7 years agoRe-apply part of r311585 which was inadvertantly reverted in the upgrade
des [Fri, 3 Mar 2017 14:25:55 +0000 (14:25 +0000)]
Re-apply part of r311585 which was inadvertantly reverted in the upgrade
to 7.3p1.  The other part (which adds -DLIBWRAP to sshd's CFLAGS) is
still in place.

Reported by: ngie

7 years agoAdd FPGA manager driver for Intel Arria 10.
br [Fri, 3 Mar 2017 14:19:37 +0000 (14:19 +0000)]
Add FPGA manager driver for Intel Arria 10.

With this driver we able to program FPGA core from FreeBSD system
running on ARM core.

Sponsored by: DARPA, AFRL

7 years agoImport latest vendor DTS files for Intel Arria 10.
br [Fri, 3 Mar 2017 14:17:07 +0000 (14:17 +0000)]
Import latest vendor DTS files for Intel Arria 10.

7 years agoLoad default options before requesting a ticket.
des [Fri, 3 Mar 2017 14:06:22 +0000 (14:06 +0000)]
Load default options before requesting a ticket.

PR: 213909
Reported by: basarevych@gmail.com
MFC after: 1 week

7 years agoProperly initialize netrcfd in fetchParseURL
bapt [Fri, 3 Mar 2017 12:51:16 +0000 (12:51 +0000)]
Properly initialize netrcfd in fetchParseURL

This fixes ftp with fetch(1) which was broken after r313974

Submitted by: dim
Reported by: olivier
Pointyhat to: bapt

7 years agoFix JSON output.
mav [Fri, 3 Mar 2017 11:21:13 +0000 (11:21 +0000)]
Fix JSON output.

MFC after: 1 week

7 years agoCorrect MLINKS for sbuf_hexdump(9)
ngie [Fri, 3 Mar 2017 06:31:47 +0000 (06:31 +0000)]
Correct MLINKS for sbuf_hexdump(9)

sbuf_hexdump(9) should be linked to sbuf(9), not hexdump(3). Another
review will be posted to deduplicate the sbuf_hexdump reference in
in hexdump(3) or at the very least make the information less duplicative.

MFC after: 1 week
X-MFC with: r313437
Sponsored by: Dell EMC Isilon

7 years agoClean up netmap(4) slightly
ngie [Fri, 3 Mar 2017 06:18:47 +0000 (06:18 +0000)]
Clean up netmap(4) slightly

- Add missing sections for .Xr references.
- Replace .br with .Pp (the former macro is deprecated).
- Use the .Sx (section reference) macro when referring to
  LIBRARIES, not the .Xr (cross-reference) macro.
- Add commas after "e.g." and "i.e." [*].

Bump .Dd for the change

Approved by: luigi
MFC after: 1 week
Reported by: igor [*], make manlint
Sponsored by: Dell EMC Isilon
Differential Revision: D9859

7 years agoCorrect verb change for service => `*` after r314563
ngie [Fri, 3 Mar 2017 06:13:59 +0000 (06:13 +0000)]
Correct verb change for service => `*` after r314563

`*` means that packets will be received from a remote peer on any port.
Since the point of interest is the syslogd instance (not the remote peer),
the appropriate verb is "received", not "sent".

MFC after: 1 month
X-MFC with: r314563
Sponsored by: Dell EMC Isilon

7 years agoAdd cxgbetool(8) to the base system.
np [Fri, 3 Mar 2017 03:11:58 +0000 (03:11 +0000)]
Add cxgbetool(8) to the base system.

Move cxgbetool from tools/tools to usr.sbin. Compile and install it on
platforms where cxgbe(4) is built by default.  Knobs (WITH_CXGBETOOL and
WITHOUT_CXGBETOOL) have been added so that the user can override the
default setting.

Reviewed by: ngie@, gnn@, bdrewery@
MFC after: 1 month
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D9854

7 years agocxgbe/iw_cxgbe: Implement sq/rq drain operation.
np [Fri, 3 Mar 2017 03:07:54 +0000 (03:07 +0000)]
cxgbe/iw_cxgbe: Implement sq/rq drain operation.

ULPs can set a qp's state to ERROR and then post a work request on the
sq and/or rq.  When the reply for that work request comes back it is
guaranteed that all previous work requests posted on that queue have
been drained.

Obtained from: Chelsio Communications
MFC after: 3 days
Sponsored by: Chelsio Communications

7 years agoAllow building mkimg as cross-tool
sjg [Fri, 3 Mar 2017 01:56:55 +0000 (01:56 +0000)]
Allow building mkimg as cross-tool

For linux the mmap offset must also be page aligned, and we
need to disable macros like __FBSDID()

Change the linux osdep_uuidgen() to use more portable gettimeofday().

Reviewed by: marcel

7 years agoForgot to bump the version addendum date.
des [Fri, 3 Mar 2017 01:50:10 +0000 (01:50 +0000)]
Forgot to bump the version addendum date.

7 years agonet80211: fix ieee80211_htrateset setup, return EINVAL for an unsupported
avos [Fri, 3 Mar 2017 01:06:27 +0000 (01:06 +0000)]
net80211: fix ieee80211_htrateset setup, return EINVAL for an unsupported
ucast/mcast/mgmt HT rate.

- Init global ieee80211_htrateset only once; neither ic_htcaps nor
ic_txstream is changed when device is attached;
- Move global ieee80211_htrateset structure to ieee80211com;
there was a possible data race when more than 1 wireless device is
used simultaneously;
- Discard unsupported rates in ieee80211_ioctl_settxparams(); otherwise,
an unsupported value may break connectivity (actually,
'ifconfig wlan0 ucastrate 8' for RTL8188EU results in immediate
disconnect + infinite 'device timeout's after it).

Tested with:
 - Intel 6205, STA mode.
 - RTL8821AU, STA mode.

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D9871

7 years agoFix null pointer dereference in zfs_freebsd_setacl().
mm [Thu, 2 Mar 2017 23:23:28 +0000 (23:23 +0000)]
Fix null pointer dereference in zfs_freebsd_setacl().

Prevents unprivileged users from panicking the kernel by calling
__acl_delete_*() on files or directories inside a ZFS mount.

MFC after: 3 days

7 years agoMFV r314565,314567,314570:
mm [Thu, 2 Mar 2017 22:59:35 +0000 (22:59 +0000)]
MFV r314565,314567,314570:
Update libarchive to version 3.3.1 (and sync with latest vendor dist)

Notable vendor changes:
  PR #501: improvements in ACL path handling
  PR #724: fix hang when reading malformed cpio files
  PR #864: fix out of bounds read with malformed GNU tar archives
  Documentation, style, test suite improvements and typo fixes.

New options to bsdtar that enable or disable reading and/or writing of:
  Access Control Lists (--acls, --no-acls)
  Extended file flags (--fflags, --no-fflags)
  Extended attributes (--xattrs, --no-xattrs)
  Mac OS X metadata (Mac OS X only) (--mac-metadata, --no-mac-metadata)

MFC after: 2 weeks

7 years agokern_sig.c: ANSIfy and remove archaic register keyword
emaste [Thu, 2 Mar 2017 22:17:53 +0000 (22:17 +0000)]
kern_sig.c: ANSIfy and remove archaic register keyword

Sponsored by: The FreeBSD Foundation

7 years agoUpdate vendor/libarchive to git a15c7f7b496ba4cefbcaf6f8ac637db4f3009a58
mm [Thu, 2 Mar 2017 21:13:25 +0000 (21:13 +0000)]
Update vendor/libarchive to git a15c7f7b496ba4cefbcaf6f8ac637db4f3009a58

Documentation, style, test suite changes and typo fixes.
New bsdtar tests for --acls and --fflags options.

7 years agoUpdate vendor/libarchive to git d6b1bb9f7ea7bc153b7356e8e345c9e48005821a
mm [Thu, 2 Mar 2017 21:02:17 +0000 (21:02 +0000)]
Update vendor/libarchive to git d6b1bb9f7ea7bc153b7356e8e345c9e48005821a

Release 3.3.1

Notable vendor changes:
  PR #501: improvements in ACL path handling
  PR #724: fix hang when reading malformed cpio files
  PR #864: fix out of bounds read with malformed GNU tar archives
  Test suite improvements

New options to bsdtar that enable or disable reading and/or writing of:
  Access Control Lists (--acls, --no-acls)
  Extended file flags (--fflags, --no-fflags)
  Extended attributes (--xattrs, --no-xattrs)

7 years agoUpgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
dim [Thu, 2 Mar 2017 20:49:40 +0000 (20:49 +0000)]
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
4.0.0 (branches/release_40 296509).  The release will follow soon.

Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11
support to build; see UPDATING for more information.

Also note that as of 4.0.0, lld should be able to link the base system
on amd64 and aarch64.  See the WITH_LLD_IS_LLD setting in src.conf(5).
Though please be aware that this is work in progress.

Release notes for llvm, clang and lld will be available here:
<http://releases.llvm.org/4.0.0/docs/ReleaseNotes.html>
<http://releases.llvm.org/4.0.0/tools/clang/docs/ReleaseNotes.html>
<http://releases.llvm.org/4.0.0/tools/lld/docs/ReleaseNotes.html>

Thanks to Ed Maste, Jan Beich, Antoine Brodin and Eric Fiselier for
their help.

Relnotes: yes
Exp-run: antoine
PR: 215969, 216008
MFC after: 1 month

7 years agoWordsmith syslogd(8)
ngie [Thu, 2 Mar 2017 18:07:19 +0000 (18:07 +0000)]
Wordsmith syslogd(8)

- Clarify -p/-S options by using appropriate subject-verb modifiers
  (verb and modifiers suggested that the subject should have been
  singular).
- Simplify/correct -a description:
-- Be more terse when describing IPv4 (the "usual dotted notation"
   isn't necessarily well understood by the reader). Being blunt and
   saying "IPv4 address" with an optional netmask is.
-- prefixlen is the appropriate terminology for IPv6.
-- mask/prefixlen is optional, not required (as noted later on in the
   section).
-- split up IPv4/IPv6 use so to clarify both forms.
-- Fix wordiness when describing the optional "service" specifier.
- -T: Use "cannot" instead of "can't" [*].

Bump .Dd for the changes.

MFC after: 1 month
Reported by: igor [*]
Reviewed by: hrs
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9855

7 years agoStyle.
kib [Thu, 2 Mar 2017 17:35:13 +0000 (17:35 +0000)]
Style.

Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 3 days

7 years agoIncrease the EC2 image size for 12-CURRENT. The recent snapshot
gjb [Thu, 2 Mar 2017 17:31:59 +0000 (17:31 +0000)]
Increase the EC2 image size for 12-CURRENT.  The recent snapshot
builds of EC2 images for 12-CURRENT failed due to a full filesystem
on the md(4) device during creation.

Sponsored by: The FreeBSD Foundation

7 years agoFix build: include machine/bus.h before uart.h
br [Thu, 2 Mar 2017 17:09:14 +0000 (17:09 +0000)]
Fix build: include machine/bus.h before uart.h

Reported by: emaste
Sponsored by: DARPA, AFRL

7 years agoGarbage collect unused gdtoa related files on mips.
brooks [Thu, 2 Mar 2017 17:08:37 +0000 (17:08 +0000)]
Garbage collect unused gdtoa related files on mips.

Reviewed by: emase, imp, jhb
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D9841

7 years agoCorrect an misunderstanding of MDSRCS.
brooks [Thu, 2 Mar 2017 17:07:28 +0000 (17:07 +0000)]
Correct an misunderstanding of MDSRCS.

MDSRCS it intended to allow assembly versions of funtions with C
implementations listed in MISRCS. The selection of the correct
machdep_ldis?.c for a given architecture does not follow this pattern
and the file should be added to SRCS directly.

Reviewed by: emaste, imp, jhb
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D9841

7 years agoCorrect MDSRCS use in <arch>/string/Makefile.inc.
brooks [Thu, 2 Mar 2017 17:05:52 +0000 (17:05 +0000)]
Correct MDSRCS use in <arch>/string/Makefile.inc.

- Remove .c files which duplicate entries in MISRCS.
- Use the same, less merge conflict prone style in all cases.
- Use MDSRCS for mips (.c and .S files both ended up in SRCS).
- Remove pointless sparc64 Makefile.inc.
- Remove uninformative foreign VCS ID entries.

Reviewed by: emaste, imp, jhb
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D9841

7 years agoInline some trivial wrapper functions.
mav [Thu, 2 Mar 2017 16:14:15 +0000 (16:14 +0000)]
Inline some trivial wrapper functions.

MFC after: 2 weeks

7 years agoFix date.
des [Thu, 2 Mar 2017 14:50:01 +0000 (14:50 +0000)]
Fix date.

Reported by: delphij, mckay
MFC with: r314528

7 years agoImplement taskqueue_poll_is_busy() for use by the LinuxKPI.
hselasky [Thu, 2 Mar 2017 12:20:23 +0000 (12:20 +0000)]
Implement taskqueue_poll_is_busy() for use by the LinuxKPI.
Refer to comment above function for a detailed description.

Discussed with: kib @
MFC after: 1 week
Sponsored by: Mellanox Technologies

7 years agoExecute last ZIO of log commit synchronously.
mav [Thu, 2 Mar 2017 07:55:47 +0000 (07:55 +0000)]
Execute last ZIO of log commit synchronously.

For short transactions overhead of context switch can be too large.
Skipping it gives significant latency reduction.  For large ones,
including multiple ZIOs, latency is less critical, while throughput
there may become limited by checksumming speed of single CPU core.
To get best of both cases, execute last ZIO directly from calling
thread context to save latency, while all others (if there are any)
enqueue to taskqueues in traditional way.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

7 years agoCompletely skip cache flushing for not supporting log devices.
mav [Thu, 2 Mar 2017 07:50:06 +0000 (07:50 +0000)]
Completely skip cache flushing for not supporting log devices.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

7 years agoloader.efi: reduce the size of the staging area if necessary
dexuan [Thu, 2 Mar 2017 07:25:50 +0000 (07:25 +0000)]
loader.efi: reduce the size of the staging area if necessary

The loader assumes physical memory in [2MB, 2MB + EFI_STAGING_SIZE)
is Conventional Memory, but actually it may not, e.g. in the case
of Hyper-V Generation-2 VM (i.e. UEFI VM) running on Windows
Server 2012 R2 host, there is a BootServiceData memory block at
the address 47.449MB and the memory is not writable.

Without the patch, the loader will crash in efi_copy_finish():
see PR 211746.

The patch verifies the end of the staging area, and reduces its
size if necessary. This way, the loader will not try to write into
the BootServiceData memory any longer.

Thank Marcel Moolenaar for helping me on this issue!

The patch also allocates the staging area in the first 1GB memory.
See the comment in the patch for this.

PR: 211746
Reviewed by: marcel, kib, sephe
Approved by: sephe (mentor)
MFC after: 2 weeks
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D9686

7 years agoWordsmith mlx4{en,ib}(4)
ngie [Thu, 2 Mar 2017 06:57:13 +0000 (06:57 +0000)]
Wordsmith mlx4{en,ib}(4)

- Replace the "following lines" with more terse phrases.
- Use .Lk for the mellanox URL.
- Reword the SUPPORT section so it's less wordy.

The DESCRIPTION section suggestions are still outstanding; improving
the section requires additional review to make sure the nuance/message
is correct per the original intent.

Bump .Dd for the change

Submitted by: wblock
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9241

7 years agoAdd missing section to .Xr macro calls for wpifw(4)
ngie [Thu, 2 Mar 2017 06:25:50 +0000 (06:25 +0000)]
Add missing section to .Xr macro calls for wpifw(4)

The driver manpage for wpifw(4) is missing, but will be added soon. This
fixes the other 2 .Xr calls lacking sections to match the 3rd,
syntactically correct, reference in the SEE ALSO section.

MFC after: 1 week
Reported by: make manlint
Sponsored by: Dell EMC Isilon

7 years agoSort .Xr: ahci(4) comes before ahd(4)
ngie [Thu, 2 Mar 2017 06:22:05 +0000 (06:22 +0000)]
Sort .Xr: ahci(4) comes before ahd(4)

X-MFC with: r314110
Reported by: make manlint
Sponsored by: Dell EMC Isilon

7 years agoAdd missing section when referencing ctl(4) via .Xr macro
ngie [Thu, 2 Mar 2017 06:03:21 +0000 (06:03 +0000)]
Add missing section when referencing ctl(4) via .Xr macro

MFC after: 1 week
Reported by: make manlint
Sponsored by: Dell EMC Isilon

7 years agokern.cam.da.X.delete_method: add -width to .Bl macro call
ngie [Thu, 2 Mar 2017 06:02:17 +0000 (06:02 +0000)]
kern.cam.da.X.delete_method: add -width to .Bl macro call

Now the section width is set appropriately per the BIO_DELETE
parameter being described.

Reported by: make manlint
MFC after: 1 week
Sponsored by: Dell EMC Isilon

7 years agoUse SRCTOP-relative paths to other directories instead of .CURDIR-relative ones
ngie [Thu, 2 Mar 2017 05:04:45 +0000 (05:04 +0000)]
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output.

MFC after: 1 week
Sponsored by: Dell EMC Isilon

7 years agomakefs: remove clause 3 & 4 from Manuel Bouyer license
emaste [Thu, 2 Mar 2017 04:11:18 +0000 (04:11 +0000)]
makefs: remove clause 3 & 4 from Manuel Bouyer license

ffs_bswap.c 1.34
ufs_bswap.h 1.34

Obtained from: NetBSD
Sponsored by: The FreeBSD Foundation