]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoMerge r194519 from projects/mips to head by hand:
imp [Fri, 8 Jan 2010 23:37:30 +0000 (23:37 +0000)]
Merge r194519 from projects/mips to head by hand:

r194519 | gonzo | 2009-06-19 17:28:26 -0600 (Fri, 19 Jun 2009) | 3 lines
- set -mabicalls and -msoft-float as a default in order to
    simplify building ports

14 years agoMake options KGSSAPI build and add it to NOTES.
brooks [Fri, 8 Jan 2010 23:26:10 +0000 (23:26 +0000)]
Make options KGSSAPI build and add it to NOTES.

rpcsec_gss_prot.c:
  Use kernel printf and headers.

vc_rpcsec_gss.c:
  Use a local RPCAUTH_UNIXGIDS definition for 16 instead of using NGROUPS.

14 years agoMerge r195030 from project/mips into head by hand:
imp [Fri, 8 Jan 2010 23:11:23 +0000 (23:11 +0000)]
Merge r195030 from project/mips into head by hand:

r195030 | gonzo | 2009-06-25 19:27:31 -0600 (Thu, 25 Jun 2009) | 4 lines
- Switch to libc softfloat from libgcc implementation. The problem
    with latter is that it is not complete, fpsetXXX/fpgetXXX
    functions are missing.

14 years agoMerge r195575 and 195530 from projects/mips to head by hand:
imp [Fri, 8 Jan 2010 23:09:11 +0000 (23:09 +0000)]
Merge r195575 and 195530 from projects/mips to head by hand:

r195575 | imp | 2009-07-10 12:24:02 -0600 (Fri, 10 Jul 2009) | 2 lines
quick hack for the problem gonzo is seeing.

r195530 | imp | 2009-07-10 01:18:30 -0600 (Fri, 10 Jul 2009) | 5 lines
Always build all 4 emulators into the mips toolchain.
# I think we have a gcc spec file issue with abi=64 since I have to do other
# hacks to get it mostly kinda right.

14 years agoMerge from project/mips r195021:
imp [Fri, 8 Jan 2010 23:06:56 +0000 (23:06 +0000)]
Merge from project/mips r195021:

r195021 | gonzo | 2009-06-25 18:44:23 -0600 (Thu, 25 Jun 2009) | 2 lines
- Add MIPS to the list of 32-bit architectures

14 years agoBack-merge (by hand) r195668:
imp [Fri, 8 Jan 2010 23:02:17 +0000 (23:02 +0000)]
Back-merge (by hand) r195668:

r195668 | gonzo | 2009-07-13 17:01:12 -0600 (Mon, 13 Jul 2009) | 3 lines
- Get rid of ugly TARGET_CPU_DEFAULT default. 16 is MASK_DSP
    and was set there due to my ignroance.

14 years agoFree allocated sbufs before returning ENOMEM.
brueffer [Fri, 8 Jan 2010 22:58:50 +0000 (22:58 +0000)]
Free allocated sbufs before returning ENOMEM.

PR: 128335
Submitted by: Mateusz Guzik <mjguzik@gmail.com>
MFC after: 2 week

14 years agoRemove unnecessary quoting and markup, add missing punctuation.
brueffer [Fri, 8 Jan 2010 22:02:42 +0000 (22:02 +0000)]
Remove unnecessary quoting and markup, add missing punctuation.

PR: 140494
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>, bde
MFC after: 1 week

14 years agoFix array overflow.
trasz [Fri, 8 Jan 2010 21:02:12 +0000 (21:02 +0000)]
Fix array overflow.

Reviewed by: rpaulo

14 years agoGet rid of #ident.
trasz [Fri, 8 Jan 2010 20:40:28 +0000 (20:40 +0000)]
Get rid of #ident.

14 years agosk(4), stge(4) and vge(4) should work on all architectures, snd_t4dwave(4)
brueffer [Fri, 8 Jan 2010 20:38:41 +0000 (20:38 +0000)]
sk(4), stge(4) and vge(4) should work on all architectures, snd_t4dwave(4)
works on sparc64.

Submitted by: yongari

