]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoThis commit was generated by cvs2svn to compensate for changes in r179404,
David E. O'Brien [Thu, 29 May 2008 02:29:59 +0000 (02:29 +0000)]
This commit was generated by cvs2svn to compensate for changes in r179404,
which included commits to RCS files with non-trunk default branches.

16 years agoImport of Binutils from the FSF 2.15 branch (just post-.0 release).
David E. O'Brien [Thu, 29 May 2008 02:29:59 +0000 (02:29 +0000)]
Import of Binutils from the FSF 2.15 branch (just post-.0 release).
These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.

16 years agoopt_ah.h is not constructed by config, it always comes from
Sam Leffler [Thu, 29 May 2008 00:16:58 +0000 (00:16 +0000)]
opt_ah.h is not constructed by config, it always comes from
the hal so don't let KERNBUILDDIR control whether or not we
copy it into the build dir

16 years agocorrect rx radiotap channel flags construction for 11n frames
Sam Leffler [Thu, 29 May 2008 00:14:35 +0000 (00:14 +0000)]
correct rx radiotap channel flags construction for 11n frames

16 years agoCleanup power handling and fix suspend/resume:
Sam Leffler [Thu, 29 May 2008 00:10:48 +0000 (00:10 +0000)]
Cleanup power handling and fix suspend/resume:
o do not put the chip into full sleep in ath_stop as it gains
  nothing and causes many parts to hang in ath_detach because we
  may touch the chip during vap teardown; this may also fix issues
  with unloading the module
o add a note in ath_detach to explain ath_hal_detach puts the
  chip in low power mode; this is useful to know as it means
  unloading the module will place a pci device in the lowest
  possible power state
o leave an #ifdef notyet marker for powering down the chip when
  a device is marked down; we can't do that until we handle all
  the ways the driver may be entered and touch the chip
o fix resume by reloading the h/w key cache as it's been clobbered
  (for pci) by the socket being powered off; for station mode we
  directly stop+init the chip and then simulate a beacon miss to
  get the upper layers sync'd up; for other configs we must brute
  force stop+start the vaps so they go through the state machine

16 years agoclose a race on detach by reordering bpfdetach and taskqueue_free
Sam Leffler [Wed, 28 May 2008 23:55:11 +0000 (23:55 +0000)]
close a race on detach by reordering bpfdetach and taskqueue_free

16 years agosend EAPOL frames at the same rate used for mgt frames
Sam Leffler [Wed, 28 May 2008 23:41:40 +0000 (23:41 +0000)]
send EAPOL frames at the same rate used for mgt frames

16 years agomisc cleanups for stricter compilation
Sam Leffler [Wed, 28 May 2008 23:37:37 +0000 (23:37 +0000)]
misc cleanups for stricter compilation

16 years agoupdate copyright year and nuke dual-gpl bits that should've removed long ago
Sam Leffler [Wed, 28 May 2008 23:36:47 +0000 (23:36 +0000)]
update copyright year and nuke dual-gpl bits that should've removed long ago

16 years agoAdd ieee80211_crypto_reload_keys to push all keys known
Sam Leffler [Wed, 28 May 2008 23:33:29 +0000 (23:33 +0000)]
Add ieee80211_crypto_reload_keys to push all keys known
to net80211 back into the device; intended for use on resume
by devices that lose the contents of their h/w key table.

16 years agoAdd a mac address to the key definition as otherwise we lose the
Sam Leffler [Wed, 28 May 2008 23:32:00 +0000 (23:32 +0000)]
Add a mac address to the key definition as otherwise we lose the
address specified in the ioctl and for drivers that need the address
to locate a key (e.g. for delete).

Note this changes net80211-private api's but not the driver callback;
may want to change that in the future.

Reviewed by: sephe, thompsa

16 years agoSplit s/w crypt/mic attributes to allow future hackery; this change
Sam Leffler [Wed, 28 May 2008 23:25:36 +0000 (23:25 +0000)]
Split s/w crypt/mic attributes to allow future hackery; this change
should be a noop.

16 years agomissing piece of last commit; add RESUME flag bit definition
Sam Leffler [Wed, 28 May 2008 23:20:27 +0000 (23:20 +0000)]
missing piece of last commit; add RESUME flag bit definition

16 years agoAdd support to talk to the LSI ioctl path on with FreeBSD 32 bit app's
Doug Ambrisko [Wed, 28 May 2008 23:19:27 +0000 (23:19 +0000)]
Add support to talk to the LSI ioctl path on with FreeBSD 32 bit app's
on amd64.  Note the only difference is the iovec32 part so I use the
native structure for everything else.

