]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoshould_yield: protect from td_swvoltick being uninitialized or too stale
Andriy Gapon [Tue, 9 Jul 2013 09:01:44 +0000 (09:01 +0000)]
should_yield: protect from td_swvoltick being uninitialized or too stale

The distance between ticks and td_swvoltick should be calculated as
an unsigned number.  Previously we could end up comparing a negative
number with hogticks in which case should_yield() would give incorrect
answer.

We should probably ensure that td_swvoltick is properly initialized.

Sponsored by: HybridCluster
MFC after: 5 days

11 years agorc.d/zfs: pass -v option to zfs mount
Andriy Gapon [Tue, 9 Jul 2013 08:59:39 +0000 (08:59 +0000)]
rc.d/zfs: pass -v option to zfs mount

this should make boot process more informative (and entertaining)
on systems with lots of zfs filesystems.

MFC after: 7 days

11 years agonamecache sdt: freebsd doesn't support structured characters yet
Andriy Gapon [Tue, 9 Jul 2013 08:58:34 +0000 (08:58 +0000)]
namecache sdt: freebsd doesn't support structured characters yet

:-)

MFC after:  7 days

11 years agoAdd ID for Marvell 88SE9215 AHCI SATA controller.
Alexander Motin [Tue, 9 Jul 2013 08:49:17 +0000 (08:49 +0000)]
Add ID for Marvell 88SE9215 AHCI SATA controller.

MFC after: 3 days

11 years agozfs: try to properly handle i/o errors in mappedread_sf
Andriy Gapon [Tue, 9 Jul 2013 08:47:11 +0000 (08:47 +0000)]
zfs: try to properly handle i/o errors in mappedread_sf

Unconditionally freeing a page is not good, especially if it is the page
that was wired by the caller.  The checks are picked up from
kern_sendfile.

MFC after: 3 weeks

11 years agoamd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer
Andriy Gapon [Tue, 9 Jul 2013 08:42:02 +0000 (08:42 +0000)]
amd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer

... in kernel builds.  This is to make behavior of clang consistent with
behavior of gcc.

MFC after: 2 weeks

11 years agodefault loader.conf: there is no need to load zpool.cache now
Andriy Gapon [Tue, 9 Jul 2013 08:40:05 +0000 (08:40 +0000)]
default loader.conf: there is no need to load zpool.cache now

kernel does not need it for importing a root pool.

MFC after: 4 weeks

11 years agozfs: load zpool.cache after a root fs is mounted
Andriy Gapon [Tue, 9 Jul 2013 08:37:42 +0000 (08:37 +0000)]
zfs: load zpool.cache after a root fs is mounted

MFC after: 3 weeks

11 years agoAdd one more ID of Marvell SATA controller.
Alexander Motin [Tue, 9 Jul 2013 08:32:17 +0000 (08:32 +0000)]
Add one more ID of Marvell SATA controller.

Submitted by: marck
MFC after: 3 days

11 years agozfsboottest.sh: remove checks for things that are not strictly required
Andriy Gapon [Tue, 9 Jul 2013 08:30:31 +0000 (08:30 +0000)]
zfsboottest.sh: remove checks for things that are not strictly required

MFC after: 10 days

11 years agozfsboottest: sync with changes in zfs boot code
Andriy Gapon [Tue, 9 Jul 2013 08:29:14 +0000 (08:29 +0000)]
zfsboottest: sync with changes in zfs boot code

- spa status can not be called before spa init
- libzfs.h inclusion is now required
- fix alternative code for explicit root dataset lookup

MFC after: 10 days

11 years agoUpdate references.
Hiroki Sato [Tue, 9 Jul 2013 08:23:43 +0000 (08:23 +0000)]
Update references.

11 years agoRemove $swapfile and $geli_swap_flags.
Hiroki Sato [Tue, 9 Jul 2013 07:57:10 +0000 (07:57 +0000)]
Remove $swapfile and $geli_swap_flags.

11 years agoDocument IPv6 support.
Hiroki Sato [Tue, 9 Jul 2013 07:55:47 +0000 (07:55 +0000)]
Document IPv6 support.

11 years ago- Add missing "static" keywords.
Hiroki Sato [Tue, 9 Jul 2013 07:08:36 +0000 (07:08 +0000)]
- Add missing "static" keywords.
- Add a check for ifindex to if_indextoifinfo().  It returns NULL when
  if_indextoname() fails.

MFC after: 3 days

11 years agoAdd a missing white space.
Hiroki Sato [Tue, 9 Jul 2013 07:03:54 +0000 (07:03 +0000)]
Add a missing white space.

