]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoAdd the watchdogs patting during the (shutdown time) disk syncing and
attilio [Thu, 28 Apr 2011 16:02:05 +0000 (16:02 +0000)]
Add the watchdogs patting during the (shutdown time) disk syncing and
disk dumping.
With the option SW_WATCHDOG on, these operations are doomed to let
watchdog fire, fi they take too long.

I implemented the stubs this way because I really want wdog_kern_*
KPI to not be dependant by SW_WATCHDOG being on (and really, the option
only enables watchdog activation in hardclock) and also avoid to
call them when not necessary (avoiding not-volountary watchdog
activations).

Sponsored by: Sandvine Incorporated
Discussed with: emaste, des
MFC after: 2 weeks

13 years agoRemove unused GPL files from tcsh.
obrien [Thu, 28 Apr 2011 14:43:38 +0000 (14:43 +0000)]
Remove unused GPL files from tcsh.

13 years agoExar driver for X3100 10GbE Server/Storage adapters
gnn [Thu, 28 Apr 2011 14:33:15 +0000 (14:33 +0000)]
Exar driver for X3100 10GbE Server/Storage adapters

Features: Jumbo frames (up to 9600), LRO (Large Receive Offload),
          TSO (TCP segmentation offload), RTH (Receive Traffic Hash).

Submitted by: Sriram Rapuru at Exar
MFC after: 2 weeks

13 years agoSync with several changes in UFS/FFS:
jhb [Thu, 28 Apr 2011 14:27:17 +0000 (14:27 +0000)]
Sync with several changes in UFS/FFS:
- 77115: Implement support for O_DIRECT.
- 98425: Fix a performance issue introduced in 70131 that was causing
  reads before writes even when writing full blocks.
- 98658: Rename the BALLOC flags from B_* to BA_* to avoid confusion with
  the struct buf B_ flags.
- 100344: Merge the BA_ and IO_ flags so so that they may both be used in
  the same flags word. This merger is possible by assigning the IO_ flags
  to the low sixteen bits and the BA_ flags the high sixteen bits.
- 105422: Fix a file-rewrite performance case.
- 129545: Implement IO_INVAL in VOP_WRITE() by marking the buffer as
  "no cache".
- Readd the DOINGASYNC() macro and use it to control asynchronous writes.
  Change i-node updates to honor DOINGASYNC() instead of always being
  synchronous.
- Use a PRIV_VFS_RETAINSUGID check instead of checking cr_uid against 0
  directly when deciding whether or not to clear suid and sgid bits.

Submitted by: Pedro F. Giffuni  giffunip at yahoo

13 years agoRe-enable the wireless build parameters for the AR9130 WMAC.
adrian [Thu, 28 Apr 2011 12:52:01 +0000 (12:52 +0000)]
Re-enable the wireless build parameters for the AR9130 WMAC.

* enable 11n
* add ath_ahb so the AHB<->ath glue is linked in
* disable descriptor order swapping, it isn't needed here
* disable interrupt mitigation, it isn't supported here

13 years agoIntroduce AR9130 (HOWL) WMAC support to the FreeBSD HAL.
adrian [Thu, 28 Apr 2011 12:47:40 +0000 (12:47 +0000)]
Introduce AR9130 (HOWL) WMAC support to the FreeBSD HAL.

The AR9130 is an AR9160/AR5416 family WMAC which is glued directly
to the AR913x SoC peripheral bus (APB) rather than via a PCI/PCIe
bridge.

The specifics:

* A new build option is required to use the AR9130 - AH_SUPPORT_AR9130.
  This is needed due to the different location the RTC registers live
  with this chip; hopefully this will be undone in the future.
  This does currently mean that enabling this option will break non-AR9130
  builds, so don't enable it unless you're specifically building an image
  for the AR913x SoC.

* Add the new probe, attach, EEPROM and PLL methods specific to Howl.

* Add a work-around to ah_eeprom_v14.c which disables some of the checks
  for endian-ness and magic in the EEPROM image if an eepromdata block
  is provided. This'll be fixed at a later stage by porting the ath9k
  probe code and making sure it doesn't break in other setups (which
  my previous attempt at this did.)

* Sprinkle Howl modifications throughput the interrupt path - it doesn't
  implement the SYNC interrupt registers, so ignore those.

* Sprinkle Howl chip powerup/down throughout the reset path; the RTC methods
  were

* Sprinkle some other Howl workarounds in the reset path.

* Hard-code an alternative setup for the AR_CFG register for Howl, that
  sets up things suitable for Big-Endian MIPS (which is the only platform
  this chip is glued to.)

This has been tested on the AR913x based TP-Link WR-1043nd mode, in
legacy, HT/20 and HT/40 modes.

Caveats:

* 2ghz has only been tested. I've not seen any 5ghz radios glued to this
  chipset so I can't test it.

* AR5416_INTERRUPT_MITIGATION is not supported on the AR9130. At least,
  it isn't implemented in ath9k. Please don't enable this.

