]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoMFp4: Bring back comments.
pjd [Thu, 12 Apr 2007 23:14:25 +0000 (23:14 +0000)]
MFp4: Bring back comments.

Requested by: jhb

17 years agoFound the right date for davidxu
julian [Thu, 12 Apr 2007 20:43:57 +0000 (20:43 +0000)]
Found the right date for davidxu

17 years agoAdd myself and some others according to my dusty memory.
julian [Thu, 12 Apr 2007 20:39:55 +0000 (20:39 +0000)]
Add myself and some others according to my dusty memory.
I may have other mentees that I have forgotten...

17 years agoAdd myself and glebius.
mav [Thu, 12 Apr 2007 19:14:09 +0000 (19:14 +0000)]
Add myself and glebius.

Approved by: glebius (mentor)

17 years agoIn .error and .warning, prefer command-line variables
ru [Thu, 12 Apr 2007 18:14:00 +0000 (18:14 +0000)]
In .error and .warning, prefer command-line variables
to globals, as per documentation.

Nudged by: Jeremie Le Hen

17 years ago-) Correct sdcount for a plex when removing or adding subdisks.
le [Thu, 12 Apr 2007 17:54:35 +0000 (17:54 +0000)]
-) Correct sdcount for a plex when removing or adding subdisks.
-) Set correct sizes for plexes and volumes a subdisk has been removed.

Submitted by:   Ulf Lilleengen <lulf_AT_freebsd.org>

17 years agoAvoid infinite loop if the device string given for a drive
le [Thu, 12 Apr 2007 17:40:44 +0000 (17:40 +0000)]
Avoid infinite loop if the device string given for a drive
only consists of "/".

Submitted by:  Ulf Lilleengen <lulf_AT_freebsd.org>

17 years agoMFamd64
alc [Thu, 12 Apr 2007 17:00:56 +0000 (17:00 +0000)]
MFamd64
 Define PGEX_RSV.

17 years agoAdd myself and my mentor, arved.
stefan [Thu, 12 Apr 2007 15:45:30 +0000 (15:45 +0000)]
Add myself and my mentor, arved.

17 years agoMerge
ache [Thu, 12 Apr 2007 14:45:25 +0000 (14:45 +0000)]
Merge

17 years agoNuke ipblock. A more complete multicast regression test suite is on the way.
bms [Thu, 12 Apr 2007 11:46:30 +0000 (11:46 +0000)]
Nuke ipblock. A more complete multicast regression test suite is on the way.

17 years agoFix PAE on SMP by enabling EFER_NXE on all APs.
ru [Thu, 12 Apr 2007 11:05:24 +0000 (11:05 +0000)]
Fix PAE on SMP by enabling EFER_NXE on all APs.

Reported by: kris
Diagnosed by: alc

17 years agoFix a bug in the description of the "p6-div" event. [1]
jkoshy [Thu, 12 Apr 2007 09:16:54 +0000 (09:16 +0000)]
Fix a bug in the description of the "p6-div" event. [1]

Update the description of the "p6-div" and "p6-mul" events according
to the "Intel(r) 64 and IA-32 Architectures Software Developers
Manual Volume 3B: System Programming Guide, Part 2, November 2006".

Reported by:  Harald Servat <redcrash at gmail dot com> [1]

17 years agoBump .Dd for r1.5; fix grammatical problem.
ceri [Thu, 12 Apr 2007 08:39:13 +0000 (08:39 +0000)]
Bump .Dd for r1.5; fix grammatical problem.

17 years agoSpecify the correct way to modify this file, and warn that the
mtm [Thu, 12 Apr 2007 08:35:58 +0000 (08:35 +0000)]
Specify the correct way to modify this file, and warn that the
user should not depend on the internal variables documented in
this man page.

MFC After: 2 weeks

17 years agoRestore the ".Sh BUGS" line that was accidentally removed
ru [Thu, 12 Apr 2007 08:22:49 +0000 (08:22 +0000)]
Restore the ".Sh BUGS" line that was accidentally removed
in the previous commit.

