]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r198940:
jh [Mon, 4 Jan 2010 14:35:36 +0000 (14:35 +0000)]
MFC r198940:

File flags handling fixes for ext2fs:

- Disallow setting of flags not supported by ext2fs.
- Map EXT2_APPEND_FL to SF_APPEND.
- Map EXT2_IMMUTABLE_FL to SF_IMMUTABLE.
- Map EXT2_NODUMP_FL to UF_NODUMP.

Note that ext2fs doesn't support user settable append and immutable flags.
EXT2_NODUMP_FL is an user settable flag also on Linux.

PR: kern/122047
Approved by: trasz (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201137:
delphij [Mon, 4 Jan 2010 01:09:59 +0000 (01:09 +0000)]
MFC r201137:

Grammar fix.

Submitted by: Kenyon Ralph <kenyon kenyonralph com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@201459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoPlug a memory leak.
delphij [Mon, 4 Jan 2010 01:08:27 +0000 (01:08 +0000)]
Plug a memory leak.

PR: bin/141835
Submitted by: Henning Petersen <henning.petersen t-online.de>

git-svn-id: svn://svn.freebsd.org/base/stable/8@201458 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200793:
delphij [Mon, 4 Jan 2010 01:07:32 +0000 (01:07 +0000)]
MFC r200793:

Plug a memory leak.

PR: bin/141836
Submitted by: Henning Petersen <henning.petersen at t-online.de>

git-svn-id: svn://svn.freebsd.org/base/stable/8@201457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200727:
delphij [Sun, 3 Jan 2010 03:10:28 +0000 (03:10 +0000)]
MFC r200727:

Apply fix for Solaris bug 6764159: restore_object() makes a call
that can block while having a tx open but not yet committed
(onnv revision 7994)

Submitted by: mm
Approved by: pjd
Obtained from: OpenSolaris

git-svn-id: svn://svn.freebsd.org/base/stable/8@201412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200726:
delphij [Sun, 3 Jan 2010 03:05:30 +0000 (03:05 +0000)]
MFC r200726:

Apply fix for Solaris bug 6801979: zfs recv can fail with E2BIG
(onnv revision 8986)

PR: kern/141355
Requested by: mm
Submitted by: pjd
Obtained from: OpenSolaris

git-svn-id: svn://svn.freebsd.org/base/stable/8@201411 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200724:
delphij [Sun, 3 Jan 2010 02:58:05 +0000 (02:58 +0000)]
MFC r200724:

Apply fix for Solaris bug  6462803 zfs snapshot -r failed because
filesystem was busy.

PR: kern/141387
Submitted by: mm
Approved by: pjd
Obtained from: OpenSolaris (onnv 8989:cfce31f4eebf)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201409 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200516:
delphij [Sun, 3 Jan 2010 00:27:35 +0000 (00:27 +0000)]
MFC r200516:

Add an option to specify that the received ZFS should not be automatically
mounted (receive -u).

Obtained from: OpenSolaris (onnv revision 8584:327a1b6dd944)
Approved by: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/8@201407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoWelcome to 2010.
imp [Sat, 2 Jan 2010 20:34:13 +0000 (20:34 +0000)]
Welcome to 2010.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201403 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200993: Small spelling fix, "Ethetnet" -> "Ethernet"
gavin [Sat, 2 Jan 2010 13:07:14 +0000 (13:07 +0000)]
MFC r200993:  Small spelling fix, "Ethetnet" -> "Ethernet"

Approved by: ed (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201393 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201126
marius [Fri, 1 Jan 2010 17:30:42 +0000 (17:30 +0000)]
MFC: r201126

Account for firmware versions which include the CDMA interrupts in
the OFW device tree.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201364 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201201:
kib [Fri, 1 Jan 2010 11:43:09 +0000 (11:43 +0000)]
MFC r201201:
Document CLOCK_SECOND, add cross-reference from time(3) to clock_gettime(2).

MFC r201204:
Document _FAST and _PRECISE clocks.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201362 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200637:
gavin [Thu, 31 Dec 2009 12:58:08 +0000 (12:58 +0000)]
MFC 200637:

Don't panic due to unlocking an unowned mutex if we fail during attach.

PR: kern/139053
Reviewed by: scottl
Approved by: ed (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201134:
kib [Thu, 31 Dec 2009 11:49:13 +0000 (11:49 +0000)]
MFC r201134:
Add a knob to allow reclaim of the directory vnodes that are source of
the namecache records.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201338 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198185:
ed [Thu, 31 Dec 2009 10:53:04 +0000 (10:53 +0000)]
MFC r198185:

  Print backspaces after echoing an EOF.

  Applications like shells expect EOF to give no graphical output, while
  our implementation prints ^D by default (tunable with stty echoctl).
  Make the new implementation behave like the old TTY code. Print two
  backspaces afterwards.

I totally forgot to MFC this, because the 8.0 freeze took a little
longer than I expected.

Reminded by: koitsu

git-svn-id: svn://svn.freebsd.org/base/stable/8@201337 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoHappy New Year 2010! :-)
obrien [Thu, 31 Dec 2009 10:00:49 +0000 (10:00 +0000)]
Happy New Year 2010! :-)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201335 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198291:
jh [Thu, 31 Dec 2009 07:34:38 +0000 (07:34 +0000)]
MFC r198291:

Unloading of the nfscl module is unsupported because newnfslock doesn't
support unloading. It's not trivial to implement newnfslock unloading so
for now just admit that unloading is unsupported and refuse to attempt
unload in all nfscl module event handlers.

Approved by: trasz (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201331 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198290:
jh [Thu, 31 Dec 2009 07:32:04 +0000 (07:32 +0000)]
MFC r198290:

Fix ordering of nfscl_modevent() and ncl_uninit(). nfscl_modevent() must
be called after ncl_uninit() when unloading the nfscl module because
ncl_uninit() uses ncl_iod_mutex which is destroyed in nfscl_modevent().

Approved by: trasz (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198289:
jh [Thu, 31 Dec 2009 07:28:43 +0000 (07:28 +0000)]
MFC r198289:

Fix comment typos.

Approved by: trasz (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoSync usbdevs to fix the build.
thompsa [Thu, 31 Dec 2009 06:59:15 +0000 (06:59 +0000)]
Sync usbdevs to fix the build.

Pointy hat: me

git-svn-id: svn://svn.freebsd.org/base/stable/8@201327 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201071
thompsa [Thu, 31 Dec 2009 00:30:45 +0000 (00:30 +0000)]
MFC r201071

 Compact USB_VENDOR_X and USB_PRODUCT_Y in the quirk tables.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201317 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201028
thompsa [Thu, 31 Dec 2009 00:20:54 +0000 (00:20 +0000)]
MFC r201028

 Use macros to strip off USB_VENDOR_ and USB_PRODUCT_ from some id tables to make
 them more compact and readable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201316 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200887
thompsa [Thu, 31 Dec 2009 00:19:52 +0000 (00:19 +0000)]
MFC r200887

 Shorten the USB_QUIRK_ENTRY macro and undef it at the end, its only internal.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201315 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200886
thompsa [Thu, 31 Dec 2009 00:19:16 +0000 (00:19 +0000)]
MFC r200886

 Move all Mass Storage Quirks over to the USB quirk module.

Submitted by: Hans Petter Selasky

git-svn-id: svn://svn.freebsd.org/base/stable/8@201314 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200885
thompsa [Thu, 31 Dec 2009 00:18:38 +0000 (00:18 +0000)]
MFC r200885

 Sync usb vendor/product defines to p4

git-svn-id: svn://svn.freebsd.org/base/stable/8@201313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200827
thompsa [Thu, 31 Dec 2009 00:17:59 +0000 (00:17 +0000)]
MFC r200827

 Add missed usb product define in r200826.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201312 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200826
thompsa [Thu, 31 Dec 2009 00:17:09 +0000 (00:17 +0000)]
MFC r200826

 add new ID to UFTDI driver.

Submitted by: YAMAMOTO, Shigeru

git-svn-id: svn://svn.freebsd.org/base/stable/8@201311 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200825
thompsa [Thu, 31 Dec 2009 00:15:36 +0000 (00:15 +0000)]
MFC r200825

 - add support for more than 2 audio channels. [1]
 - add support for more sample rates

Submitted by: [1] ariff (earlier version), Hans Petter Selasky

git-svn-id: svn://svn.freebsd.org/base/stable/8@201310 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200823
thompsa [Thu, 31 Dec 2009 00:14:37 +0000 (00:14 +0000)]
MFC r200823

 Add more OHCI pci ids.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200822
thompsa [Thu, 31 Dec 2009 00:14:02 +0000 (00:14 +0000)]
MFC r200822

 Add more EHCI pci ids.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201308 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200658
thompsa [Thu, 31 Dec 2009 00:13:24 +0000 (00:13 +0000)]
MFC r200658

 Keep list sorted.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201307 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200657
thompsa [Thu, 31 Dec 2009 00:12:38 +0000 (00:12 +0000)]
MFC r200657

 Add a bunch of new 3G ids obtained from from various operating systems and
 Internet sources.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200653
thompsa [Thu, 31 Dec 2009 00:10:26 +0000 (00:10 +0000)]
MFC r200653

 Use the EVENTHANDLER system to hook into the usb device configuration and
 perform a function such as ejecting a 3G autoinstaller disk. The eventhandler
 system properly tracks threads and is safe to unload, remove the
 setting/clearing of a function pointer in the kernel by u3g(4) which included a
 tsleep for safety.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200652
thompsa [Thu, 31 Dec 2009 00:09:47 +0000 (00:09 +0000)]
MFC r200652

 If the runcount is non-zero in eventhandler_deregister() then one or more
 threads are executing the eventhandler, sleep in this case to make it safe for
 module unload. If the runcount was up then an entry would have been marked
 EHE_DEAD_PRIORITY so use this as a trigger to do the wakeup in
 eventhandler_prune_list().

git-svn-id: svn://svn.freebsd.org/base/stable/8@201304 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200396
thompsa [Thu, 31 Dec 2009 00:08:59 +0000 (00:08 +0000)]
MFC r200396

 Wrap long lines.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200395
thompsa [Thu, 31 Dec 2009 00:08:17 +0000 (00:08 +0000)]
MFC r200395

 Add a quirk for the Curitel UM175 where setting multiplexing for call
 management over the data endpoint causes communication to die.

 Take this one step further and model it on the existing NetBSD quirk and import
 other device IDs from them.

Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@201302 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200308
thompsa [Thu, 31 Dec 2009 00:07:37 +0000 (00:07 +0000)]
MFC r200308

 Fix hardware issue with FTDI chips: avoid sending a zero length packet due to
 hardware sending garbage on ZLPs.

Reported by: Corey Smith
Submitted by: HPS

git-svn-id: svn://svn.freebsd.org/base/stable/8@201301 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200307
thompsa [Thu, 31 Dec 2009 00:06:52 +0000 (00:06 +0000)]
MFC r200307

 Fix dwSignature for NCM mode and add extra debug output.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201299 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200306
thompsa [Thu, 31 Dec 2009 00:06:12 +0000 (00:06 +0000)]
MFC r200306

 Add new device ids.

PR: usb/140951, usb/140923
Submitted by: Romain Tartiere, Brett Glass

git-svn-id: svn://svn.freebsd.org/base/stable/8@201298 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200305
thompsa [Thu, 31 Dec 2009 00:05:28 +0000 (00:05 +0000)]
MFC r200305

 Correct name, 82801IJ -> 82801JI

git-svn-id: svn://svn.freebsd.org/base/stable/8@201297 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200304
thompsa [Thu, 31 Dec 2009 00:04:48 +0000 (00:04 +0000)]
MFC r200304

 If the ID byte is non zero then we allow descriptors having multiple sizes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201296 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200087
thompsa [Thu, 31 Dec 2009 00:04:05 +0000 (00:04 +0000)]
MFC r200087

 Add uhci/ehci controller ids.

Submitted by: mitya_cabletv.dp.ua

git-svn-id: svn://svn.freebsd.org/base/stable/8@201295 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199332
thompsa [Thu, 31 Dec 2009 00:03:29 +0000 (00:03 +0000)]
MFC r199332

 Sort ID list by vendor.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201294 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 201032:
marcel [Wed, 30 Dec 2009 21:00:54 +0000 (21:00 +0000)]
MFC rev 201032:
Use unordered memory loads and stores for the in* and out*
family of functions.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201281 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200743:
dougb [Wed, 30 Dec 2009 19:36:40 +0000 (19:36 +0000)]
MFC r200743:

The service command is an easy interface to the rc.d system.
Its primary purpose is to start and stop services provided by
the rc.d scripts, however it can also be used to list the scripts
using various criteria.

MFC r200809, r200980, r201035, r201069, 201070:

Updates/fixes suggested after the initial introducition

git-svn-id: svn://svn.freebsd.org/base/stable/8@201273 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201036:
dougb [Wed, 30 Dec 2009 19:25:40 +0000 (19:25 +0000)]
MFC r201036:

Delete some trailing whitespace

git-svn-id: svn://svn.freebsd.org/base/stable/8@201271 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200919:
jhb [Wed, 30 Dec 2009 17:53:07 +0000 (17:53 +0000)]
MFC 200919:
Fix a bug in gzipfs that prevented lseek() from working and add lseek()
support to bzip2fs.  This fixes problems with loading compressed amd64
kernel modules containing debug symbols.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200872:
jhb [Wed, 30 Dec 2009 17:42:41 +0000 (17:42 +0000)]
MFC 200872:
Don't build zfsboot, gptzfsboot, and zfsloader if WITHOUT_ZFS is enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199844:
jh [Wed, 30 Dec 2009 17:22:00 +0000 (17:22 +0000)]
MFC r199844:

Reset path name back to original correctly in fts_build() when
FTS_NOCHDIR option is used. fts_build() could strip a trailing slash
from path name in post-order visit if a path pointing to an empty
directory was given for fts_open().

PR: bin/133907, kern/134513
Approved by: trasz (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200992:
markus [Wed, 30 Dec 2009 16:37:58 +0000 (16:37 +0000)]
MFC r200992:

Use a local copy of entry_d for finding matches. Otherwise, if entry_d pointed
to an entry of 'acl', all ACL entries starting with entry_d would be deleted.

Approved by: emax (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201260 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200821:
mav [Tue, 29 Dec 2009 21:23:18 +0000 (21:23 +0000)]
MFC r200821:
Make graid3 fallback to malloc() when component request size is bigger
then maximal prepared UMA zone size. This fixes crash with MAXPHYS > 128K.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201219 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of tzdata2009u, 201189
edwin [Tue, 29 Dec 2009 10:15:11 +0000 (10:15 +0000)]
MFC of tzdata2009u, 201189

Bangladesh will change its clock back to Standard Time on Dec 31, 2009.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201190 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of r200835, tzcode2009t
edwin [Tue, 29 Dec 2009 10:07:09 +0000 (10:07 +0000)]
MFC of r200835, tzcode2009t

Comment only, no data changes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201185 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of r200832, tzdata2009t
edwin [Tue, 29 Dec 2009 10:05:20 +0000 (10:05 +0000)]
MFC of r200832, tzdata2009t

zic:
- Fix URL / reference to Calendrical Calculations: Third Edition

libc/stdtime:
- Fix typo in tzfile.5 (no changes in our part)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201183 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200448:
dougb [Tue, 29 Dec 2009 07:08:48 +0000 (07:08 +0000)]
MFC r200448:

Since the change to rc.subr in r198162 it's not necessary to specify
command in the rc.d script if we have a corresponding ${name}_program
entry, which we do for named.

Rename named_precmd to named_prestart to make it more clear and match
convention.

Move the command_args definition related to -u up into _prestart().
It (and the associated $named_uid value) are only used there, and
unlike required_* and pidfile don't need to be used until this stage.

Fix a silly bug that would only have affected people who were using
the new named_wait or named_auto_forward features, AND had set up an
rndc.conf file instead of using the automatically generated rndc.key.

For named_conf:
Add "-c $named_conf" to command_args if it's not set to the
default. If it is set to the default and we're using the base
BIND it's not necessary. If we're using BIND from the ports
the user is likely to have included it in _flags (due to long
necessity for doing so) so don't duplicate that if it's set.

Add $named_conf to required_files

MFC r200563:

The named process needs to have a "working directory" that it can
write to. This is specified in "options { directory }" in named.conf.
So, create /etc/namedb/working with appropriate permissions, and
update the entry in named.conf to match.

In addition to specifying the working directory, file and path names
in named.conf can be specified relative to the directory listed.
However, since that directory is now different from /etc/namedb
(where the configuration, zone, rndc.*, and other files are located)
further update named.conf to specify all file names with fully
qualified paths. Also update the comment about file and path names
so users know this should be done for all file/path names in the file.

This change will eliminate the 'working directory is not writable'
messages at boot time without sacrificing security. It will also
allow for features in newer versions of BIND (9.7+) to work as
designed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201172 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200594:
dougb [Tue, 29 Dec 2009 05:35:25 +0000 (05:35 +0000)]
MFC r200594:

Add INCLUDE_CONFIG_FILE, and a note in comments about how to also
include the comments with CONFIGARGS

git-svn-id: svn://svn.freebsd.org/base/stable/8@201158 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: revision 200776
nyan [Tue, 29 Dec 2009 04:23:46 +0000 (04:23 +0000)]
MFC: revision 200776

  Move cursor position after putting a character.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201000:
bz [Mon, 28 Dec 2009 14:47:25 +0000 (14:47 +0000)]
MFC r201000:

  Remove extra spaces (no functional change).

git-svn-id: svn://svn.freebsd.org/base/stable/8@201130 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200995:
bz [Mon, 28 Dec 2009 14:44:22 +0000 (14:44 +0000)]
MFC r200995:

  Remove an unused global.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201129 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200473:
bz [Mon, 28 Dec 2009 14:40:58 +0000 (14:40 +0000)]
MFC r200473:

  Throughout the network stack we have a few places of
        if (jailed(cred))
  left.  If you are running with a vnet (virtual network stack) those will
  return true and defer you to classic IP-jails handling and thus things
  will be "denied" or returned with an error.

  Work around this problem by introducing another "jailed()" function,
  jailed_without_vnet(), that also takes vnets into account, and permits
  the calls, should the jail from the given cred have its own virtual
  network stack.

  We cannot change the classic jailed() call to do that,  as it is used
  outside the network stack as well.

  Discussed with:       julian, zec, jamie, rwatson (back in Sept)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201128 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200471, r201044:
bz [Mon, 28 Dec 2009 14:39:21 +0000 (14:39 +0000)]
MFC r200471, r201044:

  Add a few more V_hacks to nfsclient to allow machines with a VIMAGE
  kernel to boot from NFS. [1]

  Note: this is not a full virtualization of nfsclient. It is only does
  what advertised above and nothing more.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201127 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of 198329: Check pointer for NULL before dereferencing it, not after.
mjacob [Sun, 27 Dec 2009 22:50:25 +0000 (22:50 +0000)]
MFC of 198329: Check pointer for NULL before dereferencing it, not after.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201068 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200620,200621: fix argument order to mtx_init call.
mjacob [Sun, 27 Dec 2009 22:49:34 +0000 (22:49 +0000)]
MFC 200620,200621: fix argument order to mtx_init call.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200038:
kib [Sun, 27 Dec 2009 20:39:58 +0000 (20:39 +0000)]
MFC r200038:
Properly support -fPIE by linking PIE binaries with specially-built
Scrt1.o instead of crt1.o, since the later is built as non-PIC.

Separate i386-elf crt1.c into the pure assembler part and C code,
supplying all data extracted by assembler stub as explicit parameters.
Hide and localize _start1 symbol used as an interface between asm and
C code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201058 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoexplicitly define HZ for picosd images
luigi [Sun, 27 Dec 2009 10:13:31 +0000 (10:13 +0000)]
explicitly define HZ for picosd images

git-svn-id: svn://svn.freebsd.org/base/stable/8@201045 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoExplicitly say that this is an internal library which is intended to be
delphij [Sun, 27 Dec 2009 07:04:27 +0000 (07:04 +0000)]
Explicitly say that this is an internal library which is intended to be
used within FreeBSD base system only, and discourage user applications
from using it.  User applications should use the expat version from the
ports/package collection.

Reviewed by: simon (earlier version)

git-svn-id: svn://svn.freebsd.org/base/stable/8@201043 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197799: fix typo.
maxim [Sat, 26 Dec 2009 20:52:47 +0000 (20:52 +0000)]
MFC r197799: fix typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201030 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200524:
rpaulo [Sat, 26 Dec 2009 18:25:52 +0000 (18:25 +0000)]
MFC r200524:
 Pass all IEs to net80211.

PR: 141376
Submitted by: Paul <onemda at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@201026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198366:
rpaulo [Sat, 26 Dec 2009 18:23:21 +0000 (18:23 +0000)]
MFC r198366:
 Don't use BUS_DMA_ALLOCNOW as that causes the attachment to fail on
 Cambria boards.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201025 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 200891:
marcel [Sat, 26 Dec 2009 04:31:18 +0000 (04:31 +0000)]
MFC rev 200891:
Calculate the average CPU clock frequency and export that through
the hw.freq.cpu sysctl variable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201014 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 200889:
marcel [Sat, 26 Dec 2009 04:29:38 +0000 (04:29 +0000)]
MFC rev 200889:
Export the bus, cpu and itc frequencies under the hw.freq sysctl node.

git-svn-id: svn://svn.freebsd.org/base/stable/8@201013 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200668:
mav [Fri, 25 Dec 2009 08:06:35 +0000 (08:06 +0000)]
MFC r200668:
Remove duplicate devstat_start_transaction_bio() call. It is already called
from geom_disk. Dulicate call causes wrong queue depth and busy accounting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200978 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199244:
roam [Thu, 24 Dec 2009 20:35:01 +0000 (20:35 +0000)]
MFC r199244:
  Fix the grammar in the isgraph(3) description, almost as per the PR.

  PR:           140455
  Submitted by: Jeremy Huddleston <jeremyhu@apple.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@200962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199863:
roam [Thu, 24 Dec 2009 20:29:58 +0000 (20:29 +0000)]
MFC r199863:
  Fix the cross-reference to sctp_opt_info in the text - section 3, not 2.

  PR:           140938
  Submitted by: Bruce Cran <bruce@cran.org.uk>

git-svn-id: svn://svn.freebsd.org/base/stable/8@200960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: revision 200631
nyan [Thu, 24 Dec 2009 12:19:52 +0000 (12:19 +0000)]
MFC: revision 200631

  Fix debug messages of bd_io().

git-svn-id: svn://svn.freebsd.org/base/stable/8@200936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of r200650, r200624
edwin [Thu, 24 Dec 2009 01:28:26 +0000 (01:28 +0000)]
MFC of r200650, r200624

Add Australian, New Zealand and Ukraian calendars to the "all" target".
Nationalise Easter -> Pasen in calendar.dutch

git-svn-id: svn://svn.freebsd.org/base/stable/8@200931 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199458: Add pwait utility, which waits for any process to terminate.
jilles [Wed, 23 Dec 2009 22:59:03 +0000 (22:59 +0000)]
MFC r199458: Add pwait utility, which waits for any process to terminate.

This is similar to the Solaris utility of the same name.

Some use cases:
* rc.subr's wait_for_pids
* interactive use, e.g. to shut down the computer when some task is done
  even if the task is already running

git-svn-id: svn://svn.freebsd.org/base/stable/8@200927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200731:
bcr [Wed, 23 Dec 2009 16:30:39 +0000 (16:30 +0000)]
MFC r200731:
Reference the correct man page for firmware(9).

PR: docs/140986
Submitted by: Glen Barber (glen dot j dot barber at gmail dot com)
Reviewed by: sam
Approved by: sam, jkois (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200903 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198520, r198857: fdc(4) module unload fixes
jh [Wed, 23 Dec 2009 11:35:25 +0000 (11:35 +0000)]
MFC r198520, r198857: fdc(4) module unload fixes

PR: kern/104079
Approved by: trasz (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200895 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200572:
bms [Tue, 22 Dec 2009 20:33:27 +0000 (20:33 +0000)]
MFC r200572:
 Add missing #include <sys/ktr.h>.

Submitted by: Hideki Yamamoto

git-svn-id: svn://svn.freebsd.org/base/stable/8@200869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200375:
mav [Tue, 22 Dec 2009 20:17:03 +0000 (20:17 +0000)]
MFC r200375:
Add one more set of codec IDs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200414:
mav [Tue, 22 Dec 2009 20:00:20 +0000 (20:00 +0000)]
MFC r200414:
CFA support doesn't exclude FLUSH support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200862 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200218:
mav [Tue, 22 Dec 2009 19:56:35 +0000 (19:56 +0000)]
MFC r200218:
- Cleanup kernel messages, mostly PMP.
- Took references on devices, while PMP reinitializes them, to not let them
go and distort freeze reference counting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200860 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 200514:
jhb [Tue, 22 Dec 2009 14:58:23 +0000 (14:58 +0000)]
MFC 200514:
Remove comment claiming that building acpi into the kernel is deprecated.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200589: cpuset(2): fix a typo and a markup error in the man page
jilles [Tue, 22 Dec 2009 13:45:29 +0000 (13:45 +0000)]
MFC r200589: cpuset(2): fix a typo and a markup error in the man page

git-svn-id: svn://svn.freebsd.org/base/stable/8@200836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200544
marius [Mon, 21 Dec 2009 20:17:34 +0000 (20:17 +0000)]
MFC: r200544

Set ATA_CHECKS_CABLE when appropriate.

Reviewed by: mav

git-svn-id: svn://svn.freebsd.org/base/stable/8@200807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199563,199608-199613
yongari [Mon, 21 Dec 2009 18:52:38 +0000 (18:52 +0000)]
MFC r199563,199608-199613
r199563:
  Fix copy & paste error and remove extra space before colon.
r199608:
  Remove unnecessary structure packing.
r199609:
  Add initial endianness support. It seems the controller supports
  both big-endian and little-endian format in descriptors for Rx path
  but I couldn't find equivalent feature in Tx path. So just stick to
  little-endian for now.
r199610:
  Because we know received bytes including CRC there is no reason to
  call m_adj(9). The controller also seems to have a capability to
  strip CRC bytes but I failed to activate this feature except for
  loopback traffic.
r199611:
  Add IPv4/TCP/UDP Tx checksum offloading support. It seems the
  controller also has support for IP/TCP checksum offloading for Rx
  path. But I failed to find to way to enable Rx MAC to compute the
  checksum of received frames.
r199612:
  Add __FBSDID.
r199613:
  Only Tx checksum offloading is supported now. Remove experimental
  code sneaked in r199611.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199558,199561
yongari [Mon, 21 Dec 2009 18:34:18 +0000 (18:34 +0000)]
MFC r199558,199561
r199558:
  Use bus_{read,write}_4 rather than bus_space_{read,write}_4.
r199561:
  Use capability pointer to access PCIe registers rather than
  directly access them at fixed address. Frequently the register
  offset could be changed if additional PCI capabilities are added to
  controller.
  One odd thing is ET_PCIR_L0S_L1_LATENCY register. I think it's PCIe
  link capabilities register but the location of the register does
  not match with PCIe capability pointer + offset. I'm not sure it's
  shadow register of PCIe link capabilities register.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200789 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199553,199556
yongari [Mon, 21 Dec 2009 18:28:37 +0000 (18:28 +0000)]
MFC r199553,199556
r199553:
  Remove extra spce at the EOL.
r199556:
  style(9)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199550-199552:
yongari [Mon, 21 Dec 2009 18:16:07 +0000 (18:16 +0000)]
MFC r199550-199552:
r199550:
  Remove support code for FreeBSD 6.x versions.
r199551:
  Destroy driver mutex in device detach.
r199552:
  Add MSI support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199548:
yongari [Mon, 21 Dec 2009 18:07:15 +0000 (18:07 +0000)]
MFC r199548:
  Remove complex macros that were used to compute bits values.
  Although these macros may have its own strength, its complex
  definition make hard to read the code.

  Approved by:  delphij

git-svn-id: svn://svn.freebsd.org/base/stable/8@200783 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200666: Fixed incorrect watchdog timeout setting.
ru [Mon, 21 Dec 2009 13:53:33 +0000 (13:53 +0000)]
MFC r200666: Fixed incorrect watchdog timeout setting.

PR: kern/130512

git-svn-id: svn://svn.freebsd.org/base/stable/8@200772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200667:
kib [Mon, 21 Dec 2009 11:06:41 +0000 (11:06 +0000)]
MFC r200667:
Return earlier from linux_do_tkill() when supplied signal number is 0.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199969: amdsbwd: new driver for AMD SB600/SB7xx watchdog timer
avg [Mon, 21 Dec 2009 05:58:55 +0000 (05:58 +0000)]
MFC r199969: amdsbwd: new driver for AMD SB600/SB7xx watchdog timer

git-svn-id: svn://svn.freebsd.org/base/stable/8@200765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198173: sh: show more info about syntax errors in command substitution:
jilles [Sun, 20 Dec 2009 20:51:20 +0000 (20:51 +0000)]
MFC r198173: sh: show more info about syntax errors in command substitution:
the line number where the command substitution started.
This applies to both the $() and `` forms but is most useful for ``
because the other line number is relative to the enclosed text there.
(For older versions, -v can be used as a workaround.)

git-svn-id: svn://svn.freebsd.org/base/stable/8@200760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge from head to stable/8:
scf [Sun, 20 Dec 2009 18:57:43 +0000 (18:57 +0000)]
Merge from head to stable/8:

r200424:
Fix libusb_open_device_with_vid_pid() to return a NULL if no device is
found instead of the last device in its search list.

Reviewed by: thompsa

git-svn-id: svn://svn.freebsd.org/base/stable/8@200757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200623:
jamie [Sun, 20 Dec 2009 04:49:29 +0000 (04:49 +0000)]
MFC r200623:

  Add a null pointer check so "name" can be used as a key parameter in
  jailparam_get.

PR: bin/141692
Submitted by: delphij

git-svn-id: svn://svn.freebsd.org/base/stable/8@200750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200449:
jamie [Sun, 20 Dec 2009 04:45:32 +0000 (04:45 +0000)]
MFC r200449:

  Don't free jail parameter values after printing them - jail_param_get
  expects them to be there for the next jail in the list.

PR: bin/141359

git-svn-id: svn://svn.freebsd.org/base/stable/8@200749 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198471.
kan [Sun, 20 Dec 2009 02:35:10 +0000 (02:35 +0000)]
MFC r198471.

Log:
  Compile libgcov without stack protection. It can be linked into
  both static and dynamic binaries compiled with or without stack
  protection and should not depend on libssp_nonshared.a symbols.

  Discussed with: kib
  PR: bin/139052

git-svn-id: svn://svn.freebsd.org/base/stable/8@200748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r200482, r200485
marius [Sun, 20 Dec 2009 01:44:47 +0000 (01:44 +0000)]
MFC: r200482, r200485

o Properly support M5229 revision 0xc7 and 0xc8:
  - These revisions no longer have cable detection capability.
  - The UDMA support bit of register 0x4b has been dropped without an
    replacement.
  - According to Linux it's crucial for working ATAPI DMA support to
    also set the reserved bit 1 of regsiter 0x53 with these revisions.
o Only set ATA_CHECKS_CABLE for chip versions that actually support
  cable detection, i.e. neither for ALI_OLD nor for ALI_NEW revisions
  >= 0xc7.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200746 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f