summaryrefslogtreecommitdiffstats
path: root/sys/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Fixed printf format errors. Only one left in LINT on i386's.bde1998-08-242-21/+17
|
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredbde1998-08-232-16/+18
| | | | | | | | | for the Lite2 fix for always returning EIO in dead_read(). Cleaned up the cdevswitch initializers for all tty drivers. Removed explicit calls to ttsetwater() from all (tty) drivers. ttsetwater() is now called centrally for opens, not just for parameter changes.
* Quick fix for breakage of read clustering on non-IDE drives. Readbde1998-08-182-4/+4
| | | | | | | | | | | | | | clustering is obsolescent technology so hardly anyone noticed. On a DORS 32160 SCSI drive with 4 tags, read clustering makes very little difference even for huge sequential reads. However, on a ZIP SCSI drive with 0 tags, the minimum overhead per block is about 40 msec, so very large clusters must be used to get anywhere near the maximum transfer rate. Using clusters consisting of 1 8K block reduces the transfer rate to about 250K/sec. Under msdosfs, missing read clustering is normal and a cluster size of 1 512 byte block reduces the transfer rate to about 25K/sec. Broken in: rev.1.18
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-166-22/+28
| | | | integers. Don't forget to cast to (void *) as well.
* Use offsetof() to avoid some casts from pointers to integers (of abde1998-08-151-1/+3
| | | | possibly different size).
* Remove some #if 0'd and commented-out code.brian1998-08-121-34/+2
| | | | Fix a COMPAT_43 type.
* "The releaseing of the reference and lock is not temporary and belongsmsmith1998-08-122-2/+0
| | | | | | | where it is. The reference and lock(s) are acquired just above the code in VREF() and relookup()." Submitted by: Michael Hancock <michaelh@cet.co.jp>
* Synced with dgb.c. Important changes from 1.29 (ioctl handlingbde1998-08-121-52/+27
| | | | | | | | | | | | | | was broken), 1.30 (COMPAT_43 option header was missing), 1.31 (DEVFS option header was missing), 1.33 (garbage pointers were followed in debugging code). Cosmetic changes from 1.27, 1.32, 1.36, 1.37. Of course, the DEVFS code didn't even compile. Fixed. Not tested. Forgotten by: brian This file should not exist. It is the same as dgb.c except for lots of renamed variables, about 250 lines removed, and only about 100 lines of real differences.
* Fixed printf format errors.bde1998-08-121-7/+6
| | | | This file is disgusting.
* Add Id keywordbrian1998-08-053-2/+9
|
* Add driver dgm - for the Digiboard PC/Xembrian1998-08-044-0/+7023
| | | | | Submitted by: "IBS / Andre Oppermann" <andre@pipeline.ch> DEVFS additions: brian
* Fixed printf format errors.bde1998-07-302-4/+4
|
* add anti-panic workaround from chris radek (cradek@in221.inetnebr.com)julian1998-07-302-0/+4
| | | | Not sure why this is needed but but does stop crashes.
* Fixed printf format errors.bde1998-07-116-8/+12
|
* Catch a few corner cases where FreeBSD differs enough from BSD 4.4 tojulian1998-07-082-2/+4
| | | | | confuse Soft updates.. Should solve several "dangling deps" panics.
* VOP_STRATEGY grows an (struct vnode *) argumentjulian1998-07-044-6/+6
| | | | | | as the value in b_vp is often not really what you want. (and needs to be frobbed). more cleanups will follow this. Reviewed by: Bruce Evans <bde@freebsd.org>
* Sync timestamp changes for inodes of special files to disk as latebde1998-07-034-16/+18
| | | | | | | | | | | | | | as possible (when the inode is reclaimed). Temporarily only do this if option UFS_LAZYMOD configured and softupdates aren't enabled. UFS_LAZYMOD is intentionally left out of /sys/conf/options. This is mainly to avoid almost useless disk i/o on battery powered machines. It's silly to write to disk (on the next sync or when the inode becomes inactive) just because someone hit a key or something wrote to the screen or /dev/null. PR: 5577 Previous version reviewed by: phk
* Centralized in-core inode update. Update the in-core inode directlybde1998-07-032-32/+8
| | | | | | | | in ufs_setattr() so that there is no need to pass timestamps to UFS_UPDATE() (everything else just needs the current time). Ignore the passed-in timestamps in UFS_UPDATE() and always call ufs_itimes() (was: itimes()) to do the update. The timestamps are still passed so that all the callers don't need to be changed yet.
* Fixed (?) races in mark_buffer_dirty(). We abuse the buffer cachebde1998-06-212-6/+12
| | | | | | | | | | | | | | by hacking on locked buffers without getblk()ing them, and we didn't even use splbio() to prevent biodone() changing the buffer underneath use when a write completes. I think there was no problem in practice on i386's because the operations on b_flags and numdirtybufs happen to be atomic. We still depend on biodone()'s operations on b_flags not interfering with ours. I think there is only interference for B_ERROR, and this is harmless because errors for async writes are ignored anyway. Don't use mark_buffer_dirty() except for superblock-related metadata. It was used in just one case where ordinary BSD buffering is more natural.
* Removed unused function ll_w_block(). It has always had races duebde1998-06-214-38/+0
| | | | | | | | to not using splbio(), and has rotted a little. The races were probably harmless in practice because this function was only used for superblock updates, and separate superblock updates are probably prevented from running into each other by doing part of the update synchronously.
* Removed unused includes.bde1998-06-212-4/+0
|
* Removed unused includes.bde1998-06-212-2/+0
|
* Added a missing options include.bde1998-06-212-0/+2
|
* This commit fixes various 64bit portability problems required fordfr1998-06-071-2/+2
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Don't use "ffs" in an ext2fs sleep message string.bde1998-05-162-6/+28
| | | | | | | | | | | Don't forget to clear the inode hash lock before returning from ext2_vget() after getnewvnode() fails. Obtained from: rev.1.24 of ffs_vfsops.c (the original patch for the getnewvnode() race). Forgotten in: rev.1.4 here. Removed a duplicate comment. Duplicated in: rev.1.4 here. Fixed the MALLOC() vs getnewvnode() race in ext2_vget(). Obtained from: rev.1.39 of ffs_vfsops.c.
* Abbreviate "ext2fs_fsync" as "e2fsyn" instead of as "extfsn" in a sleepbde1998-05-162-2/+2
| | | | message string.
* In the words of the submitter:msmith1998-05-072-44/+26
| | | | | | | | | | | | | | | | | | | --------- Make callers of namei() responsible for releasing references or locks instead of having the underlying filesystems do it. This eliminates redundancy in all terminal filesystems and makes it possible for stacked transport layers such as umapfs or nullfs to operate correctly. Quality testing was done with testvn, and lat_fs from the lmbench suite. Some NFS client testing courtesy of Patrik Kudo. vop_mknod and vop_symlink still release the returned vpp. vop_rename still releases 4 vnode arguments before it returns. These remaining cases will be corrected in the next set of patches. --------- Submitted by: Michael Hancock <michaelh@cet.co.jp>
* As described by the submitter:msmith1998-05-062-2/+0
| | | | | | | | | | | | | Reverse the VFS_VRELE patch. Reference counting of vnodes does not need to be done per-fs. I noticed this while fixing vfs layering violations. Doing reference counting in generic code is also the preference cited by John Heidemann in recent discussions with him. The implementation of alternative vnode management per-fs is still a valid requirement for some filesystems but will be revisited sometime later, most likely using a different framework. Submitted by: Michael Hancock <michaelh@cet.co.jp>
* - breakage of the warnings about pessimized i/o port types.brian1998-04-212-31/+12
| | | | | | | | | | - pessimized i/o port types. - other pessimized types. - Don't use DEBUG (causes LINT warnings). Use DGB_DEBUG instead. - commented out code. - cloned code that doesn't apply ("Smarts" is for the cy driver only). Submitted by: bde
* Correct the digiboard device names in agreementbrian1998-04-211-11/+16
| | | | with the man page (POLA).
* o Move debug stuff down a bit so that it doesn't try tobrian1998-04-211-31/+38
| | | | | | | | dereference uninitialized pointers. o Fix DEVFS permissions o Fix DEVFS minor numbers o Add initial & lock devices for cua device. o Fix permissions in line with sio.
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.des1998-04-176-6/+6
|
* Support compiling with `gcc -ansi'.bde1998-04-155-27/+27
|
* Eradicate the variable "time" from the kernel, using various measures.phk1998-03-308-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "time" wasn't a atomic variable, so splfoo() protection were needed around any access to it, unless you just wanted the seconds part. Most uses of time.tv_sec now uses the new variable time_second instead. gettime() changed to getmicrotime(0. Remove a couple of unneeded splfoo() protections, the new getmicrotime() is atomic, (until Bruce sets a breakpoint in it). A couple of places needed random data, so use read_random() instead of mucking about with time which isn't random. Add a new nfs_curusec() function. Mark a couple of bogosities involving the now disappeard time variable. Update ffs_update() to avoid the weird "== &time" checks, by fixing the one remaining call that passwd &time as args. Change profiling in ncr.c to use ticks instead of time. Resolution is the same. Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call hzto() which subtracts time" sequences. Reviewed by: bde
* Moved some #includes from <sys/param.h> nearer to where they are actuallybde1998-03-284-0/+4
| | | | used.
* Add two new functions, get{micro|nano}time.phk1998-03-262-48/+2
| | | | | | | | | | | | They are atomic, but return in essence what is in the "time" variable. gettime() is now a macro front for getmicrotime(). Various patches to use the two new functions instead of the various hacks used in their absence. Some puntuation and grammer patches from Bruce. A couple of XXX comments.
* Make this compile after soft updates integration.eivind1998-03-092-8/+8
| | | | LINTing forgotten by: julian
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)julian1998-03-082-2/+20
| | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
* The intent is to get rid of WILLRELE in vnode_if.src by makingmsmith1998-03-012-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a complement to all ops that return a vpp, VFS_VRELE. This is initially only for file systems that implement the following ops that do a WILLRELE: vop_create, vop_whiteout, vop_mknod, vop_remove, vop_link, vop_rename, vop_mkdir, vop_rmdir, vop_symlink This is initial DNA that doesn't do anything yet. VFS_VRELE is implemented but not called. A default vfs_vrele was created for fs implementations that use the standard vnode management routines. VFS_VRELE implementations were made for the following file systems: Standard (vfs_vrele) ffs mfs nfs msdosfs devfs ext2fs Custom union umapfs Just EOPNOTSUPP fdesc procfs kernfs portal cd9660 These implementations may change as VOP changes are implemented. In the next phase, in the vop implementations calls to vrele and the vrele part of vput will be moved to the top layer vfs_vnops and made visible to all layers. vput will be replaced by unlock in these cases. Unlocking will still be done in the per fs layer but the refcount decrement will be triggered at the top because it doesn't hurt to hold a vnode reference a little longer. This will have minimal impact on the structure of the existing code. This will only be done for vnode arguments that are released by the various fs vop implementations. Wider use of VFS_VRELE will likely require restructuring of the code. Reviewed by: phk, dyson, terry et. al. Submitted by: Michael Hancock <michaelh@cet.co.jp>
* Style nits and staticism with the previous commit.msmith1998-03-012-12/+12
| | | | Submitted by: bde
* Add local stup putpages/getpages routines.msmith1998-03-012-0/+66
| | | | Submitted by: Terry Lambert <terry@freebsd.org>
* Fixed configuration and linkage of ext2_checkoverlap().bde1998-02-134-16/+10
|
* Staticize.eivind1998-02-091-4/+4
|
* Back out DIAGNOSTIC changes.eivind1998-02-0615-27/+3
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-0415-3/+27
|
* Make LINT at least compile. This faithfully duplicate the changeseivind1998-02-042-16/+16
| | | | | done to ufs/ufs/ufs_vnops.c for the same problem, but I don't know if that will actually make SUIDDIR work for ext2fs.
* Retire LFS.phk1998-01-304-12/+4
| | | | | | | | | | | | If you want to play with it, you can find the final version of the code in the repository the tag LFS_RETIREMENT. If somebody makes LFS work again, adding it back is certainly desireable, but as it is now nobody seems to care much about it, and it has suffered considerable bitrot since its somewhat haphazard integration. R.I.P
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.eivind1998-01-241-1/+2
| | | | | | | | This introduce an xxxFS_BOOT for each of the rootable filesystems. (Presently not required, but encouraged to allow a smooth move of option *FS to opt_dontuse.h later.) LFS is temporarily disabled, and will be re-enabled tomorrow.
* Add better support for larger I/O clusters, including larger physicaldyson1998-01-242-12/+76
| | | | | I/O. The support is not mature yet, and some of the underlying implementation needs help. However, support does exist for IDE devices now.
* update the AWE32 wave table driver to Iwai's 0.4.2c version. This alsojmg1998-01-084-24/+100
| | | | | | includes the patches to make it work under -current from Randall Hopper. Remove the old AWE driver.
OpenPOWER on IntegriCloud