]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoUpdate man pages after VFS_* changes in r191990.
Tom McLaughlin [Sun, 24 May 2009 18:34:54 +0000 (18:34 +0000)]
Update man pages after VFS_* changes in r191990.

Approved by: brueffer, attilio

15 years agoFix typo in the manual page.
Edward Tomasz Napierala [Sun, 24 May 2009 17:08:00 +0000 (17:08 +0000)]
Fix typo in the manual page.

15 years agoFix comment.
Edward Tomasz Napierala [Sun, 24 May 2009 15:48:48 +0000 (15:48 +0000)]
Fix comment.

15 years agoFix elapsed (etime) field for swapped out processes in ps:
Jilles Tjoelker [Sun, 24 May 2009 15:32:34 +0000 (15:32 +0000)]
Fix elapsed (etime) field for swapped out processes in ps:
show '-' instead of time since the Epoch.

PR: bin/123069
Submitted by: Vladimir Kozbin
Approved by: ed (mentor)
MFC after: 3 weeks

15 years agoFix chflags -h in various cases: do not use link target's flags as original.
Jilles Tjoelker [Sun, 24 May 2009 15:27:25 +0000 (15:27 +0000)]
Fix chflags -h in various cases: do not use link target's flags as original.

Patch slightly changed to align more with chmod.c.

PR: bin/131999
Submitted by: bde
Approved by: ed (mentor)
MFC after: 3 weeks

15 years agoMake sure we feed 32bit align memory to nfsm_dissect otherwise we will fault
Doug Rabson [Sun, 24 May 2009 13:22:00 +0000 (13:22 +0000)]
Make sure we feed 32bit align memory to nfsm_dissect otherwise we will fault
on platforms with strict alignment requirements. In particular, this fixes the
problems with the new RPC transport on the arm platform.

Note: this adds yet another copy of nfs_realign(). I will attempt to refactor
after NFS_LEGACYRPC is removed.

Submitted by: sam

15 years agoThe advisory lock may be activated or activated and removed during the
Konstantin Belousov [Sun, 24 May 2009 12:39:38 +0000 (12:39 +0000)]
The advisory lock may be activated or activated and removed during the
sleep waiting for conditions when the lock may be granted.
To prevent lf_setlock() from accessing possibly freed memory, add reference
counting to the struct lockf_entry. Bump refcount around the sleep.

Make lf_free_lock() return non-zero when structure was freed, and use
this after the sleep to return EINTR to the caller. The error code might
need a clarification, but we cannot return success to usermode, since
the lock is not owned anymore.

Reviewed by: dfr
Tested by: pho
MFC after: 1 month

15 years agoIn lf_purgelocks(), assert that state->ls_pending is empty after we
Konstantin Belousov [Sun, 24 May 2009 12:37:55 +0000 (12:37 +0000)]
In lf_purgelocks(), assert that state->ls_pending is empty after we
weeded out threads, and clean ls_active instead of ls_pending.

Reviewed by: dfr
Tested by: pho
MFC after: 1 month

15 years agoIn lf_advlockasync(), recheck for doomed vnode after the state->ls_lock
Konstantin Belousov [Sun, 24 May 2009 12:33:16 +0000 (12:33 +0000)]
In lf_advlockasync(), recheck for doomed vnode after the state->ls_lock
is acquired. In the lf_purgelocks(), assert that vnode is doomed and set
*statep to NULL before clearing ls_pending list. Otherwise, we allow for
the thread executing lf_advlockasync() to put new pending entry after
state->ls_lock is dropped in lf_purgelocks().

Reviewed by: dfr
Tested by: pho
MFC after: 1 month

15 years agoBlock when initially opening a TTY multiple times.
Ed Schouten [Sun, 24 May 2009 12:32:03 +0000 (12:32 +0000)]
Block when initially opening a TTY multiple times.

In the original MPSAFE TTY code, I changed the behaviour by returning
EBUSY. I thought this made more sense, because it's basically a race to
see who gets the TTY first.

It turns out this is not a good change, because it also causes EBUSY to
be returned when another process is closing the TTY. This can happen
during startup, when /etc/rc (or one of its children) is still busy
draining its data and /sbin/init is attempting to open the TTY to spawn
a getty.

Reported by: bz
Tested by: bz

15 years agoReplace the while statement with the if for clarity. The loop body
Konstantin Belousov [Sun, 24 May 2009 12:28:38 +0000 (12:28 +0000)]
Replace the while statement with the if for clarity. The loop body
cannot be executed more then once.

Reviewed by: dfr
Tested by: pho
MFC after: 1 month

15 years agoIncrease the number of available file descriptors to 64. This fixes the
Doug Rabson [Sun, 24 May 2009 11:37:10 +0000 (11:37 +0000)]
Increase the number of available file descriptors to 64. This fixes the
reported zfsboot problems for systems where more than seven drives are part
of ZFS pools.

