]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoRemove remaining uio-related code.
jimharris [Wed, 26 Jun 2013 23:37:11 +0000 (23:37 +0000)]
Remove remaining uio-related code.

The nvme_physio() function was removed quite a while ago, which was the
only user of this uio-related code.

Sponsored by: Intel
MFC after: 3 days

11 years agoFail any passthrough command whose transfer size exceeds the controller's
jimharris [Wed, 26 Jun 2013 23:32:45 +0000 (23:32 +0000)]
Fail any passthrough command whose transfer size exceeds the controller's
max transfer size.  This guards against rogue commands coming in from
userspace.

Also add KASSERTS for the virtual address and unmapped bio cases, if the
transfer size exceeds the controller's max transfer size.

Sponsored by: Intel
MFC after: 3 days

11 years agoUse MAXPHYS to specify the maximum I/O size for nvme(4).
jimharris [Wed, 26 Jun 2013 23:27:17 +0000 (23:27 +0000)]
Use MAXPHYS to specify the maximum I/O size for nvme(4).

Also allow admin commands to transfer up to this maximum I/O size, rather
than the artificial limit previously imposed.  The larger I/O size is very
beneficial for upcoming firmware download support.  This has the added
benefit of simplifying the code since both admin and I/O commands now use
the same maximum I/O size.

Sponsored by: Intel
MFC after: 3 days

11 years agoCreate #defines for NVME_CTRLR_PREFIX and NVME_NS_PREFIX for the "nvme"
jimharris [Wed, 26 Jun 2013 23:20:08 +0000 (23:20 +0000)]
Create #defines for NVME_CTRLR_PREFIX and NVME_NS_PREFIX for the "nvme"
and "ns" strings, rather than hardcoding the string values throughout the
nvmecontrol code base.

Sponsored by: Intel
MFC after: 3 days

11 years agoAdd an nvme_function structure array, defining the name, C function and
jimharris [Wed, 26 Jun 2013 23:11:20 +0000 (23:11 +0000)]
Add an nvme_function structure array, defining the name, C function and
usage message for each nvmecontrol command.  This helps reduce some code
clutter both now and for future commits which will add logpage and
firmware support to nvmecontrol(8).

Also move helper function prototypes to the end of the header file, after
the per-command functions.

Sponsored by: Intel
MFC after: 3 days

11 years agoBreak out code related to the reset command into a separate source file.
jimharris [Wed, 26 Jun 2013 23:05:48 +0000 (23:05 +0000)]
Break out code related to the reset command into a separate source file.

Sponsored by: Intel
MFC after: 3 days

11 years agoBreak out code related to the perftest command into a separate file.
jimharris [Wed, 26 Jun 2013 23:02:48 +0000 (23:02 +0000)]
Break out code related to the perftest command into a separate file.

Sponsored by: Intel
MFC after: 3 days

11 years agoBreak out code related to the identify command into a separate source file.
jimharris [Wed, 26 Jun 2013 23:00:42 +0000 (23:00 +0000)]
Break out code related to the identify command into a separate source file.

Sponsored by: Intel
MFC after: 3 days

11 years agoBreak out code related to the devlist command into a separate source file.
jimharris [Wed, 26 Jun 2013 22:58:59 +0000 (22:58 +0000)]
Break out code related to the devlist command into a separate source file.

Sponsored by: Intel
MFC after: 3 days

11 years agoAdd separate *_usage() functions for each nvmecontrol command.
jimharris [Wed, 26 Jun 2013 22:53:21 +0000 (22:53 +0000)]
Add separate *_usage() functions for each nvmecontrol command.

Sponsored by: Intel
MFC after: 3 days

11 years agoAdd an open_dev() helper function to be used in the various places
jimharris [Wed, 26 Jun 2013 22:50:49 +0000 (22:50 +0000)]
Add an open_dev() helper function to be used in the various places
where nvmecontrol needs to open a handle to a controller or namespace
device node.

Sponsored by: Intel
MFC after: 3 days

11 years agoFor ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA
jimharris [Wed, 26 Jun 2013 22:08:45 +0000 (22:08 +0000)]
For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA
by treating it as UDMA.

This fixes a problem introduced in r249933/r249939, where CAM sends
ATA_DSM_TRIM to SATA devices using ATA_PASSTHROUGH_16.  scsi_ata_trim()
sets protocol as DMA (not UDMA) which is for multi-word DMA, even
though no such mode is selected for the device.  isci(4) would fail
these commands which is the correct behavior but not consistent with
other HBAs, namely LSI's.