* This hasn't been tested in MBSS mode or in RX/TX block-aggregation mode.

13 years agoexecutable
des [Thu, 28 Apr 2011 11:21:49 +0000 (11:21 +0000)]
executable

13 years agoAdd the IP2 DDR flush handlers.
adrian [Thu, 28 Apr 2011 11:13:26 +0000 (11:13 +0000)]
Add the IP2 DDR flush handlers.

These aren't yet used in the interrupt handler path but should be.

13 years agoUpdate man pages related to the change in default NFS client
rmacklem [Thu, 28 Apr 2011 00:20:35 +0000 (00:20 +0000)]
Update man pages related to the change in default NFS client
applied by r221124. I also deleted references to idmapd, since that
daemon no longer exists.
This is a content change.

13 years agowhitespace nit - sorry for the churn
des [Wed, 27 Apr 2011 21:40:49 +0000 (21:40 +0000)]
whitespace nit - sorry for the churn

13 years agowhitespace nit
des [Wed, 27 Apr 2011 21:39:59 +0000 (21:39 +0000)]
whitespace nit

13 years agoProtect the reachover built symbols after the SHA256/512 crypt(3) addition.
obrien [Wed, 27 Apr 2011 21:33:56 +0000 (21:33 +0000)]
Protect the reachover built symbols after the SHA256/512 crypt(3) addition.

13 years agoFix module names and dependencies so the NFS clients will
rmacklem [Wed, 27 Apr 2011 20:42:30 +0000 (20:42 +0000)]
Fix module names and dependencies so the NFS clients will
load correctly as modules after r221124.

13 years agoOnly align MSI message groups based on the number of messages being
jhb [Wed, 27 Apr 2011 20:08:44 +0000 (20:08 +0000)]
Only align MSI message groups based on the number of messages being
allocated, not the maximum number of messages the device supports.  The
spec only requires the former, and I believe I implemented the latter due
to misunderstanding an e-mail.  In particular, this fixes an issue where
having several devices that all support 16 messages can run out of
IDT vectors on x86 even though the driver only uses a single message.

Submitted by: Bret Ketchum  bcketchum of gmail
MFC after: 1 week

13 years agoMfP4 CH=192029:
bz [Wed, 27 Apr 2011 19:36:35 +0000 (19:36 +0000)]
MfP4 CH=192029:

Expose ip_icmp.c to INET6 as well and only export badport_bandlim()
along with the two sysctls in the non-INET case.
The bandlim types work for all cases I reviewed in IPv6 as well and
the sysctls are available as we export net.inet.* from in_proto.c.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMake pf compile without INET support by adding #ifdef INETs and
bz [Wed, 27 Apr 2011 19:34:01 +0000 (19:34 +0000)]
Make pf compile without INET support by adding #ifdef INETs and
correcting few #includes.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMfP4 CH=192004:
bz [Wed, 27 Apr 2011 19:32:27 +0000 (19:32 +0000)]
MfP4 CH=192004:

Move ip_defttl to raw_ip.c where it is actually used.  In an IPv6
only world we do not want to compile ip_input.c in for that and
it is a shared default with INET6.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMake various (pseudo) interfaces compile without INET in the kernel
bz [Wed, 27 Apr 2011 19:30:44 +0000 (19:30 +0000)]
Make various (pseudo) interfaces compile without INET in the kernel
adding appropriate #ifdefs.  For module builds the framework needs
adjustments for at least carp.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoMake IPsec compile without INET adding appropriate #ifdef checks.
bz [Wed, 27 Apr 2011 19:28:42 +0000 (19:28 +0000)]
Make IPsec compile without INET adding appropriate #ifdef checks.

Unfold the IPSEC_COMMON_INPUT_CB() macro in xform_{ah,esp,ipcomp}.c
to not need three different versions depending on INET, INET6 or both.

Mark two places preparing for not yet supported functionality with IPv6.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoUse a private EXT2_ROOTINO constant instead of redefining ROOTINO.
jhb [Wed, 27 Apr 2011 18:25:35 +0000 (18:25 +0000)]
Use a private EXT2_ROOTINO constant instead of redefining ROOTINO.

Submitted by: Pedro F. Giffuni  giffunip at yahoo

13 years agoThis patch is believed to fix a problem in the kernel rpc for
rmacklem [Wed, 27 Apr 2011 18:19:26 +0000 (18:19 +0000)]
This patch is believed to fix a problem in the kernel rpc for
non-interruptible NFS mounts, where a kernel thread will seem
to be stuck sleeping on "rpccon". The msleep() in clnt_vc_create()
that was waiting to a TCP connect to complete would return ERESTART,
since PCATCH was specified. Then the tsleep() in clnt_reconnect_call()
would sleep for 1 second and then try again and again and...
The patch changes the msleep() in clnt_vc_create() so it only sets
the PCATCH flag for interruptible cases.

Tested by: pho
Reviewed by: jhb
MFC after: 2 weeks