15 years agoFix build of KGSSAPI bits post-vimage.
Doug Rabson [Sun, 24 May 2009 11:10:27 +0000 (11:10 +0000)]
Fix build of KGSSAPI bits post-vimage.

15 years agoAdd new constants to the acl(9) manual page.
Edward Tomasz Napierala [Sun, 24 May 2009 09:42:53 +0000 (09:42 +0000)]
Add new constants to the acl(9) manual page.

15 years agoFix the experimental nfsv4 client so that it works for the
Rick Macklem [Sun, 24 May 2009 03:22:49 +0000 (03:22 +0000)]
Fix the experimental nfsv4 client so that it works for the
case of a kerberized mount without a host based principal
name. This will only work for mounts being done by a user
other than root. Support for a host based principal name
will not work until proposed changes to the rpcsec_gss part
of the krpc are committed. It now builds for "options KGSSAPI".

Approved by: kib (mentor)

15 years agoModify nfsd.c to add support for the experimental nfs server.
Rick Macklem [Sun, 24 May 2009 01:18:56 +0000 (01:18 +0000)]
Modify nfsd.c to add support for the experimental nfs server.
This includes the addition of a new flag "-4" that will force
use of the experimental server with nfsv4 support in it. This
commit also adds two new man pages to the repository that are
NFSv4 specific. One describes the file used by the server to
restart nfsv4 services safely. The other is a brief overview
of nfsv4 and its setup.

Reviewed by: dfr
Approved by: kib (mentor)

15 years agoEven if not entirely style clean the heavy nesting of the various
Bjoern A. Zeeb [Sat, 23 May 2009 22:57:49 +0000 (22:57 +0000)]
Even if not entirely style clean the heavy nesting of the various
vimage options along with all the defines made things really hard to
read and get right; thus add comments for the #else/#endif cases.

Discussed with: zec

15 years agopmap_enter() *must* set PG_WRITEABLE on the given page if it creates a
Alan Cox [Sat, 23 May 2009 22:05:14 +0000 (22:05 +0000)]
pmap_enter() *must* set PG_WRITEABLE on the given page if it creates a
mapping that permits write access.  Otherwise, pmap_remove_write() will not
remove write access from any of the page's mappings.

15 years agoV_irtualize the if_clone framework, thus allowing for clonable ifnets
Marko Zec [Sat, 23 May 2009 21:43:44 +0000 (21:43 +0000)]
V_irtualize the if_clone framework, thus allowing for clonable ifnets
to optionally have overlapping unit numbers if attached in different
vnets.

At this stage if_loop is the only clonable ifnet class that has been
extended to allow for such overlapping allocation of unit numbers, i.e.
in each vnet it is possible to have a lo0 interface.  Other clonable ifnet
classes remain to operate with traditional semantics, i.e. each instance
of a clonable ifnet will be assigned a globally unique unit number,
regardless in which vnet such an ifnet becomes instantiated.

While here, garbage collect unused _lo_list field in struct vnet_net,
as well as improve indentation for #defines in sys/net/vnet.h.

The layout of struct vnet_net has changed, therefore bump
__FreeBSD_version.

This change has no functional impact on nooptions VIMAGE kernel builds.

Reviewed by: bz, brooks
Approved by: julian (mentor)

15 years agoadd npe tools
Sam Leffler [Sat, 23 May 2009 19:17:05 +0000 (19:17 +0000)]
add npe tools

15 years agoadd npe tools; first is npestats which reports device statistics
Sam Leffler [Sat, 23 May 2009 19:16:34 +0000 (19:16 +0000)]
add npe tools; first is npestats which reports device statistics

15 years agoaccumulate npe statistics and expose them through dev.npe.X.stats
Sam Leffler [Sat, 23 May 2009 19:14:20 +0000 (19:14 +0000)]
accumulate npe statistics and expose them through dev.npe.X.stats

15 years agoGive pmap_enter()'s third parameter the same name that it has on amd64 and
Alan Cox [Sat, 23 May 2009 18:44:26 +0000 (18:44 +0000)]
Give pmap_enter()'s third parameter the same name that it has on amd64 and
i386.  Otherwise, my next to last commit (r192628) to this file doesn't
actually compile.

15 years agoWhen a page is mapped for write access on a read fault, the PTE should be
Alan Cox [Sat, 23 May 2009 18:33:22 +0000 (18:33 +0000)]
When a page is mapped for write access on a read fault, the PTE should be
configured to trap on a write access unless *all* of the page's dirty bits
are set.

15 years agoEliminate the unnecessary clearing of a page's dirty bits from
Alan Cox [Sat, 23 May 2009 18:25:11 +0000 (18:25 +0000)]
Eliminate the unnecessary clearing of a page's dirty bits from
nwfs_getpages().

