]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agosimplify callback
sam [Tue, 29 Mar 2005 20:59:49 +0000 (20:59 +0000)]
simplify callback

19 years agoreplace m_defrag with something more suitable
sam [Tue, 29 Mar 2005 20:54:31 +0000 (20:54 +0000)]
replace m_defrag with something more suitable

19 years agohandle rejoin event
sam [Tue, 29 Mar 2005 20:24:13 +0000 (20:24 +0000)]
handle rejoin event

19 years agoCorrect formatting of pointers in the listing by using "0x%" PRIx64 instead of
anholt [Tue, 29 Mar 2005 20:17:47 +0000 (20:17 +0000)]
Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of
"%" PRIu64 "x".

19 years agopass re-association events up using a new message type
sam [Tue, 29 Mar 2005 19:36:42 +0000 (19:36 +0000)]
pass re-association events up using a new message type

19 years ago- Don't free mbuf, passed to interface output method if the latter
glebius [Tue, 29 Mar 2005 13:43:09 +0000 (13:43 +0000)]
- Don't free mbuf, passed to interface output method if the latter
  returns error. In this case mbuf has already been freed. [1]
- Remove redundant declaration.

PR: kern/78893 [1]
Submitted by: Liang Yi [1]
Reviewed by: sam
MFC after: 1 day

19 years ago - Remove wantparent, it is no longer necessary. An assert in vfs_lookup.c
jeff [Tue, 29 Mar 2005 13:16:38 +0000 (13:16 +0000)]
 - Remove wantparent, it is no longer necessary.  An assert in vfs_lookup.c
   prevents any callers from doing a modifying op without
   LOCKPARENT or WANTPARENT.  It wasn't even properly used in the CREATE
   or DELETE cases.

19 years ago - Remove wantparent, it is no longer necessary. An assert in vfs_lookup.c
jeff [Tue, 29 Mar 2005 13:09:42 +0000 (13:09 +0000)]
 - Remove wantparent, it is no longer necessary.  An assert in vfs_lookup.c
   prevents any callers from doing a modifying op without
   LOCKPARENT or WANTPARENT.

19 years ago - Remove wantparent, it is no longer necessary. An assert in vfs_lookup.c
jeff [Tue, 29 Mar 2005 13:04:00 +0000 (13:04 +0000)]
 - Remove wantparent, it is no longer necessary.  An assert in vfs_lookup.c
   prevents any callers from doing a DELETE or RENAME without locking
   the parent.

19 years ago - cache_lookup() now locks the new vnode for us to prevent some races.
jeff [Tue, 29 Mar 2005 13:00:37 +0000 (13:00 +0000)]
 - cache_lookup() now locks the new vnode for us to prevent some races.
   Remove redundant code.

Sponsored by: Isilon Systems, Inc.

19 years ago - Move the logic that locks and refs the new vnode from vfs_cache_lookup()
jeff [Tue, 29 Mar 2005 12:59:06 +0000 (12:59 +0000)]
 - Move the logic that locks and refs the new vnode from vfs_cache_lookup()
   to cache_lookup().  This allows us to acquire the vnode interlock before
   dropping the cache lock.  This protects the vnodes identity until we
   have locked it.

Sponsored by: Isilon Systems, Inc.

19 years agoAdds sha256 support. While it is a good idea to also add sha384 and
tobez [Tue, 29 Mar 2005 11:44:17 +0000 (11:44 +0000)]
Adds sha256 support.  While it is a good idea to also add sha384 and
sha512, I did not do that since it is not entirely clear where "the one
true place" to hold their implementations is going to be.  Sha256 is
different since mtree already links against libmd.

Make recommended procedure for integrity checking in the manpage
consistent.

Fix a bug with -f spec1 -f spec2 comparison, which prevented
test/tes03.sh from running successfully.

Reviewed by: phk, cperciva

19 years ago We don't need no major numbers
phk [Tue, 29 Mar 2005 11:26:14 +0000 (11:26 +0000)]
We don't need no major numbers
We don't need a mknod(2) call
No tricky install documentation
Kernel leave them dev_t alone
Hey Kernel leave them cdevsw alone
All in all it's just another struct in src/sys
All in all you're just another struct in src/sys

