]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoMFC: sbin/geom/core/geom.c 1.23
pjd [Tue, 16 Aug 2005 08:45:11 +0000 (08:45 +0000)]
MFC: sbin/geom/core/geom.c 1.23

Unfortunately dlerror(3) returns string, so there is no clean way to
ignore "no such file" errors only, which I wanted to do.
Because of this I ignored all other errors on dlopen(3) failure as well,
which isn't good.
Fix this situation by calling access(2) on library file first and ignore
only ENOENT error. This allows to report all the rest of dlopen(3) errors.

Approved by: re (kensmith)

19 years agoMFC: etc/rc.d/jail 1.25
pjd [Tue, 16 Aug 2005 08:43:06 +0000 (08:43 +0000)]
MFC: etc/rc.d/jail 1.25

Skip jails which are already running and inform why.
We're checking for /var/run/jail_<name>.id file and if it exists, we don't
start the jail. It should be also safe in case of reboot(8), because
rc.d/cleanvar script is going to remove /var/run/jail_* files.

It helps to avoid potential mess when the same jail is started twice,
because of an administrator mistake (been there, done that).

Approved by: re (kensmith)

19 years agoMFC: rc.d/cleanvar 1.10
pjd [Tue, 16 Aug 2005 08:41:30 +0000 (08:41 +0000)]
MFC: rc.d/cleanvar 1.10

Skip 'logpriv' socket when cleaning /var/.

Approved by: re (kensmith)

19 years agoMFC: rc.d/gbde 1.13
pjd [Tue, 16 Aug 2005 08:39:36 +0000 (08:39 +0000)]
MFC: rc.d/gbde 1.13
rc.subr 1.35

Move 'local_tr' function to rc.subr and change its name to 'ltr'.

Approved by: re (kensmith)

19 years agoMFC:
pjd [Tue, 16 Aug 2005 08:20:48 +0000 (08:20 +0000)]
MFC:
- Add code for Ext2FS and ReiserFS labels recognition.
- Avoid creating directories in devfs by changing all '/' in labels to '_'.

Submitted by: Stanislav Sedov <stas@310.ru>
PR: kern/84638
Approved by: re (kensmith)

19 years agoMFC: Add strcasecmp() and strncasecmp() to libkern and connect to the build.
pjd [Tue, 16 Aug 2005 08:11:00 +0000 (08:11 +0000)]
MFC: Add strcasecmp() and strncasecmp() to libkern and connect to the build.

Approved by: re (kensmith)

19 years agoPartial MFC rev 1.3:
marcel [Tue, 16 Aug 2005 03:29:22 +0000 (03:29 +0000)]
Partial MFC rev 1.3:
  o  Remove the obscure tid command, because it does what the thread
     command does, but worse.
  o  Move the PID to the extra thread info, where it makes sense and
     where it doesn't confuse users. The extra thread info holds some
     process information, to which the PID belongs.
  o  Implement the to_find_new_threads target method by having it call
     the target beneath us if we're not using KVM. This makes sure that
     new threads are found when using the remote target.

  o  Fix various core dump scenarios:
     -  Implement the to_files_info target method. Previously the
        'info target' command would cause a NULL pointer dereference.
     -  Don't assume there's a current thread. We're not initialized
        in all cases. This prevents a NULL pointer dereference.
     -  When we're not ussing KVM, have the to_xfer_memory target
        method call the target beneath us. This avoids calling into
        KVM with a NULL pointer.

Approved by: re (kensmith)

19 years agoMFC r1.7 "Sync usage message with the code and manual page".
jkoshy [Tue, 16 Aug 2005 02:03:48 +0000 (02:03 +0000)]
MFC r1.7 "Sync usage message with the code and manual page".

Approved by: re (kensmith)

19 years agoMFC 1.8:
marcel [Tue, 16 Aug 2005 00:29:26 +0000 (00:29 +0000)]
MFC 1.8:
o  As mentioned in the previous commit: make the KVM error buffer
   static.
o  Register a function with atexit(3) to close the KVM object if
   we have one open.
o  Show the unread portion of the kernel's message buffer before
   presenting the prompt. It's bound to provide some useful info.
o  Don't call kgdb_target() twice. It results in having all threads
   listed twice.

Approved by: re (hrs)

19 years agoMFC addition of portsnap to the base system plus subsequent enhancements
cperciva [Mon, 15 Aug 2005 20:24:08 +0000 (20:24 +0000)]
MFC addition of portsnap to the base system plus subsequent enhancements
and bug fixes.

Approved by: re (kensmith)

19 years agoMFC: reduce warnings when compiled under -W.
julian [Mon, 15 Aug 2005 20:04:28 +0000 (20:04 +0000)]
MFC:  reduce warnings when compiled under -W.

Obtained from: Sandvine inc.
Approved by:  re (ken)

