]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoInclude a note in the sendmail 8.14.1 release note regarding the libmilter
gshapiro [Fri, 20 Apr 2007 05:13:17 +0000 (05:13 +0000)]
Include a note in the sendmail 8.14.1 release note regarding the libmilter
update.

Requested by: re (bmah)

17 years agoEliminate CID 1842 by comparing against (type != EXT_MBUF) => refcnt != NULL
kmacy [Fri, 20 Apr 2007 05:12:54 +0000 (05:12 +0000)]
Eliminate CID 1842 by comparing against (type != EXT_MBUF) => refcnt != NULL

17 years agoFix memory leak in m_collapse (CID 1843)
kmacy [Fri, 20 Apr 2007 05:06:02 +0000 (05:06 +0000)]
Fix memory leak in m_collapse (CID 1843)

Found by: Coverity
Submitted by: jhb

17 years agoAdd ofw bus methods to the ppc nexus driver. This will be used in future
grehan [Fri, 20 Apr 2007 03:24:59 +0000 (03:24 +0000)]
Add ofw bus methods to the ppc nexus driver. This will be used in future
EFIKA platform support.

PR: 111522
Submitted by: Andrew Turner, andrew at fubar geek nz

17 years agoIn some cases, like whenever devfs file times are zero, the fix(aa) will not
trhodes [Fri, 20 Apr 2007 01:47:05 +0000 (01:47 +0000)]
In some cases, like whenever devfs file times are zero, the fix(aa) will not
be applied to dev entries.  This leaves us with file times like "Jan 1 1970."
Work around this problem by replacing the tv_sec == 0 check with a
<= 3600 check.  It's doubtful anyone will be booting within an hour of the
Epoch, let alone care about a few seconds worth of nonzero timestamps.  It's
a hackish work around, but it does work and I have not experienced any
negatives in my testing.

Discussed with: bde
"Ok with me: phk

17 years agoUnbreak module / driver attach breakage. Both snd_envy24 and snd_envy24ht
ariff [Fri, 20 Apr 2007 01:28:51 +0000 (01:28 +0000)]
Unbreak module / driver attach breakage. Both snd_envy24 and snd_envy24ht
mistakenly rely on wrong snd_spicds version.

17 years agoRetire the spl() markers. Add in some minor missed locking as a result.
scottl [Thu, 19 Apr 2007 23:34:51 +0000 (23:34 +0000)]
Retire the spl() markers.  Add in some minor missed locking as a result.

17 years agoInline cam_periph_lock|unlock to make debugging easier. Use more
scottl [Thu, 19 Apr 2007 22:46:26 +0000 (22:46 +0000)]
Inline cam_periph_lock|unlock to make debugging easier.  Use more
CAM_SIM_LOCK() more uniformly.

17 years agoFix a leaked lock in dashutdown.
scottl [Thu, 19 Apr 2007 22:18:15 +0000 (22:18 +0000)]
Fix a leaked lock in dashutdown.

17 years agoUp until now, the free SCB pool received only a small initial allocation,
scottl [Thu, 19 Apr 2007 18:53:52 +0000 (18:53 +0000)]
Up until now, the free SCB pool received only a small initial allocation,
and new SCBs were allocated on demand later if needed.  This has two
problems.  First, allocating SCBs involves allocating contiguous memory,
and if memory is exhausted then the VM will try to page out to satisfy
the request, leading to recursion and deadlock.  The second problem is
that it can cause lock order reversals due to parts of the VM still being
under Giant.

Fix the problem be allocating the full pool at driver attach, when it is
safe to do so.

17 years agoAvoid problems with make_dev.
scottl [Thu, 19 Apr 2007 18:14:33 +0000 (18:14 +0000)]
Avoid problems with make_dev.

17 years agoReword the description of the UTF8 option (-8) so I can swear
yar [Thu, 19 Apr 2007 17:30:19 +0000 (17:30 +0000)]
Reword the description of the UTF8 option (-8) so I can swear
to myself that I understand it.

Bump document date.

17 years agoOops, fix intsmb(4) attach. Don't overwrite the 'value' holding the
jhb [Thu, 19 Apr 2007 17:14:06 +0000 (17:14 +0000)]
Oops, fix intsmb(4) attach.  Don't overwrite the 'value' holding the
interrupt mode with the SMB revision before checking 'value' for a valid
interrupt mode.

