122080 Commits

Author SHA1 Message Date
kientzle
7bd343d4a0 MFC additional manpage comments to more widely publicize some
of bsdtar's key features.
2007-08-25 04:26:00 +00:00
kientzle
379f6c564c MFC --use-compress-program support. 2007-08-25 04:24:52 +00:00
kientzle
3210c203d5 MFC include guards. 2007-08-25 04:21:18 +00:00
kientzle
dbe00e79e2 MFC generic path comparisons. There was some old code
to ignore leading "./" that was there to allow us to
compare path names with strcmp().  Comparing pathnames
syntactically is a bit more complex than that, so
encapsulate it in a new utility function and use that instead.
2007-08-25 04:19:55 +00:00
kientzle
26f3bc4cf4 MFC corrected error handling on extraction. 2007-08-25 04:14:28 +00:00
kientzle
5b2f302121 MFC some miscellaneous casts to correct printing of
numerical UIDs, GIDs, and device numbers in tar -tv output.a
2007-08-25 04:11:47 +00:00
kientzle
67ca34cecd MFC refactored code to copy entry from one archive to another.
This is the code that implements the @<archive> interpolation
feature.
2007-08-25 04:08:45 +00:00
kientzle
c7d49f6377 MFC whitespace fixes. 2007-08-25 03:59:52 +00:00
kientzle
17d37094df MFC refactored platform configuration.
Separate platform-specific config into config_freebsd.h.
Changes to Makefile and bsdtar_platform.h to use this instead
of coding the FreeBSD configuration into bsdtar_platform.h
2007-08-25 03:58:25 +00:00
kientzle
090f1c5eb5 MFC archive_read_support_format_tar.c 1.61
This updates the support for GNU tar --posix --sparse archive
entries to be compatible with GNU tar 1.17.
2007-08-25 03:49:12 +00:00
jhb
a432a3d68c MFC: Expand the data structure returned by the ATA RAID status ioctl to
include detailed status on each of the backing subdisks.  A binary compat
shim is provided for the original status ioctl.

Approved by:	sos
2007-08-24 18:43:00 +00:00
jhb
1d80780684 MFC: Teach the mfi(4) driver to handle requests from userland management
applications to add and remove volumes.
2007-08-24 17:29:18 +00:00
thompsa
bb1f6850cc MFC r1.38,1.39
- Ensure the path cost does not exceed 65535 in legacy STP mode.
 - If the path cost is calculated when the link is down, set a pending flag so
   it is calculated again when it comes back up.
 - To not use 00:00:00:00:00:00 as the bridge id, all interfaces are scanned and
   the lowest number wins. All zeros is too low.
 - If the STP state machine is stopped then clear the bridge-id and root-id.
2007-08-24 10:34:30 +00:00
obrien
f5c0a61308 MFC: rev 1.1034: add warnings for additional GPL infecting sub-systems. 2007-08-23 22:30:14 +00:00
jinmei
94c889fde1 MFC:
Fix a kernel panic based on receiving an ICMPv6 Packet too Big message.
  (MFC was planned but has been missed)

PR:		99779
Submitted by:	Jinmei Tatuya
Reviewed by:	clement, rwatson
Approved by:	gnn (mentor)

src/sys/kern/uipc_socket.c:	1.280
2007-08-23 18:17:08 +00:00
bmah
e09aeb7b0f MFC (sort of): Autogenerate hardware notes entities for ath(4) for all
platforms on which it's included in the GENERIC kernel.  The change
is not an exact MFC because the set of platforms is different between
HEAD and RELENG_6.

	dev.archlist.txt	1.95 -> 1.96

PR:		115403
2007-08-23 15:44:44 +00:00
dhartmei
555abbbd85 MFC: r1.46 2007-08-23 09:38:14 +00:00
syrinx
03dcfe9592 MFC:
src/usr.sbin/bsnmpd/modules/snmp_bridge/BEGEMOT-BRIDGE-MIB.txt, Revision 1.3
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c, Revision 1.6
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.h, Revision 1.5
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c, Revision 1.7
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_tree.def, Revision 1.3
src/usr.sbin/bsnmpd/modules/snmp_bridge/snmp_bridge.3, Revision 1.4

Keep the snmp_bridge(3) module up to date with if_bridge(4) and add an
object to control the value of the new 'PRIVATE' bridge members' flag.

While here, remove stale '__unused' compiler directives.

Reviewed by:	bz
Approved by:	bz (mentor)
2007-08-23 08:19:09 +00:00
emaste
1c4a61f21a MFC sha2.c 1.9:
Initialize T1 to silent gcc warning.
2007-08-22 21:17:44 +00:00
gabor
0cb19b79aa MFC: r1.61
Approved by:	keramida (mentor)
2007-08-22 18:11:26 +00:00
emaste
042261af1a MFC aac_cam.c 1.26:
Add a missing mutex unlock to an error path.

  Submitted by: Yuxiang Luo
  PR: 107943