13 years agoVarious style fixes including using uint*_t instead of u_int*_t.
jhb [Wed, 27 Apr 2011 18:15:34 +0000 (18:15 +0000)]
Various style fixes including using uint*_t instead of u_int*_t.

Submitted by: Pedro F. Giffuni  giffunip at yahoo

13 years agoThis patch changes head so that the default NFS client is now the new
rmacklem [Wed, 27 Apr 2011 17:51:51 +0000 (17:51 +0000)]
This patch changes head so that the default NFS client is now the new
NFS client (which I guess is no longer experimental). The fstype "newnfs"
is now "nfs" and the regular/old NFS client is now fstype "oldnfs".
Although mounts via fstype "nfs" will usually work without userland
changes, an updated mount_nfs(8) binary is needed for kernels built with
"options NFSCL" but not "options NFSCLIENT". Updated mount_nfs(8) and
mount(8) binaries are needed to do mounts for fstype "oldnfs".
The GENERIC kernel configs have been changed to use options
NFSCL and NFSD (the new client and server) instead of NFSCLIENT and NFSSERVER.
For kernels being used on diskless NFS root systems, "options NFSCL"
must be in the kernel config.
Discussed on freebsd-fs@.

13 years agoRaise rlogin back to a WARNS level of 6.
jhb [Wed, 27 Apr 2011 17:36:37 +0000 (17:36 +0000)]
Raise rlogin back to a WARNS level of 6.

Tested by: make universe

13 years ago- Add the possibility to reuse the already last used timeout when patting
attilio [Wed, 27 Apr 2011 16:43:03 +0000 (16:43 +0000)]
- Add the possibility to reuse the already last used timeout when patting
  the watchdog, via the watchdog(9) interface.
  For that, the WD_LASTVAL bitwise operation is used. It is mutually
  exclusive with any explicit timout passing to the watchdogs.
  The last timeout can be returned via the wdog_kern_last_timeout()
  KPI.
- Add the possibility to pat the watchdogs installed via the watchdog(9)
  interface from the kernel.
  In order to do that the new KPI wdog_kern_pat() is offered and it does
  accept normalized nanoseconds or WD_LASTVAL.
- Avoid to pass WD_ACTIVE down in the watchdog handlers. All the control
  bit processing should over to the upper layer functions and not passed
  down to the handlers at all.

These changes are intended to be used in order to fix up the watchdog
tripping in situation when the userland is busted, but protection is still
wanted (examples: shutdown syncing / disk dumping).

Sponsored by: Sandvine Incorporated
Reviewed by: emaste, des, cognet
MFC after: 2 weeks

13 years agoFix typo in "continuously" argument used in patrol auto command.
pluknet [Wed, 27 Apr 2011 14:58:06 +0000 (14:58 +0000)]
Fix typo in "continuously" argument used in patrol auto command.

Obtained from: Sascha Wildner <saw att online dott de>
Approved by: jhb
MFC after: 3 days

13 years agoAdd DragonFly 2.10.1 release.
pluknet [Wed, 27 Apr 2011 12:12:22 +0000 (12:12 +0000)]
Add DragonFly 2.10.1 release.

13 years agoBe clear of what licensing terms we are using.
obrien [Wed, 27 Apr 2011 08:57:12 +0000 (08:57 +0000)]
Be clear of what licensing terms we are using.

13 years agoAdd obvious note that CAM drivers are required for using CAM ATA.
mav [Wed, 27 Apr 2011 08:53:52 +0000 (08:53 +0000)]
Add obvious note that CAM drivers are required for using CAM ATA.

13 years agoFix copy-paste bug.
marcel [Wed, 27 Apr 2011 04:03:04 +0000 (04:03 +0000)]
Fix copy-paste bug.

13 years agoMechanical whitespace cleanup.
des [Wed, 27 Apr 2011 02:55:03 +0000 (02:55 +0000)]
Mechanical whitespace cleanup.

MFC after: 3 weeks

13 years agoFix boo-boo in previous commit.
des [Wed, 27 Apr 2011 02:35:57 +0000 (02:35 +0000)]
Fix boo-boo in previous commit.

MFC after: 3 weeks

13 years agoAlphabetize the options. No date bump since no actual change to the text.
des [Wed, 27 Apr 2011 02:32:41 +0000 (02:32 +0000)]
Alphabetize the options.  No date bump since no actual change to the text.

MFC after: 3 weeks

13 years agoRename alloc_unr(9) to unr(9) and adjust the links accordingly.
des [Wed, 27 Apr 2011 01:10:15 +0000 (01:10 +0000)]
Rename alloc_unr(9) to unr(9) and adjust the links accordingly.

MFC after: 3 weeks

13 years agoUse ACPI-supplied CPU frequencies instead of estimated ones as we are about
jkim [Wed, 27 Apr 2011 00:32:35 +0000 (00:32 +0000)]
Use ACPI-supplied CPU frequencies instead of estimated ones as we are about
to use other values from the same table anyway.