19 years agoDon't generate major.c anymore.
phk [Tue, 29 Mar 2005 11:23:25 +0000 (11:23 +0000)]
Don't generate major.c anymore.

19 years agoRemove the global cdev hash and use the cdevsw list instead.
phk [Tue, 29 Mar 2005 11:15:54 +0000 (11:15 +0000)]
Remove the global cdev hash and use the cdevsw list instead.

Don't remove the now unused element from cdev yet, wait until
we have a better reason to bump the version.

There is now no longer any upper limit on how many device drivers
a FreeBSD kernel can have.

19 years agoRevert to the more correct array size, and correct a KASSERT to
markm [Tue, 29 Mar 2005 11:08:45 +0000 (11:08 +0000)]
Revert to the more correct array size, and correct a KASSERT to
only allow proper values. ENTROPYSOURCE is a maxval+1, not an
allowable number.

Suggested loose protons in the solution: phk
Prefers to keep the pH close to seven: markm

19 years ago - Initial cn_lkflags to LK_EXCLUSIVE.
jeff [Tue, 29 Mar 2005 10:16:12 +0000 (10:16 +0000)]
 - Initial cn_lkflags to LK_EXCLUSIVE.

Sponsored by: Isilon Systems, Inc.

19 years ago - Upgrade a shared lock request to exclusive in ffs_vget() if we have
jeff [Tue, 29 Mar 2005 10:10:51 +0000 (10:10 +0000)]
 - Upgrade a shared lock request to exclusive in ffs_vget() if we have
   to create the vnode.

Sponsored by: Isilon Systems, Inc.

19 years ago - Honor the cn_lkflags passed from namei() when locking the leaf.
jeff [Tue, 29 Mar 2005 10:10:01 +0000 (10:10 +0000)]
 - Honor the cn_lkflags passed from namei() when locking the leaf.

Sponsored by: Isilon Systems, Inc.

19 years ago - Get rid of the old LOOKUP_SHARED code. namei() now supplies the
jeff [Tue, 29 Mar 2005 10:08:23 +0000 (10:08 +0000)]
 - Get rid of the old LOOKUP_SHARED code.  namei() now supplies the
   proper lock flags via cn_lkflag.

Sponsored by: Isilon Systems, Inc.

19 years ago - Set cn_lkflags to LK_SHARED in the LOOKUP_SHARED case so that we only
jeff [Tue, 29 Mar 2005 10:07:15 +0000 (10:07 +0000)]
 - Set cn_lkflags to LK_SHARED in the LOOKUP_SHARED case so that we only
   acquire shared locks on intermediate directories.
 - For the LASTCN, we may have to LK_UPGRADE the parent directory before
   we lookup the last component.
 - Acquire VFS_ROOT and dp locks based on the cn_lkflag.

Sponsored by: Isilon Systems, Inc.

19 years ago - Add a lock flag to the component name so that namei() may request a
jeff [Tue, 29 Mar 2005 10:04:25 +0000 (10:04 +0000)]
 - Add a lock flag to the component name so that namei() may request a
   shared lock.  Filesystems are not required to honor this request.

Sponsored by: Isilon Systems, Inc.

19 years ago - Dont clear OWEINACT in vbusy(), we still owe an inactive call if someone
jeff [Tue, 29 Mar 2005 10:02:48 +0000 (10:02 +0000)]
 - Dont clear OWEINACT in vbusy(), we still owe an inactive call if someone
   vhold()s us.
 - Avoid an extra mutex acquire and release in the common case of vgonel()
   by checking for OWEINACT at the start of the function.
 - Fix the case where we set OWEINACT in vput().  LK_EXCLUPGRADE drops our
   shared lock if it fails.

Sponsored by: Isilon Systems, Inc.

19 years ago - Don't initial v_dd here, let cache_purge() do it for us.
jeff [Tue, 29 Mar 2005 09:59:34 +0000 (09:59 +0000)]
 - Don't initial v_dd here, let cache_purge() do it for us.

Sponsored by: Isilon Systems, Inc.

19 years ago - Invalidate the childrens v_dd pointers when we cache_purge() a directory.
jeff [Tue, 29 Mar 2005 09:58:41 +0000 (09:58 +0000)]
 - Invalidate the childrens v_dd pointers when we cache_purge() a directory.
   Otherwise the stale pointer may be accessed after a vnode is freed.