14 years agoFix array overflow.
trasz [Fri, 8 Jan 2010 19:56:37 +0000 (19:56 +0000)]
Fix array overflow.

Reviewed by: philip

14 years agoTo avoid hardcoding further kernel configuration names for
bz [Fri, 8 Jan 2010 19:01:50 +0000 (19:01 +0000)]
To avoid hardcoding further kernel configuration names for
make universe, split the logic into two parts:
- 1st to build worlds and generate kernel configs like LINT.
- 2nd to build kernels for a given TARGET architecture correctly
  finding all newly generated configs, not knowing anything about
  LINT anymore. (*)

(*) If you know better/cleaner/... ways to do this, let me know.

Discussed on/with: arch, jhb, rwatson
MFC after: 1 month

14 years agoGenerate a second LINT configuration for i386 and amd64 in
bz [Fri, 8 Jan 2010 19:00:20 +0000 (19:00 +0000)]
Generate a second LINT configuration for i386 and amd64 in
sys/conf/makeLINT.mk, which includes LINT and sets options VIMAGE
so that we will have VIMAGE LINT builds[1]. For now only do it for
those two architectures to avoid massive universe times for archs,
where people will less likely use VIMAGE or not at all.

Requested by: jhb [1]
Discussed on/with: arch, jhb, rwatson
MFC after: 1 month

14 years agoIn sys/<arch>/conf/Makefile set TARGET to <arch>. That allows
bz [Fri, 8 Jan 2010 18:57:31 +0000 (18:57 +0000)]
In sys/<arch>/conf/Makefile set TARGET to <arch>. That allows
sys/conf/makeLINT.mk to only do certain things for certain
architectures.

Note that neither arm nor mips have the Makefile there, thus
essentially not (yet) supporting LINT.  This would enable them
do add special treatment to sys/conf/makeLINT.mk as well chosing
one of the many configurations as LINT.

This is a hack of doing this and keeping it in a separate commit
will allow us to more easily identify and back it out.

Discussed on/with: arch, jhb (as part of the LINT-VIMAGE thread)
MFC after: 1 month

14 years agoEnsure an address is removed from the interface address
qingli [Fri, 8 Jan 2010 17:49:24 +0000 (17:49 +0000)]
Ensure an address is removed from the interface address
list when the installation of that address fails.

PR: 139559

14 years agoRemove ste(4), it should work on all architectures now.
brueffer [Fri, 8 Jan 2010 17:47:37 +0000 (17:47 +0000)]
Remove ste(4), it should work on all architectures now.

14 years agoGet rid of #ident, GCC 4.4 warns about it being deprecated.
trasz [Fri, 8 Jan 2010 17:20:41 +0000 (17:20 +0000)]
Get rid of #ident, GCC 4.4 warns about it being deprecated.

OK-ed by: scottl

14 years agoSwitch traceroute over to make use of proper in-kernel source
bz [Fri, 8 Jan 2010 16:59:28 +0000 (16:59 +0000)]
Switch traceroute over to make use of proper in-kernel source
address selection.

Reviewed by: rwatson, fenner
MFC after: 1 week
X-MFCable to: stable/8, stable/7 (after r183571).
PR: kern/139454
Tested by: Frank Steinborn (steinex nognu.de)

14 years agoUnbreak the XEN build after r201751.
bz [Fri, 8 Jan 2010 16:56:11 +0000 (16:56 +0000)]
Unbreak the XEN build after r201751.

14 years agoStop GCC from complaining about lagg_port_checkstacking() being unused.
trasz [Fri, 8 Jan 2010 16:44:33 +0000 (16:44 +0000)]
Stop GCC from complaining about lagg_port_checkstacking() being unused.

14 years agoComplete the swap of carp(4) log levels and document the change.
ru [Fri, 8 Jan 2010 16:14:41 +0000 (16:14 +0000)]
Complete the swap of carp(4) log levels and document the change.

MFC after: 3 days

14 years agoOne more #ifdef fix for GCC 4.4.
trasz [Fri, 8 Jan 2010 15:57:56 +0000 (15:57 +0000)]
One more #ifdef fix for GCC 4.4.