MFC after: 3 days

13 years agoImplement relaxed comparision for hardcoded provider names to make it
mav [Wed, 27 Apr 2011 00:10:26 +0000 (00:10 +0000)]
Implement relaxed comparision for hardcoded provider names to make it
ignore adX/adaY difference in both directions to simplify migration to
the CAM-based ATA or back.

13 years agoReap old SPL comments.
obrien [Tue, 26 Apr 2011 22:18:53 +0000 (22:18 +0000)]
Reap old SPL comments.

Reviewed by: alc

13 years agoMFV of tzdata2011g, 221089.
edwin [Tue, 26 Apr 2011 22:14:10 +0000 (22:14 +0000)]
MFV of tzdata2011g, 221089.

- Egypt has cancelled the move to DST for now.

13 years agoRevert r221053 by replacing WARNS?= 3 since it's breaking the build on
dougb [Tue, 26 Apr 2011 22:02:51 +0000 (22:02 +0000)]
Revert r221053 by replacing WARNS?= 3 since it's breaking the build on
several arches.

13 years agoIf the 4BSD scheduler tries to schedule a thread that has been pinned or
rstone [Tue, 26 Apr 2011 20:34:30 +0000 (20:34 +0000)]
If the 4BSD scheduler tries to schedule a thread that has been pinned or
bound to an AP before SMP has started, the system will panic when we try
to touch per-CPU state for that AP because that state has not been
initialized yet.  Fix this in the same way as ULE: place all threads in
the global run queue before SMP has started.

Reviewed by: jhb
MFC after: 1 month

13 years agoGenerate the network byte order version of the window size structure in a
jhb [Tue, 26 Apr 2011 20:14:29 +0000 (20:14 +0000)]
Generate the network byte order version of the window size structure in a
temporary variable on the stack and then copy that into the output buffer
so that the htons() conversions use aligned accesses.

MFC after: 1 month

13 years agoAdd missing ifdef. This fixes build with NO_OPENSSL.
trociny [Tue, 26 Apr 2011 19:52:21 +0000 (19:52 +0000)]
Add missing ifdef. This fixes build with NO_OPENSSL.

Reported by: Pawel Tyll <ptyll@nitronet.pl>
Approved by: pjd (mentor)
MFC after: 1 week

13 years agoThe maximum NCM frame size must be so that it
hselasky [Tue, 26 Apr 2011 19:40:37 +0000 (19:40 +0000)]
The maximum NCM frame size must be so that it
will generate a short terminated USB transfer if
the maximum NCM frame size is greater than what
the driver can handle.

Reported by: Matthias Benesch
MFC after: 7 days
Approved by: thompsa (mentor)

13 years agoRename HASTCTL_ defines, which are used for conversion between main
trociny [Tue, 26 Apr 2011 19:38:30 +0000 (19:38 +0000)]
Rename HASTCTL_ defines, which are used for conversion between main
hastd process and workers, remove unused one and set different range
of numbers. This is done in order not to confuse them with HASTCTL_CMD
defines, used for conversation between hastctl and hastd, and to avoid
bugs like the one fixed in in r221075.

Approved by: pjd (mentor)
MFC after: 1 week

13 years agoFor conversation between hastctl and hastd we should use HASTCTL_CMD
trociny [Tue, 26 Apr 2011 19:22:54 +0000 (19:22 +0000)]
For conversation between hastctl and hastd we should use HASTCTL_CMD
defines.

Approved by: pjd (mentor)
MFC after: 1 week

13 years agoFix assert messages.
trociny [Tue, 26 Apr 2011 19:11:15 +0000 (19:11 +0000)]
Fix assert messages.

Approved by: pjd (mentor)

13 years agoFix for missing EHCI datatoggle change case.
hselasky [Tue, 26 Apr 2011 18:50:35 +0000 (18:50 +0000)]
Fix for missing EHCI datatoggle change case.

Reported by: Mike Tancsa
MFC after: 3 days
Approved by: thompsa (mentor)

13 years ago - Add shim to simplify migration to the CAM-based ATA. For each new adaX
mav [Tue, 26 Apr 2011 17:01:49 +0000 (17:01 +0000)]
 - Add shim to simplify migration to the CAM-based ATA. For each new adaX
device in /dev/ create symbolic link with adY name, trying to mimic old ATA
numbering. Imitation is not complete, but should be enough in most cases to
mount file systems without touching /etc/fstab.
 - To know what behavior to mimic, restore ATA_STATIC_ID option in cases
where it was present before.
 - Add some more details to UPDATING.

13 years agoWith the typical memory size of the system in tenth of gigabytes
sobomax [Tue, 26 Apr 2011 16:14:55 +0000 (16:14 +0000)]
With the typical memory size of the system in tenth of gigabytes
counting memory being dumped in 16MB increments is somewhat silly.
Especially if the dump fails and everything you've got for debugging
is screen filled with numbers in 16 decrements... Replace that with
percentage-based progress with max 10 updates all fitting into one
line.

