]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAnother warning.
Rui Paulo [Sun, 7 Jul 2013 21:20:52 +0000 (21:20 +0000)]
Another warning.

10 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

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

10 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.

10 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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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@

10 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

10 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

10 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

10 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.

10 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

10 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

10 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

10 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

10 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

10 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)

10 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

10 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

10 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

10 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

10 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.

10 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

10 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

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

10 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

10 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

10 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)

10 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

10 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

10 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.

10 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.

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

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

10 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)

10 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

10 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).

10 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)

10 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

10 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

10 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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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

10 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.

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

10 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).

10 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].

10 years agoDocument new `-d' and `-D file' debugging options.
Devin Teske [Fri, 5 Jul 2013 18:03:00 +0000 (18:03 +0000)]
Document new `-d' and `-D file' debugging options.

10 years agoChange default FTP server (s/ftp-archive/ftp/).
Devin Teske [Fri, 5 Jul 2013 17:56:15 +0000 (17:56 +0000)]
Change default FTP server (s/ftp-archive/ftp/).

10 years agoAdd example shell script for creating a local INDEX file that can be
Devin Teske [Fri, 5 Jul 2013 17:54:08 +0000 (17:54 +0000)]
Add example shell script for creating a local INDEX file that can be
accessed quickly for browsing a list of available packages.

10 years agoUpdate HISTORY.
Devin Teske [Fri, 5 Jul 2013 17:45:54 +0000 (17:45 +0000)]
Update HISTORY.

10 years agoRest in peace Ron (Ron McDowell Jul.12, 1955 - Aug.26, 2012).
Devin Teske [Fri, 5 Jul 2013 17:44:53 +0000 (17:44 +0000)]
Rest in peace Ron (Ron McDowell Jul.12, 1955 - Aug.26, 2012).
I'll carry-on from here. Thank you so much for your hard work.

10 years agoUpdate e-mails.
Devin Teske [Fri, 5 Jul 2013 17:38:54 +0000 (17:38 +0000)]
Update e-mails.