smh@ did some further testing on an LSI controller, which rejected
ATA_PASSTHROUGH_16 commands with mode=UDMA_OUT, even though only
a UDMA mode was selected on the device.  So this precludes adding
any kind of mode detection in CAM to determine which mode to use on
a per-device basis.

Sponsored by: Intel
Discussed with: scottl, smh
Reported by: scottl
Tested by: scottl
MFC after: 3 days

11 years agoIn the Xen block front driver, take advantage of backends that
gibbs [Wed, 26 Jun 2013 20:39:07 +0000 (20:39 +0000)]
In the Xen block front driver, take advantage of backends that
support cache flush and write barrier commands.

sys/dev/xen/blkfront/block.h:
Add per-command flag that specifies that the I/O queue must
be frozen after this command is dispatched.  This is used
to implement "single-stepping".

Remove the unused per-command flag that indicates a polled
command.

Add block device instance flags to record backend features.

Add a block device instance flag to indicate the I/O queue
is frozen until all outstanding I/O completes.

Enhance the queue API to allow the number of elements in a
queue to be interrogated.

Prefer "inline" to "__inline".

sys/dev/xen/blkfront/blkfront.c:
Formalize queue freeze semantics by adding methods for both
global and command-associated queue freezing.

Provide mechanism to freeze the I/O queue until all outstanding
I/O completes.  Use this to implement barrier semantics
(BIO_ORDERED) when the backend does not support
BLKIF_OP_WRITE_BARRIER commands.

Implement BIO_FLUSH as either a BLKIF_OP_FLUSH_DISKCACHE
command or a 0 byte write barrier.  Currently, all publicly
available backends perform a diskcache flush when processing
barrier commands, and this frontend behavior matches what
is done in Linux.

Simplify code by using new queue length API.

Report backend features during device attach and via sysctl.

Submitted by: Roger Pau MonnĂ©
Submitted by: gibbs (Merge with new driver queue API, sysctl support)

11 years agoMinor sorting.
pfg [Wed, 26 Jun 2013 19:43:22 +0000 (19:43 +0000)]
Minor sorting.

MFC after: 3 days

11 years agoFix some UTF-8 chars slipped into r252204 via copy/paste.
mav [Wed, 26 Jun 2013 09:56:33 +0000 (09:56 +0000)]
Fix some UTF-8 chars slipped into r252204 via copy/paste.

11 years agoAdd the EEPROM start offset and size in so ath_ahb will use the
adrian [Wed, 26 Jun 2013 05:03:47 +0000 (05:03 +0000)]
Add the EEPROM start offset and size in so ath_ahb will use the
supplied EEPROM data.

This needs to die in a fire and replaced with the firmware API
to store the calibration data early ..

11 years agoAdd in the vendor / device id so the ath_ahb glue works.
adrian [Wed, 26 Jun 2013 05:02:47 +0000 (05:02 +0000)]
Add in the vendor / device id so the ath_ahb glue works.

11 years agoAdd the wireless support to the AR933x base kernel, as the support
adrian [Wed, 26 Jun 2013 05:02:30 +0000 (05:02 +0000)]
Add the wireless support to the AR933x base kernel, as the support
actually works now.

11 years agoAdd in two new configuration options for the current generation SoCs.
adrian [Wed, 26 Jun 2013 05:01:50 +0000 (05:01 +0000)]
Add in two new configuration options for the current generation SoCs.

11 years agoExtend the AHB code to work on chips besides the AR9130.
adrian [Wed, 26 Jun 2013 04:58:25 +0000 (04:58 +0000)]
Extend the AHB code to work on chips besides the AR9130.

The AHB code:

* hard coded the AR9130 device id;
* assumes a 4k flash calibration space.

This code now extends this:

* hint.ath.X.eepromsize now overrides the eeprom range, instead of 4k
* hint.ath.X.device_id and hint.ath.X.vendor_id can now be overridden.

Tested:

* AR9330 board (Carambola 2)

11 years agoIf EEPROM data is provided by the AHB layer, copy it in.
adrian [Wed, 26 Jun 2013 04:53:33 +0000 (04:53 +0000)]
If EEPROM data is provided by the AHB layer, copy it in.

This is required for the flash layer code to correctly work.

Tested:

* AR9330 SoC (carambola 2)

11 years agoRe-enable the channel set code for the AR933x.
adrian [Wed, 26 Jun 2013 04:46:43 +0000 (04:46 +0000)]
Re-enable the channel set code for the AR933x.

This required a HAL change to map the 2GHz frequency back to an IEEE
channel number in order to fetch some value(s) to program in.