Collapse other very "useful" piece of crash information (total ram) into
the same line to save some more space.

MFC after: 1 week

13 years agoFix a kernel linking problem introduced by r221032, r221040
rmacklem [Tue, 26 Apr 2011 13:50:11 +0000 (13:50 +0000)]
Fix a kernel linking problem introduced by r221032, r221040
when building kernels that don't have "options NFS_ROOT"
specified. I plan on moving the functions that use these
data structures into the shared code in sys/nfs/nfs_diskless.c
in a future commit. At that time, these definitions will no
longer be needed in nfs_vfsops.c and nfs_clvfsops.c.

MFC after: 2 weeks

13 years agoDocument timeout_task.
kib [Tue, 26 Apr 2011 11:43:57 +0000 (11:43 +0000)]
Document timeout_task.

While there, fix the type of the func argument of INIT_TASK macro,
and use the modern name of the analogous facility from Linux kernel.

Sponsored by: The FreeBSD Foundation
MFC after: 1 month

13 years agoImplement the delayed task execution extension to the taskqueue
kib [Tue, 26 Apr 2011 11:39:56 +0000 (11:39 +0000)]
Implement the delayed task execution extension to the taskqueue
mechanism. The caller may specify a timeout in ticks after which the
task will be scheduled.

Sponsored by: The FreeBSD Foundation
Reviewed by: jeff, jhb
MFC after: 1 month

13 years ago - Catch up to falloc() changes.
jeff [Tue, 26 Apr 2011 07:30:52 +0000 (07:30 +0000)]
 - Catch up to falloc() changes.
 - PHOLD() before using a task structure on the stack.
 - Fix a LOR between the sleepq lock and thread lock in _intr_drain().

13 years agoThis builds OK using the parent dir's WARNS=6.
obrien [Tue, 26 Apr 2011 04:09:20 +0000 (04:09 +0000)]
This builds OK using the parent dir's WARNS=6.
[built on both AMD64 and i386]

13 years agoCatch up with r57841 which removed the possible linking against libutil
obrien [Tue, 26 Apr 2011 04:01:08 +0000 (04:01 +0000)]
Catch up with r57841 which removed the possible linking against libutil
by not bothering to include its API.

13 years agoStop trying to zero UFS1 superblocks if we fall off the end of the disk.
cperciva [Tue, 26 Apr 2011 02:06:31 +0000 (02:06 +0000)]
Stop trying to zero UFS1 superblocks if we fall off the end of the disk.

This avoids a potentially many-hours-long loop of failed writes if newfs
finds a partially-overwritten superblock (or, for that matter, random
garbage which happens to have superblock magic bytes); on one occasion I
found newfs trying to zero 800 million superblocks on a 50 MB disk.

Reviewed by: mckusick
MFC after: 1 week

13 years agoUpdate the /etc/rc.d scripts for mountd and nfsd so they
rmacklem [Tue, 26 Apr 2011 00:22:17 +0000 (00:22 +0000)]
Update the /etc/rc.d scripts for mountd and nfsd so they
can use the "-o" option to force the old NFS server to run.
Running the old NFS server is enabled by setting
oldnfs_server_enable="YES". The scripts will only enable
providing service for NFSv4 if nfsv4_server_enable="YES"
is set.

Reviewed by: dougb (rc)

13 years ago- Add the RX refresh changes from igb to ixgbe
jfv [Mon, 25 Apr 2011 23:34:21 +0000 (23:34 +0000)]
- Add the RX refresh changes from igb to ixgbe
- Also a couple minor tweaks to the TX code from the same source.
- Add the INET ioctl code which has been missing from this driver,
  and which caused IP aliases to reset the interface.
- Last, some minor logic changes that just reflect upcoming
  hardware support, but have no other functional effect now.

MFC after a week

13 years agoModify the experimental (newnfs) NFS client so that it uses the
rmacklem [Mon, 25 Apr 2011 23:12:18 +0000 (23:12 +0000)]
Modify the experimental (newnfs) NFS client so that it uses the
same diskless NFS root code as the regular client, which
was moved to sys/nfs by r221032. This fixes the newnfs
client so that it can do an NFSv3 diskless root file system.

MFC after: 2 weeks

13 years agoRemove prototypes of non-existent functions.
marcel [Mon, 25 Apr 2011 22:38:09 +0000 (22:38 +0000)]
Remove prototypes of non-existent functions.

13 years agoFix the experimental NFS client so that it does not bogusly
rmacklem [Mon, 25 Apr 2011 22:22:51 +0000 (22:22 +0000)]
Fix the experimental NFS client so that it does not bogusly
set the f_flags field of "struct statfs". This had the interesting
effect of making the NFSv4 mounts "disappear" after r221014,
since NFSMNT_NFSV4 and MNT_IGNORE became the same bit.
Move the files used for a diskless NFS root from sys/nfsclient
to sys/nfs in preparation for them to be used by both NFS
clients. Also, move the declaration of the three global data
structures from sys/nfsclient/nfs_vfsops.c to sys/nfs/nfs_diskless.c
so that they are defined when either client uses them.

