Commit Graph

55192 Commits

Author SHA1 Message Date
jdolecek 2ac419a152 Adapt to cache_lookup() changes.
XXX I had no chance to actually test the changes for nfs, but hopefully I got
it right.

Tested by: jdolecek
Rewieved by: wrstuden
1999-09-05 14:28:26 +00:00
jdolecek 7dfaa17700 Adapt to cache_lookup() changes.
Tested by: jdolecek
Rewieved by: wrstuden
1999-09-05 14:26:32 +00:00
jdolecek 026b142488 Change cache_lookup() as per discussion on tech-kern & ICB:
If the entry is found in name cache, cache_lookup() does all the
necessary locking now, simplifying the interface and making the
code easier to follow and maintain.

The code now also removes the entry from cache when it's either invalid
(vget() fails) or the vnode has been recycled while waiting for the lock.
In that case, unlock/relock of the directory vnode has been eliminated too.
Both changes could lead to sligh performace improvement in same cases.

Furthermore, obscure bug has been found and eliminated for ISDOTDOT in the
lockparent && ISLASTCN case: if the vget() succeded and the re-lock
of the directory vnode not, we returned the error with the '..' vnode still
locked.

For simplicity, cache_lookup() now returns 0 if the positive entry was found
in cache, -1 if not found and ENOENT or error returned by the locking
functions in any other case.

Many thanks to Bill Studenmund and especially Charles Hannum
for invaluable advices and code to get this right.

Tested by: jdolecek
Rewieved by: wrstuden, mycroft
1999-09-05 14:22:34 +00:00
jdolecek 1a0dc06af2 argh, forgot to add the implementation of ntfs_u28() 1999-09-05 12:30:56 +00:00
jdolecek dd0b9ad4e0 s/ntfs exportable/ntfs nfs exportable 1999-09-05 12:17:22 +00:00
simonb a17eb29d7c Remove a few unnecessary header files. 1999-09-05 11:34:29 +00:00
jdolecek 0ba29f45c8 one less: ntfs_read(), ntfs_write() don't use any temporary buffer anymore,
the uio struct is passed to appropriate *attr*() functions
1999-09-05 11:19:01 +00:00
jdolecek 6f7dc58140 ntfs_read(), ntfs_write(): pass the uio struct to appropriate read/write
routines - avoids potential DoS attack and closes an easy way to force
	the kernel to panic
	* for read(), DTRT WRT offset bigger than file size
ntfs_strategy(): adapt to ntfs_readattr() change
ntfs_readdir(): use ntfs_u28() to translate the file name characters
	to 8bit encoding, avoid excessive intendation, reformat the
	debug messages slightly
1999-09-05 11:09:03 +00:00
jdolecek a2fff20b0d properly end the comment with NetBSD RCS id 1999-09-05 10:57:01 +00:00
jdolecek d0409b449d adapt to ntfs_readattr() change: pass NULL as the struct uio * parameter 1999-09-05 10:45:03 +00:00
kleink 65f6a76c52 Xref nl_langinfo(3). 1999-09-05 09:19:35 +00:00
kleink a7e5956b53 Don't require inclusion of <nl_types.h>. 1999-09-05 09:18:11 +00:00
kleink 26d78db13f Pull in <nl_types.h>, as suggested by XSH5. 1999-09-05 09:17:14 +00:00
veego c613f31161 Add the doc subdir again. 1999-09-05 08:36:54 +00:00
veego 54a6edeaf0 Remove this files again. See rev 1.2 why we don't need them here. 1999-09-05 08:35:57 +00:00
veego 03f82227d8 Remove the doc subdir til we fix the build problem with it. 1999-09-05 08:14:08 +00:00
abs b755b885d5 Accept 'Y' for label disk as well as 'y' 1999-09-05 07:27:55 +00:00
simonb eca6f8a067 Fix tyop. 1999-09-05 06:31:52 +00:00
tsubai 0724f6dd3b Recognize PCMCIA eject button. (Tested on only PowerBook 2400.) 1999-09-05 05:30:30 +00:00
oster 83abb87d9a Garbage collect more unused stuff. 1999-09-05 03:05:55 +00:00
oster 9c01870db1 Remove more unused stuff. 1999-09-05 02:54:09 +00:00
oster cfbdda8843 Garbage collect some more stuff. 1999-09-05 02:24:58 +00:00
oster 8ce4a3940a Update and improve examples a bit. 1999-09-05 02:17:24 +00:00
oster 6158faa69d Cleanup a bit more. 1999-09-05 01:58:11 +00:00
itojun 45538437d9 - invert u bit on interface id for pseudo interfaces, as suggested in RFC2373.
- do not perform IPv6 initialization for faith* interface, as they become
  mistakingly IFF_UP.  we are wondering if we should nuke in6_ifattach_p2p().