2007-08-22 14:46:27 +00:00
njl
0e4a0c6c62 MFC 1.26 and 1.27: use proper loop variables and sched_bind() behavior 2007-08-22 04:55:05 +00:00
emaste
6661f4aae3 MFC aac.c 1.118:
Rearrange locking in the alloc_commands and ioctl paths to avoid problems.
2007-08-21 20:31:49 +00:00
emaste
82cda9fbb8 MFC aac.c 1.119:
The return value of aac_alloc_command() was misinterpreted in aac_ioctl_event().
  Once triggered this would leak away all available commands and starve the rest
  of the driver.
2007-08-21 16:33:55 +00:00
hm
620b5eee96 PR: kern/115414
Submitted by:   Eugene Grosbein <eugen@grosbein.pp.ru>
The fix for PR kern/111480 was incomplete, "make MODULES_WITH_WORLD=true
buildworld" stopped with an error.
2007-08-21 08:58:22 +00:00
davidch
e683c36460 - Fixed a problem that would cause kernel panics and "bce0: discard frame .."
errors (especially when jumbo frames are enabled or in low memory systems)
    because the RX chain was corrupted when an mbuf was mapped to an unexpected
    number of buffers.
  - Fixed a problem that would cause kernel panics when an excessively
    fragmented TX mbuf couldn't be defragmented and was released by
    bce_tx_encap().
2007-08-20 21:47:49 +00:00
truckman
9349324cd3 MFC ehci.c 1.56
Replace three copies of the host controller reset sequence that
  differ in their details with calls to a new function, ehci_hcreset(),
  that performs the reset.

  The original sequences either had no delay or a 1ms delay between
  telling the controller to stop and asserting the controller reset
  bit.  One instance of the original reset sequence waited for the
  controller to indicate that its reset was complete before continuing,
  but the other two immediately let the subsequent code execute.  The
  latter is a problem on some hardware, because a read of the HCCPARAMS
  register returns an incorrect value while the reset is in progress,
  which triggers an infinite loop in ehci_pci_givecontroller(), which
  hangs the system on shutdown.

  The reset sequence in ehci_hcreset() starts with the most complete
  instance from the original code, which contains a loop to wait for
  the controller to indicate that its reset is complete.   This appears
  to be the correct thing to do according to "Enhanced Host Controller
  Interface Specification for Universal Serial Bus" revision 1.0,
  section 2.3.1.  Add another loop to wait for the controller to
  indicate that it has stopped before setting the HCRESET bit.  This
  is required by the section 2.3.1 in the specification, which says
  that setting HCRESET before the controller has halted "will result
  in undefined behaviour".
2007-08-20 13:04:04 +00:00
truckman
f6e11620e6 MFC file.c 1.8
If the mmap() call in rpc.statd fails, rpc.statd prints a warning
  message and then dumps core because the subsequent code assumes that
  mmap() succeeded.  Since rpc.statd does not have fallback code to
  implement the functionality needed to operate on the status file if
  it is not memory mapped, rpc.statd should use err() to force the process
  to exit if the mmap() call fails.

PR:		bin/115430 (mmap() failure previously fixed in statd.c 1.12.8.2)
2007-08-20 13:00:48 +00:00
ache
c9b2753121 Increase MAX_LEN to 4096
It fix core dump with latest ghostscript-gpl port (too many items)
2007-08-19 20:53:50 +00:00
mav
ff6b5cd0df MFC rev. 1.135
Add ng_send_fn() error handeling inside ng_con_nodes().
Without it some errors may left unnoticed and unhandeled
that lead to hooks left in half-connected state.
2007-08-19 19:36:46 +00:00
se
dbd551b019 MFC of rev. 1.67: Fix sym driver on amd64. 2007-08-19 10:51:03 +00:00
kmacy
26255f3780 m_sanity and SA_LOCKED are not defined in RELENG6 - don't use 2007-08-19 08:13:00 +00:00
kmacy
955dd8a79c Aggregate recent fixes to cxgb in HEAD into MFC:
- integrate most recent changes from vendor branch and upgrade to firmware revision 4.5.5
          - add filter support
          - further improvements for T304
  - recover gracefully from spurious immediate packets
  - Increase descriptors per call to start
  - enqueue per-txq task
  - fix per-txq task initialization
  - reduce cpu usage by as much as 25% (40% -> 30) by doing txq reclaim more efficiently
     - use mtx_trylock when trying to grab the lock to avoid spinning during long encap loop
     - add per-txq reclaim task
     - if mbufs were successfully re-claimed try another pass
  - track txq overruns with sysctl
  - In all structures other than port info port is a pointer to a port info,
    make the code less confusing by renaming the port number to port_id
RELENG_6 only fix:
  - set cluster refcnt to 1 if it isn't otherwise set to fix memory leak