Reviewed by: jhb
MFC after: 2 weeks

13 years ago- Removed duplicate {_bxe} definition.
davidch [Mon, 25 Apr 2011 22:00:23 +0000 (22:00 +0000)]
- Removed duplicate {_bxe} definition.

MFC after: One week

13 years ago- Added bxe(4) driver for i386 and amd64. Currently untested on other
davidch [Mon, 25 Apr 2011 21:53:41 +0000 (21:53 +0000)]
- Added bxe(4) driver for i386 and amd64. Currently untested on other
  CPU architectures.

MFC after: One week

13 years agosh: Set $? to 0 for background commands.
jilles [Mon, 25 Apr 2011 20:54:12 +0000 (20:54 +0000)]
sh: Set $? to 0 for background commands.

For backgrounded pipelines and subshells, the previous value of $? was being
preserved, which is incorrect.

For backgrounded simple commands containing a command substitution, the
status of the last command substitution was returned instead of 0.

If fork() fails, this is an error.

13 years agoprintf(1): Move non-bugs from the BUGS section to a new section CAVEATS.
jilles [Mon, 25 Apr 2011 19:15:58 +0000 (19:15 +0000)]
printf(1): Move non-bugs from the BUGS section to a new section CAVEATS.

13 years agoTypo fix
cognet [Mon, 25 Apr 2011 18:15:45 +0000 (18:15 +0000)]
Typo fix

13 years agoAdd the possibility to verify MD5 hash of incoming TCP packets.
attilio [Mon, 25 Apr 2011 17:13:40 +0000 (17:13 +0000)]
Add the possibility to verify MD5 hash of incoming TCP packets.
As long as this is a costy function, even when compiled in (along with
the option TCP_SIGNATURE), it can be disabled via the
net.inet.tcp.signature_verify_input sysctl.

Sponsored by: Sandvine Incorporated
Reviewed by: emaste, bz
MFC after: 2 weeks

13 years agoWe need in.h for both INET and INET6, as according to RFC 3493 it
bz [Mon, 25 Apr 2011 16:37:47 +0000 (16:37 +0000)]
We need in.h for both INET and INET6, as according to RFC 3493 it
defines struct in6_addr, which is needed by ip6_hdr used in here.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 5 days

13 years agoBe less strict on includes than in r220746. We need in.h for both
bz [Mon, 25 Apr 2011 16:36:16 +0000 (16:36 +0000)]
Be less strict on includes than in r220746. We need in.h for both
INET or INET6 as it holds all the IPPROTO_* definitions needed
for the SYSCTL_NODE definitions.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 5 days

13 years agoAfter r220885 compile the various NIC drivers depending on INET
bz [Mon, 25 Apr 2011 16:33:42 +0000 (16:33 +0000)]
After r220885 compile the various NIC drivers depending on INET
unconditionally backing out r193997, so that they are available for
IPv6-only setups as well.

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 5 days

13 years agoWrap the MIMO stuff in #ifdef AH_SUPPORT_AR5416, as the channel
adrian [Mon, 25 Apr 2011 15:51:49 +0000 (15:51 +0000)]
Wrap the MIMO stuff in #ifdef AH_SUPPORT_AR5416, as the channel
state doesn't have MIMO stuff in it by default.

13 years agoFix the experimental NFS client so that it does not bogusly
rmacklem [Mon, 25 Apr 2011 14:51:08 +0000 (14:51 +0000)]
Fix the experimental NFS client so that it does not bogusly
set the f_flags field of "struct statfs". This had the interesting
effect of making the NFSv4 mounts "disappear" after r221014,
since NFSMNT_NFSV4 and MNT_IGNORE became the same bit.

MFC after: 2 weeks

13 years agoAdd missing bit in r221015.
attilio [Mon, 25 Apr 2011 14:12:58 +0000 (14:12 +0000)]
Add missing bit in r221015.

Sponsored by: Sandvine Incorporated
Reviewed by: des
MFC after: 1 week
X-MFC: r221015

13 years agoDon't assume that SMI are enabled when attaching ichwd and then do
attilio [Mon, 25 Apr 2011 14:10:33 +0000 (14:10 +0000)]
Don't assume that SMI are enabled when attaching ichwd and then do
correct unwind based on former state.

Sponsored by: Sandvine Incorporated
Reviewed by: des
MFC after: 1 week

13 years agoModify the experimental NFS client so that it uses the same
rmacklem [Mon, 25 Apr 2011 13:09:32 +0000 (13:09 +0000)]
Modify the experimental NFS client so that it uses the same
"struct nfs_args" as the regular NFS client. This is needed
so that the old mount(2) syscall will work and it makes
sharing of the diskless NFS root code easier. Eary in the
porting exercise I introduced a new revision of nfs_args, but
didn't actually need it, thanks to nmount(2). I re-introduced the
NFSMNT_KERB flag, since it does essentially the same thing and
the old one would not have been used because it never worked.
I also added a few new NFSMNT_xxx flags to sys/nfsclient/nfs_args.h
that are used by the experimental NFS client.