14 years agoRemove unused smbfs_smb_qpathinfo().
trasz [Fri, 8 Jan 2010 15:53:07 +0000 (15:53 +0000)]
Remove unused smbfs_smb_qpathinfo().

14 years agoRemove unused uhci_dump_qhs().
trasz [Fri, 8 Jan 2010 15:52:06 +0000 (15:52 +0000)]
Remove unused uhci_dump_qhs().

Reviewed by: hps

14 years agoRemove unused iir_watchdog().
trasz [Fri, 8 Jan 2010 15:47:23 +0000 (15:47 +0000)]
Remove unused iir_watchdog().

Reviewed by: scottl

14 years agoPut mly_timeout() under MLY_DEBUG, so that newer GCC versions don't
trasz [Fri, 8 Jan 2010 15:46:27 +0000 (15:46 +0000)]
Put mly_timeout() under MLY_DEBUG, so that newer GCC versions don't
complain about unused static function.

Reviewed by: scottl

14 years agoReplace several instances of 'if (!a & b)' with 'if (!(a &b))' in order
trasz [Fri, 8 Jan 2010 15:44:49 +0000 (15:44 +0000)]
Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order
to silence newer GCC versions.

14 years agoFix #ifdefs so that GCC 4.4 doesn't complain about it.
trasz [Fri, 8 Jan 2010 15:41:24 +0000 (15:41 +0000)]
Fix #ifdefs so that GCC 4.4 doesn't complain about it.

Reviewed by: rpaulo

14 years ago- Fix a bug in sched_4bsd where the timestamp for the sleeping operation
attilio [Fri, 8 Jan 2010 14:55:11 +0000 (14:55 +0000)]
- Fix a bug in sched_4bsd where the timestamp for the sleeping operation
  is not cleaned up on the wakeup but reset.
  This is harmless mostly because td_slptick (and ki_slptime from
  userland) should be analyzed only with the assumption that the thread
  is actually sleeping (thus while the td_slptick is correctly set) but
  without this invariant the number is nomore consistent.
- Move td_slptick from u_int to int in order to follow 'ticks' signedness
  and wrap up accordingly [0]

[0] Submitted by: emaste
Sponsored by: Sandvine Incorporated
MFC 1 week

14 years agoThis now passes a make universe with WARNS=6.
dwmalone [Fri, 8 Jan 2010 11:16:58 +0000 (11:16 +0000)]
This now passes a make universe with WARNS=6.