19 years agoMFC { sys/dev/hwpmc/hwpmc_mod.c:1.13, sys/kern/kern_pmc.c:1.5,
jkoshy [Mon, 15 Aug 2005 18:46:13 +0000 (18:46 +0000)]
MFC { sys/dev/hwpmc/hwpmc_mod.c:1.13, sys/kern/kern_pmc.c:1.5,
    sys/sys/pmckern.h:1.5 }

Fail the module loading process if the currently executing kernel
was not compiled with 'options HWPMC_HOOKS' or if the compiled-in
version numbers of the kernel and module are not in sync.

Approved by: re (kensmith)

19 years agoMFC addition of bsdiff and bspatch to the base system, in order to
cperciva [Mon, 15 Aug 2005 18:34:21 +0000 (18:34 +0000)]
MFC addition of bsdiff and bspatch to the base system, in order to
allow them to be used by portsnap(8) in 6.0-RELEASE.

Approved by: re (kensmith)

19 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Mon, 15 Aug 2005 17:07:38 +0000 (17:07 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

19 years agoMFC r1.8 "Correctly print system-wide PMC counts for short-lived command lines".
jkoshy [Mon, 15 Aug 2005 15:33:59 +0000 (15:33 +0000)]
MFC r1.8 "Correctly print system-wide PMC counts for short-lived command lines".

Approved by: re (hrs)

19 years agoMFC: Check for marker pages when scanning active and inactive page queues.
tegge [Mon, 15 Aug 2005 14:28:48 +0000 (14:28 +0000)]
MFC: Check for marker pages when scanning active and inactive page queues.

Approved by: re (kensmith)

19 years agoMFC: Do not use vm_pager_init() to initialize vnode_pbuf_freecnt variable.
kan [Mon, 15 Aug 2005 14:04:47 +0000 (14:04 +0000)]
MFC: Do not use vm_pager_init() to initialize vnode_pbuf_freecnt variable.
vm_pager_init() is run before required nswbuf variable has been set
to correct value. This caused system to run with single pbuf available
for vnode_pager. Handle both cluster_pbuf_freecnt and vnode_pbuf_freecnt
variableis in the same way.

Approved by: re (kensmith)

19 years agoMFC: Recognize D-Link DGE-528(T) Gigabit as an re(4) device.
tobez [Mon, 15 Aug 2005 14:02:37 +0000 (14:02 +0000)]
MFC: Recognize D-Link DGE-528(T) Gigabit as an re(4) device.

Approved by: re (kensmith)

19 years agoMFC r1.639: Do not drop the vnode interlock if vdropl is called on already
kan [Mon, 15 Aug 2005 13:50:38 +0000 (13:50 +0000)]
MFC r1.639: Do not drop the vnode interlock if vdropl is called on already
doomed vnode. vdropl callers expect it to return with interlock still being
held.

Approved by: re (hrs)

19 years agoMerge if_atm.c:1.20 from HEAD to RELENG_6:
rwatson [Mon, 15 Aug 2005 09:54:00 +0000 (09:54 +0000)]
Merge if_atm.c:1.20 from HEAD to RELENG_6:

  Add NATM_LOCK() and NATM_UNLOCK() in places where npcb_add() and
  npcb_free() are called, in order to eliminate witness panics.
  This was overlooked in removal of GIANT from ATM.

Approved by: re (hrs)

19 years agoMerge natm.c:1.39, natm.h:1.12, natm_proto.c:1.17 from HEAD to RELENG_6:
rwatson [Mon, 15 Aug 2005 09:52:22 +0000 (09:52 +0000)]
Merge natm.c:1.39, natm.h:1.12, natm_proto.c:1.17 from HEAD to RELENG_6:

  Remove FreeBSD 2.2 protocol usrreq compatibility code.

  Remove minor #ifdefs for early NetBSD and OpenBSD compatibility.

  Remove spl-related definitions.

Approved by: re (hrs)

19 years agoMerge if_atmsubr.c:1.38, natm.c:1.38, natm.h:1.11, natm_pcb.c:1.16,
rwatson [Mon, 15 Aug 2005 09:51:15 +0000 (09:51 +0000)]
Merge if_atmsubr.c:1.38, natm.c:1.38, natm.h:1.11, natm_pcb.c:1.16,
natm_proto.c:1.16 from HEAD to RELENG_6:

  Lock down netnatm and mark as MPSAFE:

  - Introduce a subsystem mutex, natm_mtx, manipulated with accessor macros
    NATM_LOCK_INIT(), NATM_LOCK(), NATM_UNLOCK(), NATM_LOCK_ASSERT().  It
    protects the consistency of pcb-related data structures.  Finer grained
    locking is possible, but should be done in the context of specific
    measurements (as very little work is done in netnatm -- most is in the
    ATM device driver or socket layer, so there's probably not much
    contention).

  - Remove GIANT_REQUIRED, mark as NETISR_MPSAFE, remove
    NET_NEEDS_GIANT("netnatm").

  - Conditionally acquire Giant when entering network interfaces for
    ifp->if_ioctl() using IFF_LOCKGIANT(ifp)/IFF_UNLOCKGIANT(ifp) in order
    to coexist with non-MPSAFE atm ifnet drivers..

  - De-spl.

  Reviewed by:    harti, bms (various versions)

Approved by: re (hrs)

19 years agoMerge mac_policy.h:1.69 from HEAD to RELENG_6:
rwatson [Mon, 15 Aug 2005 09:03:50 +0000 (09:03 +0000)]
Merge mac_policy.h:1.69 from HEAD to RELENG_6:

  Insert a series of place-holder function pointers in mac_policy.h for
  entry points that will be inserted over the life-time of the 6.x branch,
  including for:

  - New struct file labeling (void * already added to struct file), events,
    access control checks.
  - Additional struct mount access control checks, internalization/
    externalization.
  - mac_check_cap()
  - System call enter/exit check and event.
  - Socket and vnode ioctl entry points.

Approved by: re (hrs)

19 years agoMerge vm_page.h:1.137 from HEAD to RELENG_6:
rwatson [Mon, 15 Aug 2005 09:02:01 +0000 (09:02 +0000)]
Merge vm_page.h:1.137 from HEAD to RELENG_6:

  Don't perform a nested include of opt_vmpage.h if LIBMEMSTAT is defined,
  as opt_vmpage.h will not be available to user space library builds.  A
  similar existing check is present for KLD_MODULE for similar reasons.

Approved by: re (hrs)

19 years agoMerge uma_int.h:1.37 from HEAD to RELENG_6:
rwatson [Mon, 15 Aug 2005 09:01:11 +0000 (09:01 +0000)]
Merge uma_int.h:1.37 from HEAD to RELENG_6:

  Wrap inlines in uma_int.h in #ifdef _KERNEL so that uma_int.h can be
  used from memstat_uma.c for the purposes of kvm access without lots
  of additional unsafe includes.

Approved by: re (hrs)

19 years agoMFC rev 1.222:
ssouhlal [Mon, 15 Aug 2005 06:22:09 +0000 (06:22 +0000)]
MFC rev 1.222:
 Use atomic operations on runningbufspace.

 PR:             kern/84318
 Submitted by:   ade

Approved by: re (kensmith)

19 years agoMFC rev 1.73:
ssouhlal [Mon, 15 Aug 2005 06:14:07 +0000 (06:14 +0000)]
MFC rev 1.73:
 The kernel is usually at /boot/kernel/kernel nowadays.

 PR:     i386/81756
 Submitted by:   trasz <trasz@buziaczek.pl>

Approved by: re (kensmith)

19 years agoMFC rev 1.11:
ssouhlal [Mon, 15 Aug 2005 06:07:23 +0000 (06:07 +0000)]
MFC rev 1.11:
  it's actually 11 minutes when the machine is assumed to be down and removed
  from the output.

  Obtained from:  DragonFlyBSD

Approved by: re (kensmith)

19 years agoMFC:
ssouhlal [Mon, 15 Aug 2005 06:01:36 +0000 (06:01 +0000)]
MFC:
  Holding a vnode doesn't prevent v_mount from disappearing (when the
  vnode is inactivated), possibly leading to a NULL dereference when
  checking if the mount wants knotes to be activated in the VOP hooks.
  So, we add a new vnode flag VV_NOKNOTE that is only set in  getnewvnode(),
  if necessary, and check it when activating knotes.
  Since the flags are not erased when a vnode is being held, we can safely
  read them.

Approved by: re (kensmith)

19 years agoMFC Rev. 1.31
suz [Mon, 15 Aug 2005 00:28:31 +0000 (00:28 +0000)]
MFC Rev. 1.31
  fixed a kernel crash at the start-up time of an IPv6 multicast daemon
  (e.g. pim6sd/pim6dd)

Approved by: re(kensmith)

19 years agoMFC: r1.46 - grammar improvements.
murray [Sun, 14 Aug 2005 18:52:34 +0000 (18:52 +0000)]
MFC: r1.46 - grammar improvements.

Approved by: re (kensmith)

19 years agoMFC: r1.15 - Fix typo.
murray [Sun, 14 Aug 2005 18:48:54 +0000 (18:48 +0000)]
MFC: r1.15 - Fix typo.

Approved by: re (kensmith)

19 years agoBump __FreeBSD_version for dev_clone eventhandler to add credential.
rwatson [Sat, 13 Aug 2005 21:27:58 +0000 (21:27 +0000)]
Bump __FreeBSD_version for dev_clone eventhandler to add credential.

Approved by: re

19 years agoMerge two sets of changes relating to devfs device node cloning from
rwatson [Sat, 13 Aug 2005 21:24:18 +0000 (21:24 +0000)]
Merge two sets of changes relating to devfs device node cloning from
HEAD to RELENG_6: changes to introduce a credentialed version of the
clone event handler, and then changes to merge the regular and
credentialed versions into a single interface (along with updates to
existing consumers).  With this merge, 6.x and 7.x are in sync.

First batch merges devfs_devs.c:1.37, devfs_vnops.c:1.115,
kern_conf.c:1.187, tty_pty.c:1.138, mac_vfs.c:1.109, mac_biba.c:1.36,
mac_lomac.c:1.36, mac_mls.c:1.73, mac_stub.c:1.53, mac_test.c:1.61,
conf.h:1.223, mac.h:1.68, mac_policy.h:1.67 from HEAD to RELENG_6:

  When devfs cloning takes place, provide access to the credential of the
  process that caused the clone event to take place for the device driver
  creating the device.  This allows cloned device drivers to adapt the
  device node based on security aspects of the process, such as the uid,
  gid, and MAC label.

  - Add a cred reference to struct cdev, so that when a device node is
    instantiated as a vnode, the cloning credential can be exposed to
    MAC.

  - Add make_dev_cred(), a version of make_dev() that additionally
    accepts the credential to stick in the struct cdev.  Implement it and
    make_dev() in terms of a back-end make_dev_credv().

  - Add a new event handler, dev_clone_cred, which can be registered to
    receive the credential instead of dev_clone, if desired.

  - Modify the MAC entry point mac_create_devfs_device() to accept an
    optional credential pointer (may be NULL), so that MAC policies can
    inspect and act on the label or other elements of the credential
    when initializing the skeleton device protections.

  - Modify tty_pty.c to register clone_dev_cred and invoke make_dev_cred(),
    so that the pty clone credential is exposed to the MAC Framework.

  While currently primarily focussed on MAC policies, this change is also
  a prerequisite for changes to allow ptys to be instantiated with the UID
  of the process looking up the pty.  This requires further changes to the
  pty driver -- in particular, to immediately recycle pty nodes on last
  close so that the credential-related state can be recreated on next
  lookup.

  Submitted by:   Andrew Reisse <andrew.reisse@sparta.com>
  Obtained from:  TrustedBSD Project
  Sponsored by:   SPAWAR, SPARTA

Second batch merges scsi_target.c:1.68, coda_fbsd.c:1.43,
firewirereg.h:1.38, fwdev.c:1.47, nmdm.c:1.36, snp.c:1.100, dsp.c:1.82,
mixer.c:1.45, vkbd.c:1.9, devfs_vnops.c:1.117, tty_pty.c:1.139,
tty_tty.c:1.57, bpf.c:1.156, if_tap.c:1.56, if_tun.c:1.153,
smb_dev.c:1.28, conf.h:1.224 from HEAD to RELENG_6:

  Merge the dev_clone and dev_clone_cred event handlers into a single
  event handler, dev_clone, which accepts a credential argument.
  Implementors of the event can ignore it if they're not interested,
  and most do.  This avoids having multiple event handler types and
  fall-back/precedence logic in devfs.

  This changes the kernel API for /dev cloning, and may affect third
  party packages containg cloning kernel modules.

  Requested by:   phk

These changes modifies the kernel device driver API for device cloning,
and might require minor modifications to third party device drivers that
make use of devfs cloning.  It will not be merged to RELENG_5.

Approved by: re (scottl)

19 years agoMFC: rev. 1.70
brueffer [Fri, 12 Aug 2005 22:29:42 +0000 (22:29 +0000)]
MFC: rev. 1.70

Add some more info about jail startup and shutdown.

Approved by: re (hrs)

19 years agoMFC: rev. 1.42
brueffer [Fri, 12 Aug 2005 22:28:25 +0000 (22:28 +0000)]
MFC: rev. 1.42

Remove stray comma

Approved by: re (hrs)

19 years agoMFC: rev. 1.5
brueffer [Fri, 12 Aug 2005 22:27:37 +0000 (22:27 +0000)]
MFC: rev. 1.5

nForce3 and nForce4 are supported as well.

Approved by: re (hrs)

19 years agoMFC: rev. 1.18
brueffer [Fri, 12 Aug 2005 22:26:03 +0000 (22:26 +0000)]
MFC: rev. 1.18

Sort the list of supported hardware.

Approved by: re (hrs)

19 years agoMFC: Call tulip_start() rather than tulip_ifstart() from the interrupt
jhb [Fri, 12 Aug 2005 17:57:38 +0000 (17:57 +0000)]
MFC: Call tulip_start() rather than tulip_ifstart() from the interrupt
handler to avoid recursing on the driver lock.

Approved by: re (kensmith)

19 years agoMFC 1.18: Fix for 99% being reported instead of 100% when one battery
njl [Fri, 12 Aug 2005 17:29:58 +0000 (17:29 +0000)]
MFC 1.18: Fix for 99% being reported instead of 100% when one battery
is missing.

Approved by: re (kensmith)

19 years agoMFC rev 1.15: use more reasonable boundary for user setting of lowest
njl [Fri, 12 Aug 2005 17:25:59 +0000 (17:25 +0000)]
MFC rev 1.15: use more reasonable boundary for user setting of lowest

Approved by: re (kensmith)

19 years agoMFC: Don't allow pagedaemon to skip pages while scanning active and
tegge [Fri, 12 Aug 2005 16:43:27 +0000 (16:43 +0000)]
MFC: Don't allow pagedaemon to skip pages while scanning active and
     inactive page queues due to the vm object being locked.

Approved by: re (kensmith)

19 years agoMFC:
brueffer [Fri, 12 Aug 2005 16:15:24 +0000 (16:15 +0000)]
MFC:

More tcpdump 8->1 cleanup.

Approved by: re (hrs)

19 years agoMFC: if_bridge.c, r.1.5
thompsa [Thu, 11 Aug 2005 20:57:59 +0000 (20:57 +0000)]
MFC: if_bridge.c, r.1.5

> Use m_copypacket() which is an optimization of the common case
> m_copym(m, 0, M_COPYALL, how).
>
> This is required for strict alignment architectures where we align the
> IP header in the input path but m_copym() will create an unaligned copy
> in bridge_broadcast(). m_copypacket() preserves alignment of the first
> mbuf.
>
> Noticed by:     Petri Simolin
> Approved by:    mlaier (mentor)

Approved by: re (kensmith), mlaier (mentor)

19 years agoMFC Rev. 1.8:
markus [Thu, 11 Aug 2005 15:35:58 +0000 (15:35 +0000)]
MFC Rev. 1.8:

  Don't lock when holding led_mtx, instead use AcpiOsQueueForExecution to defer
  the locking.

  Idea taken from: acpi_asus(4)

  Approved by:    philip
  Reported by:    avatar
                  Gordon Bergling <gbergling@0xfce3.net>

Approved by: re (kensmith)

19 years agoMFC: Correct some if tests to fix a confusing printf when we route a new
jhb [Thu, 11 Aug 2005 15:35:41 +0000 (15:35 +0000)]
MFC: Correct some if tests to fix a confusing printf when we route a new
IRQ for a link.

Approved by: re (kensmith)

19 years agoMFC 1.4: make kernel build succeed when with "options CPU_DISABLE_SSE".
tobez [Thu, 11 Aug 2005 14:28:42 +0000 (14:28 +0000)]
MFC 1.4: make kernel build succeed when with "options CPU_DISABLE_SSE".

Approved by: re (kensmith)

19 years agoMFC 1.78: fix two bugs that caused page faults when using mice with
iedowse [Thu, 11 Aug 2005 00:22:28 +0000 (00:22 +0000)]
MFC 1.78: fix two bugs that caused page faults when using mice with
tilt movements.

Approved by: re (kensmith)

19 years agoMFC: config-recursive target.
jcamou [Wed, 10 Aug 2005 20:43:27 +0000 (20:43 +0000)]
MFC: config-recursive target.

Approved by: re (hrs)

19 years agoMFC: rev. 1.33 src/sys/net/if_gre.c, rev. 1.20 src/sys/netinet/ip_gre.c
bz [Wed, 10 Aug 2005 19:12:32 +0000 (19:12 +0000)]
MFC: rev. 1.33 src/sys/net/if_gre.c, rev. 1.20 src/sys/netinet/ip_gre.c

Add support for IPv6 over GRE [1]. PR kern/80340 includes the
  FreeBSD specific ip_newid() changes NetBSD does not have.
Correct handling of non AF_INET packets passed to bpf [2].

PR: kern/80340[1], NetBSD PRs 29150[1], 30844[2]
Obtained from: NetBSD ip_gre.c rev. 1.34,1.35, if_gre.c rev. 1.56
Submitted by: Gert Doering <gert at greenie.muc.de>[2]
Approved by: re (kensmith)

19 years agoMFC: Information about starting jails
jcamou [Wed, 10 Aug 2005 19:00:43 +0000 (19:00 +0000)]
MFC: Information about starting jails
at boot time if specified in rc.conf.

Submitted by: matteo
Approved by: re (hrs), trhodes (mentor)

19 years agoMFC: m_align
sam [Wed, 10 Aug 2005 17:02:29 +0000 (17:02 +0000)]
MFC: m_align

Approved by: re (kensmith)

19 years agoMFi386: revision 1.1202.2.1 (r300 DRM support).
nyan [Wed, 10 Aug 2005 15:56:13 +0000 (15:56 +0000)]
MFi386: revision 1.1202.2.1 (r300 DRM support).

Approved by: re (kensmith)

19 years agoMFC 1.10:
glebius [Wed, 10 Aug 2005 15:00:57 +0000 (15:00 +0000)]
MFC 1.10:
  Check that we have first fragment before pulling up TCP/UDP header.

Approved by: re (kensmith)

19 years agoMFC:
glebius [Wed, 10 Aug 2005 14:58:18 +0000 (14:58 +0000)]
MFC:
  Enhance struct ng_hook - add hk_type field and bump NG_ABI_VERSION.

Approved by: re (kensmith)

19 years agoMFC 1.103, 1.105:
glebius [Wed, 10 Aug 2005 14:54:52 +0000 (14:54 +0000)]
MFC 1.103, 1.105:

  avoid recursion problems in netgraph(4). See 1.103 log for
more information.

Approved by: re (kensmith)

19 years agoMFC: rc.d/jail 1.24
pjd [Wed, 10 Aug 2005 14:30:05 +0000 (14:30 +0000)]
MFC: rc.d/jail 1.24

Allow to give more than one jail's name, eg.:

# /etc/rc.d/jail start www mail

Approved by: re (kensmith)

19 years agoMFC ffs_softdep.c 1.182, softdep.h 1.18
ups [Wed, 10 Aug 2005 14:09:25 +0000 (14:09 +0000)]
MFC ffs_softdep.c 1.182, softdep.h 1.18

Delay freeing disk space for file system blocks until all
dirty buffers are safely released. This fixes softdep
problems on truncation (deletion) of files with dirty
buffers.

Approved by: re (kensmith)

19 years agoMFC: Mention that console= can set multiple consoles.
brian [Tue, 9 Aug 2005 12:38:17 +0000 (12:38 +0000)]
MFC: Mention that console= can set multiple consoles.
     Relate boot_ options to their kernel command line flags and make it clear
     how kenv(1) is used.

Approved by: re (hrs)

19 years agoMFC: (1.10) Fixing compilation bustage.
avatar [Tue, 9 Aug 2005 01:27:31 +0000 (01:27 +0000)]
MFC: (1.10) Fixing compilation bustage.

Approved by: re (kensmith)

19 years agoMFC: (1.7) Fixing compilation bustage.
avatar [Tue, 9 Aug 2005 01:25:32 +0000 (01:25 +0000)]
MFC: (1.7) Fixing compilation bustage.

Approved by: re (kensmith)

19 years agoMFC machdep.c r1.90
grehan [Mon, 8 Aug 2005 07:02:12 +0000 (07:02 +0000)]
MFC  machdep.c r1.90
     trap.c    r1.55
     trap_subr.S r1.15

   Temporary band-aid to fix hang when a process exec's Altivec
 instructions.

    trap_subr.S:  declare a stub for the a-unavailable trap
                  that does an absolute jump to the vector-assist trap.
                  This is due to the fact that the vec-unavail trap
                  doesn't start at a 256-byte boundary, so the trick of
                  masking the bottom 8 bits of the link register to identify
                  the interrupt doesn't work, so let the vec-assist
                  case handle Altivec-disabled for the time being.

                  Note that this will be fixed in the future with a much
                  smaller vector code-stub (< 16 bytes) that will allow
                  use of strange vector offsets that are also present in
                  4xx processors, and also allow smaller differences in
                  vector codepaths on the G5.

    trap.c:       Treat altivec-unavailable/assist process traps as SIGILL.
                  Not quite correct, since altivec-assist should really
    be a panic,
                  but it is fine for the moment due to the above measure.

    machdep.c     Install the stub code for the altivec-unavailable trap, and
                  the standard trap code at the altivec-assist.

Approved by: re (Ken Smith)

19 years agoMFC r1.71.
ceri [Sun, 7 Aug 2005 18:49:50 +0000 (18:49 +0000)]
MFC r1.71.

  Correct the description of the TAPE environment variable.
  Based on:

PR:             docs/84200
Submitted by:   Gary W. Swearingen <garys at opusnet dot com>
Approved by: re (hrs)

19 years agoMFC: rev. 1.54
brueffer [Sun, 7 Aug 2005 16:02:17 +0000 (16:02 +0000)]
MFC: rev. 1.54

Document ITE IT8211F support.

Approved by: re (hrs)

19 years agoMFC: rev. 1.5
brueffer [Sun, 7 Aug 2005 15:49:53 +0000 (15:49 +0000)]
MFC: rev. 1.5

Remove Xref to non-existant usb(3) manpage.

Approved by: re (hrs)

19 years agoMFC:
sos [Sun, 7 Aug 2005 11:20:28 +0000 (11:20 +0000)]
MFC:
        Remove stale struct ata_channel declaration
        Add support for the ITE IT8211F controller
        Dont limit all transfers to DEV_BSIZE (stale dbug code)
        Hide the loaded/unloaded message behind bootverbose

Approved by: re@

19 years agoMFC:
sos [Sun, 7 Aug 2005 11:16:58 +0000 (11:16 +0000)]
MFC:
Fix status to report status from the given array

Approved by: re@

19 years agoMFC:
sos [Sun, 7 Aug 2005 11:16:08 +0000 (11:16 +0000)]
MFC:
Allow the array number to be read back on atacontrol create
Make IOCATARAIDSTATUS IOWR so status can be gotten correctly

Approved by: re@

19 years agoMFC of revision 1.10:
roberto [Sun, 7 Aug 2005 05:56:54 +0000 (05:56 +0000)]
MFC of revision 1.10:

The check for invalid characters introduced in 1.9 incorrectly
flags NIS entries as invalid.

Submitted by:   Bob Willcox <bob@immure.com>
PR:             bin/82325 (but I used the patch from Bob).
Approved by: re (kensmith)

19 years agosync with HEAD
sam [Sun, 7 Aug 2005 02:23:32 +0000 (02:23 +0000)]
sync with HEAD

Approved by: re (kensmith)

19 years agoMFC revision 1.61 to RELENG_6
csjp [Sat, 6 Aug 2005 22:26:51 +0000 (22:26 +0000)]
MFC revision 1.61 to RELENG_6
date: 2005/07/30 20:00:13;  author: csjp;  state: Exp;  lines: +16 -4
Introduce kdevtoname, which when given the kernel address of a
cdev structure, returns the device name associated with it through
the __si_namebuf member. This un-breaks the processing of devices.

Approved by: re (kensmith)

19 years agoMFC Rev. 1.13
markus [Sat, 6 Aug 2005 14:47:16 +0000 (14:47 +0000)]
MFC Rev. 1.13

s/Lefler/Leffler/

Approved by: re (hrs)

19 years agoMFC Rev. 1.38
markus [Sat, 6 Aug 2005 14:45:18 +0000 (14:45 +0000)]
MFC Rev. 1.38

- Fix spelling of 'multiplexer'
- Grammar fixes

Approved by: re (hrs)

19 years agoMFC: Rev. 1.2
markus [Sat, 6 Aug 2005 14:41:55 +0000 (14:41 +0000)]
MFC: Rev. 1.2

- Reword a sentence
- Grammar fixes
- s/CAVEAT/CAVEATS/

Approved by: re (hrs)

19 years agoMFC: rev. 1.11
brueffer [Sat, 6 Aug 2005 07:26:42 +0000 (07:26 +0000)]
MFC: rev. 1.11

Mention that the softc is zeroed after allocation.

Approved by: re (hrs)

19 years agoMFC Revision 1.117:
davidxu [Sat, 6 Aug 2005 03:06:25 +0000 (03:06 +0000)]
MFC Revision 1.117:
    In adjustrunqueue(), add code to handle thread migrating case for
    ULE scheduler. In original code, local run queue of threaded ksegrp
    is corrupted if adjustrunqueue() is called while thread is migrating.

Approved by: re (kensmith)
Tested by: delphij

19 years agoMFC Revision 1.155:
davidxu [Sat, 6 Aug 2005 03:03:10 +0000 (03:03 +0000)]
MFC Revision 1.155:
    If a thread was removed from system run queue, kseq_assign
    shouldn't add it again.

Approved by: re (kensmith)
Tested by: delphij

19 years agoMFC: pf.c, 1.35 pfvar.h, 1.12
mlaier [Sat, 6 Aug 2005 01:52:35 +0000 (01:52 +0000)]
MFC: pf.c, 1.35 pfvar.h, 1.12

  Prevent a race condition.  As pf_send_tcp() - called for expired synproxy
  states - has to drop the lock when calling back to ip_output(), the state
  purge timeout might run and gc the state. This results in a rb-tree
  inconsistency.  With this change we flag expiring states while holding the
  lock and back off if the flag is already set.

  Reported by: glebius

Approved by: re (kensmith)

19 years agoMFC: 1.99:
sam [Fri, 5 Aug 2005 21:36:01 +0000 (21:36 +0000)]
MFC: 1.99:

Wireless suport fixups: add a bunch of stuff that's been in the
code but not documented (e.g. wme, mac acl) and correct some
information, etc.

Approved by: re (kensmith)

19 years agoMFC: 1.23: acm and ack are specified per-ac
sam [Fri, 5 Aug 2005 21:35:22 +0000 (21:35 +0000)]
MFC: 1.23: acm and ack are specified per-ac

Approved by: re (kensmith)

19 years agoMFC: if_bridge.c, r1.14
thompsa [Fri, 5 Aug 2005 20:33:21 +0000 (20:33 +0000)]
MFC: if_bridge.c, r1.14

>   We check that all the member interfaces have the same MTU on attach to the
>   bridge but the interface can still be changed afterwards.
>
>   This falls under the 'dont do that' category but log an warning when INVARIANTS
>   is defined.
>
>   Approved by:    mlaier (mentor)
>
>   Revision  Changes    Path
>   1.14      +8 -0      src/sys/net/if_bridge.c

Approved by: re (kensmith), mlaier (mentor)

19 years agoMFC: sbin/geom/class/Makefile 1.9
pjd [Fri, 5 Aug 2005 20:24:37 +0000 (20:24 +0000)]
MFC: sbin/geom/class/Makefile 1.9

Don't try to compile geli(8) when NO_CRYPT knob if defined.

Reported by: Alexander Polakov
Committed to HEAD by: ru
Approved by: re (kensmith (implicit))

19 years agoMFC: Include a SYSUNINIT to destroy the mutex in MTX_SYSINIT.
jhb [Fri, 5 Aug 2005 20:21:46 +0000 (20:21 +0000)]
MFC: Include a SYSUNINIT to destroy the mutex in MTX_SYSINIT.

Approved by: re (kensmith)
MFC after: 1 week

19 years agoMFC: Add regression tests (121 in total) for GEOM_ELI class.
pjd [Fri, 5 Aug 2005 20:04:38 +0000 (20:04 +0000)]
MFC: Add regression tests (121 in total) for GEOM_ELI class.
To use them, run:

# prove /usr/src/tools/regression/geom_eli

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
Approved by: re (kensmith)

19 years agoMFC: Connect GEOM_ELI class to the build.
pjd [Fri, 5 Aug 2005 20:02:46 +0000 (20:02 +0000)]
MFC: Connect GEOM_ELI class to the build.

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
Approved by: re (kensmith)

19 years agoMFC: Introduce GEOM_ELI class which provides GEOM providers encryption.
pjd [Fri, 5 Aug 2005 19:58:14 +0000 (19:58 +0000)]
MFC: Introduce GEOM_ELI class which provides GEOM providers encryption.
For features list and usage see manual page: geli(8).

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
Approved by: re (kensmith)

19 years agoMFC: Add extra constraints to inform the compiler that the memory being
jhb [Fri, 5 Aug 2005 19:46:13 +0000 (19:46 +0000)]
MFC: Add extra constraints to inform the compiler that the memory being
modified is an input and output rather than just the register holding the
pointer being the input and output.

Approved by: re (kensmith)

19 years agoMFC: Convert the atomic pointer operations to operate on uintptr_t rather
jhb [Fri, 5 Aug 2005 19:44:00 +0000 (19:44 +0000)]
MFC: Convert the atomic pointer operations to operate on uintptr_t rather
than void *.

Approved by: re (kensmith)

19 years agoMFC: g_raid3.c 1.41
pjd [Fri, 5 Aug 2005 19:43:29 +0000 (19:43 +0000)]
MFC: g_raid3.c 1.41
g_raid3.h 1.12

Use root_mount KPI for RAID3 to delay root file system mount.
Actually, one cannot setup root file system on RAID3 device, but when
other file system exist in /etc/fstab which are placed on RAID3 device,
boot process will be interrupted when these devices are missing.

Approved by: re (kensmith)

19 years agoMFC: pw_user.c 1.58
pjd [Fri, 5 Aug 2005 19:39:25 +0000 (19:39 +0000)]
MFC: pw_user.c 1.58

Change /home symbolic link, so it will point to usr/home instead of /usr/home.
Previous symlink was confusing:

# cd /jails/virtual_system_1/home
# realpath .
/usr/home

...and slower.

OK'ed by: rwatson, phk
Approved by: re (kensmith)

19 years agoMFC: Add support for the hw.apic.enable_extint tunable.
jhb [Fri, 5 Aug 2005 19:08:25 +0000 (19:08 +0000)]
MFC: Add support for the hw.apic.enable_extint tunable.

Approved by: re (kensmith)

19 years agoMFC: Various and sundry cleanups to remove old code and fix cruftiness.
jhb [Fri, 5 Aug 2005 19:07:19 +0000 (19:07 +0000)]
MFC: Various and sundry cleanups to remove old code and fix cruftiness.
Also, add locking and mark the driver as MPSAFE.

Approved by: re (kensmith)

19 years agoMFC: Close a race where the last thread in a process could be harvested via
jhb [Fri, 5 Aug 2005 19:02:56 +0000 (19:02 +0000)]
MFC: Close a race where the last thread in a process could be harvested via
wait() before it has finished dying.

Approved by: re (kensmith)
MFC after: 1 week

19 years agoMFC: Fix a comparison that broke ``set console=vidconsole'' and even the
brian [Fri, 5 Aug 2005 00:36:59 +0000 (00:36 +0000)]
MFC: Fix a comparison that broke ``set console=vidconsole'' and even the
     loader.conf line ``console="vidconsole"''.

Approved by: re (kensmith)

19 years agoMFC: Propagate return value of the kern_execve() to the caller properly.
sobomax [Thu, 4 Aug 2005 23:25:32 +0000 (23:25 +0000)]
MFC: Propagate return value of the kern_execve() to the caller properly.

Approved by: re

19 years agoMFC if_an.c v1.69 to RELENG_6
emax [Thu, 4 Aug 2005 21:12:22 +0000 (21:12 +0000)]
MFC if_an.c v1.69 to RELENG_6

Reorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()
are called outside of AN_LOCK()/AN_UNLOCK. This fixes the following
WITNESS warning (produced when an(4) PCMCIA card is detached).
taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex an0 (network driver) r = 0 (0xc59af168) locked @ /usr/src/
sys/dev/an/if_an.c:2836

Do not lock an to check gone flag. Only need to hold the lock to set
the gone flag.

Reviewed by: imp
Approved by: re (kemsmith)

19 years agoMFC: rev. 1.28
brueffer [Thu, 4 Aug 2005 19:58:48 +0000 (19:58 +0000)]
MFC: rev. 1.28

Mention the default value of PATH and that it may be overridden.

Approved by: re (hrs)

19 years agoMFC: ggatec.8 1.6
pjd [Thu, 4 Aug 2005 18:05:33 +0000 (18:05 +0000)]
MFC: ggatec.8 1.6

Update manual page after ggate rewrite.

Approved by: re (hrs)

19 years agoMFC: v1.45 intro.2, v1.40 help.common
jmg [Thu, 4 Aug 2005 17:53:40 +0000 (17:53 +0000)]
MFC: v1.45 intro.2, v1.40 help.common

fix a couple documentation nits

Approved by: re (hrs)

19 years agoMFC: r300 DRM support. Supports all current non-PCIE Radeons, as far as the
anholt [Thu, 4 Aug 2005 17:31:02 +0000 (17:31 +0000)]
MFC: r300 DRM support.  Supports all current non-PCIE Radeons, as far as the
developers know.

Approved by: re (kensmith)