Also I plan to MFC all the changes in -current to 7-stable and 6-stable
shortly since I've been running them.  This does not include the cam
changes.

MFC after: 3 days

16 years agoAdd ieee80211_suspend_all and ieee80211_resume_all for
Sam Leffler [Wed, 28 May 2008 23:19:20 +0000 (23:19 +0000)]
Add ieee80211_suspend_all and ieee80211_resume_all for
brute force suspend/resume handling of vaps.

16 years agoDon't override the txpower cap installed by ieee80211_alloc_node;
Sam Leffler [Wed, 28 May 2008 23:18:17 +0000 (23:18 +0000)]
Don't override the txpower cap installed by ieee80211_alloc_node;
we use ic_txpowlimit (for now) to initialize all new sta entries.

16 years agoSimplify some contorted logic that wrongly left ISCAN_DISCARD set
Sam Leffler [Wed, 28 May 2008 23:15:24 +0000 (23:15 +0000)]
Simplify some contorted logic that wrongly left ISCAN_DISCARD set
in certain cases causing the current ap to be lost from the scan cache.

Obtained from: Atheros (original bug)

16 years agoRevise lock name handling:
Sam Leffler [Wed, 28 May 2008 23:10:53 +0000 (23:10 +0000)]
Revise lock name handling:
o construct a name for the com lock as done for other locks
o pass the device name to IEEE80211_LOCK_INIT so the mtx name
  is constructed as foo_com_lock
o introduce *_LOCK_OBJ macro's to hide the lock contents and
  minimize redundant code

16 years agoFix checking if a variable name is LINENO. As STPUTC changes the pointer if it
Stefan Farfeleder [Wed, 28 May 2008 21:44:32 +0000 (21:44 +0000)]
Fix checking if a variable name is LINENO.  As STPUTC changes the pointer if it
needs to enlarge the buffer, we must not keep a pointer to the beginning.

PR: ports/123879

16 years agoAdd a module for cnw(4) and build it on i386.
John Baldwin [Wed, 28 May 2008 20:26:25 +0000 (20:26 +0000)]
Add a module for cnw(4) and build it on i386.

16 years agoRemove redundant checks from fcntl()'s F_DUPFD.
Ed Schouten [Wed, 28 May 2008 20:25:19 +0000 (20:25 +0000)]
Remove redundant checks from fcntl()'s F_DUPFD.

Right now we perform some of the checks inside the fcntl()'s F_DUPFD
operation twice. We first validate the `fd' argument. When finished,
we validate the `arg' argument. These checks are also performed inside
do_dup().

The reason we need to do this, is because fcntl() should return different
errno's when the `arg' argument is out of bounds (EINVAL instead of
EBADF). To prevent the redundant locking of the PROC_LOCK and
FILEDESC_SLOCK, patch do_dup() to support the error semantics required
by fcntl().

Approved by: philip (mentor)

16 years agoGrr, restore some useful comments that were only in the NetBSD code.
John Baldwin [Wed, 28 May 2008 19:47:08 +0000 (19:47 +0000)]
Grr, restore some useful comments that were only in the NetBSD code.

16 years agoRemove NetBSD and FreeBSD 4.x code from this driver in preparation for
John Baldwin [Wed, 28 May 2008 19:44:46 +0000 (19:44 +0000)]
Remove NetBSD and FreeBSD 4.x code from this driver in preparation for
adding locking, etc.

16 years agoWork-around a compiler optimization bug, that broke libthr. Massive
Marcel Moolenaar [Wed, 28 May 2008 16:41:02 +0000 (16:41 +0000)]
Work-around a compiler optimization bug, that broke libthr. Massive
inlining resulted in constant propagation to the extend that cmpval
was known to the compiler to be URWLOCK_WRITE_OWNER (= 0x80000000U).
Unfortunately, instead of zero-extending the unsigned constant, it
was sign-extended. As such, the cmpxchg instruction was comparing
0x0000000080000000LU to 0xffffffff80000000LU and obviously didn't
perform the exchange.
But, since the value returned by cmpxhg equalled cmpval (when zero-
extended), the _thr_rtld_lock_release() function thought the exchange
did happen and as such returned as if having released the lock. This
was not the case. Subsequent locking requests found rw_state non-zero
and the thread in question entered the kernel and block indefinitely.

The work-around is to zero-extend by casting to uint64_t.