15 years agoMore bogus props.
Dag-Erling Smørgrav [Sat, 23 May 2009 17:13:35 +0000 (17:13 +0000)]
More bogus props.

15 years agoAdd new #defines neccessary to support NFSv4 ACLs.
Edward Tomasz Napierala [Sat, 23 May 2009 17:09:47 +0000 (17:09 +0000)]
Add new #defines neccessary to support NFSv4 ACLs.

Reviewed by: rwatson

15 years agoFor UDP with introducing the UDP control block, the uma zone had to
Bjoern A. Zeeb [Sat, 23 May 2009 17:02:30 +0000 (17:02 +0000)]
For UDP with introducing the UDP control block,  the uma zone had to
be named "udp_inpcb" to avoid a naming conflict with tcp[1].
For consistency rename the uma zone for TCP from "inpcb" to "tcp_inpcb".

Found by: rwatson [1]
Discussed with: rwatson

15 years agoAdd more obsolete files, old NFSv4 client and legacy USB related.
Antoine Brodin [Sat, 23 May 2009 16:54:07 +0000 (16:54 +0000)]
Add more obsolete files, old NFSv4 client and legacy USB related.

15 years agoImplement UDP control block support.
Bjoern A. Zeeb [Sat, 23 May 2009 16:51:13 +0000 (16:51 +0000)]
Implement UDP control block support.

So far the udp_tun_func_t had been (ab)using inp_ppcb for udp in kernel
tunneling callbacks.  Move that into the udpcb and add a field for flags
there to be used by upcoming changes instead of sticking udp only flags
into in_pcb flags2.

Bump __FreeBSD_version for ports to detect it and because of vnet* struct
size changes.

Submitted by: jhb (7.x version)
Reviewed by: rwatson

15 years agoAdd sysctls to toggle the behaviour of the (former) IPSEC_FILTERTUNNEL
Bjoern A. Zeeb [Sat, 23 May 2009 16:42:38 +0000 (16:42 +0000)]
Add sysctls to toggle the behaviour of the (former) IPSEC_FILTERTUNNEL
kernel option.
This also permits tuning of the option per virtual network stack, as
well as separately per inet, inet6.

The kernel option is left for a transition period, marked deprecated,
and will be removed soon.

Initially requested by: phk (1 year 1 day ago)
MFC after: 4 weeks

15 years agoRemove bogus prop
Dag-Erling Smørgrav [Sat, 23 May 2009 16:39:49 +0000 (16:39 +0000)]
Remove bogus prop

15 years agoRemove bogus props
Dag-Erling Smørgrav [Sat, 23 May 2009 16:36:19 +0000 (16:36 +0000)]
Remove bogus props

15 years agoWhile r192615 fixed the former problems, make this file VIMAGE
Bjoern A. Zeeb [Sat, 23 May 2009 16:27:42 +0000 (16:27 +0000)]
While r192615 fixed the former problems, make this file VIMAGE
compliant now as well initializing local context variables.

15 years agoDelay an error message until the variable it uses gets initialized.
Jamie Gritton [Sat, 23 May 2009 16:13:26 +0000 (16:13 +0000)]
Delay an error message until the variable it uses gets initialized.

Found with: Coverity Prevent(tm)
CID: 4316
Reported by: trasz
Approved by: bz (mentor)

15 years agoUnexpand $FreeBSD$.
Dag-Erling Smørgrav [Sat, 23 May 2009 16:01:58 +0000 (16:01 +0000)]
Unexpand $FreeBSD$.