Sponsored by: Isilon Systems, Inc.

19 years agoRemove the global cdev hash and use the cdevsw list instead.
phk [Tue, 29 Mar 2005 09:56:21 +0000 (09:56 +0000)]
Remove the global cdev hash and use the cdevsw list instead.

Don't remove the now unused element from cdev yet, wait until
we have a better reason to bump the version.

19 years agoThere's really no need to have this be #ifdef PC98, so remove one more
imp [Tue, 29 Mar 2005 09:22:40 +0000 (09:22 +0000)]
There's really no need to have this be #ifdef PC98, so remove one more
of them from the tree.

19 years agoPrivatize major().
phk [Tue, 29 Mar 2005 08:13:17 +0000 (08:13 +0000)]
Privatize major().

19 years agoPrint name of device instead of useless major/minor numbers.
phk [Tue, 29 Mar 2005 08:13:01 +0000 (08:13 +0000)]
Print name of device instead of useless major/minor numbers.

19 years agoClean up the support for extracting very long pathnames.
kientzle [Tue, 29 Mar 2005 05:24:08 +0000 (05:24 +0000)]
Clean up the support for extracting very long pathnames.

19 years agohandle malloc failure and don't proceed when the bios call to
sam [Tue, 29 Mar 2005 01:48:21 +0000 (01:48 +0000)]
handle malloc failure and don't proceed when the bios call to
get parameters passed to malloc fails

Noticed by: Coverity Prevent analysis tool (malloc failure)

19 years agoplug resource leak
sam [Tue, 29 Mar 2005 01:46:25 +0000 (01:46 +0000)]
plug resource leak

Noticed by: Coverity Prevent analysis tool

19 years agofix potential null ptr deref
sam [Tue, 29 Mar 2005 01:44:59 +0000 (01:44 +0000)]
fix potential null ptr deref

Submitted by: Coverity Prevent analysis tool

19 years agohandle ciss_lookup failure
sam [Tue, 29 Mar 2005 01:44:17 +0000 (01:44 +0000)]
handle ciss_lookup failure

Noticed by: Coverity Prevent analysis tool

19 years agocheck for malloc failure (also move malloc up to simplify error recovery)
sam [Tue, 29 Mar 2005 01:26:27 +0000 (01:26 +0000)]
check for malloc failure (also move malloc up to simplify error recovery)

Noticed by: Coverity Prevent analysis tool
Reviewed by: gnn

19 years agoeliminate extraneous null ptr checks
sam [Tue, 29 Mar 2005 01:10:46 +0000 (01:10 +0000)]
eliminate extraneous null ptr checks

Noticed by: Coverity Prevent analysis tool

19 years agoChange the Romania NTP server to point to a working server.
jhb [Mon, 28 Mar 2005 22:24:32 +0000 (22:24 +0000)]
Change the Romania NTP server to point to a working server.

Submitted by: Ion-Mihai Tetcu itetcu at people dot tecnik93 dot com
MFC after: 3 days

19 years agoInitialize iovlen variable to 0 before passing it by reference to the
kan [Mon, 28 Mar 2005 22:21:45 +0000 (22:21 +0000)]
Initialize iovlen variable to 0 before passing it by reference to the
build_iovec function.

Tripped over by: Craig  Rodrigues

19 years agobus is unused, so eliminate it.
imp [Mon, 28 Mar 2005 22:11:58 +0000 (22:11 +0000)]
bus is unused, so eliminate it.
Minor style(9) tweaks

19 years agoThe filehandle allocated in NdisOpenFile() is allocated using
wpaul [Mon, 28 Mar 2005 22:03:47 +0000 (22:03 +0000)]
The filehandle allocated in NdisOpenFile() is allocated using
ExAllocatePoolWithTag(), not malloc(), so it should be released
with ExFreePool(), not free(). Fix a couple if instances of
free(fh, ...) that got overlooked.

19 years agoRemove the last vestiges of the "wait for link down event" hack.
wpaul [Mon, 28 Mar 2005 21:48:15 +0000 (21:48 +0000)]
Remove the last vestiges of the "wait for link down event" hack.