11 years agoUse meaningful names when creating mmc/sd threads.
Rui Paulo [Tue, 9 Jul 2013 03:00:06 +0000 (03:00 +0000)]
Use meaningful names when creating mmc/sd threads.

This can be useful when we want to be able to identify which mmcsd is stuck.

11 years agoImprove a comment.
Rui Paulo [Tue, 9 Jul 2013 02:50:05 +0000 (02:50 +0000)]
Improve a comment.

11 years agoRemove extraneous format string converison specifier
Ed Maste [Tue, 9 Jul 2013 01:55:34 +0000 (01:55 +0000)]
Remove extraneous format string converison specifier

Submitted by: wxs@

11 years agoDocument the "gssname" and "allgssname" mount options added by the
Rick Macklem [Tue, 9 Jul 2013 01:31:36 +0000 (01:31 +0000)]
Document the "gssname" and "allgssname" mount options added by the
host-based initiator credential patches.
This is a content change.

11 years agoEnhancement when writing an entire block of a file.
Pedro F. Giffuni [Tue, 9 Jul 2013 01:31:04 +0000 (01:31 +0000)]
Enhancement when writing an entire block of a file.

Merge from UFS r231313:

This change first attempts the uiomove() to the newly allocated
(and dirty) buffer and only zeros it if the uiomove() fails. The
effect is to eliminate the gratuitous zeroing of the buffer in
the usual case where the uiomove() successfully fills it.

MFC after: 3 days

11 years agoAdd support for host-based (Kerberos 5 service principal) initiator
Rick Macklem [Tue, 9 Jul 2013 01:05:28 +0000 (01:05 +0000)]
Add support for host-based (Kerberos 5 service principal) initiator
credentials to the kernel rpc. Modify the NFSv4 client to add
support for the gssname and allgssname mount options to use this
capability. Requires the gssd daemon to be running with the "-h" option.

Reviewed by: jhb

11 years agoAllow mlx4 devices to switch from Ethernet to Infiniband (and vice versa):
John Baldwin [Mon, 8 Jul 2013 21:25:12 +0000 (21:25 +0000)]
Allow mlx4 devices to switch from Ethernet to Infiniband (and vice versa):
- Fix sysctl wrapper for sysfs attributes to properly handle new string
  values similar to sysctl_handle_string() (only copyin the user's
  supplied length and nul-terminate the string).
- Don't check for a trailing newline when evaluating the desired operating
  mode of a mlx4 device.

PR: kern/179999
Submitted by: Shahar Klein <shahark@mellanox.com>
MFC after: 1 week

11 years agoFix build with INVARIANT_SUPPORT enabled but not INVARIANTS.
John Baldwin [Mon, 8 Jul 2013 21:17:20 +0000 (21:17 +0000)]
Fix build with INVARIANT_SUPPORT enabled but not INVARIANTS.

Reported by: "Matthew D. Fuller" <fullermd@over-yonder.net>

11 years agoCorrect the printf format specifier for total_events.
Alan Somers [Mon, 8 Jul 2013 21:10:30 +0000 (21:10 +0000)]
Correct the printf format specifier for total_events.
Add __printflike argument checking for devdlog().

Reported by: pjd
Approved by: gibbs (co-mentor)

11 years agoAvoid a panic and return EINVAL instead.
Pedro F. Giffuni [Mon, 8 Jul 2013 20:21:36 +0000 (20:21 +0000)]
Avoid a panic and return EINVAL instead.

Merge from UFS r232692:
syscall() fuzzing can trigger this panic.

MFC after: 3 days

11 years agoPull in r185616 from llvm trunk:
Dimitry Andric [Mon, 8 Jul 2013 17:57:11 +0000 (17:57 +0000)]
Pull in r185616 from llvm trunk:

  FastISel can only append to basic blocks.

  Compute the insertion point from the end of the basic block instead of
  skipping labels from the front.

  This caused failures in landing pads when live-in copies where inserted
  before instruction selection.

I missed this change in r252720; without it, certain compilation flags
can cause exception labels to not be generated, but still referenced,
leading to link errors.

Reported by: zeising
MFC after: 3 days

11 years agoMove to MSG_DEBUG to print it via syslog only when requested.
Hiren Panchasara [Mon, 8 Jul 2013 16:03:18 +0000 (16:03 +0000)]
Move to MSG_DEBUG to print it via syslog only when requested.

Reviewed by: rpaulo, adrian
Approved by: sbruno (mentor)

11 years agoAdd quirk to configure headphones redirection on ASUS UX31A laptop.
Alexander Motin [Mon, 8 Jul 2013 15:28:09 +0000 (15:28 +0000)]
Add quirk to configure headphones redirection on ASUS UX31A laptop.