11 years agoAdd a HAL local routine to map the 2GHz channel frequency to an IEEE
adrian [Wed, 26 Jun 2013 04:46:03 +0000 (04:46 +0000)]
Add a HAL local routine to map the 2GHz channel frequency to an IEEE
channel.

There's some HAL code in the AR9300 HAL that requires a back-mapping
and using the net80211 code isn't appropriate here.

11 years agoIn preparation to support AR933x SoC builds, allow the AH_SUPPORT_AR93(xx)
adrian [Wed, 26 Jun 2013 04:34:45 +0000 (04:34 +0000)]
In preparation to support AR933x SoC builds, allow the AH_SUPPORT_AR93(xx)
options to set the AR9300 HAL defines.

This enables the Wasp, Hornet (and later Scorpion) SoC code.

11 years agoAdd a stub AR93xx RF module just to keep the linker happy.
adrian [Wed, 26 Jun 2013 04:33:57 +0000 (04:33 +0000)]
Add a stub AR93xx RF module just to keep the linker happy.

When building AR933x test images, I'd like to only build only the ar9300
HAL.  To do this, it needs to supply an RF linker entry or it won't compile.

Tested:

* AR933x test builds

11 years agoDocument ifconfig_wlanX="HOSTAP"
rpaulo [Wed, 26 Jun 2013 04:33:32 +0000 (04:33 +0000)]
Document ifconfig_wlanX="HOSTAP"

11 years agosed: use getline() instead of fgetln().
pfg [Wed, 26 Jun 2013 04:14:19 +0000 (04:14 +0000)]
sed: use getline() instead of fgetln().

In BSD, fgetln() available in libc but in Illumos the Solaris port had to
include it internally. It also seems to have caused problems [1].

Aid portability by using getline() instead.

Reference:
https://www.illumos.org/issues/3820 [1]

Submitted by: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.com>
Reviewed by: dds
MFC after: 2 weeks

11 years agoImplement ifconfig_wlanX="HOSTAP".
rpaulo [Wed, 26 Jun 2013 04:00:52 +0000 (04:00 +0000)]
Implement ifconfig_wlanX="HOSTAP".

Not only this is a bit cleaner, it allows multiple instances of hostapd to be
running on the system host, useful for simultaneous dual-band WiFi.
This is similar to ifconfig_wlanX="WPA" but it uses /etc/hostapd-wlanX.conf.
Compatibility with hostapd_enable=YES/NO was kept.

Reviewed by: adrian

11 years agoPrint the 'setting internal ...' message only with bootverbose.
rpaulo [Wed, 26 Jun 2013 02:56:54 +0000 (02:56 +0000)]
Print the 'setting internal ...' message only with bootverbose.

11 years ago- Adding myself to the committers-ports.dot
feld [Wed, 26 Jun 2013 02:21:37 +0000 (02:21 +0000)]
- Adding myself to the committers-ports.dot
- Adding myself to the freebsd calendar

Approved by: swills (mentor)

11 years agoDon't blidly clear GPIOs configuration. Just use firmware configured
yongari [Wed, 26 Jun 2013 01:15:40 +0000 (01:15 +0000)]
Don't blidly clear GPIOs configuration. Just use firmware configured
one.  This change also fixes non-working traffic LED on BCM57780.

Submitted by: Masanobu SAITOH <msaitoh@NetBSD.org>
Tested by: Alexander Milanov <a@amilanov.com>

11 years ago - Resolve bucket recursion issues by passing a cookie with zone flags
jeff [Wed, 26 Jun 2013 00:57:38 +0000 (00:57 +0000)]
 - Resolve bucket recursion issues by passing a cookie with zone flags
   through bucket_alloc() to uma_zalloc_arg() and uma_zfree_arg().
 - Make some smaller buckets for large zones to further reduce memory
   waste.
 - Implement uma_zone_reserve().  This holds aside a number of items only
   for callers who specify M_USE_RESERVE.  buckets will never be filled
   from reserve allocations.

Sponsored by: EMC / Isilon Storage Division

11 years agoMFV r252215:
delphij [Tue, 25 Jun 2013 22:14:32 +0000 (22:14 +0000)]
MFV r252215:

Restore a previous behavior before r251646, where when destructing
ZFS snapshot, the ioctl would return ENOENT when it hit any of
them in the errlist (the new behavior was only return ENOENT when
all returns error).

Illumos ZFS issues:
  3829 fix for 3740 changed behavior of zfs destroy/hold/release ioctl

MFC after: 1 week

11 years agoDiff reduction against Illumos, no real change to code itself.
delphij [Tue, 25 Jun 2013 21:51:52 +0000 (21:51 +0000)]
Diff reduction against Illumos, no real change to code itself.