15 years agoRemove svn:keywords on a file that had fbsd:nokeywords (though I don't
Dag-Erling Smørgrav [Sat, 23 May 2009 16:00:16 +0000 (16:00 +0000)]
Remove svn:keywords on a file that had fbsd:nokeywords (though I don't
understand the reason for the latter)

15 years agoImprove API documentation.
Edward Tomasz Napierala [Sat, 23 May 2009 13:51:05 +0000 (13:51 +0000)]
Improve API documentation.

Reviewed by: rwatson (earlier version)

15 years agoFix cryptodev UIO creation.
Rafal Jaworowski [Sat, 23 May 2009 13:23:46 +0000 (13:23 +0000)]
Fix cryptodev UIO creation.

Cryptodev uses UIO structure do get data from userspace and pass it to
cryptographic engines. Initially UIO size is equal to size of data passed to
engine, but if UIO is prepared for hash calculation an additional small space
is created to hold result of operation.

While creating space for the result, UIO I/O vector size is correctly
extended, but uio_resid field in UIO structure is not modified.

As bus_dma code uses uio_resid field to determine size of UIO DMA mapping,
resulting mapping hasn't correct size. This leads to a crash if all the
following conditions are met:

     1. Hardware cryptographic accelerator writes result of hash operation
        using DMA.
     2. Size of input data is less or equal than (n * PAGE_SIZE),
     3. Size of input data plus size of hash result is grather than
        (n * PAGE_SIZE, where n is the same as in point 2.

This patch fixes this problem by adding size of the extenstion to uio_resid
field in UIO structure.

Submitted by: Piotr Ziecik kosmo ! semihalf dot com
Reviewed by: philip
Obtained from: Semihalf

15 years agoFix minor typo.
Joel Dahl [Sat, 23 May 2009 09:24:07 +0000 (09:24 +0000)]
Fix minor typo.

15 years agoAdded two tools to check the contents of /usr/share/misc/iso* with
Edwin Groothuis [Sat, 23 May 2009 09:01:30 +0000 (09:01 +0000)]
Added two tools to check the contents of /usr/share/misc/iso* with
the data from the sources.

PR: misc/127430 and misc/misc/127428

15 years agoRework the text for the import of zic(8) at 20090523.
Edwin Groothuis [Sat, 23 May 2009 08:49:55 +0000 (08:49 +0000)]
Rework the text for the import of zic(8) at 20090523.
Suggested by Niclas Zeising (and he was absolutely right on it!)

15 years agoPreset the modified bit in the PTE when pmap_enter() is called during a
Alan Cox [Sat, 23 May 2009 07:58:56 +0000 (07:58 +0000)]
Preset the modified bit in the PTE when pmap_enter() is called during a
write fault or while wiring a mapping that must support write access.

In general, this change should reduce the number of traps that occur for
the purpose of setting the modified bit.  More specifically, this change
should prevent traps while holding locks in a sysctl handler.  See
kern/kern_sysctl.c revisions 1.168 and 1.195 (svn r192160) for further
details.

Tested by: gonzo

15 years agoUpdate share/misc/iso639
Edwin Groothuis [Sat, 23 May 2009 07:16:17 +0000 (07:16 +0000)]
Update share/misc/iso639

Snapshot was taken on 23 May 2009.

Obtained from: http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt
MFC after: 1 week

15 years ago[patch] update share/misc/iso639
Edwin Groothuis [Sat, 23 May 2009 06:40:09 +0000 (06:40 +0000)]
[patch] update share/misc/iso639

Updated against http://www.loc.gov/standards/iso639-2/langhome.html
Snapshot was taken on 16 September 2008.

PR: conf/127422
MFC after: 1 week

15 years agoMFV of tzcode2009e:
Edwin Groothuis [Sat, 23 May 2009 06:31:50 +0000 (06:31 +0000)]
MFV of tzcode2009e:

Upgrade of the tzcode from 2004a to 2009e.

Changes are numerous, but include...

- New format of the output of zic, which supports both 32 and 64
  bit time_t formats.

- zdump on 64 bit platforms will actually produce some output instead
  of doing nothing for a looooooooong time.

- linux_base-fX, with X >= at least 8, will work without problems related
  to the local time again.

The original patch, based on the 2008e, has been running for a long
time on both my laptop and desktop machine and have been tested by
other people.

After the installation of this code and the running of zic(8), you
need to run tzsetup(8) again to install the new datafile.

Approved by: wollman@ for usr.sbin/zic
MFC after: 1 month

15 years agoInclude the 2 byte length field for the optional "extra data"
Tim Kientzle [Sat, 23 May 2009 04:31:05 +0000 (04:31 +0000)]
Include the 2 byte length field for the optional "extra data"
field when computing the length of the gzip header.

Thanks to Dag-Erling for pointing me to the OpenSSH tarballs,
which are the first files I've seen that actually used this field.

15 years agoAdd zfs/zpool to rescue programs
Kip Macy [Sat, 23 May 2009 00:47:23 +0000 (00:47 +0000)]
Add zfs/zpool to rescue programs

PR: bin/125878
Submitted by: nork@
MFC after: 3 days

15 years agoFix the rpc_gss_secfind() call in nfs_commonkrpc.c so that
Rick Macklem [Sat, 23 May 2009 00:40:17 +0000 (00:40 +0000)]
Fix the rpc_gss_secfind() call in nfs_commonkrpc.c so that
the code will build when "options KGSSAPI" is specified
without requiring the proposed changes that add host based
initiator principal support. It will not handle the case where
the client uses a host based initiator principal until those
changes are committed. The code that uses those changes is
#ifdef'd notyet until the krpc rpcsec_changes are committed.

Approved by: kib (mentor)

15 years agoIt seems this file was ignored by MRT, rnh locking changes and new-arpv2.
Bjoern A. Zeeb [Sat, 23 May 2009 00:07:55 +0000 (00:07 +0000)]
It seems this file was ignored by MRT, rnh locking changes and new-arpv2.
So let the V_irtualization people finally make the disabled debugging code
compile again.

MFC after: 2 weeks
X-MFC: MRT and adapt rnh locking

15 years agoChange the sysctl_base argument to svcpool_create() to NULL for
Rick Macklem [Fri, 22 May 2009 23:22:56 +0000 (23:22 +0000)]
Change the sysctl_base argument to svcpool_create() to NULL for
client side callbacks so that leaf names are not re-used,
since they are already being used by the server.

Approved by: kib (mentor)

15 years agoIf including vnet.h one has to include opt_route.h as well. This is
Bjoern A. Zeeb [Fri, 22 May 2009 23:03:15 +0000 (23:03 +0000)]
If including vnet.h one has to include opt_route.h as well. This is
because struct vnet_net holds the rt_tables[][] for MRT and array size
is compile time dependent.  If you had ROUTETABLES set to >1 after
r192011 V_loif was pointing into nonsense leading to strange results
or even panics for some people.

Reviewed by: mz

15 years agoSet ifp->if_afdata_initialized to 0 while holding IF_AFDATA_LOCK on ifp,
Marko Zec [Fri, 22 May 2009 22:22:21 +0000 (22:22 +0000)]
Set ifp->if_afdata_initialized to 0 while holding IF_AFDATA_LOCK on ifp,
not after the lock has been released.

Reviewed by: bz
Discussed with: rwatson

15 years agoAdd myself to the src committers graph.
Jilles Tjoelker [Fri, 22 May 2009 22:13:29 +0000 (22:13 +0000)]
Add myself to the src committers graph.

Approved by: ed (mentor)

15 years agoIntroduce the if_vmove() function, which will be used in the future
Marko Zec [Fri, 22 May 2009 22:09:00 +0000 (22:09 +0000)]
Introduce the if_vmove() function, which will be used in the future
for reassigning ifnets from one vnet to another.

if_vmove() works by calling a restricted subset of actions normally
executed by if_detach() on an ifnet in the current vnet, and then
switches to the target vnet and executes an appropriate subset of
if_attach() actions there.

if_attach() and if_detach() have become wrapper functions around
if_attach_internal() and if_detach_internal(), where the later
variants have an additional argument, a flag indicating whether a
full attach or detach sequence is to be executed, or only a
restricted subset suitable for moving an ifnet from one vnet to
another.  Hence, if_vmove() will not call if_detach() and if_attach()
directly, but will call the if_detach_internal() and
if_attach_internal() variants instead, with the vmove flag set.

While here, staticize ifnet_setbyindex() since it is not referenced
from outside of sys/net/if.c.

Also rename ifccnt field in struct vimage to ifcnt, and do some minor
whitespace garbage collection where appropriate.

This change should have no functional impact on nooptions VIMAGE kernel
builds.

Reviewed by: bz, rwatson, brooks?
Approved by: julian (mentor)

15 years agoFix the name of the module common to the client and server
Rick Macklem [Fri, 22 May 2009 20:55:29 +0000 (20:55 +0000)]
Fix the name of the module common to the client and server
in the experimental nfs subsystem to the correct one for
the MODULE_DEPEND() macro.

Approved by: kib (mentor)

15 years agoExpand $FreeBSD$
Dag-Erling Smørgrav [Fri, 22 May 2009 20:07:39 +0000 (20:07 +0000)]
Expand $FreeBSD$

15 years agoChange the printf of r192595 to identify the function,
Rick Macklem [Fri, 22 May 2009 19:05:48 +0000 (19:05 +0000)]
Change the printf of r192595 to identify the function,
as requested by Sam.

Approved by: kib (mentor)

15 years agoUpgrade to OpenSSH 5.2p1.
Dag-Erling Smørgrav [Fri, 22 May 2009 18:46:28 +0000 (18:46 +0000)]
Upgrade to OpenSSH 5.2p1.

MFC after: 3 months

15 years agoPartial reversion of previous commit. The CXGB_SHUTDOWN flag does NOT
George V. Neville-Neil [Fri, 22 May 2009 18:26:47 +0000 (18:26 +0000)]
Partial reversion of previous commit.  The CXGB_SHUTDOWN flag does NOT
need to be inverted when doing an ifconfig down of an interface.

Pointed out by: Navdeep Parhar
MFC after: 1 week

15 years agoModified the printf message of r192590 to remove the
Rick Macklem [Fri, 22 May 2009 18:10:39 +0000 (18:10 +0000)]
Modified the printf message of r192590 to remove the
possible DOS attack, as suggested by Sam.

Approved by: kib (mentor)

15 years agoChange the comment at the beginning of the function to reflect the
Rick Macklem [Fri, 22 May 2009 16:46:01 +0000 (16:46 +0000)]
Change the comment at the beginning of the function to reflect the
change from panic() to printf() done by r192588.

15 years agoChange the reboot panic that would have occurred if clientid
Rick Macklem [Fri, 22 May 2009 16:41:33 +0000 (16:41 +0000)]
Change the reboot panic that would have occurred if clientid
numbers wrapped around to a printf() warning of a possible
DOS attack, in the experimental nfsv4 server.

Approved by: kib (mentor)

15 years agoMake 'struct acl' larger, as required to support NFSv4 ACLs. Provide
Edward Tomasz Napierala [Fri, 22 May 2009 15:56:43 +0000 (15:56 +0000)]
Make 'struct acl' larger, as required to support NFSv4 ACLs.  Provide
compatibility interfaces in both kernel and libc.

Reviewed by: rwatson

15 years agoModify the mount handling code in the experimental nfs client to
Rick Macklem [Fri, 22 May 2009 15:08:12 +0000 (15:08 +0000)]
Modify the mount handling code in the experimental nfs client to
use the newer nmount() style arguments, as is used by mount_nfs.c.
This prepares the kernel code for the use of a mount_nfs.c with
changes for the experimental client integrated into it.

Approved by: kib (mentor)

15 years agoFix a possible panic cxgb_controller_attach() routine that would occur
George V. Neville-Neil [Fri, 22 May 2009 15:06:03 +0000 (15:06 +0000)]
Fix a possible panic cxgb_controller_attach() routine that would occur
only if prepping the adapter failed.

Slight adjustment to comments.

Fix a bug whereby downing the interface didn't preven it from
processing packets.

Submitted by: Navdeep Parhar
MFC after: 1 week

15 years agoChange the code in the experimental nfs client to avoid flushing
Rick Macklem [Fri, 22 May 2009 15:01:47 +0000 (15:01 +0000)]
Change the code in the experimental nfs client to avoid flushing
writes upon close when a write delegation is held by the client.
This should be safe to do, now that nfsv4 Close operations are
delayed until ncl_inactive() is called for the vnode.

Approved by: kib (mentor)

15 years agoFix the comment in sys/fs/nfs/nfs.h to correctly reflect the
Rick Macklem [Fri, 22 May 2009 14:53:26 +0000 (14:53 +0000)]
Fix the comment in sys/fs/nfs/nfs.h to correctly reflect the
current use of the R_xxx flags. This changed when the
NFS_LEGACYRPC code was removed from the subsystem.

Approved by: kib (mentor)

15 years agoAdd University of Michigan removed files to ObsoleteFiles.inc.
Robert Watson [Fri, 22 May 2009 13:57:44 +0000 (13:57 +0000)]
Add University of Michigan removed files to ObsoleteFiles.inc.

Submitted by: Pawel Worach <pawel.worach at gmail.com>

15 years agoFurther idmapd garbage collection -- remove rc.d Makefile reference and
Robert Watson [Fri, 22 May 2009 13:56:16 +0000 (13:56 +0000)]
Further idmapd garbage collection -- remove rc.d Makefile reference and
default settings.

Submitted by: Pawel Worach <pawel.worach at gmail.com>

15 years agoRemove the unmaintained University of Michigan NFSv4 client from 8.x
Robert Watson [Fri, 22 May 2009 12:35:12 +0000 (12:35 +0000)]
Remove the unmaintained University of Michigan NFSv4 client from 8.x
prior to 8.0-RELEASE.  Rick Macklem's new and more feature-rich NFSv234
client and server are replacing it.

Discussed with: rmacklem

15 years agoAdd privileges for Capi4BSD to control:
Bjoern A. Zeeb [Fri, 22 May 2009 09:59:34 +0000 (09:59 +0000)]
Add privileges for Capi4BSD to control:
- controller reset/firmware loading.
- controller level tracing and tracing of capi messages of applications
  running with different user credentials.

Reviewed by: rwatson
MFC after: 2 weeks

15 years agoFix the experimental nfs server so that it depends on the nlm,
Rick Macklem [Fri, 22 May 2009 01:15:07 +0000 (01:15 +0000)]
Fix the experimental nfs server so that it depends on the nlm,
since it now calls nlm_acquire_next_sysid().

Approved by: kib (mentor)

15 years agoupdate for r192468 (monitor mode changes)
Sam Leffler [Thu, 21 May 2009 23:19:49 +0000 (23:19 +0000)]
update for r192468 (monitor mode changes)

Submitted by: jkim

15 years agoUse calloc().
Xin LI [Thu, 21 May 2009 23:00:20 +0000 (23:00 +0000)]
Use calloc().

15 years agoAdd myself to the list of ports committers.
TAKATSU Tomonari [Thu, 21 May 2009 21:21:22 +0000 (21:21 +0000)]
Add myself to the list of ports committers.

Approved by: maho (mentor)

15 years agoPullup from p4 tip:
Bruce M Simpson [Thu, 21 May 2009 18:05:17 +0000 (18:05 +0000)]
Pullup from p4 tip:
 * Fix MLDv2 general query timer (fallout from automated refactoring).
 * Refactor MLDv1 timer.
MLDv2 query processing is now working.

15 years agoWhen man pages are formatted in UTF-8, .Fl is encoded as U+2212 "MINUS
Dag-Erling Smørgrav [Thu, 21 May 2009 17:56:00 +0000 (17:56 +0000)]
When man pages are formatted in UTF-8, .Fl is encoded as U+2212 "MINUS
SIGN" instead of U+002D "HYPHEN-MINUS".  This is unfortunate for two
reasons: 1) this is not the character which is actually used on the
command line, and 2) it makes it impossible to search a man page for a
specific command-line option.