19 years agoAnother Coverity fix from Sam: add NULL pointer test in
wpaul [Mon, 28 Mar 2005 21:09:00 +0000 (21:09 +0000)]
Another Coverity fix from Sam: add NULL pointer test in
NdisMFreeSharedMemory() (if the list is already empty, just bail).

19 years agoMore additions for amd64:
wpaul [Mon, 28 Mar 2005 20:46:08 +0000 (20:46 +0000)]
More additions for amd64:

- On amd64, InterlockedPushEntrySList() and InterlockedPopEntrySList()
  are mapped to ExpInterlockedPushEntrySList and
  ExpInterlockedPopEntrySList() via macros (which do the same thing).
  Add IMPORT_FUNC_MAP()s for these.

- Implement ExQueryDepthSList().

19 years agoFix resource leak found by Coverity (via Sam Leffler).
wpaul [Mon, 28 Mar 2005 20:16:26 +0000 (20:16 +0000)]
Fix resource leak found by Coverity (via Sam Leffler).

19 years agoFix for amd64.
wpaul [Mon, 28 Mar 2005 20:13:14 +0000 (20:13 +0000)]
Fix for amd64.

19 years agoFix another amd64 issue with lookaside lists: we initialize the
wpaul [Mon, 28 Mar 2005 19:27:58 +0000 (19:27 +0000)]
Fix another amd64 issue with lookaside lists: we initialize the
alloc and free routine pointers in the lookaside list with pointers
to ExAllocatePoolWithTag() and ExFreePool() (in the case where the
driver does not provide its own alloc and free routines). For amd64,
this is wrong: we have to use pointers to the wrapped versions of these
functions, not the originals.

19 years agoavoid potential null ptr deref by free'ing excess mbufs instead of
sam [Mon, 28 Mar 2005 18:51:58 +0000 (18:51 +0000)]
avoid potential null ptr deref by free'ing excess mbufs instead of
zero'ing their length (copied from m_adj where this code came from
after the equivalent change there has had time to soak)

Noticed by: Coverity Prevent analysis tool

19 years agocheck return value of gdb_rx_varhex
sam [Mon, 28 Mar 2005 18:31:18 +0000 (18:31 +0000)]
check return value of gdb_rx_varhex

Noticed by: Coverity Prevent analysis tool
Reviewed by: kan

19 years agoAdd directory hierarchy copying example.
obrien [Mon, 28 Mar 2005 18:18:44 +0000 (18:18 +0000)]
Add directory hierarchy copying example.

19 years agoBring rev 1.31 to the AMD64 platform.
obrien [Mon, 28 Mar 2005 18:06:44 +0000 (18:06 +0000)]
Bring rev 1.31 to the AMD64 platform.
This adds support for the SiS intergrated NIC on some Athlon64 motherboards.
The MAC address is stored in the APC CMOS RAM and this fixes the
sis driver ending up with a 00:00:00:00:00:00 MAC address.

Submitted by: Stasys Smailys <ssmailys@komvista.lt>

19 years agocheck copyin/copyout return values
sam [Mon, 28 Mar 2005 17:52:12 +0000 (17:52 +0000)]
check copyin/copyout return values

Noticed by: Coverity Prevent analysis tool

19 years agofix null ptr deref when nge_newbuf is called with an existing mbuf
sam [Mon, 28 Mar 2005 17:49:03 +0000 (17:49 +0000)]
fix null ptr deref when nge_newbuf is called with an existing mbuf

Noticed by: Coverity Prevent analysis tool

19 years agoTweak to hopefully make lookaside lists work on amd64: in Windows, the
wpaul [Mon, 28 Mar 2005 17:36:06 +0000 (17:36 +0000)]
Tweak to hopefully make lookaside lists work on amd64: in Windows, the
nll_obsoletelock field in the lookaside list structure is only defined
for the i386 arch. For amd64, the field is gone, and different list
update routines are used which do their locking internally. Apparently
the Inprocomm amd64 driver uses lookaside lists. I'm not positive this
will make it work yet since I don't have an Inprocomm NIC to test, but
this needs to be fixed anyway.