MFC after: 3 days

11 years agoImport the initial SoC register definitions for the AR934x MIPS74k SoC.
Adrian Chadd [Mon, 8 Jul 2013 06:12:38 +0000 (06:12 +0000)]
Import the initial SoC register definitions for the AR934x MIPS74k SoC.

Obtained from: Linux/OpenWRT

11 years agoAdd AR9341, AR9342, AR9344 SoC types.
Adrian Chadd [Mon, 8 Jul 2013 06:10:29 +0000 (06:10 +0000)]
Add AR9341, AR9342, AR9344 SoC types.

11 years agomdoc: remove superfluous paragraph macros.
Joel Dahl [Mon, 8 Jul 2013 05:58:09 +0000 (05:58 +0000)]
mdoc: remove superfluous paragraph macros.

11 years agoAdd IDs for TPS65217C and TPS65217D
Oleksandr Tymoshenko [Mon, 8 Jul 2013 05:06:32 +0000 (05:06 +0000)]
Add IDs for TPS65217C and TPS65217D

11 years ago- MMC1 (internal eMMC) pins should be configured as input-pullup, except
Oleksandr Tymoshenko [Mon, 8 Jul 2013 04:30:12 +0000 (04:30 +0000)]
- MMC1 (internal eMMC) pins should be configured as input-pullup, except
    for reset pin

11 years ago- AM335x requires updated soft-reset logic too
Oleksandr Tymoshenko [Mon, 8 Jul 2013 04:27:03 +0000 (04:27 +0000)]
- AM335x requires updated soft-reset logic too

11 years agoAlso define SDT_PROBE_DEFINE0 for the !KDTRACE_HOOKS case.
Mark Johnston [Mon, 8 Jul 2013 02:03:18 +0000 (02:03 +0000)]
Also define SDT_PROBE_DEFINE0 for the !KDTRACE_HOOKS case.

11 years agoFix some Kerberos related terminology.
Rick Macklem [Mon, 8 Jul 2013 01:47:50 +0000 (01:47 +0000)]
Fix some Kerberos related terminology.
This is a content change.

Requested by: bjk

11 years agoOops, initialize the krb5 ret values correctly (to anything non-zero).
Rick Macklem [Mon, 8 Jul 2013 01:29:09 +0000 (01:29 +0000)]
Oops, initialize the krb5 ret values correctly (to anything non-zero).

11 years agoMake sure the krb5 status variables are correctly initialized.
Rick Macklem [Mon, 8 Jul 2013 01:08:57 +0000 (01:08 +0000)]
Make sure the krb5 status variables are correctly initialized.

11 years agoDocument the new "-h" option for the gssd daemon.
Rick Macklem [Mon, 8 Jul 2013 00:57:12 +0000 (00:57 +0000)]
Document the new "-h" option for the gssd daemon.
This is a content change.

Reviewed by: jhb

11 years agoAdd a new "-h" option to the gssd daemon that enables support for
Rick Macklem [Mon, 8 Jul 2013 00:50:57 +0000 (00:50 +0000)]
Add a new "-h" option to the gssd daemon that enables support for
host based (kerberos service principal) initiator credentials in
the default keytab file. This option won't actually be useful until
the corresponding kernel changes are committed.

Reviewed by: jhb

11 years agoMFV of tzdata2013d, 253008
Edwin Groothuis [Sun, 7 Jul 2013 22:23:59 +0000 (22:23 +0000)]
MFV of tzdata2013d, 253008

- Morocco:
  announced that the year's Ramadan daylight-savings transitions
  would be 2013-07-07 and 2013-08-10.

- Israel:
  As of 2013, DST starts at 02:00 on the Friday before the last
  Sunday in March.  DST ends at 02:00 on the first Sunday after
  October 1, unless it occurs on the second day of the Jewish Rosh
  Hashana holiday, in which case DST ends a day later (i.e. at 02:00
  the first Monday after October 2).  [Rosh Hashana holidays are
  factored in until 2100.]

11 years agoVendor import of tzdata2013d:
Edwin Groothuis [Sun, 7 Jul 2013 22:18:08 +0000 (22:18 +0000)]
Vendor import of tzdata2013d:

- Morocco:
  announced that the year's Ramadan daylight-savings transitions
  would be 2013-07-07 and 2013-08-10.

- Israel:
  As of 2013, DST starts at 02:00 on the Friday before the last
  Sunday in March.  DST ends at 02:00 on the first Sunday after
  October 1, unless it occurs on the second day of the Jewish Rosh
  Hashana holiday, in which case DST ends a day later (i.e. at 02:00
  the first Monday after October 2).  [Rosh Hashana holidays are
  factored in until 2100.]