This marks vendor branch revision 252213 as merged, the actual code was
committed in r245479.

MFC after: 1 week

11 years agoA few mostly cosmetic nits to aid in debugging:
jhb [Tue, 25 Jun 2013 20:23:08 +0000 (20:23 +0000)]
A few mostly cosmetic nits to aid in debugging:
- Call lock_init() first before setting any lock_object fields in
  lock init routines.  This way if the machine panics due to a duplicate
  init the lock's original state is preserved.
- Somewhat similarly, don't decrement td_locks and td_slocks until after
  an unlock operation has completed successfully.

11 years agoSeveral improvements to rmlock(9). Many of these are based on patches
jhb [Tue, 25 Jun 2013 18:44:15 +0000 (18:44 +0000)]
Several improvements to rmlock(9).  Many of these are based on patches
provided by Isilon.
- Add an rm_assert() supporting various lock assertions similar to other
  locking primitives.  Because rmlocks track readers the assertions are
  always fully accurate unlike rw_assert() and sx_assert().
- Flesh out the lock class methods for rmlocks to support sleeping via
  condvars and rm_sleep() (but only while holding write locks), rmlock
  details in 'show lock' in DDB, and the lc_owner method used by
  dtrace.
- Add an internal destroyed cookie so that API functions can assert
  that an rmlock is not destroyed.
- Make use of rm_assert() to add various assertions to the API (e.g.
  to assert locks are held when an unlock routine is called).
- Give RM_SLEEPABLE locks their own lock class and always use the
  rmlock's own lock_object with WITNESS.
- Use THREAD_NO_SLEEPING() / THREAD_SLEEPING_OK() to disallow sleeping
  while holding a read lock on an rmlock.

Submitted by: andre
Obtained from: EMC/Isilon

11 years agoAdd include path to the ar9300 HAL.
adrian [Tue, 25 Jun 2013 17:50:48 +0000 (17:50 +0000)]
Add include path to the ar9300 HAL.

11 years agoAdd Qlogic 10Gb Ethernet Driver for Qlogic 8100 Series CNA Adapter
davidcs [Tue, 25 Jun 2013 17:50:22 +0000 (17:50 +0000)]
Add Qlogic 10Gb Ethernet Driver for Qlogic 8100 Series CNA Adapter
Driver version (v2.0.0)

Submitted by: David C Somayajulu (davidcs@freebsd.org) QLogic Corporation
Approved by: George Neville-Neil (gnn@freebsd.org)

11 years agoIf daily_status_security_inline is set, the rc value needs to be
jhb [Tue, 25 Jun 2013 15:45:31 +0000 (15:45 +0000)]
If daily_status_security_inline is set, the rc value needs to be
forced to 3 so that the output of this script is always displayed.
In fact, setting this flag is identical to setting
daily_status_security_output to an empty string.  To make the logic
less confusing, change the behavior of daily_status_security_inline
such that it just forces daily_status_security_output to an empty
string and then applies the normal logic.

PR: conf/178611
Submitted by: Jason Unovitch <jason.unovitch@gmail.com>
MFC after: 3 days

11 years agoAdd bunch of names for Seagate and HGST vennor-specififc ASC/ASCQ codes.
mav [Tue, 25 Jun 2013 10:50:17 +0000 (10:50 +0000)]
Add bunch of names for Seagate and HGST vennor-specififc ASC/ASCQ codes.

11 years agoAdd test for SATA registers writability and skip using them if it failed.
mav [Tue, 25 Jun 2013 09:15:49 +0000 (09:15 +0000)]
Add test for SATA registers writability and skip using them if it failed.

There are some systems reported, where PCI BAR(5), used for SATA registers
access, is present, but not functional.  Attempt to use it brakes devices
detection logic.  Try to detect those cases on attach by setting and testing
some bits in SControl register.  If bits are unsettable, fallback to legacy
ATA without hot-plug detection, speed control/reporting, etc.

MFC after: 2 weeks

11 years agoRegenerate usb.conf after r252196.
kevlo [Tue, 25 Jun 2013 07:17:30 +0000 (07:17 +0000)]
Regenerate usb.conf after r252196.

Spotted by: rpaulo

11 years agoAdd support for D-Link DWA-131.
kevlo [Tue, 25 Jun 2013 06:43:04 +0000 (06:43 +0000)]
Add support for D-Link DWA-131.

11 years agoAdd Lenovo USB 2.0 Ethernet adapter to the list of supported
yongari [Tue, 25 Jun 2013 00:29:13 +0000 (00:29 +0000)]
Add Lenovo USB 2.0 Ethernet adapter to the list of supported
devices.