This patch fixes this, but there are other unresolved issues, such as
confusion between -, \- and hy: while the latter is always (and only)
used for hyphenation, both - and \- are used for negation and
subtraction, and \- is used for command-line options and sometimes
also for parenthesis.  IMHO, the correct Unicode characters are:

 - hyphenation: either U+2010 or U+00AD, most likely the former (the
   latter is the so-called soft hyphen, used to indicate a point at
   which a text processor is allowed to hyphenate a word)

 - negation and subtraction: U+2212

 - parenthesis: in English, U+2214, with spaces suppressed before and
   after; in some others (such as Norwegian), U+2213 with spaces
   retained.

 - command-line options: U+002D, because that is what is actually used
   on the command line.

However, fixing this would require extensive modifications to (at least)
the doc and man macro sets...

MFC after: 1 week

15 years agoDon't clear last usage when a new HID item is found, it improves parsing of
Andrew Thompson [Thu, 21 May 2009 17:55:18 +0000 (17:55 +0000)]
Don't clear last usage when a new HID item is found, it improves parsing of
Apple keyboard HID descriptors.

Submitted by: Hans Petter Selasky

15 years agoRemove README.TXT as the info is in usb(4).
Andrew Thompson [Thu, 21 May 2009 17:48:41 +0000 (17:48 +0000)]
Remove README.TXT as the info is in usb(4).