Obtained from: ftp://ftp.iana.org/tz/releases/

11 years agoMake kassert_printf use __printflike.
Alfred Perlstein [Sun, 7 Jul 2013 21:39:37 +0000 (21:39 +0000)]
Make kassert_printf use __printflike.

Fix associated errors/warnings while I'm here.

Requested by: avg

11 years agoConvert bcm2835_mbox to the new mbox interface.
Rui Paulo [Sun, 7 Jul 2013 21:23:58 +0000 (21:23 +0000)]
Convert bcm2835_mbox to the new mbox interface.

Reviewed by: gonzo

11 years agoAnother warning.
Rui Paulo [Sun, 7 Jul 2013 21:20:52 +0000 (21:20 +0000)]
Another warning.

11 years agoSandbox tcpdump(8) using Capsicum's capability mode and capabilities.
Pawel Jakub Dawidek [Sun, 7 Jul 2013 21:19:53 +0000 (21:19 +0000)]
Sandbox tcpdump(8) using Capsicum's capability mode and capabilities.
For now, sandboxing is done only if -n option was specified and neither -z nor
-V options were given. Because it is very common to run tcpdump(8) with the -n
option for speed, I decided to commit sandboxing now. To also support
sandboxing when -n option wasn't specified, we need Casper daemon and its
services that are not available in FreeBSD yet.

- Limit file descriptors of a file specified by -r option or files specified
  via -V option to CAP_READ only.

- If neither -r nor -V options were specified, we operate on /dev/bpf.
  Limit its descriptor to CAP_READ and CAP_IOCTL plus limit allowed ioctls to
  BIOCGSTATS only.

- Limit file descriptor of a file specified by -w option to CAP_SEEK and
  CAP_WRITE.

- If either -C or -G options were specified, we open directory containing
  destination file and we limit directory descriptor to CAP_CREATE, CAP_FCNTL,
  CAP_FTRUNCATE, CAP_LOOKUP, CAP_SEEK and CAP_WRITE. Newly opened/created
  files are limited to CAP_SEEK and CAP_WRITE only.

- Enter capability mode if -n option was specified and neither -z nor -V
  options were specified.

Approved by: delphij, wxs
Sponsored by: The FreeBSD Foundation

11 years agoCorrect typo specifying jflags.
Alfred Perlstein [Sun, 7 Jul 2013 20:44:04 +0000 (20:44 +0000)]
Correct typo specifying jflags.

11 years agoDocument tip on how to build all kernels quickly.
Alfred Perlstein [Sun, 7 Jul 2013 20:39:11 +0000 (20:39 +0000)]
Document tip on how to build all kernels quickly.

11 years agoAdd a mailbox interface.
Rui Paulo [Sun, 7 Jul 2013 19:47:22 +0000 (19:47 +0000)]
Add a mailbox interface.

Mailboxes are an IPC mechanism found on several ARM architectures, namely
OMAP4, BCM2385, Sitara, etc.

Reviewed by: gonzo

11 years agoarmadaxp_idcache_wbinv_all() is in this file.
Rui Paulo [Sun, 7 Jul 2013 19:22:31 +0000 (19:22 +0000)]
armadaxp_idcache_wbinv_all() is in this file.

11 years agoFix all the compiler warnings in elf_trampoline.c.
Rui Paulo [Sun, 7 Jul 2013 19:19:18 +0000 (19:19 +0000)]
Fix all the compiler warnings in elf_trampoline.c.

11 years agoFix typos in the BSD License.
Devin Teske [Sun, 7 Jul 2013 18:51:44 +0000 (18:51 +0000)]
Fix typos in the BSD License.

11 years agoBe consistent with other usr.sbin programs w/respect to the copyright
Devin Teske [Sun, 7 Jul 2013 18:34:36 +0000 (18:34 +0000)]
Be consistent with other usr.sbin programs w/respect to the copyright
wording ("All rights reserved."); I had the casing wrong on many instances.

11 years agoBe consistent with other usr.sbin programs w/respect to the copyright
Devin Teske [Sun, 7 Jul 2013 18:21:30 +0000 (18:21 +0000)]
Be consistent with other usr.sbin programs w/respect to the copyright
wording ("All rights reserved."); I had the casing wrong on many instances.

11 years agoRemove all the NOPs after SYNC. They aren't needed.
Warner Losh [Sun, 7 Jul 2013 16:12:22 +0000 (16:12 +0000)]
Remove all the NOPs after SYNC. They aren't needed.