MFC after: 2 weeks

13 years agoprintf(1): Mention effect of '#' modifier on other conversions.
jilles [Mon, 25 Apr 2011 12:36:29 +0000 (12:36 +0000)]
printf(1): Mention effect of '#' modifier on other conversions.

13 years agosh: Check setuid()/setgid() return values.
jilles [Mon, 25 Apr 2011 10:14:29 +0000 (10:14 +0000)]
sh: Check setuid()/setgid() return values.

If the -p option is turned off, privileges from a setuid or setgid binary
are dropped. Make sure to check if this succeeds. If it fails, this is an
error which will cause the shell to abort except in interactive mode or if
'command' was used to make 'set' or an outer 'eval' or '.' non-special.

Note that taking advantage of this feature and writing setuid shell scripts
seems unwise.

MFC after: 1 week

13 years agosh: Remove duplicate code resetting uid/gid for set +p/+o privileged.
jilles [Mon, 25 Apr 2011 10:08:34 +0000 (10:08 +0000)]
sh: Remove duplicate code resetting uid/gid for set +p/+o privileged.

MFC after: 1 week

13 years agoWhitespace nit
des [Mon, 25 Apr 2011 09:18:05 +0000 (09:18 +0000)]
Whitespace nit

13 years agocorrect variable type name in comment
ticso [Mon, 25 Apr 2011 09:00:52 +0000 (09:00 +0000)]
correct variable type name in comment

13 years agoCreate a function for the code from r192246 so that it can be used both
dougb [Mon, 25 Apr 2011 06:03:22 +0000 (06:03 +0000)]
Create a function for the code from r192246 so that it can be used both
times mount is called.

Limit the automatic behavior to when AUTO is specified (as it is in
etc/defaults/rc.conf) and for everything else take advantage of all
of the goodness in checkyesno.

13 years agoAdd svn:executable property
dougb [Mon, 25 Apr 2011 05:57:01 +0000 (05:57 +0000)]
Add svn:executable property

13 years agoWhen msk_detach() is called from msk_attach(), ifp may be
glebius [Mon, 25 Apr 2011 04:55:50 +0000 (04:55 +0000)]
When msk_detach() is called from msk_attach(), ifp may be
yet not initialized.

13 years agoBreak out the PLL setup into an overridable method.
adrian [Sun, 24 Apr 2011 15:53:57 +0000 (15:53 +0000)]
Break out the PLL setup into an overridable method.

The only method right now is ar5416InitPLL() which handles multiple
chipsets; this can now be overridden by newer chipset HAL code.

13 years agoUse the refactored ar5416WriteTxPowerRateRegisters() call in the ar9285 code.
adrian [Sun, 24 Apr 2011 15:48:07 +0000 (15:48 +0000)]
Use the refactored ar5416WriteTxPowerRateRegisters() call in the ar9285 code.

13 years agoEliminate code duplication between AR5416/AR9160/AR9280 and AR9285.
adrian [Sun, 24 Apr 2011 14:50:29 +0000 (14:50 +0000)]
Eliminate code duplication between AR5416/AR9160/AR9280 and AR9285.

Writing the TX power registers is the same between all of these chips
and later NICs (AR9287, AR9271 USB, etc.) so this will reduce code
duplication when those NICs are added to the HAL.

13 years agoFix typo.
kib [Sun, 24 Apr 2011 13:22:14 +0000 (13:22 +0000)]
Fix typo.

MFC after: 3 days

13 years agoVFS sometimes is unable to inactivate a vnode when vnode use count
kib [Sun, 24 Apr 2011 10:47:56 +0000 (10:47 +0000)]
VFS sometimes is unable to inactivate a vnode when vnode use count
goes to zero. E.g., the vnode might be only shared-locked at the time of
vput() call. Such vnodes are kept in the hash, so they can be found later.

If ffs_valloc() allocated an inode that has its vnode cached in hash, and
still owing the inactivation, then vget() call from ffs_valloc() clears
VI_OWEINACT, and then the vnode is reused for the newly allocated inode.

The problem is, the vnode is not reclaimed before it is put to the new
use. ffs_valloc() recycles vnode vm object, but this is not enough.
In particular, at least v_vflag should be cleared, and several bits of
UFS state need to be removed.

It is very inconvenient to call vgone() at this point. Instead, move
some parts of ufs_reclaim() into helper function ufs_prepare_reclaim(),
and call the helper from VOP_RECLAIM and ffs_valloc().

Reviewed by: mckusick
Tested by: pho
MFC after: 3 weeks

