]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoSmall cleanup, add (spurious) quotation marks around the value
Doug Barton [Sat, 30 May 2009 21:51:38 +0000 (21:51 +0000)]
Small cleanup, add (spurious) quotation marks around the value
for name= to make these scripts consistent with the rest.

15 years agoNow that the last of the *.sh scripts are gone from the base,
Doug Barton [Sat, 30 May 2009 21:41:54 +0000 (21:41 +0000)]
Now that the last of the *.sh scripts are gone from the base,
emit a warning if come across one.

15 years agodistribute sysctl decls so global variables can be made static
Sam Leffler [Sat, 30 May 2009 20:11:23 +0000 (20:11 +0000)]
distribute sysctl decls so global variables can be made static

15 years agoo assert TDMA_MAXSLOTS is 2 so noone tries to blindly increase it
Sam Leffler [Sat, 30 May 2009 19:57:31 +0000 (19:57 +0000)]
o assert TDMA_MAXSLOTS is 2 so noone tries to blindly increase it
o add safety belt in vdetach for failed state block allocation
o fix dynamic change to tdma config; ERESTART may not result in
  kicking the state machine so we need to explicitly mark the
  beacon for update

Sponsored by:

15 years agoRemoval of early.sh
Doug Barton [Sat, 30 May 2009 19:39:57 +0000 (19:39 +0000)]
Removal of early.sh

15 years agoAs previously advertised, remove this script prior to the 8.0 branch.
Doug Barton [Sat, 30 May 2009 19:38:51 +0000 (19:38 +0000)]
As previously advertised, remove this script prior to the 8.0 branch.

15 years agoFix NETIF_DEBUG compilation.
Marcel Moolenaar [Sat, 30 May 2009 19:28:38 +0000 (19:28 +0000)]
Fix NETIF_DEBUG compilation.

15 years agowork around snapshot shutdown race reported by Henri Hennebert
Kip Macy [Sat, 30 May 2009 19:26:35 +0000 (19:26 +0000)]
work around snapshot shutdown race reported by Henri Hennebert

15 years agoPrint the returned port number when RPC_DEBUG is defined.
Marcel Moolenaar [Sat, 30 May 2009 19:23:09 +0000 (19:23 +0000)]
Print the returned port number when RPC_DEBUG is defined.
This improves debugging.

15 years agoUnbreak build.
Attilio Rao [Sat, 30 May 2009 18:39:22 +0000 (18:39 +0000)]
Unbreak build.

Pointy hat to: attilio

15 years agomaintain existing style
Sam Leffler [Sat, 30 May 2009 18:23:55 +0000 (18:23 +0000)]
maintain existing style

15 years agoFix return values appropriately.
Attilio Rao [Sat, 30 May 2009 17:56:19 +0000 (17:56 +0000)]
Fix return values appropriately.

Tested by: zec

15 years agoInclude libmd and libcrypto in DPADD
Tim Kientzle [Sat, 30 May 2009 17:26:55 +0000 (17:26 +0000)]
Include libmd and libcrypto in DPADD

15 years agos/rk_npkts/rx_npkts
Attilio Rao [Sat, 30 May 2009 17:25:14 +0000 (17:25 +0000)]
s/rk_npkts/rx_npkts

Reported by: zec