16 years agoChange the fix in the rev. 1.179 to use nfsrv_lockedpair_nd().
Konstantin Belousov [Wed, 28 May 2008 16:23:17 +0000 (16:23 +0000)]
Change the fix in the rev. 1.179 to use nfsrv_lockedpair_nd().

Tested by: pho
MFC after: 3 days

16 years agoInitialize vfslocked prior to calling nfsm_srvmtofh where it was forgotten.
Konstantin Belousov [Wed, 28 May 2008 16:21:32 +0000 (16:21 +0000)]
Initialize vfslocked prior to calling nfsm_srvmtofh where it was forgotten.

Reported by: Andrew Edwards <aedwards sandvine com>
Tested by: pho
MFC after: 3 days

16 years agoRemove unused 'xl_unit' member from softc.
John Baldwin [Wed, 28 May 2008 15:34:29 +0000 (15:34 +0000)]
Remove unused 'xl_unit' member from softc.

16 years agoUse PKG_INSTALL_VERSION for the distfile name instead of current date.
Florent Thoumie [Wed, 28 May 2008 14:51:01 +0000 (14:51 +0000)]
Use PKG_INSTALL_VERSION for the distfile name instead of current date.

X-MFC after: pkg_install sync on -STABLE branches

16 years agoRelease the resources for the registers for the TWI device with
Warner Losh [Wed, 28 May 2008 14:35:15 +0000 (14:35 +0000)]
Release the resources for the registers for the TWI device with
SYS_RES_MEMORY to match how we allocate them...

Noticed by: Ian Lepore

16 years agoSimilar to changes previously made to src/usr.bin/uniq/uniq.c,
Guy Helmer [Wed, 28 May 2008 14:13:35 +0000 (14:13 +0000)]
Similar to changes previously made to src/usr.bin/uniq/uniq.c,
fix truncation of lines at LINE_MAX characters by dynamically
extending line buffers.

16 years agoBump PKG_INSTALL_VERSION to 20080528.
Florent Thoumie [Wed, 28 May 2008 13:48:10 +0000 (13:48 +0000)]
Bump PKG_INSTALL_VERSION to 20080528.

X-MFC after: latest HEAD changes have been MFC'ed to RELENG_[67]

16 years agoVarious mdoc style and wording fixes.
Giorgos Keramidas [Wed, 28 May 2008 05:46:04 +0000 (05:46 +0000)]
Various mdoc style and wording fixes.

Reviewed by: ariff
MFC after: 3 days

16 years agoTo both the (formerly) 'temporarily disconnected' netatm and I4B modules
Bjoern A. Zeeb [Tue, 27 May 2008 21:05:49 +0000 (21:05 +0000)]
To both the (formerly) 'temporarily disconnected' netatm and I4B modules
add a comment "(removed 20080525)" to make clear that it is no longer
temporary.

16 years agoUpdate usage strings to add a missing -n option.
Giorgos Keramidas [Tue, 27 May 2008 19:06:45 +0000 (19:06 +0000)]
Update usage strings to add a missing -n option.

Noticed by: Matthias Apitz, matthias.apitz at oclc.org

16 years ago- Increase the size of the salt in pw(8) from 8 to 32 (same as in pam_unix(8)).
Antoine Brodin [Tue, 27 May 2008 19:04:31 +0000 (19:04 +0000)]
- 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

16 years agoAdd more obsolete files.
Antoine Brodin [Tue, 27 May 2008 18:22:54 +0000 (18:22 +0000)]
Add more obsolete files.

Approved by: rwatson (mentor)

16 years agoBluetooth SIG is being difficult and keep moving specification
Maksim Yevmenkin [Tue, 27 May 2008 17:46:32 +0000 (17:46 +0000)]
Bluetooth SIG is being difficult and keep moving specification
documents away from being public accessible. Replace link to
the Bluetooth specification document with the document name.

Pointed out by: SoftLover < slserg at uic dot tula dot ru >
MFC after: 3 days

16 years agoPlug a memory leak which can occur when multiple MAC policies are loaded
Christian S.J. Peron [Tue, 27 May 2008 14:18:02 +0000 (14:18 +0000)]
Plug a memory leak which can occur when multiple MAC policies are loaded
which label mbufs.  This leak can occur if one policy successfully allocates
label storage and subsequent allocations from other policies fail.

Spotted by: rwatson
MFC after: 1 week

