Sepherosa Ziehau [Fri, 2 Sep 2005 09:43:01 +0000 (09:43 +0000)]
in cs_isa_probe()
clean up code path by remove unnecessary `error' check and `goto'
Sepherosa Ziehau [Fri, 2 Sep 2005 08:14:36 +0000 (08:14 +0000)]
- printf("%s: str", if_xname) ==> if_printf/device_printf
- remove unused macro CS_NAME
Jeffrey Hsu [Fri, 2 Sep 2005 07:16:58 +0000 (07:16 +0000)]
Now that the C language has a "void *", use it instead of caddr_t.
Liam J. Foy [Thu, 1 Sep 2005 22:45:35 +0000 (22:45 +0000)]
K&R style function removal. Update functions to ANSI style. Also a few
minor cleans.
Submitted by: Peter Avalos
Liam J. Foy [Thu, 1 Sep 2005 22:19:26 +0000 (22:19 +0000)]
Zap unused variable!
Obtained from: FreeBSD
Jeroen Ruigrok/asmodai [Thu, 1 Sep 2005 20:47:14 +0000 (20:47 +0000)]
Update to groff 1.19.1.
This synchronises us with FreeBSD up till 1.19 (Ids adjusted accordingly).
Big help fixing PATCHES behaviour: joerg
Sascha Wildner [Thu, 1 Sep 2005 19:08:38 +0000 (19:08 +0000)]
Remove pointless -? flag.
Joerg Sonnenberger [Thu, 1 Sep 2005 14:17:58 +0000 (14:17 +0000)]
Don't add files patches via *.no_obj.patch back to SRCS, make them a
dependency of beforedepend instead. This avoids ordering problems with
bsd.lib.mk and bsd.prog.mk.
Jeroen Ruigrok/asmodai [Thu, 1 Sep 2005 13:13:35 +0000 (13:13 +0000)]
Retire old perl 5.00503 optional manpath and replace with a manpath to
/usr/pkg/man.
Whether we want to keep the ones to /usr/local and /usr/X11R6 remains to be
seen.
Sepherosa Ziehau [Thu, 1 Sep 2005 12:59:38 +0000 (12:59 +0000)]
For Arcnet, announce link layer address in arc_ifattch(),
not in each Arcnet netif drivers (currently we only have cm(4)).
Approved-by: joerg
Sepherosa Ziehau [Thu, 1 Sep 2005 09:17:19 +0000 (09:17 +0000)]
1) in cm_isa_attach(), setup intr in the last step
2) in cm_attach()
- after 1), cm_attach() is intr safe, remove crit-sect
- initialize callout before cm_stop()
3) in cm_stop(), add missing callout_stop()
4) instead of clearing IFF_RUNNING immediately after every call of cm_stop(),
move this clearing into cm_stop()
Sascha Wildner [Thu, 1 Sep 2005 00:40:51 +0000 (00:40 +0000)]
Remove PC98 support (forgot these in my last commit).
Sascha Wildner [Thu, 1 Sep 2005 00:18:24 +0000 (00:18 +0000)]
Remove PC98 support.
Sascha Wildner [Wed, 31 Aug 2005 23:22:47 +0000 (23:22 +0000)]
Remove PC98 support.
Sascha Wildner [Wed, 31 Aug 2005 22:55:28 +0000 (22:55 +0000)]
Scrap PC98 specific snc(4) driver.
OK'd by: joerg
Jeffrey Hsu [Wed, 31 Aug 2005 22:21:23 +0000 (22:21 +0000)]
Fix indentation with previous commit.
Jeffrey Hsu [Wed, 31 Aug 2005 22:18:46 +0000 (22:18 +0000)]
Check the IP length first to avoid a memory leak later.
Sascha Wildner [Wed, 31 Aug 2005 18:11:05 +0000 (18:11 +0000)]
Remove pointless -? flag.
Liam J. Foy [Wed, 31 Aug 2005 17:20:18 +0000 (17:20 +0000)]
perror() -> err()
Liam J. Foy [Wed, 31 Aug 2005 16:45:51 +0000 (16:45 +0000)]
Kill unused variables
Obtained from: FreeBSD
Joerg Sonnenberger [Wed, 31 Aug 2005 16:45:44 +0000 (16:45 +0000)]
Retire old sendmail.
Sascha Wildner [Wed, 31 Aug 2005 16:44:29 +0000 (16:44 +0000)]
Update zoneinfo database.
Theory: 7.15 -> 7.19
africa: 7.37 -> 7.39
antarctica: 7.24 -> 7.25
asia: 7.82 -> 7.85
australasia: 7.71 -> 7.73
backward: 7.27 -> 7.29
europe: 7.92 -> 7.95
leapseconds: 7.17 -> 7.20
northamerica: 7.74 -> 7.79
southamerica: 7.59 -> 7.61
zone.tab: 1.30 -> 1.32
Note: I had already updated leapseconds to include this year's leapsecond
so we basically just change the comments' indenting here.
Liam J. Foy [Wed, 31 Aug 2005 16:27:53 +0000 (16:27 +0000)]
Remove the sleeper crap and use MAXPATHLEN
Chris Pressey [Wed, 31 Aug 2005 16:17:52 +0000 (16:17 +0000)]
Two small alterations to 'make upgrade':
- Create etc/rc.d directory if it does not exist, before installing
scripts into it.
- Create etc/pam.d directory if it does not exist, and run convert.sh
to populate it in this case.
This allows a FreeBSD 4.9 system to be binary-upgraded to DragonFly
1.3.5-DEVELOPMENT. (A warning about missing PAM modules may still
occur during login, however.)
Simon Schubert [Wed, 31 Aug 2005 02:38:34 +0000 (02:38 +0000)]
Detect pkgtools fakeroot feature and use it.
This enables us to use host pkgtools to add packages to the isos
instead of using the target pkgtools. This would fail with -Release
building -Devel isos.
Liam J. Foy [Tue, 30 Aug 2005 22:42:15 +0000 (22:42 +0000)]
This program requires at least one option. Clean up the checking and report
this fact correctly.
Obtained from: FreeBSD
Liam J. Foy [Tue, 30 Aug 2005 22:02:36 +0000 (22:02 +0000)]
Minor typo
Liam J. Foy [Tue, 30 Aug 2005 21:25:35 +0000 (21:25 +0000)]
Include the option-arguments in the description and remove a non-existant
bug.
Obtained from: FreeBSD
Liam J. Foy [Tue, 30 Aug 2005 21:19:13 +0000 (21:19 +0000)]
Remove undocumented historic support for treating "-" as an option
instead of a file operand; this is not compatible with POSIX.
Obtained from: FreeBSD
YONETANI Tomokazu [Tue, 30 Aug 2005 14:22:05 +0000 (14:22 +0000)]
Forced commit to note that the review and the suggestion
for the previous commit was done by Hiten Pandya(hmp@)
and not someone named hiten@ .
YONETANI Tomokazu [Tue, 30 Aug 2005 13:25:07 +0000 (13:25 +0000)]
Workaround the panic, triggered by the netgraph attempting to
load a missing module from within the socket dispatch thread, by:
- not trying to load a netgraph module when you can't.
- preloading ng_ksocket.ko(if missing) from the module handler
where you're guaranteed to have the process context needed by
the linker_* functions. This makes us sure at least that the basic
netgraph operations will work without messing with loading a kernel
module on the fly (suggested by: hiten@).
Reviewed-by: hiten@
Sepherosa Ziehau [Tue, 30 Aug 2005 12:33:49 +0000 (12:33 +0000)]
1) Remove compat code
2) Do not include <machine/clock.h>
3) Remove CMSOFTCOPY option and code introduced by this option.
softintr_{schedule, establish}() only exist in NetBSD.
4) Remove cm_softc.{sc_txcookie, sc_rxcookie}, which are only used by
the nuked code mentioned in 3)
Sepherosa Ziehau [Tue, 30 Aug 2005 10:16:33 +0000 (10:16 +0000)]
in cm_isa_probe():
- remove unused stack variable
- clean up code path by removing unnecessary `goto'
Sepherosa Ziehau [Tue, 30 Aug 2005 09:53:52 +0000 (09:53 +0000)]
printf("%s: str", ifp->if_xname) ==> if_printf(ifp, "str")
Matthew Dillon [Mon, 29 Aug 2005 21:08:06 +0000 (21:08 +0000)]
Get rid of smp_rendezvous() and all associated support circuitry. Move
the two mechanisms still using it (User LDT and MTRR propogation) over
to the lwkt_cpusync*() API.
Matthew Dillon [Mon, 29 Aug 2005 17:46:52 +0000 (17:46 +0000)]
Use a typedef that already conveniently exists instead of anonymous
TAILQ_HEAD() declarations for the LWKT queues. No operational changes.
Jeffrey Hsu [Mon, 29 Aug 2005 16:03:31 +0000 (16:03 +0000)]
Add a space to the output for legibility.
Noritoshi Demizu [Mon, 29 Aug 2005 10:24:10 +0000 (10:24 +0000)]
Fix the same problem described in FreeBSD-SA-05:15.tcp, which
refers CAN-2005-0356 and CAN-2005-2068. The e-mail below has more.
http://leaf.dragonflybsd.org/mailarchive/bugs/2005-08/msg00052.html
Sepherosa Ziehau [Mon, 29 Aug 2005 10:19:52 +0000 (10:19 +0000)]
Remove unnecessary bzero(softc).
With following exceptions:
- ed(4) if_ed_cbus.c
- snc(4)
They are PC-98 only.
Noritoshi Demizu [Mon, 29 Aug 2005 10:04:01 +0000 (10:04 +0000)]
Fix a bug in NewReno which may send a huge amount of data
when a partial ACK is received. The e-mail below has more.
http://leaf.dragonflybsd.org/mailarchive/bugs/2005-07/msg00013.html
Simon Schubert [Sun, 28 Aug 2005 23:35:35 +0000 (23:35 +0000)]
Remove VPLACEMARKER
Matthew Dillon [Sun, 28 Aug 2005 23:23:10 +0000 (23:23 +0000)]
Fix a deadlock in ffs_balloc(). This function was incorrectly obtaining a
locked indirect buffer followed by a locked data block buffer, where as other
procedures in the kernel generally held a locked data buffer and then
called procedures which locked the indirect buffer. Programs like rtorrent,
which write data into the mmap'd files whos blocks had not yet been
allocated, could easily deadlock the vnode.
A typical deadlock would be: syncer calls putpages->ffs_write->balloc->getblk->
allocbuf->(blocked on VM page with indirect block and data block locked), while
at the same time some process takes a write fault which locks the VM page and
then attempts to do a BMAP, blocking on the indirect block buffer. Deadlock.
The fix for ffs_balloc() is simply to obtain the data buffer prior to
obtaining the indirect block(s).
Reported-by: Mitja Horvat
MFC: 1 week
Liam J. Foy [Sun, 28 Aug 2005 20:55:07 +0000 (20:55 +0000)]
- Don't write our own pid file, just use pidfile()
Liam J. Foy [Sun, 28 Aug 2005 20:15:38 +0000 (20:15 +0000)]
- Use pidfilei(3) to write a pid file in /var/run
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:36:14 +0000 (18:36 +0000)]
Taken from FreeBSD-HEAD:
fr.ISO8859-1: Localisation file by Sebastien Gioria
koi8-r.tmac: Ruslan Ermilov's koi8-r tmac file
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:25:09 +0000 (18:25 +0000)]
Merge from vendor branch GROFF:
Remove mdoc.local, we need to make this truly local.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:25:09 +0000 (18:25 +0000)]
Remove mdoc.local, we need to make this truly local.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:25:09 +0000 (18:25 +0000)]
Remove mdoc.local, we need to make this truly local.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:06:33 +0000 (18:06 +0000)]
Merge from vendor branch GROFF:
Update and reorder.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:06:33 +0000 (18:06 +0000)]
Update and reorder.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:03:57 +0000 (18:03 +0000)]
Merge from vendor branch GROFF:
Add groff 1.19.1, stripped down appropriately.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 18:03:57 +0000 (18:03 +0000)]
Add groff 1.19.1, stripped down appropriately.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 17:20:36 +0000 (17:20 +0000)]
Merge from vendor branch GROFF:
Add groff 1.19.1, stripped down appropriately.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 17:20:36 +0000 (17:20 +0000)]
Add groff 1.19.1, stripped down appropriately.
Simon Schubert [Sun, 28 Aug 2005 17:19:16 +0000 (17:19 +0000)]
Add a version identifier to enable detection of additional features.
Simon Schubert [Sun, 28 Aug 2005 16:56:12 +0000 (16:56 +0000)]
Add a hack to pkgtools to install to a different root. This differs from
using PREFIX as the installed files don't get relocated, but all the tree
appears in PKG_FAKEROOT, including PKG_DBDIR.
This won't work for all packages and isn't ment to either. Pkgtools are
evil hackery anyways and this adds even more. This will be used in
nrelease to support addition of packages by using the host tools and not
the target tools.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 15:28:56 +0000 (15:28 +0000)]
Merge from vendor branch TEXINFO:
fdl.texi is needed.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 15:28:56 +0000 (15:28 +0000)]
fdl.texi is needed.
Jeffrey Hsu [Sun, 28 Aug 2005 15:27:05 +0000 (15:27 +0000)]
A machine-independent spinlock implementation. It has the advantages of
1. being written in C except for the most low-level atomic swap primitive,
which is universally supported on current processor architectures
2. having a very small inlined memory footprint for spin_lock(),
with the slow-path defered to a subroutine call
3. only requiring a bus-locked operation for lock acquisition,
and not requiring a bus-locked operation for lock release
4. doing a non-bus-locked check first in the spin loop to
reduce bus contention
5. doing exponential backoff in the uncommon contested case, which
Sun has found to reduce bus contention by a factor of 5 or more
Reviewed by: Matt Dillon
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 14:19:30 +0000 (14:19 +0000)]
Commit a missed change.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 12:25:05 +0000 (12:25 +0000)]
Switch to texinfo 4.8, which is needed for a lot of new texi files.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 12:23:25 +0000 (12:23 +0000)]
Add texinfo 4.8, appropriately stripped down.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 12:23:25 +0000 (12:23 +0000)]
Merge from vendor branch TEXINFO:
Add texinfo 4.8, appropriately stripped down.
Matthew Dillon [Sun, 28 Aug 2005 07:06:42 +0000 (07:06 +0000)]
Require HEAD users to upgrade to 1.3.5 before running installworld, due
to the dirent changes (otherwise the 'find' binary will fail half way
through the installworld).
Matthew Dillon [Sun, 28 Aug 2005 07:04:32 +0000 (07:04 +0000)]
Bump the development sub-version to 1.3.5.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 06:53:55 +0000 (06:53 +0000)]
Use FreeBSD's HEAD tag.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 06:29:19 +0000 (06:29 +0000)]
Fix PROCDURE -> PROCEDURE.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch NCURSES:
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch GCC:
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch CVS:
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch BINUTILS:
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Merge from vendor branch BIND:
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:58:20 +0000 (05:58 +0000)]
Fix PROCDURE -> PROCEDURE.
Bloody copiers. :P
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:34:49 +0000 (05:34 +0000)]
Add DragonFly release numbers.
Jeroen Ruigrok/asmodai [Sun, 28 Aug 2005 05:13:53 +0000 (05:13 +0000)]
Clean up manual page.
Matthew Dillon [Sun, 28 Aug 2005 04:35:14 +0000 (04:35 +0000)]
Dump and restore need to use a UFS-centric inode representation. Convert
ino_t into ufs1_ino_t.
Matthew Dillon [Sun, 28 Aug 2005 04:34:44 +0000 (04:34 +0000)]
Add a typedef ufs1_ino_t to represent inodes for UFS1 filesystems.
Sepherosa Ziehau [Sun, 28 Aug 2005 04:25:23 +0000 (04:25 +0000)]
test commit.
Joerg Sonnenberger [Sat, 27 Aug 2005 21:35:01 +0000 (21:35 +0000)]
Add real function versions of the _unlocked family. Use putc for putchar
directly.
Joerg Sonnenberger [Sat, 27 Aug 2005 21:32:24 +0000 (21:32 +0000)]
Smoke something else and revert the use of ssize_t, I've put it there
for a reason after all.
Joerg Sonnenberger [Sat, 27 Aug 2005 21:13:28 +0000 (21:13 +0000)]
Remove space before '('. Correctly align some function names. No need to
use local versions of ssize_t (size_t is used already) or const.
Joerg Sonnenberger [Sat, 27 Aug 2005 21:03:52 +0000 (21:03 +0000)]
Sync GCC 3.4's propolice with Etoh's official version. This fixes the
reorder bug in -O2+, which killed Samba from pkgsrc and mutt.
Joerg Sonnenberger [Sat, 27 Aug 2005 20:23:06 +0000 (20:23 +0000)]
Make struct dirent contain a full 64bit inode. Allow more than 255 byte
filenames by increasing d_namlen to 16bit. Remove UFS specific macros
from sys/dirent.h, programs which really need them should include
vfs/ufs/dir.h. MAXNAMLEN should not be used, but replaced by NAME_MAX.
To keep the impact for older BSD code small, d_ino and d_fileno are kept
in the old meaning when __BSD_VISIBLE is defined, otherwise the POSIX
version d_ino is used. This will be changed later to always define only
d_ino and make d_fileno a compatiblity macro for __BSD_VISIBLE.
d_name is left with hard-coded 256 byte space, this will be changed at
some point in the future and doesn't affect the ABI. Programs should
correctly allocate space themselve, since the maximum directory entry
length can be > 256 byte.
For allocating dirents (e.g. for readdir_r), _DIRENT_RECLEN and
_DIRENT_DIRSIZ should be used. NetBSD has choosen the same names.
Revamp the compatibility code to always use a local kernel buffer and
write out the entries. This will be changed later by passing down the
output function to vop_readdir, elimininating the redundant copy.
Change NFS and CD9660 to use to use vop_write_dirent, for CD9660 ensure
that the buffers are big enough by prepending char arrays of the right
size.
Tested-by & discussed-with: dillon
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 19:00:49 +0000 (19:00 +0000)]
Synchronise with NetBSD:
ehci.c:
v1.74: Add suspend/resume support.
v1.75: Fix typo: compolicated.
v1.76: A little portability stuff (lockmgr -> usb_lockmgr)
v1.78: add interrupt transfers
v1.79: use DPRINTF instead of a printf
ehcireg.h:
1.18: Fix EHCI_HCS_P_INDICATOR
usb_port.h:
NetBSD/OpenBSD specific things, lockmgr->usb_lockmgr..
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 15:34:17 +0000 (15:34 +0000)]
Synchronise with NetBSD (some come from OpenBSD):
v1.68: Adjust some silliness that was causing us to do extra work for "frame
list rollover" interrupts, which we pretty much ignore.
v1.69: hcpriv is not actually used here. Remove references to it.
v1.71: ANSIfy.
v1.72: Update printfs with accurate function names.
Convert EHCI_LINK_TERMINATE using htole32().
v1.73: Fix spelling of intterupt.
Use do .. while wrappers for debug print.
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 15:09:38 +0000 (15:09 +0000)]
Place && at the right place.
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 14:56:52 +0000 (14:56 +0000)]
Sync with NetBSD:
PR/23128:
Although the dma descriptors are limited to any 4G address range,
the data is not, using extra area in the dma descriptors to
define a 64 bit address. This is described in appendix B
of the EHCI 1.0 spec from the URL in the file dev/usb/ehci.c.
With a 64 bit address capable controller these upper address
values must be set, the current driver does not do this.
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 14:03:23 +0000 (14:03 +0000)]
Update FreeBSD tag to what the source code has.
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 13:59:55 +0000 (13:59 +0000)]
Update with the NetBSD code (which can include FreeBSD/OpenBSD changes):
v1.13: suspend/resume support
v1.14: was already applied by Matt, ifdefs for soft interrupt related stuff
v1.15: interrupt transfers, done originally by iedowse of FreeBSD, some minor
changes by David Gwyne. Note that NetBSD misattributed and OpenBSD did
not attribute at all.
v1.16: implement a DMA memory reserve, ifdef'd for NetBSD.
v1.17: ifdefs for sc_child for NetBSD/OpenBSD.
v1.18: add EHCI_MAX_POLLRATE
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 13:16:56 +0000 (13:16 +0000)]
Add vendor ids for ATi and Philips.
Add identificatio strings for the following:
o ALi's M5239
o AMD 8111
o ATI SB200, SB400
o Intel 6300ESB, ICH4, ICH5, ICH7
o NVIDIA nForce 2, nForce 3, nForce 4
o Philips ISP156x
Jeroen Ruigrok/asmodai [Sat, 27 Aug 2005 12:59:13 +0000 (12:59 +0000)]
Synchronise with NetBSD v1.18:
Allow 32 chars in the saved vendor string. Fixes kern/29760.
Simon Schubert [Sat, 27 Aug 2005 10:20:27 +0000 (10:20 +0000)]
Dereference pointer like we should.
Found-by: sephe
Jeffrey Hsu [Sat, 27 Aug 2005 03:05:24 +0000 (03:05 +0000)]
The proper way to check for a normal mbuf cluster is with the
M_EXT_CLUSTER flag.
Matthew Dillon [Sat, 27 Aug 2005 00:56:57 +0000 (00:56 +0000)]
Only include thread2.h for kernel builds (its macros are used by vm_page.h's
inlines, which are also kernel-only).
Matthew Dillon [Sat, 27 Aug 2005 00:36:43 +0000 (00:36 +0000)]
Fix a serious bug in cache_inefficient_scan() related to its use of
VOP_READDIR(). VOP_READDIR() does very weird things when given both a
uio and cookies pointer. Just give it a uio, instead.
This should fix a bug with the NFS server returning I/O errors to a
NFS client which is manipulating large directories. The bug was preventing
the server from being able to resolve the namecache topology for a
disconnected directory vnode.
MFC in: 1 week.