15 years agoEven though I'm not quite sure that the call_func stuff will work properly
Adrian Chadd [Sat, 30 May 2009 15:20:25 +0000 (15:20 +0000)]
Even though I'm not quite sure that the call_func stuff will work properly
in all the places/cases IPI messages will be generated, at least be consistent
with how the call_data pointer is assigned and cleared (ie, all done inside
the spinlock.

Ensure that its NULL before continuing, just to try and identify situations
where things are going horribly wrong.

15 years agoWhen user_frac in the polling subsystem is low it is going to busy the
Attilio Rao [Sat, 30 May 2009 15:14:44 +0000 (15:14 +0000)]
When user_frac in the polling subsystem is low it is going to busy the
CPU for too long period than necessary.  Additively, interfaces are kept
polled (in the tick) even if no more packets are available.
In order to avoid such situations a new generic mechanism can be
implemented in proactive way, keeping track of the time spent on any
packet and fragmenting the time for any tick, stopping the processing
as soon as possible.

In order to implement such mechanism, the polling handler needs to
change, returning the number of packets processed.
While the intended logic is not part of this patch, the polling KPI is
broken by this commit, adding an int return value and the new flag
IFCAP_POLLING_NOCOUNT (which will signal that the return value is
meaningless for the installed handler and checking should be skipped).

Bump __FreeBSD_version in order to signal such situation.

Reviewed by: emaste
Sponsored by: Sandvine Incorporated

15 years agoDon't schedule a CALL_FUNCTION_VECTOR software IPI if the IPI was signaled
Adrian Chadd [Sat, 30 May 2009 14:59:08 +0000 (14:59 +0000)]
Don't schedule a CALL_FUNCTION_VECTOR software IPI if the IPI was signaled
via the bitmap (and thus sent via RESCHEDULE_VECTOR.)

15 years agoBump __FreeBSD_version after addition of VOP_ACCESSX(9).
Edward Tomasz Napierala [Sat, 30 May 2009 14:01:01 +0000 (14:01 +0000)]
Bump __FreeBSD_version after addition of VOP_ACCESSX(9).

15 years agoAdd VOP_ACCESSX, which can be used to query for newly added V*
Edward Tomasz Napierala [Sat, 30 May 2009 13:59:05 +0000 (13:59 +0000)]
Add VOP_ACCESSX, which can be used to query for newly added V*
permissions, such as VWRITE_ACL.  For a filsystems that don't
implement it, there is a default implementation, which works
as a wrapper around VOP_ACCESS.

Reviewed by: rwatson@

15 years agoAdds missing sysctl to manage the vtag_time_wait time. This will
Randall Stewart [Sat, 30 May 2009 11:14:41 +0000 (11:14 +0000)]
Adds missing sysctl to manage the vtag_time_wait time. This will
even allow disabling time-wait all together if you set the value
to 0 (not advisable actually). The default remains the same
i.e. 60 seconds.

15 years agoFix a small memory leak from the nr-sack code - the mapping array
Randall Stewart [Sat, 30 May 2009 10:56:27 +0000 (10:56 +0000)]
Fix a small memory leak from the nr-sack code - the mapping array
was not being freed at term of association. Also get rid of
the MICHAELS_EXP code.

15 years agoMake sctp_uio user to kernel structure match the
Randall Stewart [Sat, 30 May 2009 10:50:40 +0000 (10:50 +0000)]
Make sctp_uio user to kernel structure match the
socket-api draft. Two fields were uint32_t when they
should have been uint16_t.

Reported by Jonathan Leighton at U-del.

15 years agorm, find -delete: fix removing symlinks with uchg/uappnd set.
Jilles Tjoelker [Sat, 30 May 2009 10:42:19 +0000 (10:42 +0000)]
rm, find -delete: fix removing symlinks with uchg/uappnd set.

Formerly, this tried to clear the flags on the symlink's target
instead of the symlink itself.

As before, this only happens for root or for the unlink(1) variant of rm.

PR: bin/111226 (part of)
Submitted by: Martin Kammerhofer
Approved by: ed (mentor)
MFC after: 3 weeks

15 years agoPreserve file flags on symlinks in cp -Rp.
Jilles Tjoelker [Sat, 30 May 2009 10:36:14 +0000 (10:36 +0000)]
Preserve file flags on symlinks in cp -Rp.
This reported ENOSYS before.

PR: bin/111226 (part of)
Submitted by: Martin Kammerhofer
Approved by: ed (mentor)
MFC after: 3 weeks

15 years agoMake ipi_cpu() function as intended.
Adrian Chadd [Sat, 30 May 2009 08:53:13 +0000 (08:53 +0000)]
Make ipi_cpu() function as intended.

IPI's in Xen are implemented through hypervisor event channels.
The MP code creates a pair of IRQs for each base IPI per CPU
(one for IPI function dispatch calls, one for IPI bitmap dispatch calls.)
Using PCPU_GET() was returning the IRQ of the IPI handler for the
current CPU; thus calls to ipi_cpu() were sending itself a message.
Instead, looking up the IPI in the target CPU ipi-to-irq map is needed.

Note: This doesn't fix Xen SMP (far from it!) but it at least
sends IPI's to the right places. Next - sending IPIs..

PR: 135069

15 years agoAttempt to fix build by updating hostid to follow the new world order.
Xin LI [Sat, 30 May 2009 07:33:32 +0000 (07:33 +0000)]
Attempt to fix build by updating hostid to follow the new world order.

15 years agoLink libarchive against -lmd and -lcrypto.
Tim Kientzle [Sat, 30 May 2009 07:08:16 +0000 (07:08 +0000)]
Link libarchive against -lmd and -lcrypto.

Thanks to Ed Schouten for the clue.

15 years agoCorrectly report the IPI IRQs being created; make it clear what vectors they are...
Adrian Chadd [Sat, 30 May 2009 06:37:03 +0000 (06:37 +0000)]
Correctly report the IPI IRQs being created; make it clear what vectors they are for.

15 years agofix typo
Sam Leffler [Sat, 30 May 2009 01:33:05 +0000 (01:33 +0000)]
fix typo

15 years agoRevert the size_t part of the last commit for the moment, this blows up the
Andrew Thompson [Sat, 30 May 2009 00:22:57 +0000 (00:22 +0000)]
Revert the size_t part of the last commit for the moment, this blows up the
USB_ADD_BYTES macro.

15 years agovalidate tx rate(s) in the raw xmit path
Sam Leffler [Fri, 29 May 2009 23:41:31 +0000 (23:41 +0000)]
validate tx rate(s) in the raw xmit path

Tested by: "Paul B. Mahol" <onemda@gmail.com> (rum, bwi)

15 years agoadd ieee80211_isratevalid
Sam Leffler [Fri, 29 May 2009 23:39:16 +0000 (23:39 +0000)]
add ieee80211_isratevalid

15 years agoCode cleanup for nfs4 utilities:
Xin LI [Fri, 29 May 2009 22:19:45 +0000 (22:19 +0000)]
Code cleanup for nfs4 utilities:

 - Mark internal routines as static;
 - Eliminate unused parameters where possible, mark __unused for others;
 - Remove unused variables;
 - Use %jd for int64_t values in printf();
 - Add appropriate %d for printf to match its parameter;
 - Rename a variable to resolve conflict with revoke(2);

Reviewed by: rmacklem
Tested with: make universe (bugs are mine)

15 years agoFix function arguments were previously they matched the typedef by accident.
Andrew Thompson [Fri, 29 May 2009 22:11:22 +0000 (22:11 +0000)]
Fix function arguments were previously they matched the typedef by accident.

15 years agoPlace hostnames and similar information fully under the prison system.
Jamie Gritton [Fri, 29 May 2009 21:27:12 +0000 (21:27 +0000)]
Place hostnames and similar information fully under the prison system.
The system hostname is now stored in prison0, and the global variable
"hostname" has been removed, as has the hostname_mtx mutex.  Jails may
have their own host information, or they may inherit it from the
parent/system.  The proper way to read the hostname is via
getcredhostname(), which will copy either the hostname associated with
the passed cred, or the system hostname if you pass NULL.  The system
hostname can still be accessed directly (and without locking) at
prison0.pr_host, but that should be avoided where possible.

The "similar information" referred to is domainname, hostid, and
hostuuid, which have also become prison parameters and had their
associated global variables removed.

Approved by: bz (mentor)

15 years agoFix some inaccuracies in the extensible parameter addition.
Jamie Gritton [Fri, 29 May 2009 21:17:22 +0000 (21:17 +0000)]
Fix some inaccuracies in the extensible parameter addition.

Approved by: bz (mentor)

15 years ago- Use sig_atomic_t for signal handler variables.
Ulf Lilleengen [Fri, 29 May 2009 20:01:50 +0000 (20:01 +0000)]
- Use sig_atomic_t for signal handler variables.

MFC after: 1 week

15 years agoo Add missed quotation mark.
Maxim Konovalov [Fri, 29 May 2009 19:45:39 +0000 (19:45 +0000)]
o Add missed quotation mark.

15 years ago- Move from mount(2) to nmount(2). This should allow to convert MNT_SNAPSHOT
Pawel Jakub Dawidek [Fri, 29 May 2009 19:18:41 +0000 (19:18 +0000)]
- Move from mount(2) to nmount(2). This should allow to convert MNT_SNAPSHOT
  flag from a mount flag to FS-specific flag.
- Simplify usage. Instead of 'mksnap_ffs /mnt/foo /mnt/foo/snap' allow to
  give only one argument: 'mksnap_ffs /mnt/foo/snap'. Old usage is also
  accepted for now.
- Add an example of how to mount a snapshot.

15 years agoUpdate __FreeBSD_version after addition of mnt_xflag. Add a note
Edward Tomasz Napierala [Fri, 29 May 2009 18:50:27 +0000 (18:50 +0000)]
Update __FreeBSD_version after addition of mnt_xflag.  Add a note
to UPDATING.

15 years agos/usb2_/usb_/ on all typedefs for the USB stack.
Andrew Thompson [Fri, 29 May 2009 18:46:57 +0000 (18:46 +0000)]
s/usb2_/usb_/ on all typedefs for the USB stack.

15 years agoModify vm_hold_load_pages() to allocate pages using VM_ALLOC_NOOBJ rather
Alan Cox [Fri, 29 May 2009 18:35:51 +0000 (18:35 +0000)]
Modify vm_hold_load_pages() to allocate pages using VM_ALLOC_NOOBJ rather
than using the kernel object.  This allows the elimination of page queues
locking from vm_hold_free_pages().

15 years ago- Prevent buffer overflow in IPFilter's load_http function used to load
Stanislav Sedov [Fri, 29 May 2009 16:24:23 +0000 (16:24 +0000)]
- Prevent buffer overflow in IPFilter's load_http function used to load
  ipfilter tables via http by the user-level ippool utility. Previously
  the 1024-byte buffer used to store a http request coudld easily overflow
  if the length of the hostname part of the url passes exceeded 496 bytes. [1]
- Use snprintf to prevent possieble buffer overflows in future. [2]
- Do not try to close the descriptor twice on failure. [2]

Reported by: Maksymilian Arciemowicz <cxib@securityreason.com> [1]
Obtained from: NetBSD CVS [2]
MFC after: 2 weeks

15 years agoFree device strings.
Andrew Thompson [Fri, 29 May 2009 16:15:56 +0000 (16:15 +0000)]
Free device strings.

Spotted by: HPS

15 years agoThere is only one spare MNT_ flag left, and I want to use it for NFSv4 ACLs.
Edward Tomasz Napierala [Fri, 29 May 2009 15:00:04 +0000 (15:00 +0000)]
There is only one spare MNT_ flag left, and I want to use it for NFSv4 ACLs.
Make room for additional filesystem flags now, to avoid breaking ABI later.

Reviewed by: kib@

15 years agoMinor style tweak.
Robert Watson [Fri, 29 May 2009 14:25:51 +0000 (14:25 +0000)]
Minor style tweak.

15 years agoSince sched_pin() and sched_unpin() are already inlined, don't manually
Robert Watson [Fri, 29 May 2009 14:20:10 +0000 (14:20 +0000)]
Since sched_pin() and sched_unpin() are already inlined, don't manually
inline in rmlocks.

15 years agoRemove extra cpu_spinwait() invocations. This should really only be used
John Baldwin [Fri, 29 May 2009 14:03:34 +0000 (14:03 +0000)]
Remove extra cpu_spinwait() invocations.  This should really only be used
in tight spin loops, not in these edge cases where we restart a much
larger loop only a few times.

Reviewed by: attilio

15 years agoTweak a few comments on adaptive spinning.
John Baldwin [Fri, 29 May 2009 13:56:34 +0000 (13:56 +0000)]
Tweak a few comments on adaptive spinning.

15 years agoRevert to 2-clause.
Adrian Chadd [Fri, 29 May 2009 13:48:42 +0000 (13:48 +0000)]
Revert to 2-clause.

15 years agoFix the Xen TOD update when the hypervisor wall clock is nudged.
Adrian Chadd [Fri, 29 May 2009 13:43:21 +0000 (13:43 +0000)]
Fix the Xen TOD update when the hypervisor wall clock is nudged.

The "wall clock" in the current code is actually the hypervisor start time.
The time of day is the "start time" plus the hypervisor "uptime".

Large enough bumps in the dom0 clock lead to a hypervisor "bump" which is
implemented as a bump in the start time, not the uptime. The clock.c routines
were reading in the hypervisor start time and then using this as the TOD.
This meant that any hypervisor time bump would cause the FreeBSD DomU to
set its TOD to the hypervisor start time, rather than the actual TOD.

This fix is a bit hacky and some reshuffling should be done later on
to clarify what is going on. I've left the wall clock code alone.
(The code which updates shadow_tv and shadow_tv_version.)
A new routine adds the uptime to the shadow_tv, which is then used to
update the TOD.

I've included some debugging so it is obvious when the clock is nudged.

PR: 135008

15 years agoMigrate the Xen hypervisor clock reading routines into something
Adrian Chadd [Fri, 29 May 2009 13:36:06 +0000 (13:36 +0000)]
Migrate the Xen hypervisor clock reading routines into something
sharable.

15 years agoMake the rmlock(9) interface a bit more like the rwlock(9) interface:
Robert Watson [Fri, 29 May 2009 10:52:37 +0000 (10:52 +0000)]
Make the rmlock(9) interface a bit more like the rwlock(9) interface:

- Add rm_init_flags() and accept extended options only for that variation.
- Add a flags space specifically for rm_init_flags(), rather than borrowing
  the lock_init() flag space.
- Define flag RM_RECURSE to use instead of LO_RECURSABLE.
- Define flag RM_NOWITNESS to allow an rmlock to be exempt from WITNESS
  checking; this wasn't possible previously as rm_init() always passed
  LO_WITNESS when initializing an rmlock's struct lock.
- Add RM_SYSINIT_FLAGS().
- Rename embedded mutex in rmlocks to make it more obvious what it is.
- Update consumers.
- Update man page.

15 years agoadds new device IDs.
Weongyo Jeong [Fri, 29 May 2009 10:10:23 +0000 (10:10 +0000)]
adds new device IDs.

PR: usb/135009
Submitted by: Bill Squire <billsf at 2600.COM>

15 years agoLet vfs_lookup() return ENOTDIR if the path has a trailing slash and
Dag-Erling Smørgrav [Fri, 29 May 2009 10:02:44 +0000 (10:02 +0000)]
Let vfs_lookup() return ENOTDIR if the path has a trailing slash and
the last component is a symlink to something that isn't a directory.

We introduce a new namei flag, TRAILINGSLASH, which is set by lookup()
if the last component is followed by a slash.  The trailing slash is
then stripped, as before.  If the final component is a symlink,
lookup() will return to namei(), which will expand the symlink and
call lookup() with the new path.  When all symlinks have been
resolved, lookup() checks if the TRAILINGSLASH flag is set, and if it
is, and the vnode it ended up with is not a directory, it returns
ENOTDIR.

PR: kern/21768
Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
MFC after: 3 weeks

15 years agoFix misleading comment.
Dag-Erling Smørgrav [Fri, 29 May 2009 09:52:13 +0000 (09:52 +0000)]
Fix misleading comment.

MFC after: 1 week

15 years agoReduce vertical whitespace and other minor style tweaks.
Robert Watson [Fri, 29 May 2009 09:40:57 +0000 (09:40 +0000)]
Reduce vertical whitespace and other minor style tweaks.

Remove unused rm_initialized() macro.

15 years agoThe patch for r193011 was partially rejected when applied, complete it.
Attilio Rao [Fri, 29 May 2009 08:01:48 +0000 (08:01 +0000)]
The patch for r193011 was partially rejected when applied, complete it.

15 years agoDocument how to enable strict RFC 1034 enforcements.
Xin LI [Fri, 29 May 2009 07:55:44 +0000 (07:55 +0000)]
Document how to enable strict RFC 1034 enforcements.

PR: kern/129477

15 years agoAdd an option to enforce strict RFC 1034 compliance.
Xin LI [Fri, 29 May 2009 07:34:54 +0000 (07:34 +0000)]
Add an option to enforce strict RFC 1034 compliance.

PR: kern/129477

15 years agoMake dump -W show the level correctly.
Brian Somers [Fri, 29 May 2009 07:26:44 +0000 (07:26 +0000)]
Make dump -W show the level correctly.

PR: 129110
Submitted by: Mike Voorhis <mvoorhis@cs.wpi.edu>
MFC after: 3 weeks

15 years agoAdd an EXIT STATUS section to the manual page. Currently, nc(1)
Xin LI [Fri, 29 May 2009 07:18:31 +0000 (07:18 +0000)]
Add an EXIT STATUS section to the manual page.  Currently, nc(1)
does not follow sysexits(3), and returns 1 for all error cases.

PR: docs/126451

15 years agoLast minute TTY API change: remove mutex argument from tty_alloc().
Ed Schouten [Fri, 29 May 2009 06:41:23 +0000 (06:41 +0000)]
Last minute TTY API change: remove mutex argument from tty_alloc().

I don't want people to override the mutex when allocating a TTY. It has
to be there, to keep drivers like syscons happy. So I'm creating a
tty_alloc_mutex() which can be used in those cases. tty_alloc_mutex()
should eventually be removed.

The advantage of this approach, is that we can just remove a function,
without breaking the regular API in the future.

15 years agoImplement SI_ISALIST.
Xin LI [Fri, 29 May 2009 06:27:30 +0000 (06:27 +0000)]
Implement SI_ISALIST.

PR: kern/91293
Submitted by: "Pedro f. Giffuni" <giffunip asme org>
Obtained from: NetBSD

15 years agoFix the sysinfo(SI_HW_SERIAL, emulation so that we actually get the
Xin LI [Fri, 29 May 2009 06:19:37 +0000 (06:19 +0000)]
Fix the sysinfo(SI_HW_SERIAL, emulation so that we actually get the
hostid of the machine rather than always getting "0".

PR: kern/91293
Submitted by: "Pedro f. Giffuni" <giffunip asme org>
Obtained from: NetBSD

15 years agocopyinstr(9) takes parameter 'len' as a size_t *, not int *.
Xin LI [Fri, 29 May 2009 06:04:26 +0000 (06:04 +0000)]
copyinstr(9) takes parameter 'len' as a size_t *, not int *.

PR: kern/91293
Submitted by: "Pedro f. Giffuni" <giffunip asme org>
Obtained from: NetBSD

15 years agode-register.
Xin LI [Fri, 29 May 2009 05:58:46 +0000 (05:58 +0000)]
de-register.

Submitted by: "Pedro f. Giffuni" <giffunip asme org>
Obtained from: NetBSD
PR: kern/91293

15 years agosvr4_sys_getdents64() should not assume that the cookie would exist
Xin LI [Fri, 29 May 2009 05:51:19 +0000 (05:51 +0000)]
svr4_sys_getdents64() should not assume that the cookie would exist
everywhere.

PR: kern/91293
Submitted by: "Pedro f. Giffuni" <giffunip asme org>
Obtained from: NetBSD

15 years agoAdd new sysconfig bits, Fix the bogus numbering of the old bits.
Xin LI [Fri, 29 May 2009 05:37:27 +0000 (05:37 +0000)]
Add new sysconfig bits, Fix the bogus numbering of the old bits.

Submitted by: "Pedro f. Giffuni" <giffunip asme org>
Obtained from: NetBSD
PR: kern/91293

15 years agoReverse the logic for ADAPTIVE_SX option and enable it by default.
Attilio Rao [Fri, 29 May 2009 01:49:27 +0000 (01:49 +0000)]
Reverse the logic for ADAPTIVE_SX option and enable it by default.
Introduce for this operation the reverse NO_ADAPTIVE_SX option.
The flag SX_ADAPTIVESPIN to be passed to sx_init_flags(9) gets suppressed
and the new flag, offering the reversed logic, SX_NOADAPTIVE is added.

Additively implements adaptive spininning for sx held in shared mode.
The spinning limit can be handled through sysctls in order to be tuned
while the code doesn't reach the release, after which time they should
be dropped probabilly.

This change has made been necessary by recent benchmarks where it does
improve concurrency of workloads in presence of high contention
(ie. ZFS).

KPI breakage is documented by __FreeBSD_version bumping, manpage and
UPDATING updates.

Requested by: jeff, kmacy
Reviewed by: jeff
Tested by: pho

15 years agoUpdate netcat to the version carried with OpenBSD 4.5.
Xin LI [Thu, 28 May 2009 23:23:49 +0000 (23:23 +0000)]
Update netcat to the version carried with OpenBSD 4.5.

15 years agoVendor import of netcat as of OPENBSD_4_5.
Xin LI [Thu, 28 May 2009 23:16:17 +0000 (23:16 +0000)]
Vendor import of netcat as of OPENBSD_4_5.

15 years agoUse prototype for usage(). This makes perror(1) WARNS=6 clean.
Xin LI [Thu, 28 May 2009 21:37:40 +0000 (21:37 +0000)]
Use prototype for usage().  This makes perror(1) WARNS=6 clean.

Approved by: gnn

15 years agoUse strlcpy().
Xin LI [Thu, 28 May 2009 21:12:43 +0000 (21:12 +0000)]
Use strlcpy().

15 years agoChange the "-4" argument for nfsd and mountd to "-e" to avoid
Rick Macklem [Thu, 28 May 2009 20:28:13 +0000 (20:28 +0000)]
Change the "-4" argument for nfsd and mountd to "-e" to avoid
confusion, since it does not refer to IPv4 nor NFSv4, but to
running the experimental server instead of the regular one.

Approved by: kib (mentor)

15 years agoFix missed change from usb2_gen_descriptor to usb_gen_descriptor
Andrew Thompson [Thu, 28 May 2009 20:21:01 +0000 (20:21 +0000)]
Fix missed change from usb2_gen_descriptor to usb_gen_descriptor

15 years agoAdd the kernel build glue for the experimental NFS subsystem that
Rick Macklem [Thu, 28 May 2009 19:45:11 +0000 (19:45 +0000)]
Add the kernel build glue for the experimental NFS subsystem that
includes support for NFSv4. The subsystem can optionally be linked
into the kernel using the two options:
  NFSCL - the client
  NFSD - the server
It is also built as three modules:
  nfscl - the client
  nfsd - the server
  nfscommon - functions shared by the client and server

Approved by: kib (mentor)

15 years agoMake *getpages()s' assertion on the state of each page's dirty bits
Alan Cox [Thu, 28 May 2009 18:11:09 +0000 (18:11 +0000)]
Make *getpages()s' assertion on the state of each page's dirty bits
stricter.

15 years agos/usb2_/usb_/ on all C structs for the USB stack.
Andrew Thompson [Thu, 28 May 2009 17:36:36 +0000 (17:36 +0000)]
s/usb2_/usb_/ on all C structs for the USB stack.

15 years agoNobody spoke up, so assume my interpretation was correct and enable keyword
Dag-Erling Smørgrav [Thu, 28 May 2009 17:35:35 +0000 (17:35 +0000)]
Nobody spoke up, so assume my interpretation was correct and enable keyword
expansion for this file.

15 years agoFix style/grammar issues in fail(9) man page.
Zachary Loafman [Thu, 28 May 2009 15:02:52 +0000 (15:02 +0000)]
Fix style/grammar issues in fail(9) man page.

Suggested by:       Ben Kaduk
Approved by:        dfr (mentor)

15 years agoMatch type for socket option (in practice, unnecessary, but stylistically it's a...
Zachary Loafman [Thu, 28 May 2009 15:02:44 +0000 (15:02 +0000)]
Match type for socket option (in practice, unnecessary, but stylistically it's a little nicer).

Suggested by:       jilles
Approved by:        dfr (mentor)

15 years agoRevert unnecessary memset after calloc.
Zachary Loafman [Thu, 28 May 2009 15:02:21 +0000 (15:02 +0000)]
Revert unnecessary memset after calloc.

Suggested by:       jhb
Approved by:        dfr (mentor)

15 years agoUse a temporary variable to avoid a duplicate strlen().
Dag-Erling Smørgrav [Thu, 28 May 2009 10:24:26 +0000 (10:24 +0000)]
Use a temporary variable to avoid a duplicate strlen().

Submitted by: kib
MFC after: 1 week

15 years agoSome of the boot loader code only works on a ufs file system, but it
Doug Rabson [Thu, 28 May 2009 08:22:36 +0000 (08:22 +0000)]
Some of the boot loader code only works on a ufs file system, but it
uses the generic struct dirent, which happens to look identical to UFS's
struct direct.  If BSD ever changes dirent then this will be a problem.

Submitted by: matthew dot fleming at isilon dot com

15 years agoMFdevbranch 192944
Kip Macy [Thu, 28 May 2009 08:18:12 +0000 (08:18 +0000)]
MFdevbranch 192944
 - add FreeBSD implementation of xdrmem_control needed by zfs
 - have zfs define xdr_ops using FreeBSD's definition
 - remove solaris xdr files from zfs compile

15 years agoUpdate this script so that it handles different ruleset failures
Brian Somers [Thu, 28 May 2009 07:43:06 +0000 (07:43 +0000)]
Update this script so that it handles different ruleset failures
differently.  The output now shows the ruleset and shortens to
slightly different text (using $daily_status_mail_rejects_shorten),
but it should be more descriptive.

PR: 35018
Inspired by: Mikhail Teterin - mi at aldan dot algebra dot com
MFC after: 3 weeks

15 years agoChange vm_object_page_remove() such that it clears the page's dirty bits
Alan Cox [Thu, 28 May 2009 07:26:36 +0000 (07:26 +0000)]
Change vm_object_page_remove() such that it clears the page's dirty bits
when it invalidates the page.

Suggested by: tegge

15 years agoFix off by one error in acl_create_entry(3).
Edward Tomasz Napierala [Thu, 28 May 2009 07:20:52 +0000 (07:20 +0000)]
Fix off by one error in acl_create_entry(3).

Reviewed by: rwatson@
MFC after: 2 weeks

15 years agoRevise vm_pageout_scan()'s handling of partially dirty pages. Specifically,
Alan Cox [Thu, 28 May 2009 06:52:14 +0000 (06:52 +0000)]
Revise vm_pageout_scan()'s handling of partially dirty pages.  Specifically,
rather than unconditionally making partially dirty pages fully dirty, only
make partially dirty pages fully dirty if the pmap says that the page has
been modified.

(This change is also a small optimization.  It eliminate an unnecessary call
to pmap_is_modified() on pages that are mapped read only.)

Suggested by: tegge

15 years agochar can be unsigned, like on ARM and PowerPC. Unbreak the
Marcel Moolenaar [Thu, 28 May 2009 04:25:38 +0000 (04:25 +0000)]
char can be unsigned, like on ARM and PowerPC. Unbreak the
build for those by propagating the type of character from
char to int.

15 years agoSay hello to a very basic, read-only, Xen Hypervisor RTC.
Adrian Chadd [Thu, 28 May 2009 04:17:05 +0000 (04:17 +0000)]
Say hello to a very basic, read-only, Xen Hypervisor RTC.

The hypervisor doesn't provide a single "TOD" - it instead provides a
"start time" and a "running time". These are added together to form
the current TOD. The TOD is in UTC.

This RTC is only (initially) designed to be read at startup. There's
some further poking that needs to happen to pick up hypervisor time
changes (ie, by the Dom0 time being adjusted by something). This
time adjustment currently can cause "weird stuff" in the DomU clock;
I'll begin investigating and repairing that in subsequent commits.

PR: 135008

15 years agoDon't call the watch callback if its NULL.
Adrian Chadd [Thu, 28 May 2009 04:03:16 +0000 (04:03 +0000)]
Don't call the watch callback if its NULL.

I'm not sure what series of events is leading up to this watch event
being received with no callback info and it should be investigated.
I'm triggering it somehow by registering an RTC device (which will
show up in a subsequent commit.)

15 years agoAdd a regression test for multiple threads of the same process acquiring the same...
Zachary Loafman [Thu, 28 May 2009 02:39:07 +0000 (02:39 +0000)]
Add a regression test for multiple threads of the same process acquiring the same fcntl lock.

Approved by:        dfr (mentor)

15 years agoCorrect off-by-one issue in truss(1) which happens when system call number
Xin LI [Thu, 28 May 2009 00:38:24 +0000 (00:38 +0000)]
Correct off-by-one issue in truss(1) which happens when system call number
is nsyscalls.

PR: bin/134916
Submitted by: Steven Hartland <steven hartland multiplay co uk>
MFC after: 2 weeks

15 years agoAllocate the usb serial, manufacturer and product strings rather than use char
Andrew Thompson [Wed, 27 May 2009 23:12:02 +0000 (23:12 +0000)]
Allocate the usb serial, manufacturer and product strings rather than use char
arrays in the usb_device struct. This also eliminates USB_HAVE_STRINGS.

15 years agoFix lockstat breakage to arm/powerpc buildworld.
Stacey Son [Wed, 27 May 2009 22:41:28 +0000 (22:41 +0000)]
Fix lockstat breakage to arm/powerpc buildworld.
Thanks to IBM char's are unsigned on arm/powerpc.

Approved by: gnn (mentor)

15 years agoModify mountd to handle the experimental nfs server as well as the
Rick Macklem [Wed, 27 May 2009 22:02:54 +0000 (22:02 +0000)]
Modify mountd to handle the experimental nfs server as well as the
regular one. It now takes a "-4" command line argument to force it
to use the experimental server. Otherwise it will use the regular
server unless the experimental server is the only one linked into
the kernel. A third kind of line has been added to /etc/exports,
which is specific to NFSv4 and defines where the NFSv4 tree root is
and can be used to limit access to NFSv4 state handling operations
that do not use any file handle.

Approved by: kib (mentor)

15 years agoRework interrupt bringup and teardown.
George V. Neville-Neil [Wed, 27 May 2009 20:13:36 +0000 (20:13 +0000)]
Rework interrupt bringup and teardown.

Calculate the exact number of vectors we'll use before calling
pci_alloc_msix.  Don't grab nine all the time.

Call cxgb_setup_interrupts once per T3, not once per port.  Ditto
for cxgb_teardown_interrupts.

Don't leak resources when interrupt setup fails in the middle.

Obtained from: Navdeep Parhar
MFC after: 10 days

15 years agoAdd support for the experimental nfs client to mount_nfs. The
Rick Macklem [Wed, 27 May 2009 19:56:51 +0000 (19:56 +0000)]
Add support for the experimental nfs client to mount_nfs. The
experimental client is used when the fstype is "newnfs" or the "nfsv4"
option is specified. It includes the addition of the option:
  gssname - to specify a client side initiator host based principal name
which is specific to NFSv4.
It also includes a change to mount.c, so that it knows about
mount_newnfs, but not mount_nfs4.

Reviewed by: dfr
Approved by: kib (mentor)