Reported by: Ulrich Spoerlein <uspoerlein of gmail fame>

17 years agoBack-out manual procedure for maintaining compatibility with old accounting
dds [Thu, 19 Apr 2007 17:08:54 +0000 (17:08 +0000)]
Back-out manual procedure for maintaining compatibility with old accounting
files.  This functionality will be built-into the corresponding tools.

17 years agoUnbreak rev 1.7's getopt usage. The -f switch does not take an argument.
peter [Thu, 19 Apr 2007 16:43:30 +0000 (16:43 +0000)]
Unbreak rev 1.7's getopt usage.  The -f switch does not take an argument.
The stray ':' was from the defunct '-g' group arg.

17 years agoMake inet6_rth_* family of functions more compliant with RFC3542:
mtm [Thu, 19 Apr 2007 15:48:16 +0000 (15:48 +0000)]
Make inet6_rth_* family of functions more compliant with RFC3542:
1. CMSG_NXTHDR(mhdr, cmsg) is supposed to dereference cmsg and return
   the next header in the chain. If cmsg is NULL it should return
   the first header, behaving essentially like CMSG_FIRSTHDR().
2. inet6_rth_(space|init|add) should do basic checking on their input
   to verify that the number of headers (segments) is
   between 0 and 127 inclusive.

MFC-After: 1 month

17 years agoCorrect two issues in ping6:
mtm [Thu, 19 Apr 2007 15:41:00 +0000 (15:41 +0000)]
Correct two issues in ping6:
1. The static buffer that ping6(8) uses to hold the control data
   it gets from recvmsg(2) is too small in some cases.
2. When it prints the extra header information it doesn't do
   any checking to make sure the data it's printing is within
   the bounds of the supplied buffer.

Fix this by:
o Increasing the buffer to hold extra headers to 10240 bytes (the minimum
  according to RFC3542 sec. 20.1) and allocate it dynamically.
o In verbose mode, specify a warning if any control data from recvmsg(2)
  was truncated because the buffer was too small.
o When printing the extra headers make sure not to overrun the buffer
  boundaries.

Reviewed By: mlaier
PR: kern/99425
MFC After: 1 month

17 years agoZero the CCBs when mallocing them.
scottl [Thu, 19 Apr 2007 14:45:37 +0000 (14:45 +0000)]
Zero the CCBs when mallocing them.

17 years agoSplit the camisr into per-SIM done queues. This optimizes the locking a
scottl [Thu, 19 Apr 2007 14:28:43 +0000 (14:28 +0000)]
Split the camisr into per-SIM done queues.  This optimizes the locking a
little bit and allows for direct dispatch of the doneq from certain
contexts that would otherwise face recursive locking problems.

17 years ago- Add new 'a' and 'j' options into usage
rafan [Thu, 19 Apr 2007 14:24:54 +0000 (14:24 +0000)]
- Add new 'a' and 'j' options into usage

Approved by: delphij (mentor, implicit)
Forgotten by: stas ('a') and rafan ('j')

17 years agoGrammer correction from: emaste
phk [Thu, 19 Apr 2007 14:01:04 +0000 (14:01 +0000)]
Grammer correction from: emaste

17 years ago- AC97 quirk / patch cleanups. Most quirks doesn't work in general sense
ariff [Thu, 19 Apr 2007 13:54:22 +0000 (13:54 +0000)]
- AC97 quirk / patch cleanups. Most quirks doesn't work in general sense
  and should only be applied on certain specific card / vendor, hence the
  addition of ac97_getsubvendor().
- Fix low volume issue on several MSI laptops through ALC655 quirk.

Reported/Tested by: Christian Mueller
                    <raptor-freebsd-multimedia@xpls.de>
MFC after: 1 week

17 years ago- Fix mbuf/node leakage in drivers' raw_xmit().
sephe [Thu, 19 Apr 2007 13:09:57 +0000 (13:09 +0000)]
- Fix mbuf/node leakage in drivers' raw_xmit().
- For ural(4):
  o  Fix node leakage in ural_start(), if ural_tx_mgt() fails.
  o  Fix mbuf leakage in ural_tx_{mgt,data}(), if usbd_transfer() fails.
  o  In ural_tx_{mgt,data}(), set ural_tx_data.{m,ni} to NULL, if
     usbd_transfer() fails, so they will not be freed again in ural_stop().

Approved by: sam (mentor)