15 years agoAdd Sharp WILLCOM03 ipaq and Option GTHSDPA 3g device ids.
Andrew Thompson [Thu, 21 May 2009 17:47:27 +0000 (17:47 +0000)]
Add Sharp WILLCOM03 ipaq and Option GTHSDPA 3g device ids.

Submitted by: Hans Petter Selasky

15 years agoUse the correct usb config number on attach.
Andrew Thompson [Thu, 21 May 2009 17:45:37 +0000 (17:45 +0000)]
Use the correct usb config number on attach.

Reported by: Greg Rivers
Submitted by: Hans Petter Selasky

15 years agoFix a failure to report failure on stalled status stage for control
Andrew Thompson [Thu, 21 May 2009 17:43:35 +0000 (17:43 +0000)]
Fix a failure to report failure on stalled status stage for control
transactions.

Submitted by: Hans Petter Selasky

15 years agoAdd a driver for the AVR32 series USB Device Controller. Not hooked up as
Andrew Thompson [Thu, 21 May 2009 17:42:32 +0000 (17:42 +0000)]
Add a driver for the AVR32 series USB Device Controller. Not hooked up as
FreeBSD does not yet support this platform but it makes it easier to stay in
sync.

Submitted by: Hans Petter Selasky

15 years agoImprove device mode (gadget) stall handling.
Andrew Thompson [Thu, 21 May 2009 17:39:21 +0000 (17:39 +0000)]
Improve device mode (gadget) stall handling.