14 years agoAllow comment (#) to be placed anywhere in the line, not only at the
sobomax [Fri, 8 Jan 2010 10:54:15 +0000 (10:54 +0000)]
Allow comment (#) to be placed anywhere in the line, not only at the
beginning, so it's consistent with other configuration files.

MFC after: 3 weeks

14 years agoIf we fail to read the Ethernet address from the card, just print an
gavin [Fri, 8 Jan 2010 10:32:27 +0000 (10:32 +0000)]
If we fail to read the Ethernet address from the card, just print an
warning message and attach without setting the Ethernet address to a
random address.  It is not believed that this code can actually be
executed, and if it does, we're better off printing an error message than
faking up an Ethernet address.

PR: kern/133239
Reviewed by: yongari (earlier version of patch)
Approved by: ed (mentor)

14 years agoCatch up with r183101 that added "device acpi" to GENERIC.
alc [Fri, 8 Jan 2010 09:16:37 +0000 (09:16 +0000)]
Catch up with r183101 that added "device acpi" to GENERIC.

14 years ago- Change the type of size_max to u_quad_t because its value is converted
jh [Fri, 8 Jan 2010 07:57:43 +0000 (07:57 +0000)]
- Change the type of size_max to u_quad_t because its value is converted
  with vfs_scanopt(9) using the "%qu" format string.
- Limit the maximum value of size_max to (SIZE_MAX - PAGE_SIZE) to
  prevent overflow in howmany() macro.

PR: kern/141194
Approved by: trasz (mentor)
MFC after: 2 weeks

14 years agoEnable ste(4). ste(4) should work on all architectures.
yongari [Fri, 8 Jan 2010 02:46:34 +0000 (02:46 +0000)]
Enable ste(4). ste(4) should work on all architectures.

14 years agoMake sure to store dma address of RX buffer in little endian form.
yongari [Fri, 8 Jan 2010 02:43:20 +0000 (02:43 +0000)]
Make sure to store dma address of RX buffer in little endian form.
This fixes the last bug which keeps ste(4) from working on sparc64.

14 years agoFix EEPROM access code to return data in host byte order.
yongari [Fri, 8 Jan 2010 02:39:53 +0000 (02:39 +0000)]
Fix EEPROM access code to return data in host byte order.
EEPROM on ST201 always returns 16bits data with little endian
format so conversion to host order is required.
This change fixes inversed ethernet address on sparc64.

14 years agoRemove unneeded includes.
thompsa [Fri, 8 Jan 2010 01:41:58 +0000 (01:41 +0000)]
Remove unneeded includes.

14 years agoUpdate copyright date
dougb [Fri, 8 Jan 2010 00:05:10 +0000 (00:05 +0000)]
Update copyright date

Update delete_temproot() to include the error message if it fails,
and clean up the places where it's called.

If there are no files left in temproot when the comparison is done
delete it without prompting. This should make "automated" runs of
mergemaster without -a a little easier.

Document the new behavior in the man page.

14 years agoFor the now-infamous Rumsfeld quote:
dougb [Thu, 7 Jan 2010 23:30:10 +0000 (23:30 +0000)]
For the now-infamous Rumsfeld quote:

Change "there're" to "there are" which is consistent with the vast
majority of on line references.

Remove a spurious trailing "

Update the citation text with a suggestion from des.

14 years agoFurther fix grammar.
kib [Thu, 7 Jan 2010 21:14:46 +0000 (21:14 +0000)]
Further fix grammar.

Suggested by: alc
MFC after: 3 days

14 years agoFix a typo and bump date for the previous commit.
brueffer [Thu, 7 Jan 2010 21:08:22 +0000 (21:08 +0000)]
Fix a typo and bump date for the previous commit.

14 years agoRemove extraneous semicolons, no functional changes.
mbr [Thu, 7 Jan 2010 21:01:37 +0000 (21:01 +0000)]
Remove extraneous semicolons, no functional changes.

Submitted by: Marc Balmer <marc@msys.ch>
MFC after: 1 week

14 years agoRe-apply onnv-gate revisions 7994 and 8986 (corresponds to FreeBSD
delphij [Thu, 7 Jan 2010 20:10:22 +0000 (20:10 +0000)]
Re-apply onnv-gate revisions 7994 and 8986 (corresponds to FreeBSD
revision 200726 and 200727).  It looks like that the two revisions
were not applied in the right sequence, I found this when comparing
with the OpenSolaris code.

MFC after: 3 days
Reviewed by: mm@

14 years agoSince the IPv4 rule allows ICMP_TIMXCEED, allow
ume [Thu, 7 Jan 2010 17:46:25 +0000 (17:46 +0000)]
Since the IPv4 rule allows ICMP_TIMXCEED, allow
ICMP6_TIME_EXCEEDED as well for workstation type
firewall.  It makes traceroute6 work.

14 years agoMake pmap_set_pg() static.
alc [Thu, 7 Jan 2010 17:34:45 +0000 (17:34 +0000)]
Make pmap_set_pg() static.

14 years agoRemove BUGS section that no longer applies after recent changes to semaphore
trasz [Thu, 7 Jan 2010 16:52:00 +0000 (16:52 +0000)]
Remove BUGS section that no longer applies after recent changes to semaphore
code.

OK-ed by: davidxu

14 years agoip_var.h now needs to be before ip_fw_private.h
luigi [Thu, 7 Jan 2010 14:23:19 +0000 (14:23 +0000)]
ip_var.h now needs to be before ip_fw_private.h

14 years agowe don't use dummynet_drain!
luigi [Thu, 7 Jan 2010 13:53:47 +0000 (13:53 +0000)]
we don't use dummynet_drain!

14 years agoGive some information on SF_MNOWAIT flag.
kib [Thu, 7 Jan 2010 13:31:00 +0000 (13:31 +0000)]
Give some information on SF_MNOWAIT flag.

MFC after: 3 days

14 years agoAfter adding an SDT provider for opencrypto in r199884 we should also
bz [Thu, 7 Jan 2010 12:58:03 +0000 (12:58 +0000)]
After adding an SDT provider for opencrypto in r199884 we should also
depend on opt_kdtrace.h for the module build.

Submitted by: (Andre.Albsmeier siemens.com)
MFC after: 3 days

14 years agocheck that we have an ipv4 packet before swapping ip_len and ip_off.
luigi [Thu, 7 Jan 2010 12:00:54 +0000 (12:00 +0000)]
check that we have an ipv4 packet before swapping ip_len and ip_off.
This should fix the handling of ipv6 packets which i broke when i
made ipfw operate on packets in network format.

Reported by: Hajimu UMEMOTO

14 years ago- s/unsecure/insecure/ as this is the correct keyword
danger [Thu, 7 Jan 2010 11:30:54 +0000 (11:30 +0000)]
- s/unsecure/insecure/ as this is the correct keyword

14 years agoFollowing up on a request from Ermal Luci to make
luigi [Thu, 7 Jan 2010 10:39:15 +0000 (10:39 +0000)]
Following up on a request from Ermal Luci to make
ip_divert work as a client of pf(4),
make ip_divert not depend on ipfw.

This is achieved by moving to ip_var.h the struct ipfw_rule_ref
(which is part of the mtag for all reinjected packets) and other
declarations of global variables, and moving to raw_ip.c global
variables for filter and divert hooks.

Note that names and locations could be made more generic
(ipfw_rule_ref is really a generic reference robust to reconfigurations;
the packet filter is not necessarily ipfw; filters and their clients
are not necessarily limited to ipv4), but _right now_ most
of this stuff works on ipfw and ipv4, so i don't feel like
doing a gratuitous renaming, at least for the time being.

14 years agoput ip_var before ip_fw_private.h as this will be needed in
luigi [Thu, 7 Jan 2010 10:27:52 +0000 (10:27 +0000)]
put ip_var before ip_fw_private.h as this will be needed in
the near future

14 years agosome header shuffling to help decoupling ip_divert from ipfw
luigi [Thu, 7 Jan 2010 10:08:05 +0000 (10:08 +0000)]
some header shuffling to help decoupling ip_divert from ipfw

14 years agoThis now passes a make universe with WARNS=6.
dwmalone [Thu, 7 Jan 2010 09:47:05 +0000 (09:47 +0000)]
This now passes a make universe with WARNS=6.

14 years agoThis now passes a make universe with WARNS=6.
dwmalone [Thu, 7 Jan 2010 09:45:15 +0000 (09:45 +0000)]
This now passes a make universe with WARNS=6.

14 years agoThis now passes a make universe with WARNS=6.
dwmalone [Thu, 7 Jan 2010 09:40:34 +0000 (09:40 +0000)]
This now passes a make universe with WARNS=6.

14 years agoput ip_len in correct order for ip_output().
luigi [Thu, 7 Jan 2010 09:28:17 +0000 (09:28 +0000)]
put ip_len in correct order for ip_output().
This prevents a panic when ipfw generates packets on its own
(such as reject or keepalives for dynamic rules).

Reported by: Chagin Dmitry

14 years agoKASSERT that condition raised by Coverity cannot happen.
mckusick [Thu, 7 Jan 2010 06:20:07 +0000 (06:20 +0000)]
KASSERT that condition raised by Coverity cannot happen.

Found by: Coverity Prevent (tm)
KASSERT by: sam

14 years agoEliminate unused variables (see r137912).
alc [Thu, 7 Jan 2010 04:47:09 +0000 (04:47 +0000)]
Eliminate unused variables (see r137912).

14 years agoDon't forget to use fourth argument if O_CREAT is set in argument oflag.
davidxu [Thu, 7 Jan 2010 04:15:49 +0000 (04:15 +0000)]
Don't forget to use fourth argument if O_CREAT is set in argument oflag.
The fourth specifies initial value for the semaphore.

14 years agoFix debug printf on 64bit arches.
thompsa [Thu, 7 Jan 2010 02:25:19 +0000 (02:25 +0000)]
Fix debug printf on 64bit arches.

Spotted by: b. f.

14 years agoFix typos.
attilio [Thu, 7 Jan 2010 01:24:09 +0000 (01:24 +0000)]
Fix typos.

14 years agoTweak comments.
attilio [Thu, 7 Jan 2010 01:19:01 +0000 (01:19 +0000)]
Tweak comments.

14 years agoAdd some error messages suggested in PR bin/138043. The code to
mckusick [Thu, 7 Jan 2010 01:10:49 +0000 (01:10 +0000)]
Add some error messages suggested in PR bin/138043. The code to
correct the problem was added in r176575 by delphij on 2008-02-25.

PR: 138043
Reported by: Heikki Suonsivu

14 years agoSync to p4
thompsa [Thu, 7 Jan 2010 00:50:45 +0000 (00:50 +0000)]
Sync to p4
 - Add new quirks commands and the '-d' option optionally to specify the ugen device.

Submitted by: Hans Petter Selasky

14 years agoExclusive waiters sleeping with LK_SLEEPFAIL on and using interruptible
attilio [Thu, 7 Jan 2010 00:47:50 +0000 (00:47 +0000)]
Exclusive waiters sleeping with LK_SLEEPFAIL on and using interruptible
sleeps/timeout may have left spourious lk_exslpfail counts on, so clean
it up even when accessing a shared queue acquisition, giving to
lk_exslpfail the value of 'upper limit'.
In the worst case scenario, infact (mixed
interruptible sleep / LK_SLEEPFAIL waiters) what may happen is that both
queues are awaken even if that's not necessary, but still no harm.

Reported by: Lucius Windschuh <lwindschuh at googlemail dot com>
Reviewed by: kib
Tested by: pho, Lucius Windschuh <lwindschuh at googlemail dot com>

14 years agoAdd new umass quirks for Western Digital MYBook and JMicron JM20337.
thompsa [Thu, 7 Jan 2010 00:30:59 +0000 (00:30 +0000)]
Add new umass quirks for Western Digital MYBook and JMicron JM20337.

PR: usb/142225, usb/142228
Submitted by: Thomas Ward, Yoshikazu GOTO
MFC after: 1 week

14 years agoThis corrects a bug that manifested itself as identifying the last
mckusick [Thu, 7 Jan 2010 00:17:36 +0000 (00:17 +0000)]
This corrects a bug that manifested itself as identifying the last
cylinder group of a UFS1 filesystem as bad. The error was in the check
and not in the cylinder group itself. So even though fsck fixed the
cylinder group correctly, it was still endlessly reported as bad.

PR: 141992
MFC after: 2 weeks
Reported by: Dan Strick

14 years agoSpace cleanup for revision 201689 committed separately for easier review.
delphij [Wed, 6 Jan 2010 23:11:56 +0000 (23:11 +0000)]
Space cleanup for revision 201689 committed separately for easier review.
This commit is purely space changes.

Submitted by: Matt Reimer
Sponsored by: VPOP Technologies, Inc.
MFC after: 2 weeks

14 years agoInstead of assuming all vdevs are healthy, check the newest vdev label
delphij [Wed, 6 Jan 2010 23:09:23 +0000 (23:09 +0000)]
Instead of assuming all vdevs are healthy, check the newest vdev label
for each vdev's status.  Booting from a degraded vdev should now be
more robust.

Submitted by: Matt Reimer <mattjreimer at gmail.com>
Sponsored by: VPOP Technologies, Inc.
MFC after: 2 weeks

14 years agoCorrect a typo.
bz [Wed, 6 Jan 2010 23:05:00 +0000 (23:05 +0000)]
Correct a typo.

Submitted by: sn_ (sn_ gmx.net) on hackers@
MFC after: 3 days

14 years agoTeach the (gpt)zfsboot and zfsloader raidz code to use its buffers
pjd [Wed, 6 Jan 2010 22:39:40 +0000 (22:39 +0000)]
Teach the (gpt)zfsboot and zfsloader raidz code to use its buffers
more efficiently.

Before this patch, in the worst case memory use would increase
exponentially on the number of drives in the raidz vdev.

Submitted by: Matt Reimer <mattjreimer@gmail.com>
Sponsored by: VPOP Technologies, Inc.
Silence from: dfr

14 years agoImprove u3g device ejecting by providing additional methods for the eject
thompsa [Wed, 6 Jan 2010 22:14:05 +0000 (22:14 +0000)]
Improve u3g device ejecting by providing additional methods for the eject
command in the usb_msctest routines, as well as a general tidyup.

This now properly ejects the ZTE MF636, Option Gi0322 and Novatel MC950D
devices I have on my desk.

14 years agoscratch_size was incorrectly passed as language ID when retrieving the language
thompsa [Wed, 6 Jan 2010 21:46:08 +0000 (21:46 +0000)]
scratch_size was incorrectly passed as language ID when retrieving the language
ID table, this broke string retrieval on some devices.

Submitted by: Hans Petter Selasky
Reported by: Renato Botelho

14 years agoUse _pthread_once() rather than _once() for localtime() and gmtime(). These
jhb [Wed, 6 Jan 2010 20:43:40 +0000 (20:43 +0000)]
Use _pthread_once() rather than _once() for localtime() and gmtime().  These
methods are only invoked when __isthreaded is true at which point it is safe
to use _pthread_once() directly.

MFC after: 1 week

14 years agoIncrease default block size from 4K to 64K. It was reduces 6 yeard ago,
mav [Wed, 6 Jan 2010 17:12:18 +0000 (17:12 +0000)]
Increase default block size from 4K to 64K. It was reduces 6 yeard ago,
when trees were big and FAST mode was enabled by default.

So small block size doesn't benefits linear I/O operations in FAST and
significantly slowdowns in ECONOMIC (default) mode. For single stream random
I/Os so small block doesn't give much benefits, as access time is usually
bigger then transfer time there. Same time it requires all heads to seek
together for every single request, reducing performance on parallel load.

14 years agoPrint leading zeros in the UFS2 FSID.
gavin [Wed, 6 Jan 2010 14:01:28 +0000 (14:01 +0000)]
Print leading zeros in the UFS2 FSID.

PR: bin/142155
Submitted by: Efstratios Karatzas  gpf.kira gmail.com
Approved by: ed (mentor)
MFC after: 2 weeks

14 years agoChange the way in which zero stripesize is handled. Instead of reporting
mav [Wed, 6 Jan 2010 13:14:37 +0000 (13:14 +0000)]
Change the way in which zero stripesize is handled. Instead of reporting
zero stripeoffset in such case (as if device has no stripes), report offset
from the beginning of the media (as if device has single infinite stripe).

This gives partitioning tools information, required to guess better
partition alignment, in case if hardware doesn't report it's stripe size.
For example, it should give disklabel info about odd offset made by fdisk.

14 years agolen must be int, not size_t
rpaulo [Wed, 6 Jan 2010 13:13:14 +0000 (13:13 +0000)]
len must be int, not size_t

Submitted by: novel

14 years agoWhen restoring files, use the mode for the mode.
kientzle [Wed, 6 Jan 2010 06:35:10 +0000 (06:35 +0000)]
When restoring files, use the mode for the mode.

Thanks to: Jun Kuriyama for pointing this out

14 years agoFix build: getopt() returns int so use an integer to get the value.
delphij [Wed, 6 Jan 2010 00:20:37 +0000 (00:20 +0000)]
Fix build: getopt() returns int so use an integer to get the value.

14 years ago- Move potentially offensive quotes I committed recently to fortunes-o.
stas [Tue, 5 Jan 2010 23:35:43 +0000 (23:35 +0000)]
- Move potentially offensive quotes I committed recently to fortunes-o.
- Reference date.
- Be more clear on context.

Suggested by: dougb

14 years agoAdd net80211 media status reporting.
rpaulo [Tue, 5 Jan 2010 22:59:59 +0000 (22:59 +0000)]
Add net80211 media status reporting.

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

14 years agoBe able to specify a certain date and/or time for which to calculate
edwin [Tue, 5 Jan 2010 21:14:48 +0000 (21:14 +0000)]
Be able to specify a certain date and/or time for which to calculate
the phase of the moon.
While not worlds best improvements, it will help calendar(1) later on.

14 years ago1) Mark usage as dead2.
dwmalone [Tue, 5 Jan 2010 21:09:59 +0000 (21:09 +0000)]
1) Mark usage as dead2.
2) Deregister.
3) New style function definitions.