17 years ago- More work on making send lock contention.
rrs [Thu, 19 Apr 2007 11:28:43 +0000 (11:28 +0000)]
- More work on making send lock contention.
- Removed free-oqueue cache.
- Fix counter for sq entries
- Increased the amount of information retained
  on ASOC_TSN logging on the association.
- Made it so with the ASOC_TSN logging on
  sending or recieving an abort we dump the log.
- Went through and added invariant's around some
  panic's that needed them.
- decrements went to atomic_subtact_int instead of add -1
- Removed residual count increment that threw off a
  strm oq count.
- Tracks and complaints if we don't have a LAST fragment and
  clean up the sp structure.
- Track a new stat that counts number of abandoned msgs that
  happen if you close without reading.
- Fix lookup of frag point to be aware of a 0 assoc-id.
Reviewed by: gnn

17 years agoLoosen return value spec for fputs to be standards compliant so people
phk [Thu, 19 Apr 2007 09:38:31 +0000 (09:38 +0000)]
Loosen return value spec for fputs to be standards compliant so people
don't program against our more restrictive behaviour.

17 years agostyle nit
phk [Thu, 19 Apr 2007 09:18:51 +0000 (09:18 +0000)]
style nit

17 years agoFix witness(4) warnings about mutex use.
jkoshy [Thu, 19 Apr 2007 08:02:51 +0000 (08:02 +0000)]
Fix witness(4) warnings about mutex use.