Some hardware easily comes out of sync with regard to whether the current or
the next control transfer should be stalled, if a stall command is always
issued before receiving the SETUP packet. After this patch the stall command
will only be issued when a transfer should actually be stalled.

Submitted by: Hans Petter Selasky

15 years agoUpdate usb(4) to match reality, remove section on permissions.
Andrew Thompson [Thu, 21 May 2009 17:26:20 +0000 (17:26 +0000)]
Update usb(4) to match reality, remove section on permissions.
Delete usb2_core.4.

Submitted by: Hans Petter Selasky

15 years agoFix libusb20_dev_get_device_desc and defunt xref.
Andrew Thompson [Thu, 21 May 2009 17:16:35 +0000 (17:16 +0000)]
Fix libusb20_dev_get_device_desc and defunt xref.

Submitted by: Hans Petter Selasky

15 years agoPullup svn source to p4 top of tree:
Bruce M Simpson [Thu, 21 May 2009 17:01:38 +0000 (17:01 +0000)]
Pullup svn source to p4 top of tree:
 * Fix LOR in MLDv2 query input path.
 * Strip embedded KAME scope IDs for on-wire IPv6 address comparisons.

15 years agoEnable secure TTY input buffer flushing by default.
Ed Schouten [Thu, 21 May 2009 16:48:06 +0000 (16:48 +0000)]
Enable secure TTY input buffer flushing by default.

I'm leaving the sysctl there. If people really notice a slowdown, they
can revert to the old behaviour.

Discussed with: kib

