]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoFollow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation
dds [Sun, 20 Sep 2009 15:17:40 +0000 (15:17 +0000)]
Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation
of the y (translate) command.

"If a backslash character is immediately followed by a backslash
character in string1 or string2, the two backslash characters shall
be counted as a single literal backslash character"

Pointed by: Marius Strobl
Obtained from: Mac OS X

14 years agoAdd correct test results.
dds [Sun, 20 Sep 2009 15:04:50 +0000 (15:04 +0000)]
Add correct test results.

14 years agoDescribe how other systems treat this case.
dds [Sun, 20 Sep 2009 14:20:00 +0000 (14:20 +0000)]
Describe how other systems treat this case.

14 years agoAllow [ to be used as a delimiter.
dds [Sun, 20 Sep 2009 14:11:33 +0000 (14:11 +0000)]
Allow [ to be used as a delimiter.

Pointed by: Marius Strobl
Obtained from: Apple

14 years agoThe transition to Subversion allows us to rename files without
dds [Sun, 20 Sep 2009 13:39:44 +0000 (13:39 +0000)]
The transition to Subversion allows us to rename files without
repo-copy hacks.
Remove the test-number prefix from the name of the output files,
so that new test cases can be easily added.

14 years agoPurge namecache in the same place OpenSolaris does.
pjd [Sun, 20 Sep 2009 13:28:29 +0000 (13:28 +0000)]
Purge namecache in the same place OpenSolaris does.

14 years agoRe-remove the IBM0057 ID used for PS/2 mouse controllers. The asl for the
jhb [Sun, 20 Sep 2009 13:28:19 +0000 (13:28 +0000)]
Re-remove the IBM0057 ID used for PS/2 mouse controllers.  The asl for the
61p includes the hotkey device as IBM0068 and the mouse as IBM0057 similar
to other systems.

Submitted by: marius
MFC after: 3 days

14 years agoOld (a.out) rtld attempts to mmap zero-length region, e.g. when bss
kib [Sun, 20 Sep 2009 12:40:56 +0000 (12:40 +0000)]
Old (a.out) rtld attempts to mmap zero-length region, e.g. when bss
of the linked object is zero-length. More old code assumes that mmap
of zero length returns success.

For a.out and pre-8 ELF binaries, allow the mmap of zero length.

Reported by: tegge
Reviewed by: tegge, alc, jhb
MFC after: 3 days

14 years agoFix handling of sctp_drain().
tuexen [Sun, 20 Sep 2009 11:33:39 +0000 (11:33 +0000)]
Fix handling of sctp_drain().

Approved by: rrs (mentor)
MFC after: 2 month

14 years agoFix errnos.
tuexen [Sun, 20 Sep 2009 11:32:22 +0000 (11:32 +0000)]
Fix errnos.

Approved by: rrs(mentor)
MFC after: 3 days.

14 years agoExtract version information from git repositories. Try to find a
mlaier [Sat, 19 Sep 2009 21:46:12 +0000 (21:46 +0000)]
Extract version information from git repositories. Try to find a
corresponding svn version if this is a git-svn clone'ed repo.
This prefers svn version information over git in case a working
directory has both .svn and .git directories.

MFC after: 3 days
X-MFC: not stable/8 before 8.0

14 years agoTell about the full name we opened, not the unit.
mjacob [Sat, 19 Sep 2009 20:36:43 +0000 (20:36 +0000)]
Tell about the full name we opened, not the unit.

Obtained from: Sean Bruno
MFC after: 1 month

14 years agoRemember to unlock the peripheral prior to notifying the user. Make some
mjacob [Sat, 19 Sep 2009 20:25:54 +0000 (20:25 +0000)]
Remember to unlock the peripheral prior to notifying the user. Make some
allocations M_NOWAIT so that we don't try and sleep with a nested non-sleepable
lock.

This makes the userland scsi_target begin to function again.

Obtained from: Sean Bruno
MFC after: 1 month

14 years agoAdd getpagesizes(3). This functions either the number of supported page
alc [Sat, 19 Sep 2009 18:01:32 +0000 (18:01 +0000)]
Add getpagesizes(3).  This functions either the number of supported page
sizes or some number of the sizes themselves.  It is functionally
compatible with a function by the same name under Solaris.

Reviewed by: jhb

14 years agoMake the keyboard layer Unicode aware.
ed [Sat, 19 Sep 2009 17:56:26 +0000 (17:56 +0000)]
Make the keyboard layer Unicode aware.

Just take keyent_t to use an u_int to store the Unicode codepoints.
Unfortunately the keymap is now too big to be loaded using an ioctl
argument, so change the ioctl to pick a pointer.

This change breaks kbdcontrol ABI. It doesn't break X11, because X11
doesn't do anything with syscons keymaps. It just switches the device
out of K_XLATE.

Obtained from: //depot/user/ed/newcons/...

14 years agoUse appropriate locking when using interface list.
tuexen [Sat, 19 Sep 2009 14:55:12 +0000 (14:55 +0000)]
Use appropriate locking when using interface list.

Approved by: rrs (mentor)
MFC after: 1 month.

14 years agoFix the disabling of sctp_drain().
tuexen [Sat, 19 Sep 2009 14:18:42 +0000 (14:18 +0000)]
Fix the disabling of sctp_drain().

Approved by: rrs (mentor)
MFC after: 1 month.

14 years agoGet SCTP working in combination with VIMAGE.
tuexen [Sat, 19 Sep 2009 14:02:16 +0000 (14:02 +0000)]
Get SCTP working in combination with VIMAGE.
Contains code from bz.
Approved by: rrs (mentor)
MFC after: 1 month.

14 years agointpm/sb700: force polling mode if configured interrupt is SMI
avg [Sat, 19 Sep 2009 08:56:28 +0000 (08:56 +0000)]
intpm/sb700: force polling mode if configured interrupt is SMI

instead of failing to attach

14 years agoChange cache attribute for VESA frame buffer from UC to write-combining.
jkim [Sat, 19 Sep 2009 04:36:38 +0000 (04:36 +0000)]
Change cache attribute for VESA frame buffer from UC to write-combining.
This improves scrolling speed for high resolution graphics mode console.

14 years agoCorrect BIOS header sanitizing on pc98.
nyan [Sat, 19 Sep 2009 03:33:18 +0000 (03:33 +0000)]
Correct BIOS header sanitizing on pc98.

MFC after: 3 days

14 years agoWhen superpages are enabled, add the 2 or 4MB page size to the array of
alc [Fri, 18 Sep 2009 17:09:33 +0000 (17:09 +0000)]
When superpages are enabled, add the 2 or 4MB page size to the array of
supported page sizes.

Reviewed by: jhb
MFC after: 3 weeks

14 years agoAdd a new sysctl for reporting all of the supported page sizes.
alc [Fri, 18 Sep 2009 17:04:57 +0000 (17:04 +0000)]
Add a new sysctl for reporting all of the supported page sizes.

Reviewed by: jhb
MFC after: 3 weeks

14 years agoJust use ttydisc_rint_simple() instead of doing it ourselves.
ed [Fri, 18 Sep 2009 15:39:09 +0000 (15:39 +0000)]
Just use ttydisc_rint_simple() instead of doing it ourselves.

This code seems to do exactly the same as ttydisc_rint_simple() does
nowadays. Just remove it.

Obtained from: //depot/user/ed/newcons/sys/dev/syscons/syscons.c

14 years agoReturn ENOBUFS consistently if user attempts to exceed
bms [Fri, 18 Sep 2009 15:12:31 +0000 (15:12 +0000)]
Return ENOBUFS consistently if user attempts to exceed
in_mcast_maxsocksrc resource limit.

Submitted by: syrinx
MFC after: 3 days

14 years agoHave sparc64 join the separate livefs crowd. Including the docs packages
kensmith [Fri, 18 Sep 2009 14:53:01 +0000 (14:53 +0000)]
Have sparc64 join the separate livefs crowd.  Including the docs packages
on disc1 (needed now by sysinstall) overflows the target CDROM iso size.

MFC after: 3 days

14 years agoFix setfib(1) section number.
brueffer [Fri, 18 Sep 2009 14:17:00 +0000 (14:17 +0000)]
Fix setfib(1) section number.

PR: 133765
Submitted by: Konstantin Zolotukhin <erebus@gorodok.net>
MFC after: 3 days

14 years agoFix mdoc, typos, contractions.
brueffer [Fri, 18 Sep 2009 14:05:56 +0000 (14:05 +0000)]
Fix mdoc, typos, contractions.

This includes:
PR: 135520
Submitted by: Nobuyuki Koganemaru
Patch by: gavin
MFC after: 3 days

14 years agoDon't allocate new unnecessary pages when devstat_alloc() looses the
attilio [Fri, 18 Sep 2009 13:48:38 +0000 (13:48 +0000)]
Don't allocate new unnecessary pages when devstat_alloc() looses the
run for re-acuiring the lock, but recheck if new pages are allocatable
from the pool and free the previously allocated ones.

Tested by: pho, Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>

14 years agoSpell Israel correctly.
ed [Fri, 18 Sep 2009 13:44:39 +0000 (13:44 +0000)]
Spell Israel correctly.

Submitted by: Alexey Savartsov <asavartsov gmail com>
PR: bin/138580

14 years agoCall mwl_rxdma_cleanup() if there was an error setting up the RX DMA.
rpaulo [Fri, 18 Sep 2009 12:25:31 +0000 (12:25 +0000)]
Call mwl_rxdma_cleanup() if there was an error setting up the RX DMA.

14 years agoStyle fix - break too long a line in two.
zec [Fri, 18 Sep 2009 09:03:23 +0000 (09:03 +0000)]
Style fix - break too long a line in two.

Spotted by: bz
MFC after: 3 days

14 years agoo DragonflyBSD 2.4.0 added.
maxim [Fri, 18 Sep 2009 07:07:34 +0000 (07:07 +0000)]
o DragonflyBSD 2.4.0 added.

14 years agoVarious mdoc, spelling etc fixes.
brueffer [Fri, 18 Sep 2009 00:33:47 +0000 (00:33 +0000)]
Various mdoc, spelling etc fixes.

MFC after: 3 days

14 years agoFixed markup.
ru [Thu, 17 Sep 2009 19:15:49 +0000 (19:15 +0000)]
Fixed markup.

14 years agoChange the default transport protocol for use by the Mount protocol
rmacklem [Thu, 17 Sep 2009 19:08:15 +0000 (19:08 +0000)]
Change the default transport protocol for use by the Mount protocol
from UDP to TCP, so that it is consistent with TCP for NFS, which
became the default at r176198. Without this change, doing an NFS mount
against a server that only supports UDP would result in an unusable
mount point if a transport protocol option wasn't specified for the
mount.

Approved by: kib (mentor)
MFC after: 3 days

14 years agoAdd a knob to show 'Starting foo:' messages when faststart is used,
dougb [Thu, 17 Sep 2009 19:05:47 +0000 (19:05 +0000)]
Add a knob to show 'Starting foo:' messages when faststart is used,
such as at boot time.

14 years agoFix the style of the previous commit.
rdivacky [Thu, 17 Sep 2009 17:48:13 +0000 (17:48 +0000)]
Fix the style of the previous commit.

Approved by: ed (mentor, implicit)

14 years agoMake these argument/variable unsigned as the defines for them don't fit
rdivacky [Thu, 17 Sep 2009 17:41:28 +0000 (17:41 +0000)]
Make these argument/variable unsigned as the defines for them don't fit
into signed 32bit integer.

Approved by: ed (mentor, implicit)
Approved by: sson

14 years agoPurge file system namecache when receiving incremental stream and rolling back
pjd [Thu, 17 Sep 2009 15:14:28 +0000 (15:14 +0000)]
Purge file system namecache when receiving incremental stream and rolling back
to it.

MFC after: 3 days

14 years agoSupport for VNET in SCTP (hopefully)
rrs [Thu, 17 Sep 2009 15:11:12 +0000 (15:11 +0000)]
Support for VNET in SCTP (hopefully)

14 years agoPurge namecache for the file system being rolled back, so it doesn't point at
pjd [Thu, 17 Sep 2009 14:58:21 +0000 (14:58 +0000)]
Purge namecache for the file system being rolled back, so it doesn't point at
invalid vnodes after the rollback resulting in EIO errors when trying to access
files which are in the namecache.

Reported by: des
MFC after: 3 days

14 years agoV_irtualize the lltables list, making ARP and ND reasonably
zec [Thu, 17 Sep 2009 14:52:15 +0000 (14:52 +0000)]
V_irtualize the lltables list, making ARP and ND reasonably
usable again with options VIMAGE kernels.

Submitted by: bz (the original version, probably identical to this one)
Reviewed by: many @ DevSummit Cambridge
MFC after: 3 days

14 years agoMake libc.a provide __stack_chk_fail_local weak alias. This is
kan [Thu, 17 Sep 2009 13:21:53 +0000 (13:21 +0000)]
Make libc.a provide __stack_chk_fail_local weak alias. This is
needed to satisfy static libraries that are compiled with -fpic
and linked into static binary afterwards. Several libraries in
gcc are examples of such static libs.

14 years agoCorrect a sysctl name.
brueffer [Thu, 17 Sep 2009 13:12:24 +0000 (13:12 +0000)]
Correct a sysctl name.

PR: 137689
Submitted by: Thomas Mueller <tmueller@sysgo.com>
MFC after: 3 days

14 years agoFix an xref.
brueffer [Thu, 17 Sep 2009 13:09:08 +0000 (13:09 +0000)]
Fix an xref.

PR: 138833
Submitted by: Alex Keda <admin@lissyara.su>
MFC after: 3 days

14 years agoFix the example, -w is the right switch for write failure probability.
brueffer [Thu, 17 Sep 2009 13:04:46 +0000 (13:04 +0000)]
Fix the example, -w is the right switch for write failure probability.

PR: 136219
Submitted by: Kouki Hashimoto <hsmtkk@gmail.com>
Patch by: gavin
MFC after: 3 days

14 years agoAllocate space for the group array in a static credential used in
brooks [Thu, 17 Sep 2009 12:35:13 +0000 (12:35 +0000)]
Allocate space for the group array in a static credential used in
the quota code.  One case was correctly handled in r194498, but
this one was missed.

PR: kern/138657
Tested by: PR submitter
MFC after: 3 days

14 years agoSync driver with Yahoo:
scottl [Wed, 16 Sep 2009 23:27:14 +0000 (23:27 +0000)]
Sync driver with Yahoo:

- Implement MSI support (MSIX support was already there)
- Use a table to drive MSI/MSIX exceptions
- Pre-calculate the command address instead of wasting cycles doing the
  calculation on every i/o.

14 years agoFix locking around copyout() operations.
scottl [Wed, 16 Sep 2009 23:17:22 +0000 (23:17 +0000)]
Fix locking around copyout() operations.

14 years agoMake MSI and PERFORMANT interrupts work correctly. Only require the minimum
scottl [Wed, 16 Sep 2009 23:10:10 +0000 (23:10 +0000)]
Make MSI and PERFORMANT interrupts work correctly.  Only require the minimum
number of MSIX interrupts that are needed, and don't strictly check for 4.
Enable enough interrupt mask bits so that the controller will generate
interrupts in PERFORMANT mode.  This fixes the hang-on-boot issues that
people were seeing with newer controllers.

14 years agoIncrease CISS_MAX_PHYSTGT to 256 so that it matches what the controller might
scottl [Wed, 16 Sep 2009 22:52:20 +0000 (22:52 +0000)]
Increase CISS_MAX_PHYSTGT to 256 so that it matches what the controller might
give us.  Without this, certain data structures get sized incorrectly, leading
to a panic on certain cards that want to use high-value target numbers.

14 years agoThe buffer returned by fgenln is not a "C" string and might not be NUL
sepotvin [Wed, 16 Sep 2009 19:53:29 +0000 (19:53 +0000)]
The buffer returned by fgenln is not a "C" string and might not be NUL
terminated. Make sure that it is before using it.

Reviewed by: marck@
MFC after: 3 days

14 years agoFix a bug reported by Daniel Mentz:
tuexen [Wed, 16 Sep 2009 14:23:31 +0000 (14:23 +0000)]
Fix a bug reported by Daniel Mentz:
When authenticating DATA chunks some DATA chunks
might get stuck when the MTU gets decreased via
an ICMP message.

Approved by: rrs (mentor)
MFC after: immediately

14 years agoWhen checking traffic endpoint's adresses families in key_spdadd(),
vanhu [Wed, 16 Sep 2009 11:56:44 +0000 (11:56 +0000)]
When checking traffic endpoint's adresses families in key_spdadd(),
compare them together instead of comparing each one with respective
tunnel endpoint.

PR: kern/138439
Submitted by: aurelien.ansel@netasq.com
Obtained from: NETASQ
MFC after: 1 m

14 years agoRemove trailing spaces.
edwin [Wed, 16 Sep 2009 07:55:02 +0000 (07:55 +0000)]
Remove trailing spaces.

14 years agoExtend the keyboard character size to 24 bits.
ed [Wed, 16 Sep 2009 07:01:11 +0000 (07:01 +0000)]
Extend the keyboard character size to 24 bits.

Because we use an int to store keyboard chacacters and their flags, we
can easily store the flags in the top byte instead of the second byte.
This means it's a lot easier to make Unicode work.

The only change that still needs to be made, is that keyent_t's map is
extended to u_int.

Obtained from: //depot/projects/newcons/sys/sys/kbio.h

14 years agoFix an off-by-one error in the marking of the O_CH operator
dds [Wed, 16 Sep 2009 06:32:23 +0000 (06:32 +0000)]
Fix an off-by-one error in the marking of the O_CH operator
following an OOR2 operator.

PR: 130504
MFC after: 2 weeks

14 years agoAdd a couple of debugging statements.
dds [Wed, 16 Sep 2009 06:29:23 +0000 (06:29 +0000)]
Add a couple of debugging statements.

14 years agoAdd the ability to see TCP timers via netstat -x. This can be a useful
silby [Wed, 16 Sep 2009 05:33:15 +0000 (05:33 +0000)]
Add the ability to see TCP timers via netstat -x.  This can be a useful
feature when you have a seemingly stuck socket and want to figure
out why it has not been closed yet.

No plans to MFC this, as it changes the netstat sysctl ABI.

Reviewed by: andre, rwatson, Eric Van Gyzen

14 years agoAdd EV_RECEIPT to kevents.
sson [Wed, 16 Sep 2009 03:49:54 +0000 (03:49 +0000)]
Add EV_RECEIPT to kevents.

EV_RECEIPT is useful to disambiguating error conditions when multiple
events structures are passed to kevent(2).  The error code is returned
in the data field and EV_ERROR is set.

Approved by: rwatson (co-mentor)

14 years agoAdd the EV_DISPATCH flag to kevents.
sson [Wed, 16 Sep 2009 03:37:39 +0000 (03:37 +0000)]
Add the EV_DISPATCH flag to kevents.

When the EV_DISPATCH flag is used the event source will be disabled
immediately after the delivery of an event.   This is similar to the
EV_ONESHOT flag but it doesn't delete the event.

Approved by: rwatson (co-mentor)

14 years agoAdd EVFILT_USER to kevents.
sson [Wed, 16 Sep 2009 03:30:12 +0000 (03:30 +0000)]
Add EVFILT_USER to kevents.

Add user events support to kernel events which are not associated with any
kernel mechanism but are triggered by user level code.  This is useful for
adding user level events to an event handler that may also be monitoring
kernel events.

Approved by: rwatson (co-mentor)

14 years agoAdd optional touch event filter hooks to kevents.
sson [Wed, 16 Sep 2009 03:15:57 +0000 (03:15 +0000)]
Add optional touch event filter hooks to kevents.

The touch event filter is called when a kernel event data is possibly
updated.  There are two hook points.  First, during a kevent() system
call.  Second, when an event has been triggered.

Approved by: rwatson (co-mentor)

14 years ago-Put the optimized soreceive_stream() under a compile time option called
andre [Tue, 15 Sep 2009 22:23:45 +0000 (22:23 +0000)]
-Put the optimized soreceive_stream() under a compile time option called
TCP_SORECEIVE_STREAM for the time being.

Requested by: brooks

Once compiled in make it easily switchable for testers by using a tuneable
 net.inet.tcp.soreceive_stream
and a corresponding read-only sysctl to report the current state.

Suggested by: rwatson

MFC after: 2 days
-This line, and those below, will be ignored--
> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

M    sys/conf/options
M    sys/kern/uipc_socket.c
M    sys/netinet/tcp_subr.c
M    sys/netinet/tcp_usrreq.c

14 years agoReverting the previous change for now. Some users reports the patch
qingli [Tue, 15 Sep 2009 22:09:42 +0000 (22:09 +0000)]
Reverting the previous change for now. Some users reports the patch
fixes their issues but one reports a failure in NFS ROOT. Revert
the change for now pending further investigation.

Reviewed by: bz
MFC after: immediately

14 years agoAdd two test cases from PR 130504.
dds [Tue, 15 Sep 2009 21:15:29 +0000 (21:15 +0000)]
Add two test cases from PR 130504.
An additional one coming from http://www.research.att.com/~gsf/testregex/
was not added; at some point the entire AT&T regression test harness
should be imported here.
But that would also mean commitment to fix the uncovered errors.

PR: 130504
Submitted by: Chris Kuklewicz

14 years agoSelf pointing routes are installed for configured interface addresses
qingli [Tue, 15 Sep 2009 19:18:34 +0000 (19:18 +0000)]
Self pointing routes are installed for configured interface addresses
and address aliases. After an interface is brought down and brought
back up again, those self pointing routes disappeared. This patch
ensures after an interface is brought back up, the loopback routes
are reinstalled properly.

Reviewed by: bz
MFC after: immediately

14 years agoThis patch enables the node to respond to ARP requests for
qingli [Tue, 15 Sep 2009 18:39:27 +0000 (18:39 +0000)]
This patch enables the node to respond to ARP requests for
configured proxy ARP entries.

Reviewed by: bz
MFC after: immediately

14 years agoUse explicit int values for the device states in order to allow,
attilio [Tue, 15 Sep 2009 16:59:52 +0000 (16:59 +0000)]
Use explicit int values for the device states in order to allow,
if necessary, in the future, adds of new states without breaking ABI
between revisions.

Proposed by: kib
Approved by: imp

14 years agoFix sched_switch_migrate():
attilio [Tue, 15 Sep 2009 16:56:17 +0000 (16:56 +0000)]
Fix sched_switch_migrate():
- In 8.x and above the run-queue locks are nomore shared even in the
  HTT case, so remove the special case.
- The deadlock explained in the removed comment here is still possible
  even with different locks, with the contribution of tdq_lock_pair().
  An explanation is here:
  (hypotesis: a thread needs to migrate on another CPU, thread1 is doing
  sched_switch_migrate() and thread2 is the one handling the sched_switch()
  request or in other words, thread1 is the thread that needs to migrate
  and thread2 is a thread that is going to be preempted, most likely an
  idle thread. Also, 'old' is referred to the context (in terms of
  run-queue and CPU) thread1 is leaving and 'new' is referred to the
  context thread1 is going into.  Finally, thread3 is doing tdq_idletd()
  or sched_balance() and definitively doing tdq_lock_pair())

  * thread1 blocks its td_lock. Now td_lock is 'blocked'
  * thread1 drops its old runqueue lock
  * thread1 acquires the new runqueue lock
  * thread1 adds itself to the new runqueue and sends an IPI_PREEMPT
    through tdq_notify() to the new CPU
  * thread1 drops the new lock
  * thread3, scanning the runqueues, locks the old lock
  * thread2 received the IPI_PREEMPT and does thread_lock() with td_lock
    pointing to the new runqueue
  * thread3 wants to acquire the new runqueue lock, but it can't because
    it is held by thread2 so it spins
  * thread1 wants to acquire old lock, but as long as it is held by
    thread3 it can't
  * thread2 going further, at some point wants to switchin in thread1,
    but it will wait forever because thread1->td_lock is in blocked state

This deadlock has been manifested mostly on 7.x and reported several time
on mailing lists under the voice 'spinlock held too long'.
Many thanks to des@ for having worked hard on producing suitable textdumps
and Jeff for help on the comment wording.

Reviewed by: jeff
Reported by: des, others
Tested by: des, Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>
(STABLE_7 based version)

14 years agoForced unmounts work just fine in my tests under heavy load. There might
pjd [Tue, 15 Sep 2009 11:42:08 +0000 (11:42 +0000)]
Forced unmounts work just fine in my tests under heavy load. There might
still be a problem, but it isn't worth a warning.

14 years agoWe believe ZFS is ready for production use. Remove a warning about it being
pjd [Tue, 15 Sep 2009 11:34:53 +0000 (11:34 +0000)]
We believe ZFS is ready for production use. Remove a warning about it being
experimental. :)

14 years agoAccomodate old style XPT_IMMED_NOTIFY and XPT_NOTIFY_ACK so that
mjacob [Tue, 15 Sep 2009 02:25:03 +0000 (02:25 +0000)]
Accomodate old style XPT_IMMED_NOTIFY and XPT_NOTIFY_ACK so that
we at least don't panic.

We don't really support dual role mode (INITIATOR/TARGET) any more. We
should but it's broken and will take a fair amount of effort to fix
and correctly manage both initiator and target roles sharing the port
database. So, for now, disallow it.

14 years agoSimply remove the code instead of using "#if 0".
qingli [Tue, 15 Sep 2009 02:22:57 +0000 (02:22 +0000)]
Simply remove the code instead of using "#if 0".

Pointed out by sam

14 years agoThe bootp code installs an interface address and the nfs client
qingli [Tue, 15 Sep 2009 01:01:03 +0000 (01:01 +0000)]
The bootp code installs an interface address and the nfs client
module tries to install the same address again. This extra code
is removed, which was discovered by the removal of a call to
in_ifscrub() in r196714. This call to in_ifscrub is put back here
because the SIOCAIFADDR command can be used to change the prefix
length of an existing alias.

Reviewed by:    kmacy

14 years agoFix some instances where CAM rescans get hung up or take a long time to
ken [Tue, 15 Sep 2009 00:15:24 +0000 (00:15 +0000)]
Fix some instances where CAM rescans get hung up or take a long time to
complete.

Also, allow xpt_rescan() to rescan a LUN instead of a full bus.

MFC after: 3 days
Sponsored by: Copan Systems, Inc.

14 years agoRestore (undocumented) support for early revisions and add more comments.
jkim [Mon, 14 Sep 2009 23:08:19 +0000 (23:08 +0000)]
Restore (undocumented) support for early revisions and add more comments.

Reported by: kris

14 years agoPreviously local end of point-to-point interface is not reachable
qingli [Mon, 14 Sep 2009 22:19:47 +0000 (22:19 +0000)]
Previously local end of point-to-point interface is not reachable
within the system that owns the interface. Packets destined to
the local end point leak to the wire towards the default gateway
if one exists. This behavior is changed as part of the L2/L3
rewrite efforts. The local end point is now reachable within the
system. The inpcb code needs to consider this fact during the
address selection process.

Reviewed by: bz
MFC after: immediately

14 years agoUse %zu for size_t.
rpaulo [Mon, 14 Sep 2009 21:33:00 +0000 (21:33 +0000)]
Use %zu for size_t.
Fix printf format string (again)

Pointed out by: bde, ed

14 years ago- Mount ZFS snapshots with MNT_IGNORE flag, so they are not visible in regular
pjd [Mon, 14 Sep 2009 21:10:40 +0000 (21:10 +0000)]
- Mount ZFS snapshots with MNT_IGNORE flag, so they are not visible in regular
  df(1) and mount(8) output. This is a bit smilar to OpenSolaris and follows
  ZFS route of not listing snapshots by default with 'zfs list' command.
- Add UPDATING entry to note that ZFS snapshots are no longer visible in
  mount(8) and df(1) output by default.

Reviewed by: kib
MFC after: 3 days

14 years agoModify mount(8) to skip MNT_IGNORE file systems by default, just like df(1)
pjd [Mon, 14 Sep 2009 21:08:22 +0000 (21:08 +0000)]
Modify mount(8) to skip MNT_IGNORE file systems by default, just like df(1)
does. This is not POLA violation, because there is no single file system in the
base that use MNT_IGNORE currently, although ZFS snapshots will be mounted with
MNT_IGNORE after next commit.

Reviewed by: kib
MFC after: 3 days

14 years agoProtect cross-script invocation by checking that the target script exists.
emaste [Mon, 14 Sep 2009 16:52:38 +0000 (16:52 +0000)]
Protect cross-script invocation by checking that the target script exists.
This allows pruning of rc.d scripts without getting too many ugly boottime
error messages.

Inspired by phk's r128714 change to netif.

14 years agoFix previous commit. I got it backwards.
rpaulo [Mon, 14 Sep 2009 16:16:07 +0000 (16:16 +0000)]
Fix previous commit. I got it backwards.

MFC after: 1 week

14 years agoFix printf format string in asmc_key_dump().
rpaulo [Mon, 14 Sep 2009 15:53:30 +0000 (15:53 +0000)]
Fix printf format string in asmc_key_dump().

Spotted by: tinderbox
MFC after: 1 week

14 years agoJohn Baldwin suggested that 'stolen memory' only happens in the case of
n_hibma [Mon, 14 Sep 2009 13:16:16 +0000 (13:16 +0000)]
John Baldwin suggested that 'stolen memory' only happens in the case of
i810 and therefore is useful info there. Aperture size and stolen memory
are now printed on one line.

Submitted by: jhb

14 years agoMake the sudden motion sensor work on older models and add a bit of
rpaulo [Mon, 14 Sep 2009 11:46:43 +0000 (11:46 +0000)]
Make the sudden motion sensor work on older models and add a bit of
debugging.

Submitted by: Christoph Langguth <christoph at rosenkeller.org>
MFC after: 1 week

14 years agoImprove the way failure of pthread_key_create() gets detected.
edwin [Mon, 14 Sep 2009 11:20:45 +0000 (11:20 +0000)]
Improve the way failure of pthread_key_create() gets detected.

PR: threads/138603
Submitted by: Mikulas Patocka
MFC after: 1 week

14 years agoEnable BIOS modes on amd64.
delphij [Mon, 14 Sep 2009 05:38:03 +0000 (05:38 +0000)]
Enable BIOS modes on amd64.

Submitted by: paradox <ddkprog at yahoo com>

14 years agoLast character is a space for the international currency symbol.
edwin [Sun, 13 Sep 2009 22:17:23 +0000 (22:17 +0000)]
Last character is a space for the international currency symbol.

14 years agoANSIfy, whitespace and comment adjustments, to simplify comparing these
emaste [Sun, 13 Sep 2009 21:51:01 +0000 (21:51 +0000)]
ANSIfy, whitespace and comment adjustments, to simplify comparing these
files with NetBSD / OpenBSD versions.

14 years agoSupport both case: when snapshot is already mounted and when it is not yet
pjd [Sun, 13 Sep 2009 21:40:36 +0000 (21:40 +0000)]
Support both case: when snapshot is already mounted and when it is not yet
mounted.

MFC after: 3 days

14 years agoLock the ifnet list while iterating over it.
zec [Sun, 13 Sep 2009 21:30:18 +0000 (21:30 +0000)]
Lock the ifnet list while iterating over it.

Submitted by: julian
MFC after: 3 days

14 years agoCorrect a copy and paste error using the variable name from the
bz [Sun, 13 Sep 2009 20:19:02 +0000 (20:19 +0000)]
Correct a copy and paste error using the variable name from the
legacy IP handling rather than the IPv6 version.

Reported by: Pegasus Mc Cleaft (ken mthelicon.com)
Tested by: Pegasus Mc Cleaft (ken mthelicon.com)
MFC after: 2 days
X-MFX with: r197139

14 years agoMake sure we never place the cursor outside the screen.
ed [Sun, 13 Sep 2009 18:45:59 +0000 (18:45 +0000)]
Make sure we never place the cursor outside the screen.

For some vague reason, it may be possible that scp->cursor_pos exceeds
scp->ysize * scp->xsize. This means that teken_set_cursor() may get
called with an invalid position. Just ignore the old cursor position in
this case.

Reported by: Paul B. Mahol <onemda gmail com>
MFC after: 1 month

14 years agoFixes two bugs:
rrs [Sun, 13 Sep 2009 17:45:31 +0000 (17:45 +0000)]
Fixes two bugs:
1) A lock issue, if we ever had to try again
   we would double lock the INP lock.