Group mutexes used in hwpmc(4) into 3 "types" in the sense of
witness(4):

 - leaf spin mutexes---only one of these should be held at a time,
   so these mutexes are specified as belonging to a single witness
   type "pmc-leaf".

 - `struct pmc_owner' descriptors are protected by a spin mutex of
   witness type "pmc-owner-proc".  Since we call wakeup_one() while
   holding these mutexes, the witness type of these mutexes needs
   to dominate that of "sleepq chain" mutexes.

 - logger threads use a sleep mutex, of type "pmc-sleep".

Submitted by: wkoszek (earlier patch)

17 years agoValid error codes for err() and errx() are 1..255.
des [Thu, 19 Apr 2007 07:59:30 +0000 (07:59 +0000)]
Valid error codes for err() and errx() are 1..255.
The correct format specifier for ssize_t is %zd.

17 years agoAdd more tests to verify last sendfile(2) breakage: test sending more
pjd [Thu, 19 Apr 2007 06:01:08 +0000 (06:01 +0000)]
Add more tests to verify last sendfile(2) breakage: test sending more
than a page size and nbytes=0.

17 years agoFix a bug in sendfile(2) when files larger than page size and nbytes=0.
pjd [Thu, 19 Apr 2007 05:54:45 +0000 (05:54 +0000)]
Fix a bug in sendfile(2) when files larger than page size and nbytes=0.
When nbytes=0, sendfile(2) should use file size. Because of the bug, it
was sending half of a file. The bug is that 'off' variable can't be used
for size calculation, because it changes inside the loop, so we should
use uap->offset instead.

17 years agoCorrect contigmalloc2()'s implementation of M_ZERO. Specifically,
alc [Thu, 19 Apr 2007 05:39:54 +0000 (05:39 +0000)]
Correct contigmalloc2()'s implementation of M_ZERO.  Specifically,
contigmalloc2() was always testing the first physical page for PG_ZERO,
not the current page of interest.

Submitted by: Michael Plass
PR: 81301
MFC after: 1 week

17 years agoCorrect two comments.
alc [Thu, 19 Apr 2007 04:52:47 +0000 (04:52 +0000)]
Correct two comments.

Submitted by: Michael Plass

17 years agoBump the interrupt storm detection counter to 1000. My slow fileserver
njl [Thu, 19 Apr 2007 01:24:32 +0000 (01:24 +0000)]
Bump the interrupt storm detection counter to 1000.  My slow fileserver
gets a bogus irq storm detected when periodic daily kicks off at 3 am
and disconnects the disk.  Change the print logic to print once per second
when the storm is occurring instead of only once.  Otherwise, it appeared
that something else was causing the errors each night at 3 am since the
print only occurred the first time.

Reviewed by: jhb
MFC after: 1 week

17 years agoAdd support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).
yar [Wed, 18 Apr 2007 22:43:39 +0000 (22:43 +0000)]
Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).

The support for RFC 2640 (UTF8) is optional and rudimentary.
The server just advertises its capability to handle UTF-8 file
names and relies on its own 8-bit cleanness, as well as on
the backward compatibility of UTF-8 with ASCII.  So uploaded
files will have UTF-8 names, but the initial server contents
should be prepared in UTF-8 by hand, no on-the-fly conversion
of file names will be done.

PR: bin/111714
Submitted by: Zhang Weiwu <see email in the PR>
MFC after: 1 week

17 years agoFix style(9) and comments.
jkim [Wed, 18 Apr 2007 20:12:05 +0000 (20:12 +0000)]
Fix style(9) and comments.

Submitted by: Scot Hetzel (swhetzel at gmail dot com)

17 years agosndbuf_alloc() now accept dmaflags argument which will be forwarded to
ariff [Wed, 18 Apr 2007 18:26:41 +0000 (18:26 +0000)]
sndbuf_alloc() now accept dmaflags argument which will be forwarded to
internal bus_dmammem_alloc() for greater flexibility on setting up DMA /
page attributes.

17 years agoBreak ABI / module compatibility for the upcoming sndbuf_alloc() changes.
ariff [Wed, 18 Apr 2007 18:20:48 +0000 (18:20 +0000)]
Break ABI / module compatibility for the upcoming sndbuf_alloc() changes.

17 years agoMake tcp_twrespond() use tcp_addoptions() instead of a home grown version.
andre [Wed, 18 Apr 2007 18:14:39 +0000 (18:14 +0000)]
Make tcp_twrespond() use tcp_addoptions() instead of a home grown version.

17 years agostyle(9) says sizeof's are not be followed by a space. Fix them.
jkim [Wed, 18 Apr 2007 18:11:32 +0000 (18:11 +0000)]
style(9) says sizeof's are not be followed by a space.  Fix them.

17 years agoImplement settimeofday() for Linuxulator/amd64.
jkim [Wed, 18 Apr 2007 18:08:12 +0000 (18:08 +0000)]
Implement settimeofday() for Linuxulator/amd64.

Submitted by: Scot Hetzel (swhetzel at gmail dot com)

17 years agoNotes on the acct(5) format switch.
dds [Wed, 18 Apr 2007 17:34:59 +0000 (17:34 +0000)]
Notes on the acct(5) format switch.

17 years agoChange the export option from -w (write) to -X.
dds [Wed, 18 Apr 2007 16:43:21 +0000 (16:43 +0000)]
Change the export option from -w (write) to -X.
While implementing import it became apparent that write as a mnemonic
is ambiguous and confusing.

MFC after: 8 days

17 years agoMFp4: Fix automatic snapshot mount when unprivileged user does lookup
pjd [Wed, 18 Apr 2007 15:24:48 +0000 (15:24 +0000)]
MFp4: Fix automatic snapshot mount when unprivileged user does lookup
  on a snapshot directory:
- Remove PRIV_VFS_MOUNT check - regular users can mount snapshots
  via lookups on snapshot directory.
- Reset mount credential to kcred, so user won't be able to unmount
  the snapshot.
- Reset owner uid.
- Unlock vnode in case of a failure.

Reported by: simokawa

17 years agoMFp4: We check for PRIV_VFS_MOUNT already in mount(2) syscall and we don't
pjd [Wed, 18 Apr 2007 15:22:07 +0000 (15:22 +0000)]
MFp4: We check for PRIV_VFS_MOUNT already in mount(2) syscall and we don't
      want to do the check when snapshot is automatically mounted by an
      unprivileged user doing lookup on a snapshot directory.

17 years agoQuick kill posix4 directory.
trhodes [Wed, 18 Apr 2007 10:16:43 +0000 (10:16 +0000)]
Quick kill posix4 directory.

Submitted by: rodrigc (BSD.include.dist).

17 years agoOn AMD's Geode LX: Force the TSC to run through core-suspension so we can
phk [Wed, 18 Apr 2007 10:08:24 +0000 (10:08 +0000)]
On AMD's Geode LX: Force the TSC to run through core-suspension so we can
use it as a timecounter.

Sponsored by: Soekris Engineering

17 years agoComplain on write errors.
dds [Wed, 18 Apr 2007 09:39:47 +0000 (09:39 +0000)]
Complain on write errors.
Use correct type for write_text.

MFC after: 8 days

17 years agoAdd export capability through the new -w flag.
dds [Wed, 18 Apr 2007 08:55:54 +0000 (08:55 +0000)]
Add export capability through the new -w flag.

Discussed in: -arch
MFC after: 8 days

17 years agoMissed locking the dump and shutdown entry points in the scsi_da driver.
scottl [Wed, 18 Apr 2007 05:14:16 +0000 (05:14 +0000)]
Missed locking the dump and shutdown entry points in the scsi_da driver.

17 years agoRevert a driver API change to xpt_alloc_ccb that isn't necessary. Fix a
scottl [Wed, 18 Apr 2007 04:58:53 +0000 (04:58 +0000)]
Revert a driver API change to xpt_alloc_ccb that isn't necessary.  Fix a
couple of associated error checks.

17 years agoIgnore trailing '/' when comparing pathnames, so that
kientzle [Wed, 18 Apr 2007 04:36:11 +0000 (04:36 +0000)]
Ignore trailing '/' when comparing pathnames, so that
"tar -u" works again.  Otherwise, "tar -u" wants to
treat every dir as new and re-adds it.

17 years agoWhen testing basic functionality, strip trailing '/' from
kientzle [Wed, 18 Apr 2007 04:35:17 +0000 (04:35 +0000)]
When testing basic functionality, strip trailing '/' from
dir names, so they match the names generated by 'find'.

17 years agoDon't reinitialize the hardware if only PROMISC flag was changed.
yongari [Wed, 18 Apr 2007 00:40:43 +0000 (00:40 +0000)]
Don't reinitialize the hardware if only PROMISC flag was changed.
Previously whenever PROMISC mode turned on/off link renegotiation
occurs and it could resulted in network unavailability for serveral
seconds.(Depending on switch STP settings it could last several tens
seconds.)

Reported by: Prokofiev S.P.  < proks AT logos DOT uptel DOT net >
Tested by: Prokofiev S.P.  < proks AT logos DOT uptel DOT net >

17 years agoAdd support for hw-assisted checksums on 6105M.
phk [Tue, 17 Apr 2007 22:59:54 +0000 (22:59 +0000)]
Add support for hw-assisted checksums on 6105M.

Sponsored by: Soekris Engineering

17 years agoSimplify.
pjd [Tue, 17 Apr 2007 21:58:34 +0000 (21:58 +0000)]
Simplify.

17 years agoFix build breakage. Most of ZFS code is also compiled in userland and I
pjd [Tue, 17 Apr 2007 21:38:15 +0000 (21:38 +0000)]
Fix build breakage. Most of ZFS code is also compiled in userland and I
should really stop forgetting about that.

17 years ago- Fix a leftover - vfs_mount_alloc() is now exported properly.
pjd [Tue, 17 Apr 2007 21:16:34 +0000 (21:16 +0000)]
- Fix a leftover - vfs_mount_alloc() is now exported properly.
  This fixes stange panics when listing .zfs/snapshot/ directory for me.
  Reported by: simokawa
  Reported by: Johan Hendriks <Johan@double-l.nl>
- Hide cache_purge() under FREEBSD_NAMECACHE like in other files.
- Protect mnt_flag with mount interlock.

17 years agoExport vfs_mount_alloc() as it is used in ZFS.
pjd [Tue, 17 Apr 2007 21:14:06 +0000 (21:14 +0000)]
Export vfs_mount_alloc() as it is used in ZFS.

17 years agoHonor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and i386 by
jhb [Tue, 17 Apr 2007 21:05:34 +0000 (21:05 +0000)]
Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and i386 by
mapping the pages as UC (uncacheable) using pmap_change_attr().

MFC after: 1 week
Requested by: ariff
Reviewed by: scottl

17 years agoIgnore hostid check for root-on-ZFS configurations. Making hostid available
pjd [Tue, 17 Apr 2007 17:57:34 +0000 (17:57 +0000)]
Ignore hostid check for root-on-ZFS configurations. Making hostid available
before the root is mounted is tricky and having it in /boot/ is not really
desire.

Reported by: Zephiris <zephiris@gmail.com>

17 years agoNo need to throw tag+handle around on the stack.
phk [Tue, 17 Apr 2007 17:32:39 +0000 (17:32 +0000)]
No need to throw tag+handle around on the stack.

17 years agoo Add missed w/space in the error message.
maxim [Tue, 17 Apr 2007 16:36:24 +0000 (16:36 +0000)]
o Add missed w/space in the error message.

Spotted by: Ivan Voras
MFC after: 1 week

17 years agoLink libzpool, ztest and zdb against libpthread.
pjd [Tue, 17 Apr 2007 15:52:37 +0000 (15:52 +0000)]
Link libzpool, ztest and zdb against libpthread.

Requested by: ru

17 years agoWhen we run into the syncache entry limits syncache_add() tries
andre [Tue, 17 Apr 2007 15:25:14 +0000 (15:25 +0000)]
When we run into the syncache entry limits syncache_add() tries
to free the oldest entry in the current bucket row.  The global
entry limit may be smaller than the bucket rows and their limit
combined however.  Thus only try to free a syncache entry if we
found one in this bucket row.

Reported by: kris

17 years agoWhen trying to allocate a PnP BIOS memory resource, the code loops trying
jhb [Tue, 17 Apr 2007 15:14:23 +0000 (15:14 +0000)]
When trying to allocate a PnP BIOS memory resource, the code loops trying
to move up the start address until the allocation succeeds.  If the
alignment of the resource was 0, then the code would keep trying the same
request in an infinite loop and hang.  Force the request to always move
start up by at least 1 byte each time through the loop.

17 years agoChange $P4$ ID strings to P4 ID strings so that they are not auto-expanded
rwatson [Tue, 17 Apr 2007 12:27:08 +0000 (12:27 +0000)]
Change $P4$ ID strings to P4 ID strings so that they are not auto-expanded
when integrated back into Perforce.  This avoids unnecessary conflicts
during the loopback of files maintained in Perforce.

17 years agoRemove $P4$ that snuck into CVS from Perforce.
rwatson [Tue, 17 Apr 2007 12:24:18 +0000 (12:24 +0000)]
Remove $P4$ that snuck into CVS from Perforce.

17 years agoImprove the if_vr driver ever so slightly.
phk [Tue, 17 Apr 2007 12:23:57 +0000 (12:23 +0000)]
Improve the if_vr driver ever so slightly.

The 6105M and 6102 does not have the DWORD alignment problem, so
don't m_defrag() every packet in the transmit path for those.

More stringent usage of tx-descriptor ring and its flags.

Tested on 6102 and 6105M, other chips may also be able to run
without the m_defrag() but I have neither hardware nor docs to
find out.

Sponsored by: Soekris Engineering

17 years agoShorten text string for ip_fw2 dynamic rules zone by removing the word
rwatson [Tue, 17 Apr 2007 09:28:36 +0000 (09:28 +0000)]
Shorten text string for ip_fw2 dynamic rules zone by removing the word
"zone", which is generally not present in zone names.  This reduces the
incidence of line-wrapping in "vmstat -z " using 80-column displays.

MFC after: 3 days

17 years agoBump date for the previous revision and the driver renaming.
brueffer [Tue, 17 Apr 2007 07:09:23 +0000 (07:09 +0000)]
Bump date for the previous revision and the driver renaming.

17 years agoTo avoid confusion, mention that the driver was originally called trunk
brueffer [Tue, 17 Apr 2007 07:08:18 +0000 (07:08 +0000)]
To avoid confusion, mention that the driver was originally called trunk
in OpenBSD.

17 years agotrunk(4) is now lagg(4).
brueffer [Tue, 17 Apr 2007 07:01:45 +0000 (07:01 +0000)]
trunk(4) is now lagg(4).

17 years agoBasic MPSAFE locking for the AHC and AHD drivers.
scottl [Tue, 17 Apr 2007 06:26:25 +0000 (06:26 +0000)]
Basic MPSAFE locking for the AHC and AHD drivers.

17 years agoDon't use spinlocks here. The iicbus transactions can take a long
imp [Tue, 17 Apr 2007 05:48:35 +0000 (05:48 +0000)]
Don't use spinlocks here.  The iicbus transactions can take a long
time, and this prevents interrupts (say for Hz/hardclock) from
happening.  Time stands still during the transfers...

17 years agoGNU readline was updated to patch 002 by ache@, note MFC by
delphij [Tue, 17 Apr 2007 03:39:54 +0000 (03:39 +0000)]
GNU readline was updated to patch 002 by ache@, note MFC by
rafan@ while I'm there.

17 years ago- Add a new 'j' switch and runtime option to toggle display jail id for
rafan [Tue, 17 Apr 2007 03:12:39 +0000 (03:12 +0000)]
- Add a new 'j' switch and runtime option to toggle display jail id for
  each process.
- While I'm here, keep help message sorted by keys

PR: 98489, 98975
Submitted by: clsung
Approved by: delphij (mentor)
MFC after: 2 weeks

17 years agoDon't delete the devalias, as per the man page.
scottl [Tue, 17 Apr 2007 01:12:35 +0000 (01:12 +0000)]
Don't delete the devalias, as per the man page.

Submitted by: jmg

17 years agoRemove net/if_trunk.h which is no longer used.
thompsa [Tue, 17 Apr 2007 01:02:55 +0000 (01:02 +0000)]
Remove net/if_trunk.h which is no longer used.

17 years agoLink trunk(4) to lagg(4)
thompsa [Tue, 17 Apr 2007 00:57:54 +0000 (00:57 +0000)]
Link trunk(4) to lagg(4)

17 years agoNote the renaming of trunk(4) to lagg(4).
thompsa [Tue, 17 Apr 2007 00:41:59 +0000 (00:41 +0000)]
Note the renaming of trunk(4) to lagg(4).

17 years agoRename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking.
thompsa [Tue, 17 Apr 2007 00:35:11 +0000 (00:35 +0000)]
Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking.

The name trunk is misused as the networking term trunk means carrying multiple
VLANs over a single connection. The IEEE standard for link aggregation (802.3
section 3) does not talk about 'trunk' at all while it is used throughout IEEE
802.1Q in describing vlans.

The lagg(4) driver provides link aggregation, failover and fault tolerance.

Discussed on: current@

17 years agoApply a set of style.Makefile(5) changes to src/cddl/ makefiles.
ru [Mon, 16 Apr 2007 21:20:26 +0000 (21:20 +0000)]
Apply a set of style.Makefile(5) changes to src/cddl/ makefiles.
There are some insignificant non-style changes as well.

Not fixed: makefiles use ${LIBTHR} that doesn't exist, thus
breaking "make checkdpadd" and not tracking dependencies
properly.

Approved by: pjd

17 years ago- Add a 'show rman <rm>' DDB command to dump the resources in a resource
jhb [Mon, 16 Apr 2007 21:09:03 +0000 (21:09 +0000)]
- Add a 'show rman <rm>' DDB command to dump the resources in a resource
  manager similar to 'devinfo -u'.
- Add a 'show allrman' DDB command that effectively does 'show rman' on all
  resource managers in the system.

17 years agoNew release notes: sx(9) lock improvements, T/TCP support in finger(1)
bmah [Mon, 16 Apr 2007 20:30:10 +0000 (20:30 +0000)]
New release notes:  sx(9) lock improvements, T/TCP support in finger(1)
gone, libarchive(3) ar file support, rpc.lockd(8)/rpc.statd(8) -P (+MFC),
top(1) -a.

17 years agoFor the XPT_SASYNC_CB operation, only decouple the broadcast to the bus
scottl [Mon, 16 Apr 2007 19:55:36 +0000 (19:55 +0000)]
For the XPT_SASYNC_CB operation, only decouple the broadcast to the bus
and device lists instead of decoupling the whole operation.  This avoids
problems with SIMs going away.

17 years agoDrop the topology lock before calling the periph oninvalidate and dtor
scottl [Mon, 16 Apr 2007 19:42:23 +0000 (19:42 +0000)]
Drop the topology lock before calling the periph oninvalidate and dtor
vectors.

17 years agoDrop the periph/sim lock when calling disk_destroy().
scottl [Mon, 16 Apr 2007 19:41:14 +0000 (19:41 +0000)]
Drop the periph/sim lock when calling disk_destroy().

17 years agoDestroy the devalias before destroying the dev.
scottl [Mon, 16 Apr 2007 19:40:13 +0000 (19:40 +0000)]
Destroy the devalias before destroying the dev.

17 years ago- Add another graph about the organization of the FreeBSD Project
gabor [Mon, 16 Apr 2007 19:04:18 +0000 (19:04 +0000)]
- Add another graph about the organization of the FreeBSD Project

17 years agoMerge OpenBSM 1.0 alpha 14 changes to src/sys/security/audit:
rwatson [Mon, 16 Apr 2007 16:20:45 +0000 (16:20 +0000)]
Merge OpenBSM 1.0 alpha 14 changes to src/sys/security/audit:

- au_to_attr64(), au_to_process64(), au_to_subject64(),
  au_to_subject64_ex(), au_to_zonename(), au_to_header64_tm().
- Extended address token fixes.

Obtained from: TrustedBSD Project

17 years agoUpdate src/sys/bsm for OpenBSM 1.0 alpha 14 import.
rwatson [Mon, 16 Apr 2007 16:13:10 +0000 (16:13 +0000)]
Update src/sys/bsm for OpenBSM 1.0 alpha 14 import.

Add new audit event types.

17 years agoRegenerate config.h from OpenBSM 1.0 alpha 14 import.
rwatson [Mon, 16 Apr 2007 15:49:15 +0000 (15:49 +0000)]
Regenerate config.h from OpenBSM 1.0 alpha 14 import.

17 years agoResolve conflicts from OpenBSM 1.0 alpha 14 import.
rwatson [Mon, 16 Apr 2007 15:41:56 +0000 (15:41 +0000)]
Resolve conflicts from OpenBSM 1.0 alpha 14 import.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r168777,
rwatson [Mon, 16 Apr 2007 15:37:10 +0000 (15:37 +0000)]
This commit was generated by cvs2svn to compensate for changes in r168777,
which included commits to RCS files with non-trunk default branches.

17 years agoVendor import TrustedBSD OpenBSM 1.0 alpha 14, with the following change
rwatson [Mon, 16 Apr 2007 15:37:10 +0000 (15:37 +0000)]
Vendor import TrustedBSD OpenBSM 1.0 alpha 14, with the following change
history notes since the last import:

OpenBSM 1.0 alpha 14

- Fix endian issues when processing IPv6 addresses for extended subject
  and process tokens.
- gcc41 warnings clean.
- Teach audit_submit(3) about getaudit_addr(2).
- Add support for zonename tokens.

OpenBSM 1.0 alpha 13

- compat/clock_gettime.h now provides a compatibility implementation of
  clock_gettime(), which fixes building on Mac OS X.
- Countless man page improvements, markup fixes, content fixs, etc.
- XML printing support via "praudit -x".
- audit.log.5 expanded to include additional BSM token types.
- Added encoding and decoding routines for process64_ex, process32_ex,
  subject32_ex, header64, and attr64 tokens.
- Additional audit event identifiers for listen, mlockall/munlockall,
  getpath, POSIX message queues, and mandatory access control.

Approved by: re (bmah)
MFC after: 3 weeks
Obtained from: TrustedBSD Project

17 years agos/destory/destroy/ (except for the code in contrib/).
pjd [Mon, 16 Apr 2007 12:31:35 +0000 (12:31 +0000)]
s/destory/destroy/ (except for the code in contrib/).

17 years agoUncomment forgotten check. Without this check in-place, ZFS will panic on
pjd [Mon, 16 Apr 2007 10:23:24 +0000 (10:23 +0000)]
Uncomment forgotten check. Without this check in-place, ZFS will panic on
unload instead of returning EBUSY. This check tells if there are mounted
ZFS file systems or not. We can't unload if there are mounted file systems.

Reported by: Andrey V. Elsukov <bu7cher@yandex.ru>

17 years agoAdd a missing backslash and unbreak the build.
ru [Mon, 16 Apr 2007 09:54:59 +0000 (09:54 +0000)]
Add a missing backslash and unbreak the build.

17 years ago- Add missing man page links
rafan [Mon, 16 Apr 2007 09:11:24 +0000 (09:11 +0000)]
- Add missing man page links
- Remove link for define_key.3 which is a real man page
- Some whitespace nits

Approved by: delphij (mentor)

17 years agoIn libarchive: Downgrade ARCHIVE_FATAL and ARCHIVE_FAILED errors which
cperciva [Mon, 16 Apr 2007 04:04:50 +0000 (04:04 +0000)]
In libarchive: Downgrade ARCHIVE_FATAL and ARCHIVE_FAILED errors which
occur on the write side of extracting a file to ARCHIVE_WARN errors
when returning them from archive_read_extract.

In bsdtar: Use the return code from archive_read_data_into_fd and
archive_read_extract to determine whether we should continue trying to
extract an archive after one of the entries fails.

This commit makes extracting a truncated tarball complain once about
the archive being truncated, instead of complaining twice (once when
trying to extract an entry, and once when trying to seek to the next
entry).

Discussed with: kientzle