123218 Commits

Author SHA1 Message Date
flz
7130a0ce76 MFC r180566: Don't set PACKAGE_BUILDING while installing packages. 2008-07-31 15:58:48 +00:00
yongari
ebdae5769c MFC r180869
Fix buffer discard index.
  While I'm here dicard all buffers if errored frame is part of
  multi-segmented frames.
2008-07-31 01:22:24 +00:00
jhb
9a32df7dd6 In 6.x, the various shminfo fields are int rather than u_long. 2008-07-30 21:31:29 +00:00
jhb
0e62fef153 MFC: If we hit the global cache size limit but the bucket row is empty
then we won't find an entry to recycle, so just return NULL and fail the
insert.
2008-07-30 20:52:12 +00:00
emaste
aafe116515 MFC improved and simplified callout_drain logic and improved ktr(4)
logging.

r155957:
  Use the recently added msleep_spin() function to simplify the
  callout_drain() logic.  We no longer need a separate non-spin mutex to
  do sleep/wakeup with, instead we can now just use the one spin mutex
  to manage all the callout functionality.

r163246:
  Improve ktr(4) logging for callout(9) subsystem. Log all inserts and
  removals, including failures, into the callwheel.

r171053:
  Fix an old standing LOR between callout_lock and sleepqueues chain
  (which could lead to a deadlock).
  - sleepq_set_timeout acquires callout_lock (via callout_reset()) only
    with sleepq chain lock held
  - msleep_spin in _callout_stop_safe lock the sleepqueue chain with
    callout_lock held

  In order to solve this don't use msleep_spin in _callout_stop_safe()
  but use directly sleepqueues as inline msleep_spin code. Rearrange the
  wakeup path in order to have it consistent too.

r172025:
  Close a race that snuck in with the recent changes to fix a LOR
  between the callout_lock spin lock and the sleepqueue spin locks.
  In the fix, callout_drain() has to drop the callout_lock so it can
  acquire the sleepqueue lock.  The state of the callout can change
  while the callout_lock is held however (for example, it can be
  rescheduled via callout_reset()).  The previous code assumed that the
  only state change that could happen is that the callout could finish
  executing.  This change alters callout_drain() to effectively restart
  and recheck everything after it acquires the sleepqueue lock thus
  handling all the possible states that the callout could be in after
  any changes while callout_lock was dropped.
2008-07-30 20:22:21 +00:00
jhb
8dbca89d0b MFC: Use VM_FAULT_DIRTY to fault in pages for write access in
proc_rwmem().
2008-07-30 19:52:54 +00:00
edwin
0f415d6c46 MFC of 180646, 180877:
After the commit of SVN rev 180236, wilko@ noticed that the approach
doesn't work on the Alpha platform: machine/elf.h doesn't include
sys/elf32.h there.

PR:		related to bin/124906
Approved by:	bde@
2008-07-30 03:32:32 +00:00
antoine
c4fec63c91 MFC r179365 to stable/6:
- Increase the size of the salt in pw(8) from 8 to 32 (same as in pam_unix(8)).
   This makes blowfish password hashes look normal when set using
  pw(8)/adduser(8). [1]
  - Make it possible to have a '/' in the salt.

  PR:             121146 [1]
  Submitted by:   Jaakko Heinonen [1]
  Approved by:    rwatson (mentor)
  MFC after:      1 month
2008-07-28 20:08:08 +00:00
antoine
96d98ca35d MFC r178921 to stable/6:
Remove useless call to getdtablesize(2) in fdopen(3) and its useless
  variable nofile.

  PR:             123109
  Submitted by:   Christoph Mallon
  Approved by:    rwatson (mentor)
  MFC after:      1 month
2008-07-28 19:37:26 +00:00
antoine
1d7e9a154a MFC r178920 to stable/6:
Add missing braces in #if 0ed code.

  Approved by:    rwatson (mentor)
  MFC after:      1 month
2008-07-28 18:22:06 +00:00
jhb
1f30f199bc MFC: Allocate a single CCB at the start of the main loop of the RAID
monitoring kthread of the mpt(4) driver.
2008-07-28 17:10:09 +00:00
yongari
22449676f5 MFC r180582.
Correct 1000Mbps link handling logic for JMC250. This should make
  jme(4) run on 1000Mbps link.