15 years agoModify src/etc/mtree/BSD.include.dist and src/include/Makefile
Rick Macklem [Thu, 21 May 2009 16:27:47 +0000 (16:27 +0000)]
Modify src/etc/mtree/BSD.include.dist and src/include/Makefile
so that the .h files in src/sys/fs/nfs will be installed under
/usr/include/fs/nfs. This will allow the following utilities to
build, once additions and changes for the experimental nfs subsystem
are committed:
usr.sbin/mountd - Once modified to add support for the
  experimental nfs subsystem.
ur.sbin/nfsstat - Once modified to add support for the
  experimental nfs subsystem.
usr.sbin/nfscbd - The client side callback daemon for NFSv4.
usr.sbin/nfsuserd - The NFSv4 user/group name<->uid/gid mapping daemon.
usr.sbin/nfsdumpstate - The NFSv4 utility for dumping open/lock state.
usr.sbin/nfsrevoke - The sysadmin command for revoking NFSv4 state.

Approved by: kib (mentor)

15 years agoAdd a new sysctl: kern.tty_inq_flush_secure.
Ed Schouten [Thu, 21 May 2009 16:19:54 +0000 (16:19 +0000)]
Add a new sysctl: kern.tty_inq_flush_secure.

When enabled all TTY input queue buffers are zeroed when flushing or
closing the TTY. Because TTY input queues are also used to store filled
in passwords, this may be an interesting switch to enable for security
minded people.

15 years agoOnly use the ABI compat shim for vfs.bufspace if the old buffer is smaller
John Baldwin [Thu, 21 May 2009 16:18:45 +0000 (16:18 +0000)]
Only use the ABI compat shim for vfs.bufspace if the old buffer is smaller
than a long.

PR: amd64/134786
Submitted by: Emil Mikulic  emikulic| gmail
MFC after: 3 days

15 years agorssi/nf data are now dbm, tag them accordingly
Sam Leffler [Thu, 21 May 2009 15:30:59 +0000 (15:30 +0000)]
rssi/nf data are now dbm, tag them accordingly

15 years agoo remove bpf tap call missed in r192468
Sam Leffler [Thu, 21 May 2009 15:30:29 +0000 (15:30 +0000)]
o remove bpf tap call missed in r192468
o correct rssi taken from rx descriptor; need dbm

15 years agoIntegrate three changes from Chelsio.
George V. Neville-Neil [Thu, 21 May 2009 15:08:03 +0000 (15:08 +0000)]
Integrate three changes from Chelsio.

1) Add a sysctl that will say what type of PHYs exist on the card.
2) Fix a bug that occurs when an AEL 2005 PHY resets without a transciever
in the card.
3) Unify the PHY link detection code.

Obtained from: Navdeep Parhar
MFC after: 10 days

15 years agoFix the comment at line 3711 to be consistent with the change
Rick Macklem [Thu, 21 May 2009 14:52:36 +0000 (14:52 +0000)]
Fix the comment at line 3711 to be consistent with the change
applied for r192537.

Approved by: kib (mentor)

15 years agoModified the attach and detach routines to handle bringing ports up
George V. Neville-Neil [Thu, 21 May 2009 14:43:12 +0000 (14:43 +0000)]
Modified the attach and detach routines to handle bringing ports up
and down more cleanly.  This addresses a problem where if we have the
link flap during boot the driver would lock up the system.

Reviewed by: jhb
MFC after: 1 week

15 years agoAttempt to clarify some confusing wording regarding atomic_load() and
John Baldwin [Thu, 21 May 2009 13:39:46 +0000 (13:39 +0000)]
Attempt to clarify some confusing wording regarding atomic_load() and
atomic_store().

15 years agoMove the M_WAITOK flag in notify() into an M_NOWAIT one in order to match
Attilio Rao [Thu, 21 May 2009 13:22:07 +0000 (13:22 +0000)]
Move the M_WAITOK flag in notify() into an M_NOWAIT one in order to match
the behaviour alredy present with the further malloc() call in
devctl_notify().
This fixes a bug in the CAM layer where the camisr handler finished to
call camperiphfree() (and subsequently destroy_dev() resulting in a new
dev notify) while the xpt lock is held.

PR: kern/130330
Tested by: Riccardo Torrini <riccardo dot torrini at esaote dot com>

15 years agoLargely revert the earlier change to use a single CCB for the RAID recovery
John Baldwin [Thu, 21 May 2009 12:36:40 +0000 (12:36 +0000)]
Largely revert the earlier change to use a single CCB for the RAID recovery
thread.  Multiple RAID events in quick succession can cause an additional
bus rescan to be scheduled before an earlier scan has completed.  In this
case the driver was attempting to use the same CCB storage for two requests.

PR: kern/130330
Reviewed by: Riccardo Torrini  riccardo.torrini | esaote com
MFC after: 1 week