11 years agoAdd Lenovo USB 2.0 Ethernet adapter.
yongari [Tue, 25 Jun 2013 00:26:30 +0000 (00:26 +0000)]
Add Lenovo USB 2.0 Ethernet adapter.

PR: usb/179920
MFC After: 1 week

11 years agoDue to the routing related networking kernel redesign work
qingli [Tue, 25 Jun 2013 00:10:49 +0000 (00:10 +0000)]
Due to the routing related networking kernel redesign work
in FBSD 8.0, interface routes have been returened to the
applications without the RTF_GATEWAY bit. This incompatibility
has caused some issues with Zebra, Qugga and the like.
This patch provides the RTF_GATEWAY flag bit in returned interface
routes so to behave similarly to pre 8.0 systems.

Reviewed by:     hrs
Verified by:     mackn at opendns dot com

11 years agoFlag mpt(4) as supporting unmapped I/O; all necessary conversion actually
marius [Mon, 24 Jun 2013 21:27:15 +0000 (21:27 +0000)]
Flag mpt(4) as supporting unmapped I/O; all necessary conversion actually
already has been done as part of r246713 except for a comment update.

MFC after: 3 days

11 years agogcc: configuration fix.
pfg [Mon, 24 Jun 2013 21:13:58 +0000 (21:13 +0000)]
gcc:  configuration fix.

-Fix configuration support for FreeBSD 10 and 11.

Note this change is based on GCC-SVN-131197 with permission
by gerald@ .

Reported by: jmallet

11 years agoMore whitespace.
dteske [Mon, 24 Jun 2013 20:58:54 +0000 (20:58 +0000)]
More whitespace.

11 years agoWhitespace.
dteske [Mon, 24 Jun 2013 20:39:07 +0000 (20:39 +0000)]
Whitespace.

11 years agogcc: add some configuration and references.
pfg [Mon, 24 Jun 2013 20:38:27 +0000 (20:38 +0000)]
gcc: add some configuration and references.