16 years agoMake fcntl() a weak symbol so that it can be overridden by thread libraries.
Doug Rabson [Tue, 27 May 2008 14:03:32 +0000 (14:03 +0000)]
Make fcntl() a weak symbol so that it can be overridden by thread libraries.

MFC after: 2 days

16 years agoAdd support for the Colemak keyboard layout from: http://colemak.com/.
Philip Paeps [Tue, 27 May 2008 13:19:06 +0000 (13:19 +0000)]
Add support for the Colemak keyboard layout from: http://colemak.com/.

# While here, restore alphabetical order in INDEX.keymaps.

Submitted by: Geert Hendrickx <ghen -at- netbsd.org>
MFC after: 1 week

16 years agoChange the exit status for 0 and 2 to be the same as with ping(1)
Bjoern A. Zeeb [Tue, 27 May 2008 10:51:19 +0000 (10:51 +0000)]
Change the exit status for 0 and 2 to be the same as with ping(1)
and be usable in scripts, etc.

This also changes the semantics in case when we lose one of n packets.
In that case, before we exited by SIG, now we exit with return(0).

Submitted by: Gert Doering (gert space.net)
MFC after: 10 days

16 years agoLimit the EOF marker length to a maximum of 79
Remko Lodder [Tue, 27 May 2008 09:45:18 +0000 (09:45 +0000)]
Limit the EOF marker length to a maximum of 79
characters. [1]

Add $FreeBSD$ tag so that I can actually commit this.

PR: bin/118782
Reported by: Bjoern Koenig
Patch by: edwin, Jaakko Heinonen (not used patch)
MFC after: 1 week
Approved by: imp (mentor, implicit)

16 years agoAbandon pppd/chat
Peter Wemm [Tue, 27 May 2008 06:50:46 +0000 (06:50 +0000)]
Abandon pppd/chat

16 years agoRename `tty_subr.c' to `subr_clist.c'.
Ed Schouten [Tue, 27 May 2008 06:41:50 +0000 (06:41 +0000)]
Rename `tty_subr.c' to `subr_clist.c'.

Because clists are also used outside the TTY layer, rename the file
containing the clist routines to something more accurate.

The mpsafetty TTY layer doesn't use clists. It uses its own buffers,
which also implement the unbuffered copying to userspace. We cannot
simply remove the clist routines then, because this would break various
drivers that are present within the kernel.

Approved by: philip (mentor)

16 years agoAdd a -n option to pkg_create(1), to inhibit duplicate work.
Giorgos Keramidas [Tue, 27 May 2008 05:10:54 +0000 (05:10 +0000)]
Add a -n option to pkg_create(1), to inhibit duplicate work.

When run without this option, multiple runs of `pkg_create -Rb' will
recreate common packages multiple times.  This can take a lot of time
for large packages.  With the -n option `pkg_create -b' checks with
stat(2) and skips packages that already exist.