2) We were allowing (at wrap) associd 0... which really
   we cannot allow since 0 normally means in most socket
   API calls that we are wishing to effect something on
   the INP not TCB.

MFC after: 1 week

14 years agoAdd missing \n.
pjd [Sun, 13 Sep 2009 17:30:56 +0000 (17:30 +0000)]
Add missing \n.

Reported by: marck

14 years agoWork-around READDIRPLUS problem with .zfs/ and .zfs/snapshot/ directories
pjd [Sun, 13 Sep 2009 16:05:20 +0000 (16:05 +0000)]
Work-around READDIRPLUS problem with .zfs/ and .zfs/snapshot/ directories
by just returning EOPNOTSUPP. This will allow NFS server to fall back to
regular READDIR.

Note that converting inode number to snapshot's vnode is expensive operation.
Snapshots are stored in AVL tree, but based on their names, not inode numbers,
so to convert inode to snapshot vnode we have to interate over all snalshots.

This is not a problem in OpenSolaris, because in their READDIRPLUS
implementation they use VOP_LOOKUP() on d_name, instead of VFS_VGET() on
d_fileno as we do.

PR: kern/125149
Reported by: Weldon Godfrey <wgodfrey@ena.com>
Analysis by: Jaakko Heinonen <jh@saunalahti.fi>
MFC after: 3 days

14 years agoRevert r196779 in order to implement a different scheme for newbus locking
attilio [Sun, 13 Sep 2009 15:08:19 +0000 (15:08 +0000)]
Revert r196779 in order to implement a different scheme for newbus locking
methodology.

Requested by: imp

14 years agoFactor out the duplicated macro for the device type used in the
marius [Sun, 13 Sep 2009 14:47:31 +0000 (14:47 +0000)]
Factor out the duplicated macro for the device type used in the
OFW device tree for PCI bridges and add a new one for PCI Express.
While at it, take advantage of the former for the rman(9) work-
around in jbusppm(4).