Supported by: Chelsio
2007-08-18 09:10:26 +00:00
cvs2svn
c37f50f631 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-08-18 04:08:54 +00:00
maxim
bd43b633df MFC rev. 1.36: with -x switch do not pay attention at the hardcoded
limit of 3 devices and dump stats for all devices in the system.
2007-08-17 19:09:00 +00:00
maxim
48e284ac69 MFC rev. 1.25: round-type -> round-trip. 2007-08-17 19:03:26 +00:00
maxim
594dc3774e MFC rev. 1.23: Iomage -> Iomega. 2007-08-17 19:01:17 +00:00
maxim
8907e0716e MFC revs. 1.111 - 1.115: DragonFly 1.8.0, OpenBSD 4.1,
FreeBSD 1.0.2 from November 1993, DragonFlyBSD 1.10.0.
2007-08-17 18:59:37 +00:00
yar
54e742b54e MFC:
src/etc/rc.subr			1.72
	src/share/man/man8/rc.subr.8	1.17

Eliminate a number of inconsistencies in handling pre- and post-commands
as well as required_* conditions.  Introduce required_modules.

PR:	conf/98734
2007-08-17 12:00:33 +00:00
yar
f321b352ce MFC with compatibility shims:
pam_nologin(8) starts to provide an account management function in
addition to the existing authentication function so that sshd(8) can
respect nologin(5) while the rest of PAM consumers work as earlier.
In turn, sshd(8) starts to use the new account management function
in pam_nologin(8) and thus respect nologin(5) even when doing public
key authentication with sshd's internal routines (PAM authentication
isn't called at all in that case).

Based on:

  1.12      +2 -10     src/lib/libpam/modules/pam_nologin/pam_nologin.c
  1.6       +10 -11    src/lib/libpam/modules/pam_nologin/pam_nologin.8
  1.16      +1 -1      src/etc/pam.d/sshd

Approved by:	des
PR:		bin/112574
2007-08-17 11:28:25 +00:00
cperciva
5a1a84e1d2 MFC revisions 1.7, 1.8: Speed up "preparing to download files" stage of
"freebsd-update fetch", change time of first "upcoming EoL" warning to
EoL minute 3 months instead of EoL minus 6 months.
2007-08-17 06:34:36 +00:00
dougb
7101123d5c MFC 1.26:
Update root zone slave example, and correct typo copied from RFC 2544.

Since this change entails only comments and a fix to something that
is actually broken, I'm MFC'ing it sooner rather than later.
2007-08-17 04:39:15 +00:00
jhb
ce3ef5f34e MFC: Partial MFC of earlier minor fixes and tweaks to x86 interrupt code:
- Add a new nexus hook: nexus_add_irq() to ask the nexus driver to add an
  IRQ to its irq_rman.  The MSI code uses this when it creates new
  interrupt sources to let the nexus know about newly valid IRQs.
  Previously the msi_alloc() and msix_alloc() passed some extra stuff
  back to the nexus methods which then added the IRQs.  This approach is
  a bit cleaner.
- Change the MSI sx lock to a mutex.  If we need to create new sources,
  drop the lock, create the required number of sources, then get the lock
  and try the allocation again.
2007-08-15 21:12:08 +00:00
jhb
24a23340cc MFC: Revamp the MSI/MSI-X code a bit to achieve two main goals:
- Simplify the amount of work that has be done for each architecture by
  pushing more of the truly MI code down into the PCI bus driver.
- Don't bind MSI-X indicies to IRQs so that we can allow a driver to map
  multiple MSI-X messages into a single IRQ when handling a message
  shortage.

Note that as with the previous MSI MFC, this does not yet include the
'pci_remap_msix()' function.
2007-08-15 20:56:10 +00:00
jhb
f0f120d153 MFC: Handle negative trap numbers (due to a corrupted trapframe) by not
triggering a nested page fault when indexing the trap_msg[] array.
2007-08-14 19:42:52 +00:00
jhb
11dd132db2 MFC 1.24: Require 'cleanvar'. 2007-08-14 19:38:02 +00:00
jhb
2a667e66b3 Don't abuse tf_err to pass the faulting virtual address to signal handlers
on i386.  Instead, add a new field to 'struct mdthread' to hold the address
and preserve the tf_err value.  This corrects the 'sc_err' value in signal
frames which wine needs.

Tested by:	wine-freebsd @ hub org
2007-08-14 15:46:35 +00:00
danger
9d37aaecac - sync with HEAD
PR: docs/114259
2007-08-12 22:21:09 +00:00
truckman
e1786d398e MFC statd.c 1.15 -
The call to init_file() needs to be moved outside the loop in statd.c,
  otherwise mmap() gets called multiple times, which eventually fails due
  to address space exhaustion on i386.
2007-08-12 01:46:19 +00:00
jhb
153695bbdc MFC 1.87: Avoid manipulating semu_list outside of the scope of
SEMUNDO_LOCK().  This would lead to an occasional hang with a cycle in
semu_list.
2007-08-08 16:42:47 +00:00