Note that this may *not* be safe of the existing output file is not
really a package, or if it has been corrupted, modified or otherwise
tinkered with between subsequent pkg_create runs.  For this and POLA
reasons, the default behavior is to *rebuild* the packages, and the -n
option can be used when we know it is `safe' to run in no-regenerate
mode.

Inspired by: A post to freebsd-questions
  by Matthias Apitz &lt; matthias.apitz at oclc.org &gt;
Reviewed by: marcus, flz
Approved by: marcus
MFC after: 2 weeks

16 years agoMinor code hardening: Verify the final bytes of the string
Tim Kientzle [Tue, 27 May 2008 04:46:12 +0000 (04:46 +0000)]
Minor code hardening:  Verify the final bytes of the string
are actually accessible before trying to use them.

16 years agoCompatibility fix: define REG_BASIC if it isn't already. In particular,
Tim Kientzle [Tue, 27 May 2008 04:44:07 +0000 (04:44 +0000)]
Compatibility fix:  define REG_BASIC if it isn't already.  In particular,
glibc has a suitable regex implementation, but doesn't define this
constant.

Thanks to: Diego "Flameeyes" Pettenò

16 years agoUntil the old archive.h.in gets renamed to archive.h in the repository,
Tim Kientzle [Tue, 27 May 2008 04:12:17 +0000 (04:12 +0000)]
Until the old archive.h.in gets renamed to archive.h in the repository,
we still need some Makefile trickery to ensure archive.h is
correctly built for the test harness.

16 years agoASUS G2S notebook is supported by age(4).
Pyun YongHyeon [Tue, 27 May 2008 03:43:45 +0000 (03:43 +0000)]
ASUS G2S notebook is supported by age(4).

Reported by: Chad Albert ( chad.albert AT healthcarefirst DOT com )

16 years agoAdd jme(4) to the list of drivers supported by GENERIC kernel.
Pyun YongHyeon [Tue, 27 May 2008 02:22:32 +0000 (02:22 +0000)]
Add jme(4) to the list of drivers supported by GENERIC kernel.

16 years agoHook up jme(4) to the build.
Pyun YongHyeon [Tue, 27 May 2008 02:18:17 +0000 (02:18 +0000)]
Hook up jme(4) to the build.

16 years agoRelease pcm mutex before calling snd_clone_unref(), which in turns might
Ariff Abdullah [Tue, 27 May 2008 02:16:05 +0000 (02:16 +0000)]
Release pcm mutex before calling snd_clone_unref(), which in turns might
calling destroy_dev() with sleepable malloc(9). The entire opetation
is being serialized through pcm cv from top down, so dropping mutex is
rather safe.

Reported by: delphij

16 years agoAdd jme(4) to the list of supported network interface.
Pyun YongHyeon [Tue, 27 May 2008 02:15:41 +0000 (02:15 +0000)]
Add jme(4) to the list of supported network interface.

16 years agoAdd an entry for the jme(4) module.
Pyun YongHyeon [Tue, 27 May 2008 02:13:25 +0000 (02:13 +0000)]
Add an entry for the jme(4) module.

16 years agoAdd jme(4) to the list of drivers use the miibus interface.
Pyun YongHyeon [Tue, 27 May 2008 02:07:30 +0000 (02:07 +0000)]
Add jme(4) to the list of drivers use the miibus interface.

16 years agoAdd jme(4) to the list of drivers supporting ALTQ.
Pyun YongHyeon [Tue, 27 May 2008 02:03:26 +0000 (02:03 +0000)]
Add jme(4) to the list of drivers supporting ALTQ.

16 years agoAdd jme(4) to the list of devices supporting full VLAN processing
Pyun YongHyeon [Tue, 27 May 2008 02:01:42 +0000 (02:01 +0000)]
Add jme(4) to the list of devices supporting full VLAN processing
in hardware.

16 years agoAdd man page for jme(4).
Pyun YongHyeon [Tue, 27 May 2008 01:59:17 +0000 (01:59 +0000)]
Add man page for jme(4).

Reviewed by: brueffer

16 years agoHook up jme(4) to the build.
Pyun YongHyeon [Tue, 27 May 2008 01:54:45 +0000 (01:54 +0000)]
Hook up jme(4) to the build.

16 years agoAdd driver support for PCIe adapters based on JMicron JMC250
Pyun YongHyeon [Tue, 27 May 2008 01:42:01 +0000 (01:42 +0000)]
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

16 years agoConnect jmphy(4) to the build.
Pyun YongHyeon [Tue, 27 May 2008 01:23:17 +0000 (01:23 +0000)]
Connect jmphy(4) to the build.

16 years agoAdd JMicron JMP202/JMP211 PHY driver.
Pyun YongHyeon [Tue, 27 May 2008 01:16:40 +0000 (01:16 +0000)]
Add JMicron JMP202/JMP211 PHY driver.

16 years agoImprove a comment which, in the actual CVS stock, doesn't completely
Attilio Rao [Tue, 27 May 2008 00:27:50 +0000 (00:27 +0000)]
Improve a comment which, in the actual CVS stock, doesn't completely
explain the logic of the code chunk.

16 years agoOnce the ENOLCK is detected we expect to retry the acquisition.
Attilio Rao [Tue, 27 May 2008 00:20:19 +0000 (00:20 +0000)]
Once the ENOLCK is detected we expect to retry the acquisition.
Anyway, in the edge case the flushing happens and the while is no more
executed, nfs_flush() (and nfs4_flush()) can return with a wrong
err value of ENOLCK.
Bring it back to 0, as we expect to have for that case.

Reported by: kris
Reviewed by: kib

16 years agoAvoid unnecessary one use of dtom(9) in spx_input().
Robert Watson [Mon, 26 May 2008 22:54:38 +0000 (22:54 +0000)]
Avoid unnecessary one use of dtom(9) in spx_input().

MFC after: 3 days

16 years agoRemove two netatm-specific test parts.
Robert Watson [Mon, 26 May 2008 22:41:40 +0000 (22:41 +0000)]
Remove two netatm-specific test parts.

MFC after: 3 weeks
Spotted by: bz

16 years agoRemove now-obsolete Xref to ng_atmpif.4 from netgraph.4.
Robert Watson [Mon, 26 May 2008 22:39:56 +0000 (22:39 +0000)]
Remove now-obsolete Xref to ng_atmpif.4 from netgraph.4.

MFC after: 3 weeks
Spotted by: antoine

16 years agoAdd CAUTIONS section to the manpage and update .Dd.
Michael Reifenberger [Mon, 26 May 2008 19:24:45 +0000 (19:24 +0000)]
Add CAUTIONS section to the manpage and update .Dd.
Spelling fix.

PR: bin/119305 (reminded by Frank Behrens)
Suggested by: rwatson, maxim
MFC after: 2 weeks

16 years agoConnect bsdcpio up to the build.
Tim Kientzle [Mon, 26 May 2008 19:19:58 +0000 (19:19 +0000)]
Connect bsdcpio up to the build.

Starting now, there are two cpio programs in the base system:
  /usr/bin/gcpio  - GNU cpio
  /usr/bin/bsdcpio - bsdcpio

In addition, there is a symlink:
  /usr/bin/cpio -> /usr/bin/gcpio (default)
  /usr/bin/cpio -> /usr/bin/bsdcpio (WITH_BSDCPIO)

In particular, WITH_BSDCPIO only controls the
symlink; bsdcpio is always built regardless.

Unless there are objections or problems, I intend:
  * to make /usr/bin/bsdcpio available in 7.1
  * to have /usr/bin/cpio default to bsdcpio in 8.0
    (WITH_GCPIO will be an option instead of WITH_BSDCPIO)
  * to leave /usr/bin/gcpio in the tree until 9.0

16 years agoInstall GNU cpio as 'gcpio', symlink to 'cpio' unless WITH_BSDCPIO is
Tim Kientzle [Mon, 26 May 2008 17:21:12 +0000 (17:21 +0000)]
Install GNU cpio as 'gcpio', symlink to 'cpio' unless WITH_BSDCPIO is
defined.

16 years agobsdcpio is always installed as 'bsdcpio', symlink it to 'cpio'
Tim Kientzle [Mon, 26 May 2008 17:17:43 +0000 (17:17 +0000)]
bsdcpio is always installed as 'bsdcpio', symlink it to 'cpio'
only if WITH_BSDCPIO is defined.

16 years agoInitial commit of bsdcpio 0.9.11b.
Tim Kientzle [Mon, 26 May 2008 17:15:35 +0000 (17:15 +0000)]
Initial commit of bsdcpio 0.9.11b.

A new implementation of cpio that uses libarchive as it's back-end
archiving/dearchiving infrastructure.  Includes test harness;
"make check" in the bsdcpio directory to build and run the test
harness.

16 years agoMFp4: bsdtar 2.5.4b
Tim Kientzle [Mon, 26 May 2008 17:10:10 +0000 (17:10 +0000)]
MFp4: bsdtar 2.5.4b

In addition to a number of bug fixes and minor changes:
 * --numeric-owner (ignore user/group names on create and extract)
 * -S (sparsify files on extraction)
 * -s (regex filename substitutions)
 * Use new libarchive 'linkify' to get correct hardlink handling for
   both old and new cpio formats
 * Rework 'copy' test to be insensitive to readdir() filename ordering

Most of the credit for this work goes to Joerg Sonnenberger, who
has been duplicating features from NetBSD's 'pax' program.

16 years agoMFp4: libarchive 2.5.4b. (Still 'b' until I get a bit more
Tim Kientzle [Mon, 26 May 2008 17:00:24 +0000 (17:00 +0000)]
MFp4: libarchive 2.5.4b.  (Still 'b' until I get a bit more
feedback, but the 2.5 branch is shaping up nicely.)

In addition to many small bug fixes and code improvements:
 * Another iteration of versioning; I think I've got it right now.
 * Portability:  A lot of progress on Windows support (though I'm
   not committing all of the Windows support files to FreeBSD CVS)
 * Explicit tracking of MBS, WCS, and UTF-8 versions of strings
   in archive_entry; the archive_entry routines now correctly return
   NULL only when something is unset, setting NULL properly clears
   string values.  Most charset conversions have been pushed down to
   archive_string.
 * Better handling of charset conversion failure when writing or
   reading UTF-8 headers in pax archives
 * archive_entry_linkify() provides multiple strategies for
   hardlink matching to suit different format expectations
 * More accurate bzip2 format detection
 * Joerg Sonnenberger's extensive improvements to mtree support
 * Rough support for self-extracting ZIP archives.  Not an ideal
   approach, but it works for the archives I've tried.
 * New "sparsify" option in archive_write_disk converts blocks of nulls
   into seeks.
 * Better default behavior for the test harness; it now reports
   all failures by default instead of coredumping at the first one.

16 years agoUse _WANT_FILE to make struct file visible from userland. This is
Pawel Jakub Dawidek [Mon, 26 May 2008 15:12:47 +0000 (15:12 +0000)]
Use _WANT_FILE to make struct file visible from userland. This is
similar to _WANT_UCRED and _WANT_PRISON and seems to be much nicer than
defining _KERNEL.
It is also needed for my sys/refcount.h change going in soon.

16 years agoExtend jexec to accept hostname or ip-number besides jail-id.
Michael Reifenberger [Mon, 26 May 2008 11:57:49 +0000 (11:57 +0000)]
Extend jexec to accept hostname or ip-number besides jail-id.

MFC after: 2 weeks

16 years agoBump __FreeBSD_version after netatm and I4B removal.
Bjoern A. Zeeb [Mon, 26 May 2008 10:45:11 +0000 (10:45 +0000)]
Bump __FreeBSD_version after netatm and I4B removal.
There should be no API changes but ports might rely on this.

16 years agoRemove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
Bjoern A. Zeeb [Mon, 26 May 2008 10:40:09 +0000 (10:40 +0000)]
Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.

This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation

Discussed with: rwatson, re

16 years agoAdd a missing space between a variable and the ] for a test
Doug Barton [Mon, 26 May 2008 10:10:11 +0000 (10:10 +0000)]
Add a missing space between a variable and the ] for a test

16 years agoTake into account possible overflow when multiplying. The casuality is
Konstantin Belousov [Mon, 26 May 2008 10:01:13 +0000 (10:01 +0000)]
Take into account possible overflow when multiplying. The casuality is
the malloc call later, panicing kernel due to the oversized allocation.

Reported by: pho
Reviewed by: jeff

16 years agoDont call ata_start() when ata_reinit fails in the ioctl path.
Søren Schmidt [Mon, 26 May 2008 08:58:48 +0000 (08:58 +0000)]
Dont call ata_start() when ata_reinit fails in the ioctl path.

16 years agoWe can not call iwn_start directly in the interrupt
Xin LI [Mon, 26 May 2008 07:40:14 +0000 (07:40 +0000)]
We can not call iwn_start directly in the interrupt
context, where the iwn mutex is being held, and
iwn_start assumes that we do not have that mutex held.

Resolve this issue with what we do for other NICs by
splitting the iwn_start procedure into two parts,
iwn_start() do the locking, and iwn_start_locked()
assumes that the mutex is being held.  This resolves
panic when WITNESS is enabled.

16 years agoFix namespace collision after src/sys/sys/file.h:1.78.
Pawel Jakub Dawidek [Sun, 25 May 2008 22:34:17 +0000 (22:34 +0000)]
Fix namespace collision after src/sys/sys/file.h:1.78.

16 years agoBackout the change to remove sun4v.
John Birrell [Sun, 25 May 2008 22:13:17 +0000 (22:13 +0000)]
Backout the change to remove sun4v.

Note that sun4v is currently broken on T2000 hardware so it's pretty
much a lame duck at this point.

16 years agoRemove netatm from HEAD as it is not MPSAFE and relies on the now removed
Robert Watson [Sun, 25 May 2008 22:11:40 +0000 (22:11 +0000)]
Remove netatm from HEAD as it is not MPSAFE and relies on the now removed
NET_NEEDS_GIANT.  netatm has been disconnected from the build for ten
months in HEAD/RELENG_7.  Specifics:

- netatm include files
- netatm command line management tools
- libatm
- ATM parts in rescue and sysinstall
- sample configuration files and documents
- kernel support as a module or in NOTES
- netgraph wrapper nodes for netatm
- ctags data for netatm.
- netatm-specific device drivers.

MFC after: 3 weeks
Reviewed by: bz
Discussed with: bms, bz, harti

16 years agoComment out the code that breaks with invariants. This is stuff that is
John Birrell [Sun, 25 May 2008 20:24:07 +0000 (20:24 +0000)]
Comment out the code that breaks with invariants. This is stuff that is
still WIP along with the lockstat provider, so there is no harm leaving
it out for now.

16 years agoThe "if" semantic is not needed, just fix this.
Attilio Rao [Sun, 25 May 2008 16:11:27 +0000 (16:11 +0000)]
The "if" semantic is not needed, just fix this.

16 years agoReplace direct atomic operation for the file refcount witht the
Attilio Rao [Sun, 25 May 2008 14:57:43 +0000 (14:57 +0000)]
Replace direct atomic operation for the file refcount witht the
refcount interface.
It also introduces the correct usage of memory barriers, as sometimes
fdrop() and fhold() are used with shared locks, which don't use any
release barrier.

16 years agostyle fix for newly introduced macro.
Attilio Rao [Sun, 25 May 2008 14:50:47 +0000 (14:50 +0000)]
style fix for newly introduced macro.

16 years agoRemove sun4v from the list of arches in 'make universe'. There has been
John Birrell [Sun, 25 May 2008 02:48:57 +0000 (02:48 +0000)]
Remove sun4v from the list of arches in 'make universe'. There has been
no active development on it for over a year now and it isn't
reliable under a simple buildworld. Developers can't be expected to
test code targeted for it.

16 years agoRemove the dependency on lockstat. That its still work in progress.
John Birrell [Sun, 25 May 2008 02:04:18 +0000 (02:04 +0000)]
Remove the dependency on lockstat. That its still work in progress.

16 years agoAdd the vtime (virtual time) hooks for DTrace.
John Birrell [Sun, 25 May 2008 01:44:58 +0000 (01:44 +0000)]
Add the vtime (virtual time) hooks for DTrace.

16 years agoTo date, our implementation of munmap(2) has required that the
Alan Cox [Sat, 24 May 2008 21:57:16 +0000 (21:57 +0000)]
To date, our implementation of munmap(2) has required that the
entirety of the specified range be mapped.  Specifically, it has
returned EINVAL if the entire range is not mapped.  There is not,
however, any basis for this in either SuSv2 or our own man page.
Moreover, neither Linux nor Solaris impose this requirement.  This
revision removes this requirement.

Submitted by: Tijl Coosemans
PR: 118510
MFC after: 6 weeks

16 years agoFix comments to replace SBSIZE with SBLOCKSIZE, since SBSIZE
Craig Rodrigues [Sat, 24 May 2008 20:44:14 +0000 (20:44 +0000)]
Fix comments to replace SBSIZE with SBLOCKSIZE, since SBSIZE
was renamed to SBLOCKSIZE in version 1.33

Reviewed by: mckusick

16 years agoRemove 'fasttrap' module for amd64 for now as the code is not there
Bjoern A. Zeeb [Sat, 24 May 2008 19:52:19 +0000 (19:52 +0000)]
Remove 'fasttrap' module for amd64 for now as the code is not there
in sys/cddl/dev/fasttrap.

16 years agoRemove redundant redeclaration of 'zone_drain'.
Bjoern A. Zeeb [Sat, 24 May 2008 19:30:38 +0000 (19:30 +0000)]
Remove redundant redeclaration of 'zone_drain'.

16 years agoRestore buildable state. Style ignored.
Bjoern A. Zeeb [Sat, 24 May 2008 19:29:02 +0000 (19:29 +0000)]
Restore buildable state. Style ignored.
Leave IDTVEC(ill) where it was unless we compile with KDTRACE_HOOKS[1].
Hide the with DTRACE case case under #ifdef KDTRACE_HOOKS.

Suggested by: attilio [1]
Reviewed by: attilio

16 years agoChange my email address to the one from the FreeBSD project.
Ed Schouten [Sat, 24 May 2008 18:35:55 +0000 (18:35 +0000)]
Change my email address to the one from the FreeBSD project.

Approved by: philip (mentor)

16 years agoIn addition to the ipsec_osdep.h removal a week ago, now also eliminate
Bjoern A. Zeeb [Sat, 24 May 2008 15:32:46 +0000 (15:32 +0000)]
In addition to the ipsec_osdep.h removal a week ago, now also eliminate
IPSEC_SPLASSERT_SOFTNET which has been 'unused' since FreeBSD 5.0.

16 years agoFactor out the v4-only vs. the v6-only inp_flags processing in
Bjoern A. Zeeb [Sat, 24 May 2008 15:20:48 +0000 (15:20 +0000)]
Factor out the v4-only vs. the v6-only inp_flags processing in
ip6_savecontrol in preparation for udp_append() to no longer
need an WLOCK as we will no longer be modifying socket options.

Requested by: rwatson
Reviewed by: gnn
MFC after: 10 days