19 years agoSpell '0' as 'FALSE' when initializing npp_validcounts. (Doesn't change
wpaul [Mon, 28 Mar 2005 17:06:47 +0000 (17:06 +0000)]
Spell '0' as 'FALSE' when initializing npp_validcounts. (Doesn't change
the code, but emphasises that this field is used as a boolean.)

19 years agoUnbreak the build: correct the resource list traversal code for
wpaul [Mon, 28 Mar 2005 16:49:27 +0000 (16:49 +0000)]
Unbreak the build: correct the resource list traversal code for
__FreeBSD_version >= 600022.

19 years agoCorrect a pair of buffer overflows in the telnet(1) command:
nectar [Mon, 28 Mar 2005 14:45:12 +0000 (14:45 +0000)]
Correct a pair of buffer overflows in the telnet(1) command:

 (CAN-2005-0468) A heap buffer overflow in env_opt_add() and related
 functions.

 (CAN-2005-0469) A global uninitialized data section buffer overflow in
 slc_add_reply() and related functions.

As a result of these vulnerabilities, it may be possible for a malicious
telnet server or active network attacker to cause telnet(1) to execute
arbitrary code with the privileges of the user running it.

Security: CAN-2005-0468, CAN-2005-0469
Security: FreeBSD-SA-05:01.telnet
Security: http://www.idefense.com/application/poi/display?id=220&type=vulnerabilities
Security: http://www.idefense.com/application/poi/display?id=221&type=vulnerabilities

These fixes are based in part on patches
Submitted by: Solar Designer <solar@openwall.com>

19 years ago - Correct the dprintf format int the _lookup routine.
jeff [Mon, 28 Mar 2005 14:26:01 +0000 (14:26 +0000)]
 - Correct the dprintf format int the _lookup routine.

Spotted by: pjd

19 years ago - Remove an unused variable from relookup().
jeff [Mon, 28 Mar 2005 13:56:56 +0000 (13:56 +0000)]
 - Remove an unused variable from relookup().
 - Assert that REMOVE, CREATE, and RENAME callers have WANTPARENT
   or LOCKPARENT set.  You can't complete any of these operations without
   at least a reference to the parent.  Many filesystems check for this case
   even though it isn't possible in the current system.

19 years ago - Garbage collect an unused variable.
jeff [Mon, 28 Mar 2005 13:45:09 +0000 (13:45 +0000)]
 - Garbage collect an unused variable.

19 years ago - Don't panic if we can't lock a child in lookup, return an error instead.
jeff [Mon, 28 Mar 2005 13:39:16 +0000 (13:39 +0000)]
 - Don't panic if we can't lock a child in lookup, return an error instead.
 - Only unlock the directory if this is a DOTDOT lookup.  Previously this
   code could have deadlocked if there was a DOTDOT lookup with LOCKPARENT
   set and another thread was locking the other way up the tree.

Sponsored by: Isilon Systems, Inc.

19 years ago - Remove an unused variable.
jeff [Mon, 28 Mar 2005 13:29:48 +0000 (13:29 +0000)]
 - Remove an unused variable.

Sponsored by: Isilon Systems, Inc.

19 years ago - Remove unnecessary LOCKPARENT manipulation.
jeff [Mon, 28 Mar 2005 13:29:15 +0000 (13:29 +0000)]
 - Remove unnecessary LOCKPARENT manipulation.

Sponsored by: Isilon Systems, Inc.

19 years ago - Rev 1.83 of kern_lock.c fixes the td_locks assert, reenable it here.
jeff [Mon, 28 Mar 2005 12:52:46 +0000 (12:52 +0000)]
 - Rev 1.83 of kern_lock.c fixes the td_locks assert, reenable it here.

Sponsored by: Isilon Systems, Inc.

19 years ago - Don't bump the count twice in the LK_DRAIN case.
jeff [Mon, 28 Mar 2005 12:52:10 +0000 (12:52 +0000)]
 - Don't bump the count twice in the LK_DRAIN case.

Sponsored by: Isilon Systems, Inc.

19 years ago - Fix the lockmgr flags so that external flags and internal flags are
jeff [Mon, 28 Mar 2005 11:31:20 +0000 (11:31 +0000)]
 - Fix the lockmgr flags so that external flags and internal flags are
   grouped together with room for each set to expand.  This makes the
   external lock mask sane.

Sponsored by: Isilon Systems, Inc.

19 years ago - Move code that should probably be an assert above the main body of
jeff [Mon, 28 Mar 2005 11:18:47 +0000 (11:18 +0000)]
 - Move code that should probably be an assert above the main body of
   vrele so that we can decrease the indentation of the real work and
   make things slightly more clear.

Sponsored by: Isilon Systems, Inc.

19 years agoCheck that supplied facility is not bigger than LOG_NFACILITIES.
glebius [Mon, 28 Mar 2005 10:59:19 +0000 (10:59 +0000)]
Check that supplied facility is not bigger than LOG_NFACILITIES.

PR: bin/79260
Submitted by: Shuichi KITAGUCHI

19 years agoBump .Dd for the previous commit.
brueffer [Mon, 28 Mar 2005 10:28:57 +0000 (10:28 +0000)]
Bump .Dd for the previous commit.

19 years ago - Remove the now-unused LK_REENABLE flag.
jeff [Mon, 28 Mar 2005 10:00:58 +0000 (10:00 +0000)]
 - Remove the now-unused LK_REENABLE flag.

Sponsored by: Isilon Systems, Inc.

19 years ago - nwfs_lookup() is no longer responsible for unlocking the dvp, this is
jeff [Mon, 28 Mar 2005 09:46:33 +0000 (09:46 +0000)]
 - nwfs_lookup() is no longer responsible for unlocking the dvp, this is
   handled in vfs_lookup.c.  This code was missing PDIRUNLOCK use prior
   to the removal of PDIRUNLOCK in rev 1.73 of vfs_lookup.c.

Sponsored by: Isilon Systems, Inc.

19 years ago - Fix the hpfs build, hpfs_hash.c was removed from the repository.
jeff [Mon, 28 Mar 2005 09:41:25 +0000 (09:41 +0000)]
 - Fix the hpfs build, hpfs_hash.c was removed from the repository.

19 years ago - hpfs_lookup() is no longer responsible for unlocking the dvp, this is
jeff [Mon, 28 Mar 2005 09:40:59 +0000 (09:40 +0000)]
 - hpfs_lookup() is no longer responsible for unlocking the dvp, this is
   handled in vfs_lookup.c.  This code was missing PDIRUNLOCK use prior
   to the removal of PDIRUNLOCK in rev 1.73 of vfs_lookup.c.

Sponsored by:   Isilon Systems, Inc.

19 years agoFix typo - link for bsde_add_rule(3) manual page was not created.
pjd [Mon, 28 Mar 2005 09:38:43 +0000 (09:38 +0000)]
Fix typo - link for bsde_add_rule(3) manual page was not created.

MFC after: 1 week

19 years ago - ext2fs_lookup() is no longer responsible for unlocking the dvp, this is
jeff [Mon, 28 Mar 2005 09:38:20 +0000 (09:38 +0000)]
 - ext2fs_lookup() is no longer responsible for unlocking the dvp, this is
   handled in vfs_lookup.c.  This code was missing PDIRUNLOCK use prior
   to the removal of PDIRUNLOCK in rev 1.73 of vfs_lookup.c.

Sponsored by: Isilon Systems, Inc.

19 years agoProperly return rule number.
pjd [Mon, 28 Mar 2005 09:37:44 +0000 (09:37 +0000)]
Properly return rule number.

Submitted by: Wojciech A. Koszek
PR: bin/79292
MFC after: 1 week

19 years ago - UFS no longer uses PDIRUNLOCK to track the parent state. Instead, we now
jeff [Mon, 28 Mar 2005 09:35:58 +0000 (09:35 +0000)]
 - UFS no longer uses PDIRUNLOCK to track the parent state.  Instead, we now
   rely on ufs to always leave the parent locked except in the ISDOTDOT
   case.  Adjust asserts to deal with these changes.

Sponsored by: Isilon Systems, Inc.

19 years ago - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.
jeff [Mon, 28 Mar 2005 09:34:36 +0000 (09:34 +0000)]
 - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.

Sponsored by:   Isilon Systems, Inc.

19 years ago - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.
jeff [Mon, 28 Mar 2005 09:31:57 +0000 (09:31 +0000)]
 - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.
 - In the ISDOTDOT case we have to unlock the dvp before locking the child,
   if this fails we must relock dvp before returning an error.  This was
   missing before.

Sponsored by: Isilon Systems, Inc.

19 years ago - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.
jeff [Mon, 28 Mar 2005 09:29:58 +0000 (09:29 +0000)]
 - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.
 - Network filesystems are written with a special idiom that checks the
   cache first, and may even unlock dvp before discovering that a network
   round-trip is required to resolve the name.  I believe dvp is prevented
   from being recycled even in the forced unmount case by the shared lock
   on the mount point.  If not, this code should grow checks for VI_DOOMED
   after it relocks dvp or it will access NULL v_data fields.

Sponsored by: Isilon Systems, Inc.

19 years ago - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.
jeff [Mon, 28 Mar 2005 09:26:17 +0000 (09:26 +0000)]
 - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.

Sponsored by: Isilon Systems, Inc.

19 years ago - Adjust asserts in vop_lookup_post() to match the new post PDIRUNLOCK
jeff [Mon, 28 Mar 2005 09:25:25 +0000 (09:25 +0000)]
 - Adjust asserts in vop_lookup_post() to match the new post PDIRUNLOCK
   vfs.

Sponsored by: Isilon Systems, Inc.

19 years ago - Get rid of PDIRUNLOCK, instead, we fixup the lock state immediately after
jeff [Mon, 28 Mar 2005 09:24:50 +0000 (09:24 +0000)]
 - Get rid of PDIRUNLOCK, instead, we fixup the lock state immediately after
   calling VOP_LOOKUP().  Rather than having each filesystem check the
   LOCKPARENT flag, we simply check it once here and unlock as required.
   The only unusual case is ISDOTDOT, where we require an unlocked vnode
   on return.  Relocking this vnode with the child locked is allowed since
   the child is actually its parent.
 - Add a few asserts for some unusual conditions that I do not believe can
   happen.  These will later go away and turn into implementations for these
   conditions.

Sponsored by: Isilon Systems, Inc.

19 years ago - Remove PDIRUNLOCK, it will soon be unused in every filesystems. The only
jeff [Mon, 28 Mar 2005 09:20:45 +0000 (09:20 +0000)]
 - Remove PDIRUNLOCK, it will soon be unused in every filesystems.  The only
   case where filesystems legitimately need to unlock the directory vp is
   in the DOTDOT case, which we can explicitly check for in lookup().
   Furthermore, allowing filesystems to unlock dvp can lead to lock order
   reversals in lookup() when we vrele the dvp while the child is still
   locked.

Sponsored by: Isilon Systems, Inc.

19 years agoThe make_dev(9) functions no longer handle dev_ts, but struct cdevs.
brueffer [Mon, 28 Mar 2005 08:57:07 +0000 (08:57 +0000)]
The make_dev(9) functions no longer handle dev_ts, but struct cdevs.

PR: 78172
Submitted by: "Wojciech A. Koszek" <dunstan@freebsd.czest.pl>
MFC after: 3 days

19 years agoNote when 'stat' appeared in FreeBSD.
obrien [Mon, 28 Mar 2005 04:02:45 +0000 (04:02 +0000)]
Note when 'stat' appeared in FreeBSD.

19 years agoFix module build on amd64. There may be a cleaner way to do the .PATH
njl [Mon, 28 Mar 2005 00:24:11 +0000 (00:24 +0000)]
Fix module build on amd64.  There may be a cleaner way to do the .PATH

19 years agoYou must selwakeup{,pri}() when closing a selectable object or the
green [Sun, 27 Mar 2005 23:16:17 +0000 (23:16 +0000)]
You must selwakeup{,pri}() when closing a selectable object or the
td->td_sel will get trashed and crash the system.  Fix BPF's mistake
in this area.

MFC after: 1 day

19 years agoClean up resources properly if acpi_perf fails to attach. First, change
njl [Sun, 27 Mar 2005 22:38:28 +0000 (22:38 +0000)]
Clean up resources properly if acpi_perf fails to attach.  First, change
acpi_bus_alloc_gas() to delete the resource it set if alloc fails.  Then,
change acpi_perf to delete the resource after releasing it if alloc fails.
This should make probe and attach both fully restartable if either fails.

19 years agoAdd powernow to kernel build target.
njl [Sun, 27 Mar 2005 21:50:30 +0000 (21:50 +0000)]
Add powernow to kernel build target.

19 years agoHook powernow up to the build for i386 and amd64.
njl [Sun, 27 Mar 2005 21:47:12 +0000 (21:47 +0000)]
Hook powernow up to the build for i386 and amd64.

19 years agoAdd the powernow driver, which handles AMD Mobile Athlon PowerNow! (k7)
njl [Sun, 27 Mar 2005 21:44:21 +0000 (21:44 +0000)]
Add the powernow driver, which handles AMD Mobile Athlon PowerNow! (k7)
and AMD Cool&Quiet PowerNow! (k8) cpufreq control.  This driver is enabled
for both i386 and amd64 architectures.  It has both acpi and legacy BIOS
attachments.  Thanks to Bruno Ducrot for writing this driver and Jung-uk
Kim for testing.

Submitted by: Bruno Ducrot (ducrot:poupinou.org)

19 years agoSerialize task queue by starting only one thread instead of three. This
njl [Sun, 27 Mar 2005 21:30:33 +0000 (21:30 +0000)]
Serialize task queue by starting only one thread instead of three.  This
may help with various interdependencies between subsystems.  More testing
is needed to understand what the underlying issues are here.

Tested by: Juho Vuori
MFC after: 2 days

19 years agoFix AMD64 cross-builds when WITH_LIB32 is defined.
ru [Sun, 27 Mar 2005 19:35:09 +0000 (19:35 +0000)]
Fix AMD64 cross-builds when WITH_LIB32 is defined.

(Initially spotted by kris@ on RELENG_5.)

19 years agoWe usually say "to conform some standard" so I guess this is a typo.
delphij [Sun, 27 Mar 2005 17:25:18 +0000 (17:25 +0000)]
We usually say "to conform some standard" so I guess this is a typo.

19 years agoFix copy&paste error in my previous commit.
mux [Sun, 27 Mar 2005 17:22:41 +0000 (17:22 +0000)]
Fix copy&paste error in my previous commit.

Spotted by: ru

19 years agoMFen: Copyright Year Update
delphij [Sun, 27 Mar 2005 17:20:30 +0000 (17:20 +0000)]
MFen: Copyright Year Update

 - hardware/common/artheader.sgml: 1.5    -> 1.6

Obtained from: The FreeBSD Simplified Chinese Project CVS

19 years agoUnbreak style(9) breakage from last commit. We try to avoid defining
imp [Sun, 27 Mar 2005 17:04:47 +0000 (17:04 +0000)]
Unbreak style(9) breakage from last commit.  We try to avoid defining
variables in internal blocks.
Also, go ahead and fail if we can't load the firmware.  It should have
failed like this, but never did (firmware loads generally don't fail).

19 years agoSync translation with my local work. This is essentially
delphij [Sun, 27 Mar 2005 16:51:55 +0000 (16:51 +0000)]
Sync translation with my local work.  This is essentially
MFen 1.761.2.11 -> 1.829.

Obtained from: The FreeBSD Simplified Chinese Project CVS

19 years agoFix a bunch of bugs I came accross when looking at the ixgb(4) driver,
mux [Sun, 27 Mar 2005 16:38:08 +0000 (16:38 +0000)]
Fix a bunch of bugs I came accross when looking at the ixgb(4) driver,
some of which are rather serious:
- Use the device sysctl tree instead of rolling our own.
- Don't create a bus_dmamap_t to pass to bus_dmamem_alloc(), it is
  bus_dmamem_alloc() that creates it itself.  The DMA map created
  by the driver was overwritten and its memory was leaked.
- Fix resource handling bugs in the error path of ixgb_dma_alloc().
- Don't use vtophys() to get the base address of the TX and RX rings
  when busdma already gave us the correct address to use!
- Remove now useless includes and the alpha_XXX_dmamap() hack.
- Don't initialize if_output to ether_output(), ether_ifattach() does
  it for us already.
- Add proper module dependencies on ether and pci.

Unfortunately, I'm not lucky enough to own an ixgb(4) card, nor a
machine with a bus where to plug it in and I couldn't find anyone able
to test these patches, so they are only build-tested and I won't MFC
them for 5.4-RELEASE.

19 years agoUnbreak LINT.
pjd [Sun, 27 Mar 2005 15:57:42 +0000 (15:57 +0000)]
Unbreak LINT.