Some WARNS still remain here - some printf format warning on some
arches and the compiler can't see that a variable should always be
initialised.

14 years agoShuffle parens to avoid type-punning warning.
dwmalone [Tue, 5 Jan 2010 21:00:23 +0000 (21:00 +0000)]
Shuffle parens to avoid type-punning warning.

14 years ago1) Make usage() as dead2 - it helps the compiler know that some vars
dwmalone [Tue, 5 Jan 2010 20:53:55 +0000 (20:53 +0000)]
1) Make usage() as dead2 - it helps the compiler know that some vars
are not used uninitialised.
2) Fix some constness problems.
3) Avoid a signedness problem by casting to size_t. If bn != stuff,
than stuff-1-bn should be > 0.

14 years agoMove the PCI-specific logic of removing a cardbus device into a
jhb [Tue, 5 Jan 2010 20:42:25 +0000 (20:42 +0000)]
Move the PCI-specific logic of removing a cardbus device into a
pci_delete_child() function called by the cardbus driver.  The new function
uses resource_list_unreserve() to release the BARs decoded by the device
being removed.

Reviewed by: imp
Tested by: brooks

14 years agoNew style function definitions.
dwmalone [Tue, 5 Jan 2010 20:40:40 +0000 (20:40 +0000)]
New style function definitions.
Fix constness problem - don't know that pstatus won't change a string with no
whitespace.