-Add configure support for FreeBSD 10 and 11.
-Adapt a threading fix to gnu POSIX95 (which we don't use).
-Refer to a bug fix for the disabled vrptree support.

This is all useless in our current build but it is included
for convenience in case someone may want to re-package our
older gcc.

Reviewed by: gerald (long ago)

11 years agoAdd missing Obsolete Files
eadler [Mon, 24 Jun 2013 20:36:12 +0000 (20:36 +0000)]
Add missing Obsolete Files

Submitted by: Kurt Lidl <lidl@pi-coral.com>

11 years agoRemove request to email suggestions and fixes to the author.
eadler [Mon, 24 Jun 2013 19:57:25 +0000 (19:57 +0000)]
Remove request to email suggestions and fixes to the author.
He is no longer involved with the FreeBSD project.

While here: remove "no known bugs" and related.  This isn't present in other manual pages.

PR: docs/179914

11 years agoMake the order of operations for lib/msun more clear.
eadler [Mon, 24 Jun 2013 19:12:17 +0000 (19:12 +0000)]
Make the order of operations for lib/msun more clear.

Tested with md5 sum of object code

Reported by: swildner@DragonFlyBSD.org
Submitted by: bde

11 years agoDisable hw.pci.realloc_bars by default. It wasn't needed for the original
jhb [Mon, 24 Jun 2013 18:30:44 +0000 (18:30 +0000)]
Disable hw.pci.realloc_bars by default.  It wasn't needed for the original
tester of this fix, and realloc_bars breaks some other cases as a small
BAR that is reallocated can end up grabbing space needed by a much larger
BAR in the existing window of a PCI-PCI bridge.

MFC after: 3 days

11 years agoTypo in comment.
glebius [Mon, 24 Jun 2013 13:36:16 +0000 (13:36 +0000)]
Typo in comment.

11 years agoRevert r252126, r252124, r252121.
gjb [Mon, 24 Jun 2013 09:18:41 +0000 (09:18 +0000)]
Revert r252126, r252124, r252121.

Submitted by: hrs

11 years agoWhen RX checksum offloading is active, AX88772B will prepend a
yongari [Mon, 24 Jun 2013 05:18:31 +0000 (05:18 +0000)]
When RX checksum offloading is active, AX88772B will prepend a
checksum header.  The header contains a received frame length but
the defined length for AX88772B is different with other ASIX
controllers.  When the RX checksum is off, AX88772B controller does
not prepend a checksum header so driver has to use normal header
length mask.
This change should fix RX errors when RX checksum offloading is
off.

Tested by: kevlo
MFC After: 1 week

11 years agoDelete the nd6 entries associated with an off-link prefix
qingli [Mon, 24 Jun 2013 05:01:13 +0000 (05:01 +0000)]
Delete the nd6 entries associated with an off-link prefix
if the same prefix cannot be found on an alternative
interface.

Reviewed by: hrs
MFC after: 1 week

11 years agoDocument the "-o" option added by r252138.
rmacklem [Mon, 24 Jun 2013 02:24:22 +0000 (02:24 +0000)]
Document the "-o" option added by r252138.

MFC after: 10 days

11 years agoAdd a new "-o" option to the gssd which forces gss_init_sec_context()
rmacklem [Mon, 24 Jun 2013 02:19:23 +0000 (02:19 +0000)]
Add a new "-o" option to the gssd which forces gss_init_sec_context()
to use DES and the associated old style GSS initialization token.
This appears to be required for some non-FreeBSD servers to
get a kerberized NFS mount to work. Also, ignore some signals when daemonized,
which might fix the gssd from "disappearing" without leaving a core dump.
Given the tight timeframe for the FreeBSD9.2 release, I have
committed this while waiting for code review. I will commit
changes recommended by the review in a separate commit.

Reviewed by: dfr (pending)
MFC after: 10 days

11 years agoBump shlib for dialog because ABI has changed when version 1.2 was imported
bapt [Sun, 23 Jun 2013 21:59:52 +0000 (21:59 +0000)]
Bump shlib for dialog because ABI has changed when version 1.2 was imported

Reviewed by: kib

11 years agoRemove variable added by ru@ in r94940 that is no longer used by source or ports...
eadler [Sun, 23 Jun 2013 20:34:54 +0000 (20:34 +0000)]
Remove variable added by ru@ in r94940 that is no longer used by source or ports in share/mk/sys.mk

PR: conf/155737
Reviewed by: ed (two years ago!)
Exp-Run by: bdrewery

11 years agoTrim copyright years, and add the current year.
gjb [Sun, 23 Jun 2013 20:24:43 +0000 (20:24 +0000)]
Trim copyright years, and add the current year.

11 years agoRevert previous change to uark.c (restore previous rev), which was
thomas [Sun, 23 Jun 2013 20:22:49 +0000 (20:22 +0000)]
Revert previous change to uark.c (restore previous rev), which was
committed by mistake.

11 years agoRewrap after previous commit.
gjb [Sun, 23 Jun 2013 20:20:34 +0000 (20:20 +0000)]
Rewrap after previous commit.

11 years agoFix minor typo in comment
thomas [Sun, 23 Jun 2013 20:19:51 +0000 (20:19 +0000)]
Fix minor typo in comment

11 years agoAdd a new macro, release.current.release, to denote the head/ branch
gjb [Sun, 23 Jun 2013 20:19:00 +0000 (20:19 +0000)]
Add a new macro, release.current.release, to denote the head/ branch
with the -RELEASE suffix.  This fixes the incorrect text on the -CURRENT
errata page from showing '10.0-CURRENT' followed by 'until 9.1-RELEASE is
released.'

11 years agoAdd missing copyright years.
gjb [Sun, 23 Jun 2013 19:47:59 +0000 (19:47 +0000)]
Add missing copyright years.

11 years agoCache the Open Firmware CPU properties at attach time, so we don't always
jhibbits [Sun, 23 Jun 2013 14:20:54 +0000 (14:20 +0000)]
Cache the Open Firmware CPU properties at attach time, so we don't always
enter it at runtime to get static data.

11 years agoAdd a newline character to the end of the "Check URL again" error message
dteske [Sun, 23 Jun 2013 10:51:26 +0000 (10:51 +0000)]
Add a newline character to the end of the "Check URL again" error message
because long URLs do not induce extra height despite wrapping by dialog(1).
NOTE: For even longer lines, the cursor up/down keys work to scroll through

11 years agoMerge r248313 from stable/9 sysinstall(8) to head bsdconfig(8):
dteske [Sun, 23 Jun 2013 10:48:26 +0000 (10:48 +0000)]
Merge r248313 from stable/9 sysinstall(8) to head bsdconfig(8):
Add support for installation directly via HTTP.

While we're here, remove the menu-item for Passive FTP (since moving to
ftp(1) and switching FTPMODE to `auto' by default -- see r251613 -- the
single remaining FTP menu-item works for both ftp.f.o and ftp-archive.f.o;
previously each requiring separately active versus passive both work with
the `auto' setting). In scripting you still have mediaSetFTPActive and
mediaSetFTPPassive but the remaining FTP menu-item uses mediaSetFTP which
defaults to `auto' (aforementioned SVN r251613).

11 years agoImplement the $probe_only parameter (previously unimplemented).
dteske [Sun, 23 Jun 2013 10:04:23 +0000 (10:04 +0000)]
Implement the $probe_only parameter (previously unimplemented).

11 years agoFine-tune the parsing of the URL. Re-order, comment, and add debugging to
dteske [Sun, 23 Jun 2013 09:41:47 +0000 (09:41 +0000)]
Fine-tune the parsing of the URL. Re-order, comment, and add debugging to
each case of unique URL format.

11 years agoDefine and use e2fs_lbn_t in ext2fs.
pfg [Sun, 23 Jun 2013 02:44:42 +0000 (02:44 +0000)]
Define and use e2fs_lbn_t in ext2fs.

In line to what is done in UFS, define an internal type
e2fs_lbn_t for the logical block numbers.

This change is basically a no-op as the new type is unchanged
(int32_t) but it may be useful as bumping this may be required
for ext4fs.

Also, as pointed out by Bruce Evans:

-Use daddr_t for daddr in ext2_bmaparray(). This seems to
improve reliability with the reallocblks option.
- Add a cast to the fsbtodb() macro as in UFS.

Reviewed by: bde
MFC after: 3 days

11 years agoIf MAKE_CONF and/or SRC_CONF are set and not character devices,
gjb [Sat, 22 Jun 2013 22:12:24 +0000 (22:12 +0000)]
If MAKE_CONF and/or SRC_CONF are set and not character devices,
copy to chroot to use with release build.

Submitted by: Garrett Cooper (original version)
Approved by: kib (mentor)
MFC after: 1 week

11 years agoFix r252074 so that it builds on 64bit arches.
rmacklem [Sat, 22 Jun 2013 21:58:21 +0000 (21:58 +0000)]
Fix r252074 so that it builds on 64bit arches.

11 years agoFix a code typo that prevented the probing of the current defaultrouter
dteske [Sat, 22 Jun 2013 03:54:17 +0000 (03:54 +0000)]
Fix a code typo that prevented the probing of the current defaultrouter
in-order to pre-populate the editor.

11 years agoOops, previous revision (r252084) broke non-full-path resolution (e.g.,
dteske [Sat, 22 Jun 2013 03:50:14 +0000 (03:50 +0000)]
Oops, previous revision (r252084) broke non-full-path resolution (e.g.,
ftp://ftp.freebsd.org or ftp://ftp.freebsd.org/). Now both full-path and
non-full resolution is working regardless of trailing-slash.

11 years agoTrim the trailing `/' from the ftp_dir when validating that the directory
dteske [Sat, 22 Jun 2013 03:44:49 +0000 (03:44 +0000)]
Trim the trailing `/' from the ftp_dir when validating that the directory
exists on the FTP server. This now means that when you specify a full-path
to the repository on the FTP server that it doesn't matter whether you have
a trailing `/' or not.

11 years agoTake advantage of the fact that f_getvar evaluates the $var_to_get parameter
dteske [Sat, 22 Jun 2013 02:57:52 +0000 (02:57 +0000)]
Take advantage of the fact that f_getvar evaluates the $var_to_get parameter
within braces, allowing all manner of parameter expansions (properly quoted
or escaped, of course).

11 years agoFix a regression introduced by r251967, resulting in:
dteske [Sat, 22 Jun 2013 02:51:22 +0000 (02:51 +0000)]
Fix a regression introduced by r251967, resulting in:

/usr/libexec/bsdconfig/110.mouse/mouse: 134:
Syntax error: ";;" unexpected (expecting "fi")

11 years agoFix a regression introduced by r251967, resulting in:
dteske [Sat, 22 Jun 2013 02:47:54 +0000 (02:47 +0000)]
Fix a regression introduced by r251967, resulting in:

/usr/libexec/bsdconfig/080.console/console: 136:
Syntax error: ";;" unexpected (expecting "fi")

11 years agoAdd missing local declaration.
dteske [Fri, 21 Jun 2013 23:21:16 +0000 (23:21 +0000)]
Add missing local declaration.

11 years agoRemove unused library include.
dteske [Fri, 21 Jun 2013 23:18:29 +0000 (23:18 +0000)]
Remove unused library include.

11 years agoAlphabetize library includes.
dteske [Fri, 21 Jun 2013 23:13:55 +0000 (23:13 +0000)]
Alphabetize library includes.

11 years agoStyle.
dteske [Fri, 21 Jun 2013 22:53:51 +0000 (22:53 +0000)]
Style.

11 years agoTypo and grammar fixes to comments.
dteske [Fri, 21 Jun 2013 22:47:31 +0000 (22:47 +0000)]
Typo and grammar fixes to comments.

11 years agoThe NFSv4.1 LayoutCommit operation requires a valid offset and length.
rmacklem [Fri, 21 Jun 2013 22:46:16 +0000 (22:46 +0000)]
The NFSv4.1 LayoutCommit operation requires a valid offset and length.
(0, 0 is not sufficient) This patch a loop for each file layout, using
the offset, length of each file layout in a separate LayoutCommit.

11 years agoWhen the NFSv4.1 client is writing to a pNFS Data Server (DS), the
rmacklem [Fri, 21 Jun 2013 22:26:18 +0000 (22:26 +0000)]
When the NFSv4.1 client is writing to a pNFS Data Server (DS), the
file's size attribute does not get updated. As such, it is necessary
to invalidate the attribute cache before clearing NMODIFIED for pNFS.

MFC after: 2 weeks

11 years agoSince some NFSv4 servers enforce the requirement for a reserved port#,
rmacklem [Fri, 21 Jun 2013 19:41:30 +0000 (19:41 +0000)]
Since some NFSv4 servers enforce the requirement for a reserved port#,
enable use of the (no)resvport mount option for NFSv4. I had thought
that the RFC required that non-reserved port #s be allowed, but I couldn't
find it in the RFC.

MFC after: 2 weeks

11 years agoRename run(4) firmware file from runfw to run.fw. Previous name was the
gonzo [Fri, 21 Jun 2013 18:16:54 +0000 (18:16 +0000)]
Rename run(4) firmware file from runfw to run.fw. Previous name was the
same as top-level target name for "device runfw" kernel option and
caused cyclic dependancy that lead to kernel build breakage

Module change is not strictly required and done for name unification sake

PR: conf/175751
Submitted by:     Issei <i10a at herbmint.jp>

11 years agoCall sshd_precmd instead of sshd_configtest when the operator
delphij [Fri, 21 Jun 2013 17:23:19 +0000 (17:23 +0000)]
Call sshd_precmd instead of sshd_configtest when the operator
requests reload or restart, which, in addition of testing the
configuration, will also generate host keys when they are not
present (previous behavior).

Obtained from: FreeNAS
Ok'ed by: bdrewery, des
MFC after: 1 week

11 years agoSwitch ZFS mutex_owner macro to use sx_xholder as its now exported via sx.h
smh [Fri, 21 Jun 2013 15:55:03 +0000 (15:55 +0000)]
Switch ZFS mutex_owner macro to use sx_xholder as its now exported via sx.h

MFC after: 1 week

11 years agoFix intermittent ZFS lock panic when kernel is compiled with debugging caused
smh [Fri, 21 Jun 2013 15:47:10 +0000 (15:47 +0000)]
Fix intermittent ZFS lock panic when kernel is compiled with debugging caused
by access of uninitialized smlock in mmutex_init.

MFC after: 1 week

11 years agoFixed ZFS zpool freeze (debug command) not processing due to invalid ioctl call syntax.
smh [Fri, 21 Jun 2013 15:30:46 +0000 (15:30 +0000)]
Fixed ZFS zpool freeze (debug command) not processing due to invalid ioctl call syntax.

MFC after: 1 week

11 years agoFixed import of destroyed ZFS pools failing due to vdev_geom incorrectly
smh [Fri, 21 Jun 2013 12:02:09 +0000 (12:02 +0000)]
Fixed import of destroyed ZFS pools failing due to vdev_geom incorrectly
preventing config loads from devices associated with destroyed pools.

Reviewed by: avg
MFC after: 1 week

11 years agoFix kmod_*stat_inc() after r249276. The incorrect code actually
glebius [Fri, 21 Jun 2013 06:36:26 +0000 (06:36 +0000)]
Fix kmod_*stat_inc() after r249276. The incorrect code actually
increased the pointer, not the memory it points to.

In collaboration with: kib
Reported & tested by: Ian FREISLICH <ianf clue.co.za>
Sponsored by: Nginx, Inc.

11 years agoNon-virtualised hhook points are supported as of r251732.
lstewart [Fri, 21 Jun 2013 03:37:35 +0000 (03:37 +0000)]
Non-virtualised hhook points are supported as of r251732.

MFC after: 1 week
X-MFC with: 251732

11 years ago- Use length of _PATH_DEV instead of a hardcoded value[*].
hrs [Fri, 21 Jun 2013 01:47:22 +0000 (01:47 +0000)]
- Use length of _PATH_DEV instead of a hardcoded value[*].
- Use MD_NAME for "md".

Pointed out by: trasz [*]
MFC after: 1 week