13 years agoOne key is expected from providers smaller than or equal to (2^20)*sectorsize
pjd [Sun, 24 Apr 2011 10:41:13 +0000 (10:41 +0000)]
One key is expected from providers smaller than or equal to (2^20)*sectorsize
bytes. Remove bogus assertion and while here remove another too obvious
assertion.

Reported by: Fabian Keil <freebsd-listen@fabiankeil.de>
MFC after: 2 weeks

13 years agoExplicitly note that device numbers are starting from zero.
mav [Sun, 24 Apr 2011 09:23:08 +0000 (09:23 +0000)]
Explicitly note that device numbers are starting from zero.

13 years agoSwitch the GENERIC kernels for all architectures to the new CAM-based ATA
mav [Sun, 24 Apr 2011 08:58:58 +0000 (08:58 +0000)]
Switch the GENERIC kernels for all architectures to the new CAM-based ATA
stack. It means that all legacy ATA drivers are disabled and replaced by
respective CAM drivers. If you are using ATA device names in /etc/fstab or
other places, make sure to update them respectively (adX -> adaY,
acdX -> cdY, afdX -> daY, astX -> saY, where 'Y's are the sequential
numbers for each type in order of detection, unless configured otherwise
with tunables, see cam(4)).

ataraid(4) functionality is now supported by the RAID GEOM class.
To use it you can load geom_raid kernel module and use graid(8) tool
for management. Instead of /dev/arX device names, use /dev/raid/rX.

13 years agoPatch the mountd and nfsd man pages to reflect the recent changes
rmacklem [Sun, 24 Apr 2011 01:11:28 +0000 (01:11 +0000)]
Patch the mountd and nfsd man pages to reflect the recent changes
done by r220980 to deprecate the -e option and add the -o option.
This is a content change for both man pages.

13 years agoThis patch changes the default NFS server to the new one, which was
rmacklem [Sun, 24 Apr 2011 00:06:56 +0000 (00:06 +0000)]
This patch changes the default NFS server to the new one, which was
referred to as the experimental server. It also adds a new command
line option "-o" to both mountd and nfsd that forces them to use the
old/regular NFS server. The "-e" option for these commands is now
a no-op, since the new server is the default. I will be committing rc
script and man changes soon. Discussed on freebsd-fs@.

13 years agoFix display of the drm sysctls.
kib [Sat, 23 Apr 2011 23:11:44 +0000 (23:11 +0000)]
Fix display of the drm sysctls.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

13 years agosh: Allow EV_EXIT through function calls, make {...} <redir more consistent.
jilles [Sat, 23 Apr 2011 22:28:56 +0000 (22:28 +0000)]
sh: Allow EV_EXIT through function calls, make {...} <redir more consistent.

If EV_EXIT causes an exit, use the exception mechanism to unwind
redirections and local variables. This way, if the final command is a
redirected command, an EXIT trap now executes without the redirections.

Because of these changes, EV_EXIT can now be inherited by the body of a
function, so do so. This means that a function no longer prevents a fork
before an exec being skipped, such as in
  f() { head -1 /etc/passwd; }; echo $(f)

Wrapping a single builtin in a function may still cause an otherwise
unnecessary fork with command substitution, however.

An exit command or -e failure still invokes the EXIT trap with the
original redirections and local variables in place.

Note: this depends on SHELLPROC being gone. A SHELLPROC depended on
keeping the redirections and local variables and only cleaning up the
state to restore them.

13 years agoFix two bugs in r218670.
kib [Sat, 23 Apr 2011 21:38:21 +0000 (21:38 +0000)]
Fix two bugs in r218670.

Hold the vnode around the region where object lock is dropped, until
vnode lock is acquired.

Do not drop the vnode reference for a case when the object was
deallocated during unlock. Note that in this case, VV_TEXT is cleared
by vnode_pager_dealloc().

Reported and tested by: pho
Reviewed by: alc
MFC after: 3 days

13 years ago- Clarification on kld_file_stat.size
gjb [Sat, 23 Apr 2011 20:59:58 +0000 (20:59 +0000)]
- Clarification on kld_file_stat.size
- While here, remove a few C comments that don't seem to contribute
  anything additional to the man page.

PR: 146047
Submitted by: arundel
MFC after: 3 days

13 years agoAs previously advertised, remove the error message for enable_quotas
dougb [Sat, 23 Apr 2011 17:37:14 +0000 (17:37 +0000)]
As previously advertised, remove the error message for enable_quotas
prior to 9.0-RELEASE.

This change should not be MFC'ed.

13 years agoCheck return code of setuid() and setgid() in finger.
simon [Sat, 23 Apr 2011 14:19:26 +0000 (14:19 +0000)]
Check return code of setuid() and setgid() in finger.

While they will not fail in normal circumstances, better safe than
sorry.

MFC after: 1 week

13 years agoCheck return code of setuid() in timedc.
simon [Sat, 23 Apr 2011 13:57:12 +0000 (13:57 +0000)]
Check return code of setuid() in timedc.

While it will not fail in normal circumstances, better safe than
sorry.

MFC after: 3 days