2008-07-28 02:23:51 +00:00
yongari
7e604e1299 MFC r179347.
Add jme(4) to the list of drivers supported by GENERIC kernel.
2008-07-28 02:20:29 +00:00
yongari
2223266cce MFC r179346.
Hook up jme(4) to the build.
2008-07-28 02:16:47 +00:00
yongari
9146c52924 MFC r179344.
Add jme(4) to the list of supported network interface.
2008-07-28 02:13:59 +00:00
yongari
650e83f7aa MFC r179343.
Add an entry for the jme(4) module.
2008-07-28 02:06:35 +00:00
yongari
16b84bc3d5 MFC r179342.
Add jme(4) to the list of drivers use the miibus interface.
2008-07-28 02:01:54 +00:00
yongari
3c4d623da2 MFC r179341.
Add jme(4) to the list of drivers supporting ALTQ.
2008-07-28 02:00:00 +00:00
yongari
98c66ec8b3 MFC r179340.
Add jme(4) to the list of devices supporting full VLAN processing
  in hardware.
2008-07-28 01:56:42 +00:00
yongari
fae6bcc5d8 MFC r179339.
Add man page for jme(4).
2008-07-28 01:51:25 +00:00
yongari
d9f9eb4307 MFC r179338.
Hook up jme(4) to the build.
2008-07-28 01:47:06 +00:00
yongari
1db1dd1496 Add compatibility code to build jme(4) on stable/6. 2008-07-28 01:31:24 +00:00
yongari
74f4e1481c MFC r179337.
Add driver support for PCIe adapters based on JMicron JMC250
  gigabit ethernet and JMC260 fast ethernet controllers. ATM jme(4)
  supports all hardware features except RSS and multiple Tx/Rx queue.

  In these days most ethernet controller vendors take a ply of
  concealing hardware detailes from open source developers. As
  contrasted with these vendors JMicron provided all necessary
  information needed to write a stable driver during driver writing
  and answered many questions I had. They even helped fixing driver
  bugs with protocol analyzer. Many thanks to JMicron for their
  support of FreeBSD.

  H/W donated by:	JMicron
2008-07-28 00:29:26 +00:00
marck
0767e9bd13 MFC r180096:
Add -m option to cron(8), overriding default mail recipient for cron
	mails, unless explicitly provided by MAILTO= line in crontab.  This
	feature can be useful in massive hosting environment, where most users
	do not care about autogenerated mails.

	Setting recipient to null string disables default mails at all.

Approved by:	yar
2008-07-27 07:22:35 +00:00
jhb
1e844d4be7 MFC: Properly report failure for update operations if "pwd_mkdb -C" fails. 2008-07-25 17:51:22 +00:00
gallatin
3810c5a6c4 Sync mxge with head and perform 2 forgotten MFCs:
MFC r177104: Remove dead code which makes a call to mem_range_attr_set()

MFC r177862: Initialize if_baudrate using IF_Gbps() macro.
2008-07-25 15:57:55 +00:00
gallatin
b957700201 MFC r180567: Clean up mxge's use of callouts as pointed out by jhb,
and handle NIC hardware watchdog resets.
2008-07-25 15:19:05 +00:00
yongari
8a061f7ed9 MFC r179336.
Connect jmphy(4) to the build.
2008-07-24 02:06:03 +00:00
yongari
8a8b3f88e5 MFC r179335.
Add JMicron JMP202/JMP211 PHY driver.
2008-07-24 00:50:50 +00:00
delphij
a21c742beb MFC r180727: Sync with NetBSD's license changes. 2008-07-24 00:50:24 +00:00
delphij
79cab00cd7 Sync with -HEAD:
* Fix typos in znew(1) script (yar, r176133 + r180136);
 * Make it clear that gzcat expects each argument to be
   separate files. (r180126).
 * License change in unbzip2.c (r180135)
2008-07-22 23:27:02 +00:00
lulf
0564133aef MFC r180612:
- When renaming a drive, also set the drive name in the gvinum header.

PR:		kern/125632
Approved by:	pjd (mentor)
2008-07-22 19:55:44 +00:00
keramida
855b0d7571 MFC change 180637 - tcsh abort in xgetpass()
PR:             bin/124191
2008-07-22 15:14:59 +00:00
jhb
c1087b6e57 MFC: Use dedicated buffers for user requests rather than reusing the space
in the request buffer.
2008-07-21 19:11:48 +00:00
jhb
a278dfd9d3 MFC: During shutdown, deregister the shutdown hook from the correct event
handler.
2008-07-21 18:14:42 +00:00
marius
906afc5035 MFC: r180298; r180299
- Fix spelling and style.
- Use __FBSDID.
- Merge macros depending on the flags being preserved between calls
  into a single "__asm"-statement as GCC doesn't guarantee their
  consecutive output even when using consecutive "__asm __volatile"-
  statement for them. Remove the otherwise unnecessary "__volatile". [1]