10 years agoSince r251908, bsdconfig(8) has no direct ties to sade(8) (instead uses
Devin Teske [Fri, 5 Jul 2013 17:35:13 +0000 (17:35 +0000)]
Since r251908, bsdconfig(8) has no direct ties to sade(8) (instead uses
`bsdinstall partedit'). Update references (s/sade/bsdinstall/) and change
the BUGS section to be based on reality.

10 years agoDon't refer to a port manual.
Devin Teske [Fri, 5 Jul 2013 17:31:05 +0000 (17:31 +0000)]
Don't refer to a port manual.

10 years agomdoc: begin sentences on a new line.
Devin Teske [Fri, 5 Jul 2013 17:27:55 +0000 (17:27 +0000)]
mdoc: begin sentences on a new line.

10 years agoUpdate date on the back of r252802.
Devin Teske [Fri, 5 Jul 2013 17:23:00 +0000 (17:23 +0000)]
Update date on the back of r252802.

10 years agoFix a typo.
Devin Teske [Fri, 5 Jul 2013 17:22:10 +0000 (17:22 +0000)]
Fix a typo.

10 years agoWhitespace.
Devin Teske [Fri, 5 Jul 2013 17:21:40 +0000 (17:21 +0000)]
Whitespace.

10 years agoUpdate release info.
Devin Teske [Fri, 5 Jul 2013 16:49:06 +0000 (16:49 +0000)]
Update release info.

10 years agoUpdate copyright/date on the back of r252798.
Devin Teske [Fri, 5 Jul 2013 16:47:30 +0000 (16:47 +0000)]
Update copyright/date on the back of r252798.

10 years agoUpdate sysrc(8) manual to coincide with r252797:
Devin Teske [Fri, 5 Jul 2013 16:45:25 +0000 (16:45 +0000)]
Update sysrc(8) manual to coincide with r252797:

Do not inherit $SYSRC_VERBOSE from operating environment. The concern is
that when a user (such as myself) which has SYSRC_VERBOSE=1 in his/her
~/.bash_profile or such that when they are told to execute a command like:

hostname `sysrc -n hostname`

NOTE: To activate a recently configured hostname.

If $SYSRC_VERBOSE is set, then POLA is violated because the output of sysrc
is indirectly influenced (making for an inconsistent experience).

10 years agoDo not inherit $SYSRC_VERBOSE from operating environment. The concern is
Devin Teske [Fri, 5 Jul 2013 16:21:44 +0000 (16:21 +0000)]
Do not inherit $SYSRC_VERBOSE from operating environment. The concern is
that when a user (such as myself) which has SYSRC_VERBOSE=1 in his/her
~/.bash_profile or such that when they are told to execute a command like:

hostname `sysrc -n hostname`

NOTE: To activate a recently configured hostname.

If $SYSRC_VERBOSE is set, then POLA is violated because the output of sysrc
is indirectly influenced (making for an inconsistent experience).

10 years agoUse f_show_msg() instead of f_dialog_msgbox() where appropriate. The main
Devin Teske [Fri, 5 Jul 2013 16:00:01 +0000 (16:00 +0000)]
Use f_show_msg() instead of f_dialog_msgbox() where appropriate. The main
difference between these two functions:

Usage: f_show_msg() $format_string [ $format_args ... ]
Usage: f_dialog_msgbox() $text [ $hline ]

The former lends itself well to displaying the $msg_* i18n text, prompts,
etc. While the latter is better for text you do not control (error strings
captured as a response from external commands) -- or if you have to control
the hline.

10 years agostdlib.h: Add correct POSIX version for POSIX extensions to C.
Jilles Tjoelker [Fri, 5 Jul 2013 14:16:04 +0000 (14:16 +0000)]
stdlib.h: Add correct POSIX version for POSIX extensions to C.

10 years agoo Make fields names short.
Aleksandr Rybalko [Fri, 5 Jul 2013 13:37:57 +0000 (13:37 +0000)]
o Make fields names short.
o Slim down reg fields comments.

10 years agoFix a bug were only 2048 streams where usable even though more than
Michael Tuexen [Fri, 5 Jul 2013 10:08:49 +0000 (10:08 +0000)]
Fix a bug were only 2048 streams where usable even though more than
2048 streams were negotiated on the wire. While there, remove the
hard coded limit of 2048 streams.

MFC after: 3 days

10 years agoAdd the necessary code to uninstall packages (re-install still pending).
Devin Teske [Fri, 5 Jul 2013 06:52:07 +0000 (06:52 +0000)]
Add the necessary code to uninstall packages (re-install still pending).
Both scripted access (packageDelete) and UI access have been tested
successfully with a variation of different situations including:
+ Uninstall a package which no other installed package depends
+ Uninstall multiple packages which no other installed packages depend
+ Uninstall multiple packages which depend on each other
+ Similar to above but when ordered removal requires tracing dependencies
+ Purposefully do things like uninstall a package that is not installed
+ Try to uninstall a package which other installed packages still depend
+ Try to uninstall multiple packages which other installed packages depend
+ And many more.

10 years agoAdd minor debugging.
Devin Teske [Fri, 5 Jul 2013 06:46:11 +0000 (06:46 +0000)]
Add minor debugging.

10 years agoPrevent f_package_add() from re-performing f_package_detect_installed()
Devin Teske [Fri, 5 Jul 2013 06:24:18 +0000 (06:24 +0000)]
Prevent f_package_add() from re-performing f_package_detect_installed()
even though f_package_config() may have already detected the installed
packages.

10 years agoDon't deselect a package right after installing it (this went unnoticed
Devin Teske [Fri, 5 Jul 2013 06:22:25 +0000 (06:22 +0000)]
Don't deselect a package right after installing it (this went unnoticed
because [currently] we exit after performing requests actions -- if we
ever change this to returning to the package selection screen, this would
have made an impact).

10 years agoMinor debugging changes/additions.
Devin Teske [Fri, 5 Jul 2013 06:20:01 +0000 (06:20 +0000)]
Minor debugging changes/additions.

11 years agoFix a typo in a comment.
Devin Teske [Fri, 5 Jul 2013 03:12:29 +0000 (03:12 +0000)]
Fix a typo in a comment.

11 years ago- Show the reason why link is down if this information is available.
Navdeep Parhar [Fri, 5 Jul 2013 01:53:51 +0000 (01:53 +0000)]
- Show the reason why link is down if this information is available.
- Display the temperature and PHY firmware version of the BT PHY.

MFC after: 1 day

11 years agoAdd the beginnings of the old networking services functionality of
Devin Teske [Fri, 5 Jul 2013 01:49:20 +0000 (01:49 +0000)]
Add the beginnings of the old networking services functionality of
sysinstall(8). The UI for this will come later while this exposes the
functionality to the scripted interface. Tested successfully to first
install the pcnfsd package from the `Latest' repository, and second to
configure mountd_flags="-n" in rc.conf(5).

11 years agoAdd the necessary code to install packages (uninstall and re-install still
Devin Teske [Fri, 5 Jul 2013 01:44:59 +0000 (01:44 +0000)]
Add the necessary code to install packages (uninstall and re-install still
pending). Both scripted access (packageAdd) and UI access have been tested
successfully with a variation of different situations including:
+ Install a package with no dependencies
+ Install a package with dependencies that are already installed
+ Install a package with dependencies where some are already installed
+ Repeat each of the above from FTP and local Directory
+ Purposefully do things like try to install a package that does not exist
+ Try to install a package for which a dependency could not be loaded
+ Try to install a package that is in the INDEX bot not on the media
+ And many more.

11 years agoAdd debugging for each of the initialized default variables.
Devin Teske [Fri, 5 Jul 2013 01:38:42 +0000 (01:38 +0000)]
Add debugging for each of the initialized default variables.

11 years agoAdd mustberoot.subr to the list of includes for scripts, exposing the helper
Devin Teske [Fri, 5 Jul 2013 01:37:35 +0000 (01:37 +0000)]
Add mustberoot.subr to the list of includes for scripts, exposing the helper
function f_mustberoot_init() to make it easy to write scripts that can more
easily transition to the super-user via sudo(8).

11 years agoRemove separate processing of dependent packages from the "Review" screen
Devin Teske [Fri, 5 Jul 2013 01:32:39 +0000 (01:32 +0000)]
Remove separate processing of dependent packages from the "Review" screen
since f_package_add (packageAdd resword) processes dependencies itself.
NOTE: This is in preparation for incoming package management code.

11 years agoGet rid of place-holder in preparation for incoming package mgmt code.
Devin Teske [Fri, 5 Jul 2013 01:30:13 +0000 (01:30 +0000)]
Get rid of place-holder in preparation for incoming package mgmt code.

11 years agoComments.
Devin Teske [Fri, 5 Jul 2013 01:28:30 +0000 (01:28 +0000)]
Comments.

11 years agoAllow global default as general fall-back for package management routines.
Devin Teske [Fri, 5 Jul 2013 01:21:01 +0000 (01:21 +0000)]
Allow global default as general fall-back for package management routines.

11 years agoSet name of device to directory path (displayed during package operations).
Devin Teske [Fri, 5 Jul 2013 01:18:54 +0000 (01:18 +0000)]
Set name of device to directory path (displayed during package operations).

11 years agoDocument the current 11n rate selection shortcoming in the AMRR code.
Adrian Chadd [Fri, 5 Jul 2013 00:03:53 +0000 (00:03 +0000)]
Document the current 11n rate selection shortcoming in the AMRR code.

11 years agoDelete .gitignore files.
Rui Paulo [Thu, 4 Jul 2013 23:05:28 +0000 (23:05 +0000)]
Delete .gitignore files.

11 years agoRestore the dbus directory that was not meant to be deleted in r252729.
Rui Paulo [Thu, 4 Jul 2013 23:01:24 +0000 (23:01 +0000)]
Restore the dbus directory that was not meant to be deleted in r252729.

11 years agoFix misleading or remove irrelevant illumos messages and manpage references
Martin Matuska [Thu, 4 Jul 2013 22:26:38 +0000 (22:26 +0000)]
Fix misleading or remove irrelevant illumos messages and manpage references
in the zfs command.

PR: bin/178996
Submitted by: Peter Schaefer <peter.schaefer@wilhelmheinrichs.de>
MFC after: 3 days

11 years agoRemove unused files / directories.
Rui Paulo [Thu, 4 Jul 2013 21:31:28 +0000 (21:31 +0000)]
Remove unused files / directories.

11 years ago- Make note of interface MTU change if the rx queues exist, and not just
Navdeep Parhar [Thu, 4 Jul 2013 21:19:01 +0000 (21:19 +0000)]
- Make note of interface MTU change if the rx queues exist, and not just
  when the interface is up.
- Add a tunable to control the TOE's rx coalesce feature (enabled by
  default as it always has been).  Consider the interface MTU or the
  coalesce size when deciding which cluster zone to use to fill the
  offload rx queue's free list.  The tunable is:
  dev.{t4nex,t5nex}.<N>.toe.rx_coalesce

MFC after: 1 day

11 years agoImplement basic 802.11n awareness in the PHY and AMRR rate control code.
Adrian Chadd [Thu, 4 Jul 2013 21:16:49 +0000 (21:16 +0000)]
Implement basic 802.11n awareness in the PHY and AMRR rate control code.

* Add 802.11n 2ghz and 5ghz tables, including legacy rates and up to
  MCS23 rates (3x3.)

* Populate the rate code -> rate index lookup table with MCS _and_
  normal rates, but _not_ the basic rate flag.  Since the basic rate flag
  is the same as the MCS flag, we can only use one.

* Introduce some accessor inlines that do PLCP and rate table lookup/access
  and enforce that it doesn't set the basic rate bit.  They're not
  designed for MCS rates, so it will panic.

* Start converting drivers that use the rate table stuff to use the
  accessor inlines and strip the basic flag.

* Teach AMRR about basic 11n - it's still as crap for MCS as it is
  being used by iwn, so it's not a step _backwardS_.

* Convert iwn over to accept 11n MCS rates rather than 'translate' legacy
  to MCS rates.  It doesn't use a lookup table any longer; instead it's a
  function which takes the current node (for HT parameters) and the
  rate code, and returns the hardware PLCP code to use.

Tested:

* ath - it's a no-op, and it works that way
* iwn - both 11n and non-11n

11 years agoMerge hostapd / wpa_supplicant 2.0.
Rui Paulo [Thu, 4 Jul 2013 21:12:58 +0000 (21:12 +0000)]
Merge hostapd / wpa_supplicant 2.0.

Reviewed by: adrian (driver_bsd + usr.sbin/wpa)

11 years agoSet ic_cryptocaps to make sure wpa_supplicant works with WEP.
Rui Paulo [Thu, 4 Jul 2013 20:57:15 +0000 (20:57 +0000)]
Set ic_cryptocaps to make sure wpa_supplicant works with WEP.