They originated in the original Octeon port. They weren't present, as
far as I can tell, on the projects/mips branch until after this
point. They were in the original Octeon port in code picked up from
the vendor, who I've been able to find out trolling old email put them
there to get around an SMP problem that most likely was fixed in other
ways.

NetBSD and Linux don't have these, except for some specific uses of
SYNC on the alchemy parts (which we don't support, but even if we did
it is only a specific case and would be specifically coded
anyway). This is true of the current Linux code, as well as one old
version I polled.

I looked back at the old R12000, R8000, R6000, R4000, R4400 errata
that I have, and could find no mention of SYNC needing NOPs for
silicon bugs (although plenty of other cases where NOPs and other
contortions were needed).

An Google search turned up no old mailing list discussions on this on
Linux, NetBSD or FreeBSD (except the disussion that kicked off these
studies).

I've test booted this on my Octeon Plus eval board and survived a
buildworld. Adrian Chadd reports that this patch has no ill effects on
the Ahteros platforms he tested it on.

I conclude it is safe to just remove the NOPs. But added
__MIPS_PLATFORM_SYNC_NOPS as a failsafe in case we find some platform
where these are, in fact, required.

Reviewed by: adrian@

11 years agoImplement SEEK_HOLE/SEEK_DATA for ext2fs.
Pedro F. Giffuni [Sun, 7 Jul 2013 15:51:28 +0000 (15:51 +0000)]
Implement SEEK_HOLE/SEEK_DATA for ext2fs.

Merged from r236044 on UFS.

MFC after: 3 days

11 years ago- Add USFS driver as an example of device mode for AM335x-based devices
Oleksandr Tymoshenko [Sun, 7 Jul 2013 04:24:38 +0000 (04:24 +0000)]
- Add USFS driver as an example of device mode for AM335x-based devices

11 years ago- Add musb node to shared dtsi and proper pin configuratin for every
Oleksandr Tymoshenko [Sun, 7 Jul 2013 04:23:29 +0000 (04:23 +0000)]
- Add musb node to shared dtsi and proper pin configuratin for every
    AM553x-based device

11 years ago- Add USBSS driver for AM335x SoC. Driver is a wrapper around Mentors Graphic
Oleksandr Tymoshenko [Sun, 7 Jul 2013 04:22:08 +0000 (04:22 +0000)]
- Add USBSS driver for AM335x SoC. Driver is a wrapper around Mentors Graphic
   USB OTG core.

11 years ago- Add initial host mode support for Mentor Graphics USB OTG controller
Oleksandr Tymoshenko [Sun, 7 Jul 2013 04:18:35 +0000 (04:18 +0000)]
- Add initial host mode support for Mentor Graphics USB OTG controller
- Sync musb_otg_atmelarm with new core logic API

11 years agoFix some typos.
Pedro F. Giffuni [Sun, 7 Jul 2013 01:32:52 +0000 (01:32 +0000)]
Fix some typos.

MFC after: 1 week

11 years agoAdd files related to ext2 HTree implementation
Pedro F. Giffuni [Sun, 7 Jul 2013 01:12:29 +0000 (01:12 +0000)]
Add files related to ext2 HTree implementation

These should've been added along with r252890

Reported by: gonzo
PointyHat: pfg
MFC after: 1 week

11 years agoAdd a man page for the SDT_* macros, which can be used to define new static
Mark Johnston [Sat, 6 Jul 2013 20:31:22 +0000 (20:31 +0000)]
Add a man page for the SDT_* macros, which can be used to define new static
DTrace probes and providers in kernel code.

MFC after: 1 week

11 years agoAdd SDT_PROBE_DEFINE0 for consistency with SDT_PROBE0.
Mark Johnston [Sat, 6 Jul 2013 20:21:35 +0000 (20:21 +0000)]
Add SDT_PROBE_DEFINE0 for consistency with SDT_PROBE0.

MFC after: 1 week