- The inline assembler instructions used here alter the condition
  codes so add them to the clobber list accordingly.
- The inline assembler instructions used here uses output operands
  before all input operands are consumed so add appropriate modifiers.

Pointed out by:	bde [1]
2008-07-21 16:59:22 +00:00
kevlo
ca959f9247 MFC: r180597
Fix a longstanding bug, from Otto Moerbeck:
if we're reducing a rule that has an empty
right hand side and the yacc stackpointer is pointing at the very
end of the allocated stack, we end up accessing the stack out of
bounds by the implicit $$ = $1 action

Obtained from:	OpenBSD
2008-07-21 01:16:28 +00:00
trhodes
9a59d1c7b1 MFC r163999
Sync up with rhyolite routed 2.31 which fixes the handling of varargs.
Remove -p from usage, it's gone completely now.

Merge to 7 not applicable, 7 obtained this change when it was
branched.

PR:		82287
Submitted by:	arved
2008-07-20 17:39:07 +00:00
trhodes
24d30154ad MFC r175615:
Add a diagnostic note about "transmission error ... tx underrun, increasing
tx start threshold ..." Looking around on the mailing lists, and even having
one of these cards I agree the messages should be documented.

Bump doc date.

PR: 88477
2008-07-20 16:51:14 +00:00
gonzo
6761476538 MFC r179971:
In case of interface initialization failure remove struct in_ifaddr* from
in_ifaddrhashtbl in in_ifinit because error handler in in_control removes
entries only for AF_INET addresses. If in_ifinit is called for the cloned
inteface that has just been created its address family is not AF_INET and
therefor LIST_REMOVE is not called for respective LIST_INSERT_HEAD and
freed entries remain in in_ifaddrhashtbl and lead to memory corruption.

PR:		kern/124384
MFC after:	3 weeks
2008-07-19 13:15:51 +00:00
gonzo
f48f25f7f6 MFC r179716:
Keep proper track of nsegs counter: sem_free is called for all
allocated semaphores, so it's wrong to increase it conditionally,
in this case for every over-the-limit semaphore nsegs is decreased
without being previously increased.

PR:             kern/123685
MFC after:      more then 1 month
2008-07-18 14:45:22 +00:00
gonzo
6cf0ef9bfe MFC r179879:
Renew semaphore's pointer after wakeup since during msleep
sem_base may have been modified by destroying one of semaphores
and semptr would not be valid in this case.

PR:             kern/123731
MFC after:      1 month
2008-07-18 13:57:05 +00:00
jhb
e2b1f286b6 MFC: Tweak the output of controller event log messages to reduce verbosity
and add some simple formatting of timestamps and event classes.
2008-07-17 19:10:07 +00:00
jhb
07957a7469 MFC: Improve the handling of pending events in the controller's event log
during boot.
2008-07-17 18:56:56 +00:00
jhb
e04d8c0eb3 MFC: Change SEM_VALUE_MAX (maximum value of a POSIX semaphore) from UINT_MAX
to INT_MAX.
2008-07-17 18:45:20 +00:00
jhb
31ed61f9c6 MFC: Don't set the _file member of the FILE when opening a FTP connection. 2008-07-17 16:05:14 +00:00
dougb
325ad164dc MFC r179637, r179655, and r180503, the inclusion of the svnversion info
for uname.
2008-07-16 10:29:42 +00:00
dougb
625d894d61 MFC r180478, stronger wording to warn users about not using the
query-source option, and a better example.
2008-07-16 10:02:15 +00:00
edwin
b49521f6e5 MFC of r180374
Improve the output of kldload(8) to show which module can't be loaded.

Was:            kldload: Unsupported file type
Is now:         kldload: /boot/modules/test.ko: Unsupported file type

PR:             kern/121276
Submitted by:   Edwin Groothuis <edwin@mavetju.org>
Approved by:    bde (mentor)
MFC after:      1 week
2008-07-15 01:26:20 +00:00
edwin
efe426427d MFC of revision 173401, 173414 and 173396:
gaames/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely

        This patch adds an environment variable FORTUNE_PATH, which
        works like PATH for fortune files.

PR:             bin/36867
Submitted by:   Alan Eldridge <ports@geeksrus.net>

[patch] fortune -e implementation bug

        Fix the behaviour of "-e file1 file2" to equally pick them
        instead of only picking the first one.

PR:             bin/70182
Submitted by:   Martin Kulas <coolaz@web.de>
2008-07-14 10:49:32 +00:00