17 years agoThere are a couple of bugs in rev. 1.27:
mtm [Thu, 12 Apr 2007 08:17:56 +0000 (08:17 +0000)]
There are a couple of bugs in rev. 1.27:
1) The man page should describe the code, not the other way around.
2) Internal variables should not be documented or exposed, except in
   controlled circumstances (i.e. - That's what the -C flag is for).
   The variable should have been saved to the config file in save_config().
3) The next available userid doesn't get automatically updated. The
   end-result is the same (user gets added with the correct uid),
   but in an interactive session the default uid doesn't get updated in
   the display.

So,

o Use the uidstart variable instead of uuid (bug #3)
o Actually save the variable to adduser.conf (bug #2)
o (bug #1 to be fixed in an upcomming commit to adduser.conf.5)

MFC After: 2 weeks

17 years agoErrm... I don't see how rev. 1.26 could have possibly worked or been tested.
mtm [Thu, 12 Apr 2007 07:38:26 +0000 (07:38 +0000)]
Errm... I don't see how rev. 1.26 could have possibly worked or been tested.
Fix it for real.

Submitted by: Johnny Lee <johnny@bmtk.com>
MFC After: 2 weeks

17 years agorestore sense to get_imm_packet
kmacy [Thu, 12 Apr 2007 04:48:54 +0000 (04:48 +0000)]
restore sense to get_imm_packet

MFC after: 3 days

17 years agoMake it easier to support more platforms.
kientzle [Thu, 12 Apr 2007 04:45:32 +0000 (04:45 +0000)]
Make it easier to support more platforms.
Thanks to: Joerg Sonnenberger for pointing out the need and the technique.

17 years agoNow that libarchive is being built in more environments,
kientzle [Thu, 12 Apr 2007 04:44:21 +0000 (04:44 +0000)]
Now that libarchive is being built in more environments,
factor out the platform-specific configuration header a bit
more cleanly.
Suggested by: Joerg Sonnenberger

17 years agoMake Lint happier.
kientzle [Thu, 12 Apr 2007 04:42:57 +0000 (04:42 +0000)]
Make Lint happier.

17 years agoswitch over to per-txq dma tag to facilitate parallelism on TX
kmacy [Thu, 12 Apr 2007 04:31:44 +0000 (04:31 +0000)]
switch over to per-txq dma tag to facilitate parallelism on TX

MFC after: 3 days

17 years agoexplicitly check TSO flag
kmacy [Thu, 12 Apr 2007 03:33:30 +0000 (03:33 +0000)]
explicitly check TSO flag
don't clear and then set M_PKTHDR, m_gethdr sets it correctly
improve error handling on m_gethdr failure

MFC after: 3 days

17 years agoAdd ETHER_HDR_LEN to hardware accepted mtu
kmacy [Thu, 12 Apr 2007 03:07:24 +0000 (03:07 +0000)]
Add ETHER_HDR_LEN to hardware accepted mtu

MFC after: 3 days

17 years ago- Fix compilaton with DUMP_FILELOCK_VERBOSE.
kuriyama [Thu, 12 Apr 2007 02:07:12 +0000 (02:07 +0000)]
- Fix compilaton with DUMP_FILELOCK_VERBOSE.
- Use consistent "get_lock_matching_unlock" function name in
  debuglog().

17 years agoFix a case where the multicast addresses were not removed from some ports. The
thompsa [Thu, 12 Apr 2007 01:58:57 +0000 (01:58 +0000)]
Fix a case where the multicast addresses were not removed from some ports. The
first port to be removed from the trunk would free the multicast list so
subsequent removed ports didnt have their multicast addresses removed.

17 years agoAdd m_last() inline function.
andre [Wed, 11 Apr 2007 23:13:12 +0000 (23:13 +0000)]
Add m_last() inline function.

17 years agoAdd a flag to struct pfs_vdata to mark the vnode as dead (e.g. process-
des [Wed, 11 Apr 2007 22:40:57 +0000 (22:40 +0000)]
Add a flag to struct pfs_vdata to mark the vnode as dead (e.g. process-
specific nodes when the process exits)

Move the vnode-cache-walking loop which was duplicated in pfs_exit() and
pfs_disable() into its own function, pfs_purge(), which looks for vnodes
marked as dead and / or belonging to the specified pfs_node and reclaims
them.  Note that this loop is still extremely inefficient.

Add a comment in pfs_vncache_alloc() explaining why we have to purge the
vnode from the vnode cache before returning, in case anyone should be
tempted to remove the call to cache_purge().

Move the special handling for pfstype_root nodes into pfs_fileno_alloc()
and pfs_fileno_free() (the root node's fileno must always be 2).  This
also fixes a bug where pfs_fileno_free() would reclaim the root node's
fileno, triggering a panic in the unr code, as that fileno was never
allocated from unr to begin with.

When destroying a pfs_node, release its fileno and purge it from the
vnode cache.  I wish we could put off the call to pfs_purge() until
after the entire tree had been destroyed, but then we'd have vnodes
referencing freed pfs nodes.  This probably doesn't matter while we're
still under Giant, but might become an issue later.

When destroying a pseudofs instance, destroy the tree before tearing
down the fileno allocator.

In pfs_mount(), acquire the mountpoint interlock when required.

MFC after: 3 weeks

17 years agoRemove irrelevant comment about T/TCP in BUGS.
des [Wed, 11 Apr 2007 20:32:59 +0000 (20:32 +0000)]
Remove irrelevant comment about T/TCP in BUGS.

Spotted by: ru@

17 years agoRemove -T from getopt() spec and usage string.
des [Wed, 11 Apr 2007 20:32:09 +0000 (20:32 +0000)]
Remove -T from getopt() spec and usage string.

Submitted by: ru@

17 years agoBelatedly bump Dd for my recent changes.
emaste [Wed, 11 Apr 2007 20:31:06 +0000 (20:31 +0000)]
Belatedly bump Dd for my recent changes.

17 years agoBump Dd.
des [Wed, 11 Apr 2007 19:20:42 +0000 (19:20 +0000)]
Bump Dd.

17 years agoRemove T/TCP support, and the -T option which was needed to disable it.
des [Wed, 11 Apr 2007 19:11:54 +0000 (19:11 +0000)]
Remove T/TCP support, and the -T option which was needed to disable it.

MFC after: 3 weeks

17 years agoAdd myself plus a template for Andrew Gallatin for the mentor link.
ticso [Wed, 11 Apr 2007 17:53:29 +0000 (17:53 +0000)]
Add myself plus a template for Andrew Gallatin for the mentor link.

17 years agoModified release note: Reword sg note to make more sense.
bmah [Wed, 11 Apr 2007 17:45:37 +0000 (17:45 +0000)]
Modified release note:  Reword sg note to make more sense.

Problems pointed out by: brueffer

17 years agoRemove obsolete comment about privileges: SUSER_ALLOWJAIL is no longer set
rwatson [Wed, 11 Apr 2007 16:31:02 +0000 (16:31 +0000)]
Remove obsolete comment about privileges: SUSER_ALLOWJAIL is no longer set
in this code.

17 years agoRemove now-obsolete comment regarding mqueue privileges in jail.
rwatson [Wed, 11 Apr 2007 16:22:59 +0000 (16:22 +0000)]
Remove now-obsolete comment regarding mqueue privileges in jail.

17 years ago- Add IANA-assigned ports for HP status & services daemon and I/O backend
stas [Wed, 11 Apr 2007 16:02:04 +0000 (16:02 +0000)]
- Add IANA-assigned ports for HP status & services daemon and I/O backend
  daemon. The FreeBSD port print/hplip currently provides these services.

PR: conf/99593
Submitted by: Anish Mistry <amistry@am-productions.biz>
Approved by: maxim
MFC after: 1 week

17 years ago- Add IANA assigned port for amanda server control over tcp. The
stas [Wed, 11 Apr 2007 15:58:36 +0000 (15:58 +0000)]
- Add IANA assigned port for amanda server control over tcp. The
  current misc/amanda-server code uses it.

PR: conf/111050
Submitted by: Charles Sprickman<spork@bway.net>
Approved by: maxim
MFC after: 1 week

17 years agoNew release notes: kern.hostuuid, trunk(4), sg (+MFC),
bmah [Wed, 11 Apr 2007 15:37:37 +0000 (15:37 +0000)]
New release notes:  kern.hostuuid, trunk(4), sg (+MFC),
truss(1) uses ptrace(2), uuidgen(1) moved to /bin.

Modified release notes:  ZFS manpage update and pc98 support,
fix markup in KSE note.

17 years agoFix doc.1 build when NOPORTS is defined. This includes
ru [Wed, 11 Apr 2007 15:24:58 +0000 (15:24 +0000)]
Fix doc.1 build when NOPORTS is defined.  This includes
the following ports tree changes:

- libtool13 removed.
- pkgconfig moved to pkg-config.
- Default dependency for USE_GHOSTSCRIPT changed from
  ghostscript-gnu to ghostscript-gpl.
- Also added missing docproj dependencies.

Reported by: Dmitriy Kirhlarov
Submitted by: sem, ru
MFC after: 3 days

17 years agoMake "struct tcp_timer" visible only to the kernel, and unbreak world.
ru [Wed, 11 Apr 2007 14:08:42 +0000 (14:08 +0000)]
Make "struct tcp_timer" visible only to the kernel, and unbreak world.

17 years agoFix m_freem_vec() to actually traverse the mbuf chain. This avoids
jhb [Wed, 11 Apr 2007 13:47:24 +0000 (13:47 +0000)]
Fix m_freem_vec() to actually traverse the mbuf chain.  This avoids
double free's and an infinite loop.

CID: 1834
Found by: Coverity Prevent (tm)

17 years agoGroup the loop to acquire/release Giant with the WITNESS_SAVE/RESTORE under
jhb [Wed, 11 Apr 2007 13:44:55 +0000 (13:44 +0000)]
Group the loop to acquire/release Giant with the WITNESS_SAVE/RESTORE under
a single conditional.  The two operations are linked, but since the link
is not very direct, Coverity can't see it.  Humans might also miss the
link as well.  So, this isn't fixing any actual bugs, just improving
readability.

CID: 1787 (likely others as well)
Found by: Coverity Prevent (tm)

17 years ago- Sync service names with IANA (http://www.iana.org/assignments/port-numbers).
stas [Wed, 11 Apr 2007 13:06:05 +0000 (13:06 +0000)]
- Sync service names with IANA (http://www.iana.org/assignments/port-numbers).
  The registration names for 5222(tcp,udp) and 5269(tcp,udp) was changed to
  xmpp-client and xmpp-server correspondingly.

  This inconsistency causes problems to applications developed on other
  systems, as they tries to use port numbers from /etc/services as fallback.

PR: conf/100606
Submitted by: Ralph Meijer <freebsd-gnats2@ralphm.ik.nu>
Approved by: maxim
MFC after: 1 week

17 years agoThis commit was generated by cvs2svn to compensate for changes in r168616,
ru [Wed, 11 Apr 2007 11:09:18 +0000 (11:09 +0000)]
This commit was generated by cvs2svn to compensate for changes in r168616,
which included commits to RCS files with non-trunk default branches.

17 years agoUnbreak world build.
ru [Wed, 11 Apr 2007 11:09:18 +0000 (11:09 +0000)]
Unbreak world build.

17 years agoChange the TCP timer system from using the callout system five times
andre [Wed, 11 Apr 2007 09:45:16 +0000 (09:45 +0000)]
Change the TCP timer system from using the callout system five times
directly to a merged model where only one callout, the next to fire,
is registered.

Instead of callout_reset(9) and callout_stop(9) the new function
tcp_timer_activate() is used which then internally manages the callout.

The single new callout is a mutex callout on inpcb simplifying the
locking a bit.

tcp_timer() is the called function which handles all race conditions
in one place and then dispatches the individual timer functions.

Reviewed by: rwatson (earlier version)

17 years agoBump date to the day of the import.
brueffer [Wed, 11 Apr 2007 08:55:04 +0000 (08:55 +0000)]
Bump date to the day of the import.

17 years agoCorrect a typo in an event name alias.
jkoshy [Wed, 11 Apr 2007 04:52:09 +0000 (04:52 +0000)]
Correct a typo in an event name alias.

Reported by:  Harald Servat <redcrash at gmail dot com>

17 years agoPut some overly verbose prints under bootverbose. This is on the vendor
njl [Wed, 11 Apr 2007 02:03:36 +0000 (02:03 +0000)]
Put some overly verbose prints under bootverbose.  This is on the vendor
branch but we need to work out a different interface with the vendor.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r168609,
njl [Wed, 11 Apr 2007 02:03:36 +0000 (02:03 +0000)]
This commit was generated by cvs2svn to compensate for changes in r168609,
which included commits to RCS files with non-trunk default branches.

17 years agoAdd work around for hardware Tx checksum offload bug in Yukon II.
yongari [Wed, 11 Apr 2007 00:47:29 +0000 (00:47 +0000)]
Add work around for hardware Tx checksum offload bug in Yukon II.
Yukon II generated corrupted TCP checksum for short TCP packets
that's less than 60 bytes in size(e.g. window probe packet, pure ACK
packet etc). Padding the frame with zeros to make the frame minimum
ethernet frame size didn't work at all. Instead of dropping Tx
checksum offload support we calculate TCP checksum with S/W method
when we encounter short TCP frames.
Fortunately it seems that short UDP datagrams appear to be handled
correctly by Yukon II.

While I'm here simplify ethernet/VLAN header size calculation logic.

PR: 111384

17 years agoIf available, take UUID from smbios.system.uuid, if not fall back to
pjd [Wed, 11 Apr 2007 00:05:25 +0000 (00:05 +0000)]
If available, take UUID from smbios.system.uuid, if not fall back to
software-generated UUID. Store the result in /etc/hostid and use it in
the future. Perform simple UUID format check, as there is a lot of
hardware with broken UUIDs. The check should be improved to also eliminate
fake UUIDs like 00000000-0000-0000-0000-000000000000.

Requested by: many

17 years agoMove rpc/types.h under sys/, as this is used by ZFS kernel module.
pjd [Tue, 10 Apr 2007 22:10:16 +0000 (22:10 +0000)]
Move rpc/types.h under sys/, as this is used by ZFS kernel module.

Repo-copied by: simon

17 years agostrchr() and strrchr() are already present in the kernel, but with less
wkoszek [Tue, 10 Apr 2007 21:42:12 +0000 (21:42 +0000)]
strchr() and strrchr() are already present in the kernel, but with less
popular names. Hence:

- comment current index() and rindex() functions, as these serve the same
  functionality as, respectively, strchr() and strrchr() from userland;
- add inlined version of strchr() and strrchr(), as we tend to use them more
  often;
- remove str[r]chr() definitions from ZFS code;

Reviewed by: pjd
Approved by: cognet (mentor)

17 years agoRemove trailing '.' for consistency!
pjd [Tue, 10 Apr 2007 21:40:13 +0000 (21:40 +0000)]
Remove trailing '.' for consistency!

17 years agoWhitespace fixes
scottl [Tue, 10 Apr 2007 21:37:37 +0000 (21:37 +0000)]
Whitespace fixes

17 years agoLet brgphy(4) attach for the Broadcom BCM5755 ASIC based chipsets
marius [Tue, 10 Apr 2007 20:43:23 +0000 (20:43 +0000)]
Let brgphy(4) attach for the Broadcom BCM5755 ASIC based chipsets
as well.

Obtained from: OpenBSD
MFC after: 1 week

17 years agoOn i386 compile the back-end with EISA support as well as the EISA
marius [Tue, 10 Apr 2007 20:33:31 +0000 (20:33 +0000)]
On i386 compile the back-end with EISA support as well as the EISA
front-end if the dpt(4) module is built along with a kernel that
includes eisa(4) or when compiling it stand-alone (logic based on
the corresponding ISA logic in sys/modules/sound/sound/Makefile).
As as side-effect this fixes the stand-alone build of the dpt(4)
module after dpt.h 1.17, dpt_eisa.c 1.22 and dpt_scsi.c 1.55.

Breakage reported by: n_hibma

17 years agoA fix for the SG_GET_TIMEOUT function slipped into a previous commit by
scottl [Tue, 10 Apr 2007 20:03:42 +0000 (20:03 +0000)]
A fix for the SG_GET_TIMEOUT function slipped into a previous commit by
accident.  Remove the text describing the problem as it is no longer
relevant.  Also give real implementations for the GET and SET ioctls.

17 years agoEliminate memory leak from an accidental malloc().
emaste [Tue, 10 Apr 2007 17:37:53 +0000 (17:37 +0000)]
Eliminate memory leak from an accidental malloc().

17 years agoAdd UFS_GJOURNAL options to the GENERIC kernel.
pjd [Tue, 10 Apr 2007 16:49:41 +0000 (16:49 +0000)]
Add UFS_GJOURNAL options to the GENERIC kernel.

Approved by: re (kensmith)

17 years agoAdd a pfsync_syncpeer option to /etc/defaults/rc.conf and rc.conf(5),
keramida [Tue, 10 Apr 2007 16:42:14 +0000 (16:42 +0000)]
Add a pfsync_syncpeer option to /etc/defaults/rc.conf and rc.conf(5),
which can be used to turn off multicast pfsync support, and enable
the transmission of directed PFSYNC (IP protocol: 240) packets to
a specific "sync peer" host.

PR: conf/111225
Submitted by: Bas van Beek <bas@tobin.nl>
Approved by: mtm, mlaier
MFC after: 2 weeks

17 years agoUpdate comment regarding how we check privilege on FreeBSD: we now use
rwatson [Tue, 10 Apr 2007 16:09:00 +0000 (16:09 +0000)]
Update comment regarding how we check privilege on FreeBSD: we now use
priv_check().

17 years agoAllow PRIV_NETINET_REUSEPORT in jail.
rwatson [Tue, 10 Apr 2007 15:59:49 +0000 (15:59 +0000)]
Allow PRIV_NETINET_REUSEPORT in jail.

17 years agoAdd a new privilege, PRIV_NETINET_REUSEPORT, which will replace superuser
rwatson [Tue, 10 Apr 2007 15:58:38 +0000 (15:58 +0000)]
Add a new privilege, PRIV_NETINET_REUSEPORT, which will replace superuser
checks to see whether bind() can reuse a port/address combination while
it's already in use (for some definition of use).

17 years agoRemove unnecessary suser() check in the sysctl to set up ath_hal
rwatson [Tue, 10 Apr 2007 15:48:45 +0000 (15:48 +0000)]
Remove unnecessary suser() check in the sysctl to set up ath_hal
logging: the sysctl framework will already have checked for privilege
if a sysctl value is being set.

Discussed a long time ago with: sam

17 years agoDo allow POSIX mqueue unlink privilege inside a jail, as we all all
rwatson [Tue, 10 Apr 2007 15:40:27 +0000 (15:40 +0000)]
Do allow POSIX mqueue unlink privilege inside a jail, as we all all
other POSIX mqueue privileges inside a jail.

17 years agoMinor style cleanups (mostly removal of trailing whitespaces).
pjd [Tue, 10 Apr 2007 15:29:37 +0000 (15:29 +0000)]
Minor style cleanups (mostly removal of trailing whitespaces).

17 years agoCorrect typos.
pjd [Tue, 10 Apr 2007 15:22:40 +0000 (15:22 +0000)]
Correct typos.

17 years agoMFp4: Add missing kmem_size() definition.
pjd [Tue, 10 Apr 2007 13:26:45 +0000 (13:26 +0000)]
MFp4: Add missing kmem_size() definition.

17 years agoMFp4: Allow to set zfs_recover via vfs.zfs.recover from /boot/loader.conf.
pjd [Tue, 10 Apr 2007 12:54:19 +0000 (12:54 +0000)]
MFp4: Allow to set zfs_recover via vfs.zfs.recover from /boot/loader.conf.

17 years agoMFp4: Hide under '#ifdef _KERNEL' only what's really needed.
pjd [Tue, 10 Apr 2007 12:52:14 +0000 (12:52 +0000)]
MFp4: Hide under '#ifdef _KERNEL' only what's really needed.

17 years agoMinor typo fix, noticed while I was going through *_pager.c files.
keramida [Tue, 10 Apr 2007 12:34:51 +0000 (12:34 +0000)]
Minor typo fix, noticed while I was going through *_pager.c files.

17 years agoExpand the description of the host's UUID.
ru [Tue, 10 Apr 2007 11:19:52 +0000 (11:19 +0000)]
Expand the description of the host's UUID.

OK'ed by: pjd

17 years agoSwap "underflow"/"overflow" in the table header.
ru [Tue, 10 Apr 2007 11:17:00 +0000 (11:17 +0000)]
Swap "underflow"/"overflow" in the table header.

Submitted by: Ricardo Nabinger Sanchez
MFC after: 3 days

17 years agoFix the NAMEI zone leak when snapshot was successfully created.
kib [Tue, 10 Apr 2007 09:31:42 +0000 (09:31 +0000)]
Fix the NAMEI zone leak when snapshot was successfully created.

Reported and tested by: Peter Holm
MFC after: 2 weeks

17 years agoRecalculate the NEWBLOCK flag for pagedep structure after the softdep
kib [Tue, 10 Apr 2007 09:30:41 +0000 (09:30 +0000)]
Recalculate the NEWBLOCK flag for pagedep structure after the softdep
lock is dropped, since pagedep may be already processed and deallocated.

Found and tested by: kris
MFC after: 2 weeks

17 years agoWhen LK_NOWAIT is passed as argument to process_worklist_item(), this
kib [Tue, 10 Apr 2007 09:28:17 +0000 (09:28 +0000)]
When LK_NOWAIT is passed as argument to process_worklist_item(), this
does not prevent handle_workitem_remove() from recursing into a blocking
version. Add the dirrem to worklist instead of processing it now if this
is the case.

Reported and tested by: kris
Submitted by: tegge
MFC after: 2 weeks

17 years agoFix an uninitialized variable warning.
thompsa [Tue, 10 Apr 2007 08:02:33 +0000 (08:02 +0000)]
Fix an uninitialized variable warning.

17 years agoUpdate to match revision 1.23 of touch.c.
grog [Tue, 10 Apr 2007 07:24:47 +0000 (07:24 +0000)]
Update to match revision 1.23 of touch.c.
Clarify some details.

17 years agoUsage: print base name of program.
grog [Tue, 10 Apr 2007 07:22:30 +0000 (07:22 +0000)]
Usage: print base name of program.

-A flag: respect the -a and -m flags.
 imply the -c flag.

Requested in principle by: brian

17 years agoMake use of ptrace(2) instead of procfs in truss(1), eliminating
delphij [Tue, 10 Apr 2007 04:03:34 +0000 (04:03 +0000)]
Make use of ptrace(2) instead of procfs in truss(1), eliminating
yet another need of an available /proc/ mount.

Tested with: make universe
Submitted by: howardsu
Reviewed by: alfred

17 years agoBump document date for new trunk commands.
thompsa [Tue, 10 Apr 2007 03:35:42 +0000 (03:35 +0000)]
Bump document date for new trunk commands.

17 years agoFix build, trunk is a device not an option.
thompsa [Tue, 10 Apr 2007 03:09:38 +0000 (03:09 +0000)]
Fix build, trunk is a device not an option.

17 years agoTry to stabilize ZFS with regard to memory consumption:
pjd [Tue, 10 Apr 2007 02:35:57 +0000 (02:35 +0000)]
Try to stabilize ZFS with regard to memory consumption:
- Allow to shrink ARC down to 16MB (instead of 64MB).
- Set arc_max to 1/2 of kmem_map by default.
- Start freeing things earlier when low memory situation is detected.
- Serialize execution of arc_lowmem().

I decided to setup minimum ZFS memory requirements to 512MB of RAM and 256MB of
kmem_map size. If there is less RAM or kmem_map, a warning will be printed.
World is cruel, be no better. In other words: modern file system requires
modern hardware:)

From ZFS administration guide:

"Currently the minimum amount of memory recommended to install a Solaris
 system is 512 Mbytes. However, for good ZFS performance, at least one
 Gbyte or more of memory is recommended."

17 years agoReduce diff against vendor - we have now stronger check for "mutex already
pjd [Tue, 10 Apr 2007 02:19:12 +0000 (02:19 +0000)]
Reduce diff against vendor - we have now stronger check for "mutex already
initialized", so we can go back to kmem_alloc().

17 years agoAdd trunk(4) module.
thompsa [Tue, 10 Apr 2007 00:41:31 +0000 (00:41 +0000)]
Add trunk(4) module.

17 years agoHook trunk(4) up to the build.
thompsa [Tue, 10 Apr 2007 00:35:31 +0000 (00:35 +0000)]
Hook trunk(4) up to the build.

17 years agoMark netstat -g host-mode output as deprecated.
bms [Tue, 10 Apr 2007 00:30:26 +0000 (00:30 +0000)]
Mark netstat -g host-mode output as deprecated.

MFC after: 2 weeks

17 years agoAdd the trunk(4) driver for providing link aggregation, failover and fault
thompsa [Tue, 10 Apr 2007 00:27:25 +0000 (00:27 +0000)]
Add the trunk(4) driver for providing link aggregation, failover and fault
tolerance.  This driver allows aggregation of multiple network interfaces as
one virtual interface using a number of different protocols/algorithms.

failover    - Sends traffic through the secondary port if the master becomes
              inactive.
fec         - Supports Cisco Fast EtherChannel.
lacp        - Supports the IEEE 802.3ad Link Aggregation Control Protocol
              (LACP) and the Marker Protocol.
loadbalance - Static loadbalancing using an outgoing hash.
roundrobin  - Distributes outgoing traffic using a round-robin scheduler
              through all active ports.

This code was obtained from OpenBSD and this also includes 802.3ad LACP support
from agr(4) in NetBSD.

17 years agoConsiderably rework the ifmcstat utility.
bms [Tue, 10 Apr 2007 00:26:12 +0000 (00:26 +0000)]
Considerably rework the ifmcstat utility.
 * Build with or without INET, INET6, or KVM features.
  * When built without KVM, the sysctl-based getifmaddrs() function
    is used as the back-end for the utility.
 * Reflect the fact that FreeBSD now uses the in_multi refcount as
   a true refcount.
 * Style.

The utility may now be run without super-user privilege, albeit with
a less detailed display, equivalent to that of the soon-to-be-retired
netstat -g host-mode output.

MFC after: 3 weeks

17 years agoRemove unused #define.
pjd [Mon, 9 Apr 2007 23:30:28 +0000 (23:30 +0000)]
Remove unused #define.

17 years agoBring rtld exports in line with corresponding symbols exported from
kan [Mon, 9 Apr 2007 23:00:29 +0000 (23:00 +0000)]
Bring rtld exports in line with corresponding symbols exported from
libc.

Disable SYMVER_DEFAULT n rtld until its implications are understood
better.

17 years agoFix a compiler warning so hash.h can be included in the kernel. This changes
thompsa [Mon, 9 Apr 2007 22:55:14 +0000 (22:55 +0000)]
Fix a compiler warning so hash.h can be included in the kernel. This changes
the args for hash32_stre and hash32_strne but there are no consumers in the
base system and openbgpd does not use it which the initial import was for.

Silence on: hackers

17 years agoClean-ip TLS symbol versions. [_]__tls_get_addr function is part of
kan [Mon, 9 Apr 2007 22:48:08 +0000 (22:48 +0000)]
Clean-ip TLS symbol versions. [_]__tls_get_addr function is part of
the platform ABI and as such does not belong in FBSDprivate.

__libc_tls_* functions do not have to be visible to outside world
at all.

17 years agoFix build breakage.
pjd [Mon, 9 Apr 2007 22:29:13 +0000 (22:29 +0000)]
Fix build breakage.

17 years agoAdd zfs_load here.
pjd [Mon, 9 Apr 2007 22:09:09 +0000 (22:09 +0000)]
Add zfs_load here.

Reminded by: bmah