(sync with recent kame)
1999-09-05 01:57:10 +00:00
oster e57673d0d4 Remove one of the two bzero calls in RF_Calloc -- the 2nd one doesn't
buy us anything at all.
1999-09-05 01:46:35 +00:00
soren 57f7d3320b Add driver for the TDK Semiconductor 78Q2120 PHY. 1999-09-05 01:26:02 +00:00
soren e0bcd7a71a TDK Semiconductor 78Q2120 PHY, commonly used in low-power Cardbus cards. 1999-09-05 00:48:01 +00:00
soren b8e941e9b0 Add PHY driver the the Intel 82553 found on some fxp's.
Some variants of this chip need a little extra MII fix before
being usable, so this is not yet put into GENERIC's.
1999-09-05 00:40:27 +00:00
soren 89d9c14a9a Forgot RCS IDs. 1999-09-05 00:27:43 +00:00
soren b67ceb57b3 Add iophy.[04] and tqphy.[04]. 1999-09-05 00:16:26 +00:00
soren 75307ca8e7 Add iophy.4 and tqphy.4. 1999-09-05 00:10:32 +00:00
soren 0151ffe3d6 Regenerate. 1999-09-04 23:59:32 +00:00
soren 6624cc41e9 Add Intel 82553 and TSC 78Q2120. 1999-09-04 23:58:55 +00:00
christos 38d7b50eed minor nits. 1999-09-04 23:08:44 +00:00
christos 18f0f293d7 make these undead. 1999-09-04 23:06:40 +00:00
christos bf36806743 Resolve corn-flakes 1999-09-04 22:38:15 +00:00
jtk 41360ce4ff regen with ELF. Still works OK. 1999-09-04 22:26:21 +00:00
augustss f3421bec94 Change the way the direction is extracted from the endpoint descriptor.
No functional changes to the drivers.  From Nick Hibma, FreeBSD.
1999-09-04 22:26:11 +00:00
jtk 4dc03cfa09 fix for building on ELF 1999-09-04 22:25:51 +00:00
christos 39656c1d33 Import the latest to deal with security problems related to amq RPC. 1999-09-04 22:24:52 +00:00
augustss 39e85679c4 Make it compile again. 1999-09-04 22:12:15 +00:00
augustss e1766aacfa Make sure not to use the io handle before it's been initialized. 1999-09-04 22:00:32 +00:00
fredb 1008436afc Permit "make all install", as well as "make foo install" (where foo would be
installed by "make install") without setting of BUILD. All cases where BUILD
is already set are unchanged from the old behavior.

"make all install" is now practically equivalent to "make BUILD= all install",
but without actually setting build.

Fixes pr's 8313, 3894.
1999-09-04 21:48:33 +00:00
oster d8144e5848 More cleanup of unused stuff. This time we nuke a bunch of memory
allocation stuff.
1999-09-04 21:11:21 +00:00
tron 4de1769208 Forgot to mention OpenBSD in history. 1999-09-04 20:53:05 +00:00
tron 16e75e8bbc Correct history for NetBSD and add RCS Id. 1999-09-04 20:36:15 +00:00
mycroft 3596f4a0cb Increase the default maxmagic. 1999-09-04 19:51:58 +00:00
mycroft bd10bffcd8 Make maxmagic always increase by a factor of 2. 1999-09-04 19:51:11 +00:00
soren 017785443d Synchronize partition types with <sys/disklabel_mbr.h>.
Closes PR install/8301 by Jonathan Cline.
1999-09-04 19:49:23 +00:00