11 years ago- Move videodev headers from compat/linux to contrib/v4l (cp from vendor and
Alexander Leidinger [Sat, 6 Jul 2013 19:59:06 +0000 (19:59 +0000)]
- Move videodev headers from compat/linux to contrib/v4l (cp from vendor and
  apply diff to compat/linux versions).
- The cp implies an update of videodev2.h to the linux kernel 2.6.34.14 one.

The update makes video in skype v4 work on FreeBSD.

Tested by: Artyom Mirgorodskiy <artyom.mirgorodsky@gmail.com>
(update of header only)

11 years agoInitial implementation of the HTree directory index.
Pedro F. Giffuni [Sat, 6 Jul 2013 18:28:06 +0000 (18:28 +0000)]
Initial implementation of the HTree directory index.

This is a port of NetBSD's GSoC 2012 Ext3 HTree directory indexing
by Vyacheslav Matyushin.  It was cleaned up and enhanced for FreeBSD
by Zheng Liu (lz@).

This is an excellent example of work shared among different projects:
Vyacheslav was able to look at an early prototype from Zheng Liu who
was also able to check the code from Haiku (with permission).

As in linux, the feature is not available by default and must be
enabled explicitly with tune2fs. We still do not support the
workarounds required in readdir for NFS.

Submitted by: Zheng Liu
Tested by: Mike Ma
Sponsored by: Google Inc.
MFC after: 1 week

11 years agoUpdate driver with recent vendor improvements, most notably support
Xin LI [Sat, 6 Jul 2013 08:30:45 +0000 (08:30 +0000)]
Update driver with recent vendor improvements, most notably support
of Skyhawk adapters.

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: "Duvvuru,Venkat Kumar" <VenkatKumar.Duvvuru Emulex.Com>
MFC after: 1 day

11 years agoImport HighPoint DC Series Data Center HBA (DC7280 and R750) driver.
Xin LI [Sat, 6 Jul 2013 07:49:41 +0000 (07:49 +0000)]
Import HighPoint DC Series Data Center HBA (DC7280 and R750) driver.
This driver works for FreeBSD/i386 and FreeBSD/amd64 platforms.

Many thanks to HighPoint for providing this driver.

MFC after: 1 day

11 years agoRemove unneeded page lock around vm_page_insert().
Konstantin Belousov [Sat, 6 Jul 2013 04:46:42 +0000 (04:46 +0000)]
Remove unneeded page lock around vm_page_insert().

Submitted by: alc

11 years agoDon't clear the SYSCONFIG register on boot.
Rui Paulo [Sat, 6 Jul 2013 04:18:34 +0000 (04:18 +0000)]
Don't clear the SYSCONFIG register on boot.

This follows section 18.4.2.2 SD Soft Reset Flow in the TI AM335x Technical
Reference Manual and seems to fix the "ti_mmchs0: Error: current cmd NULL,
already done?" messages.

11 years agoTake the training-wheels off, after nearly 30 months of development. MFC to
Devin Teske [Sat, 6 Jul 2013 04:13:47 +0000 (04:13 +0000)]
Take the training-wheels off, after nearly 30 months of development. MFC to
stable/9 planned after MFC 3-day period. The MFC to stable/9 is desired for
the next release to get some much-needed time:
+ Living side-by-side with sysinstall for compare/contrast/transition
+ Living side-by-side with bsdinstall for integration/transition
+ Additional feedback/testing before eventual 10.0-R to make it even better

MFC after: 3 days

11 years agoRefresh vendor driver version which fixes command queue
Xin LI [Sat, 6 Jul 2013 01:46:58 +0000 (01:46 +0000)]
Refresh vendor driver version which fixes command queue
full issue with ARC-1214 and ARC-1224.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 <ching2048 areca com tw>
MFC after: 1 day

11 years agoSprinkle some .MAKE magic
Simon J. Gerraty [Sat, 6 Jul 2013 00:13:08 +0000 (00:13 +0000)]
Sprinkle some .MAKE magic

11 years agoMake the comments a little more clear about PRIV_KMEM_*, explicitly
Jamie Gritton [Sat, 6 Jul 2013 00:10:52 +0000 (00:10 +0000)]
Make the comments a little more clear about PRIV_KMEM_*, explicitly
referring to /dev/[k]mem and noting it's about opening the files rather
than actually reading and writing.

Reviewed by: jmallett

11 years agoFix typo: minmum -> minimum.
Colin Percival [Fri, 5 Jul 2013 23:40:08 +0000 (23:40 +0000)]
Fix typo: minmum -> minimum.

Submitted by: @z3ndrag0n

11 years agoDon't prevent the user from hanging their system by changing network
Devin Teske [Fri, 5 Jul 2013 23:16:56 +0000 (23:16 +0000)]
Don't prevent the user from hanging their system by changing network
settings while NFS mounts are active; but DO warn them and make the
default action to do nothing. (thanks julian)

11 years agoUpdate hpt27xx(4) driver to address a problem reported by FreeNAS
Xin LI [Fri, 5 Jul 2013 23:13:54 +0000 (23:13 +0000)]
Update hpt27xx(4) driver to address a problem reported by FreeNAS
user, where when more than one hpt27xx adapters are being used,
the "unit number" stays at 0.

Many thanks to HighPoint for providing this driver update.

MFC after: 1 day

11 years agoAdd PCI IDs for HighPoint RocketRAID 4521, 3620, 3622 and 3640
Xin LI [Fri, 5 Jul 2013 23:10:02 +0000 (23:10 +0000)]
Add PCI IDs for HighPoint RocketRAID 4521, 3620, 3622 and 3640
controllers.  Update the hptiop(4) manual page to reflect this
as well as mentioning that some cards are already end-of-life.

Many thanks to Highpoint for providing this driver update.

MFC after: 1 day

11 years agoHide references to mod_lock. In FreeBSD it is always acquired with the
Mark Johnston [Fri, 5 Jul 2013 22:42:10 +0000 (22:42 +0000)]
Hide references to mod_lock. In FreeBSD it is always acquired with the
provider lock held, so its use has no effect.

11 years agoCheck for INDEX file first before anything else when processing modules.
Devin Teske [Fri, 5 Jul 2013 22:25:40 +0000 (22:25 +0000)]
Check for INDEX file first before anything else when processing modules.

11 years agoCheck menuitem before calculating tag.
Devin Teske [Fri, 5 Jul 2013 22:24:43 +0000 (22:24 +0000)]
Check menuitem before calculating tag.

11 years agoAdd a missing unlock.
Adrian Chadd [Fri, 5 Jul 2013 22:10:50 +0000 (22:10 +0000)]
Add a missing unlock.

11 years ago- Add SRC_FORCE_CHECKOUT configuration option to force svn to checkout
Glen Barber [Fri, 5 Jul 2013 22:04:49 +0000 (22:04 +0000)]
- Add SRC_FORCE_CHECKOUT configuration option to force svn to checkout
  the src/ tree into a directory that contains files/directories, such
  as a case where a custom kernel configuration file is specified.

- Allow specification of multiple KERNCONFs to pass to 'make release'.

- Move evaluation of NODOCS/NOPORTS earlier, and set based on how the
  release process expects these options to be evaluated.

- Wrap KERNCONF specification in double quotes, and use 'eval' so multiple
  kernel configurations do not cause the build to fail in strange ways.

- Set WITHOUT_X11 for the port build flags for the documentation toolchain
  build.  Also run 'clean distclean' targets during port build.

PR: 180192
Submitted by: Anes Mukhametov
MFC after: 3 days
Approved by: kib (mentor, implicit)

11 years agoBump up _PRIV_HIGHEST to account for PRIV_KMEM_READ/WRITE.
Jamie Gritton [Fri, 5 Jul 2013 21:41:05 +0000 (21:41 +0000)]
Bump up _PRIV_HIGHEST to account for PRIV_KMEM_READ/WRITE.

Submitted by: mdf

11 years agoAdd the necessary code to reinstall packages. Both scripted access
Devin Teske [Fri, 5 Jul 2013 21:40:31 +0000 (21:40 +0000)]
Add the necessary code to reinstall packages. Both scripted access
(packageReinstall) and UI access have been tested successfully with a
variation of different situations including:
+ Reinstall a package for which no other packages depend
+ Purposefully do thinks like reinstall a package that is not installed
+ Try to reinstall a package which other installed packages still depend

NOTE: There is no "force" used; if a package is required by other packages,
it will not be uninstalled (and therefore no reinstall is done).

11 years agoRemove superfluous continue at end of loop. (pointy-hat)
Devin Teske [Fri, 5 Jul 2013 21:32:54 +0000 (21:32 +0000)]
Remove superfluous continue at end of loop. (pointy-hat)

11 years agoAdd new privileges, PRIV_KMEM_READ and PRIV_KMEM_WRITE, used in opening
Jamie Gritton [Fri, 5 Jul 2013 21:31:16 +0000 (21:31 +0000)]
Add new privileges, PRIV_KMEM_READ and PRIV_KMEM_WRITE, used in opening
/dev/kmem and /dev/mem (in addition to traditional file permission checks).
PRIV_KMEM_READ is different from other PRIV_* checks in that it's allowed
by default.

Reviewed by: kib, mckusick

11 years agoMFV r252839:
Martin Matuska [Fri, 5 Jul 2013 21:29:59 +0000 (21:29 +0000)]
MFV r252839:

Quoting illumos issue #3836:
  Currently zio_free() always puts the zio on a list for subsequent
  processing by zio_free_sync().  This is only necessary for frees that
  might need to issue reads (gang and dedup blocks).

  By processing the majority of the frees as we encounter them, we reduce
  the amount of time that the spa_sync() thread spends burning CPU and
  not doing any i/o, thus increasing the overall write throughput of the
  system.

Illumos ZFS issues:
  3836 zio_free() can be processed immediately in the common case

MFC after: 1 week

11 years agoUpdate vendor-sys/illumos/dist to illumos-gate 14070:d4c9f8eba8fa
Martin Matuska [Fri, 5 Jul 2013 20:37:09 +0000 (20:37 +0000)]
Update vendor-sys/illumos/dist to illumos-gate 14070:d4c9f8eba8fa

Illumos ZFS issues:
  3836 zio_free() can be processed immediately in the common case

11 years agomktemp(3): Add standards section. Prefer standard header.
Jilles Tjoelker [Fri, 5 Jul 2013 20:24:50 +0000 (20:24 +0000)]
mktemp(3): Add standards section. Prefer standard header.

mktemp(), mkstemp() and mkdtemp() are available in standard <stdlib.h> and
also in <unistd.h>. Encourage use of the former by listing it in the
synopsis.

11 years agoFix the build with gcc.
Andrew Turner [Fri, 5 Jul 2013 20:21:59 +0000 (20:21 +0000)]
Fix the build with gcc.

Gcc outputs pre-UAL asm and expects the ldcl instruction with a condition
in the form ldc<c>l, where the code produces the instruction in the UAL
form ldcl<c>. Work around this by checking if we are using clang or gcc and
adjusting the instruction.

While here correct the cmp instruction's value to include the # before the
immediate value.

11 years agoAdd support for processing add-on modules from /usr/local/libexec/bsdconfig
Devin Teske [Fri, 5 Jul 2013 20:13:00 +0000 (20:13 +0000)]
Add support for processing add-on modules from /usr/local/libexec/bsdconfig
(this is designed to allow new modules to be installed via ports/packages).

To prevent conflict with itself (sysutils/bsdconfig) as a port (which
installs its base modules to the above directory, it was long-ago decided
that so-called `base' modules would look different than now-defined `add-on'
modules. The structure of the contents for each is the same, but the naming
convention for the module directory must be different.

Base modules are named `[0-9][0-9][0-9].*' to allow SysV-style organization
while add-on modules must avoid this naming style and are simply listed in
alphabetical order by their module directory.

For example, a hypothetical port named `bsdconfig-jails' could install
/usr/local/libexec/bsdconfig/jails and provide `bsdconfig jails' as well as
a new menu entry in the main-menu.

Add-on modules are listed in the main-menu (when bsdconfig is executed with-
out arguments) below a separator after the last base-module.

In `bsdconfig -h' output, add-on modules are listed right alongside base
modules (sorted alphabetically in columnar fashion; left-to-right).

If a base module declares a keyword used by an add-on module, the base
module will always win when given `bsdconfig keyword' syntax.

Add-on modules should avoid declaring any keyword found in `script.subr' as
a reserved-word (`Resword') since bsdconfig also supports `bsdconfig resword'
as a fall-back if no keyword is found to be declared by any module.

11 years agoOops, r252833 was not supposed to touch this file. Back-out and recommit
Devin Teske [Fri, 5 Jul 2013 20:01:07 +0000 (20:01 +0000)]
Oops, r252833 was not supposed to touch this file. Back-out and recommit
this file with the rest of the files it was supposed to go with.

11 years agoDon't calculate the tag until we know that we're going to make a new menu
Devin Teske [Fri, 5 Jul 2013 19:57:40 +0000 (19:57 +0000)]
Don't calculate the tag until we know that we're going to make a new menu
item entry. Also join simple NULL assignments into a single line.

11 years agoRemove ancient code for FreeBSD 2.x compatibility.
Robert Millan [Fri, 5 Jul 2013 19:26:01 +0000 (19:26 +0000)]
Remove ancient code for FreeBSD 2.x compatibility.

Reviewed by: brian, freebsd-net

11 years agoOops, r252810 forgot to hook the new example file (browse_packages.sh) into
Devin Teske [Fri, 5 Jul 2013 18:50:17 +0000 (18:50 +0000)]
Oops, r252810 forgot to hook the new example file (browse_packages.sh) into
the Makefile.

11 years agoAdhere to 80-column width.
Devin Teske [Fri, 5 Jul 2013 18:31:26 +0000 (18:31 +0000)]
Adhere to 80-column width.

11 years agoDocument remaining undocumented modules (and remove my silly place-holder
Devin Teske [Fri, 5 Jul 2013 18:30:43 +0000 (18:30 +0000)]
Document remaining undocumented modules (and remove my silly place-holder
thing at the top, which I was using as a way to make sure I didn't forget
to document any modules).

11 years agoMake a correction to the description of invocation with-versus-without
Devin Teske [Fri, 5 Jul 2013 18:29:09 +0000 (18:29 +0000)]
Make a correction to the description of invocation with-versus-without
arguments, making things a bit more clear [hopefully].