14 years agoChange a char that is used as an index into an array into an unisgned char.
dwmalone [Tue, 5 Jan 2010 20:32:08 +0000 (20:32 +0000)]
Change a char that is used as an index into an array into an unisgned char.
Add a missing new style function definition.

14 years agoUpdate acpi_ibm syctl nodes on resume.
iwasaki [Tue, 5 Jan 2010 20:29:30 +0000 (20:29 +0000)]
Update acpi_ibm syctl nodes on resume.

This should fix some Thinkpad specific problems such as
connecting to a headphone jack is not functional on X41.

Reviewed by: takawata
MFC after: 1 week

14 years agoDo not rely on behaviour undefined by ANSI C, use thunks to adapt
kib [Tue, 5 Jan 2010 20:20:31 +0000 (20:20 +0000)]
Do not rely on behaviour undefined by ANSI C, use thunks to adapt
alphasort-like interface to the comparision function required by
qsort() and qsort_r().

For opendir() thunk and alphasort(), comment on why we deviated from
POSIX by using strcmp() instead of strcoll().

Requested and reviewed by: bde
MFC after: 2 weeks

14 years agoFix a double free().
brueffer [Tue, 5 Jan 2010 20:18:41 +0000 (20:18 +0000)]
Fix a double free().

PR: 142339
Submitted by: Henning Petersen <henning.petersen@t-online.de>
MFC after: 2 weeks

14 years agoMove scandir(3) and alphasort(3) into XSI namespace.
kib [Tue, 5 Jan 2010 20:17:13 +0000 (20:17 +0000)]
Move scandir(3) and alphasort(3) into XSI namespace.

Noted and reviewed by: bde
MFC after: 2 weeks

14 years agoRemove more duplicates
dougb [Tue, 5 Jan 2010 19:40:32 +0000 (19:40 +0000)]
Remove more duplicates

Minor reformatting on a few

14 years agoFor completeness, add -s argument, manually specifying array block size.
mav [Tue, 5 Jan 2010 13:25:12 +0000 (13:25 +0000)]
For completeness, add -s argument, manually specifying array block size.