summaryrefslogtreecommitdiffstats
path: root/sys/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Remove #if NDGB > 0 and #if NDGM > 0peter2000-01-292-9/+0
|
* Give vn_isdisk() a second argument where it can return a suitable errno.phk2000-01-102-4/+4
| | | | Suggested by: bde
* Support filesystems with the not-so-new "filetype" feature. Thisbde2000-01-052-132/+190
| | | | | feature gives the d_type field for struct dirent. We used to panic in ext2_readdir() for filesystems with this feature.
* Don't allow mounting (or mounting R/W) of filesystems with unsupportedbde2000-01-024-38/+68
| | | | | | | | | | | features (except for file types in directory entries, which will be supported soon). Centralized the magic number and compatibility checking. Dropped support for ancient (pre-0.2b) filesystems, as in the Linux version. Our "support" consisted of printing more details in the error message before failing at mount time.
* Merged changes in ext2_fs.h between Linux 1.2.2 and Linux 2.3.35. Thebde2000-01-014-100/+344
| | | | | | | | | | main changes are: - many things are more dynamic; e.g., the inode size is a new parameter in the superblock instead of a constant. - extensions are controlled by new flags in the superblock. - directory entries may have a file type field. These changes are not used yet, except for a spelling change which affects ext2_cnv.c
* Merged cosmetic changes from the initial import on the vendor branchbde2000-01-012-124/+236
| | | | | | (mainly things that were lost or misformatted in a different way by moving them to ext2_fs_i.h and back, and ifdefs for user mode that were excessively edited).
* Use an ifdef in ext2_fs.h instead of a bogus separate file (ext2_fs_i.h)bde2000-01-015-90/+144
| | | | | | | | | | to avoid the namespace problems caused by <ufs/ufs/inode.h> #defining i_mode, etc. ext2_fs_i.h had nothing to do with the Linux version. It was a small part of the Linux version of ext2_fs.h (the part that declares extra in-core fields for an inode). We don't need it because we use the ufs in-core inode for the extra fields.
* Updated/corrected the list of GPL'ed files.bde2000-01-012-0/+10
|
* This file is not used directly. The small parts of it that are used werebde2000-01-011-780/+0
| | | | | merged into ext2_vfsops.c in rev.1.1. This broke both merging from the vendor branch and the non-GPL'ed-ness of ext2_vfsops.c.
* This file is not used directly. It was merged into ext2_linux_balloc.cbde2000-01-011-26/+0
| | | | in rev.1.1.
* This commit was generated by cvs2svn to compensate for changes in r55289,bde2000-01-012-0/+806
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import the Linux ext2fs files that our GPL'ed ext2fs files seem to bebde2000-01-017-553/+1485
| | | | | | | | | | | | based on. Obtained from: Linux 1.2.2 distribution
| * This commit was manufactured by cvs2svn to create branch 'LINUX'.cvs2svn1995-11-05119-44442/+0
| |
* | Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-294-8/+8
| | | | | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* | Second pass commit to introduce new ACL and Extended Attribute systemrwatson1999-12-192-0/+4
| | | | | | | | | | | | | | calls, vnops, vfsops, both in /kern, and to individual file systems that require a vfsop_ array entry. Reviewed by: eivind
* | Introduce NDFREE (and remove VOP_ABORTOP)eivind1999-12-154-46/+6
| |
* | struct mountlist and struct mount.mnt_list have no business beingphk1999-11-202-2/+2
| | | | | | | | | | | | | | | | | | | | a CIRCLEQ. Change them to TAILQ_HEAD and TAILQ_ENTRY respectively. This removes ugly mp != (void*)&mountlist comparisons. Requested by: phk Submitted by: Jake Burkholder jake@checker.org PR: 14967
* | Fix __asm__ clobber list abuse.obrien1999-11-152-6/+10
| | | | | | | | Submitted by: bde
* | Remove WILLRELE from VOP_SYMLINKeivind1999-11-132-2/+4
| | | | | | | | | | | | Note: Previous commit to these files (except coda_vnops and devfs_vnops) that claimed to remove WILLRELE from VOP_RENAME actually removed it from VOP_MKNOD.
* | Remove WILLRELE from VOP_RENAMEeivind1999-11-122-4/+14
| |
* | Next step in the device cleanup process.phk1999-11-092-2/+8
| | | | | | | | | | | | | | | | Correctly lock vnodes when calling VOP_OPEN() from filesystem mount code. Unify spec_open() for bdev and cdev cases. Remove the disabled bdev specific read/write code.
* | Quick fix for breakage of ext2fs link counts as reported by stat(2) bybde1999-11-032-0/+2
| | | | | | | | | | | | | | the soft updates changes: only report the link count to be i_effnlink in ufs_getattr() for file systems that maintain i_effnlink. Tested by: Mike Dracopoulos <mdraco@math.uoa.gr>
* | Newline-terminate the complaint message about not being able to findmsmith1999-11-012-2/+2
| | | | | | | | the root vnode pointer.
* | Remember folks, it's:msmith1999-10-123-0/+3
| | | | | | | | | | | | | | | | 1) test 2) commit 3) test again Guess who forgot 1 and 3? 8)
* | remove unused #includephk1999-10-113-3/+0
| |
* | Remove the D_NOCLUSTER[RW] options which were added because vn hadphk1999-09-302-28/+0
| | | | | | | | | | problems. Now that Matt has fixed vn, this can go. The vn driver should have used d_maxio (now si_iosize_max) anyway.
* | Remove v_maxio from struct vnode.phk1999-09-292-4/+2
| | | | | | | | | | | | Replace it with mnt_iosize_max in struct mount. Nits from: bde
* | Introduce ttyread() and ttywrite() which do the canonical thing.phk1999-09-282-103/+5
| | | | | | | | | | | | Use them in many tty drivers. Reviewed by: julian, bde
* | Remove five now unused fields from struct cdevsw. They should neverphk1999-09-252-10/+0
| | | | | | | | | | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* | This patch clears the way for removing a number of tty relatedphk1999-09-252-50/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fields in struct cdevsw: d_stop moved to struct tty. d_reset already unused. d_devtotty linkage now provided by dev_t->si_tty. These fields will be removed from struct cdevsw together with d_params and d_maxio Real Soon Now. The changes in this patch consist of: initialize dev->si_tty in *_open() initialize tty->t_stop remove devtotty functions rename ttpoll to ttypoll a few adjustments to these changes in the generic code a bump of __FreeBSD_version add a couple of FreeBSD tags
* | More removals of vnode->v_lastr, replaced by preexisting seqcountdillon1999-09-202-4/+6
| | | | | | | | | | | | | | | | | | heuristic to detect sequential operation. VM-related forced clustering code removed from ufs in preparation for a commit to vm/vm_fault.c that does it more generally. Reviewed by: David Greenman <dg@root.com>, Alan Cox <alc@cs.rice.edu>
* | Fix a harmless bug I introduced, simplify a bit more while here.phk1999-09-202-12/+8
| |
* | Step one of replacing devsw->d_maxio with si_bsize_max.phk1999-09-202-70/+8
| | | | | | | | | | | | | | | | Rename dev->si_bsize_max to si_iosize_max and set it in spec_open if the device didn't. Set vp->v_maxio from dev->si_bsize_max in spec_open rather than in ufs_bmap.c
* | Seperate the export check in VFS_FHTOVP, exports are now checked viaalfred1999-09-112-14/+10
| | | | | | | | | | | | | | | | | | VFS_CHECKEXP. Add fh(open|stat|stafs) syscalls to allow userland to query filesystems based on (network) filehandle. Obtained from: NetBSD
* | $Id$ -> $FreeBSD$peter1999-08-2853-53/+53
| |
* | Introduce vn_isdisk(struct vnode *vp) function, and use it to test for diskness.phk1999-08-252-10/+2
| |
* | Oops, the previous commit was missing a new include.bde1999-08-232-0/+2
| |
* | Initialise fsids with (user) device numbers again. Bitrot when dev_t'sbde1999-08-232-2/+2
| | | | | | | | | | were changed to pointers was obscured by casting dev_t's to longs. fsids haven't even been comprised of longs since the Lite2 merge.
* | Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-232-94/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
* | Use devtoname() to print dev_t's instead of casting them to long or u_longbde1999-08-232-4/+4
| | | | | | | | for misprinting in %lx format.
* | The bdevsw() and cdevsw() are now identical, so kill the former.phk1999-08-134-22/+22
| |
* | Decommision miscfs/specfs/specdev.h. Most of it goes into <sys/conf.h>,phk1999-08-084-8/+2
| | | | | | | | | | | | a few lines into <sys/vnode.h>. Add a few fields to struct specinfo, paving the way for the fun part.
* | Don't set IN_ACCESS for requests to read 0 bytes or for unsuccessful reads.bde1999-07-252-4/+8
| | | | | | | | | | | | Translated from: similar fixes in ufs_readwrite.c rev.1.61. Things are simpler (but annoyingly different) here because there are no vm optimisations.
* | Create the macro DOINGASYNC to check whether the MNT_ASYNC flag hasmckusick1999-07-132-2/+4
| | | | | | | | | | | | | | | | | | been set for a mount point. Insert missing checks to ensure that all write operations are done asynchronously when the MNT_ASYNC option has been requested. Submitted by: Craig A Soules <soules+@andrew.cmu.edu> Reviewed by: Kirk McKusick <mckusick@mckusick.com>
* | Convert buffer locking from using the B_BUSY and B_WANTED flags to usingmckusick1999-06-264-6/+4
| | | | | | | | | | | | | | lockmgr locks. This commit should be functionally equivalent to the old semantics. That is, all buffer locking is done with LK_EXCLUSIVE requests. Changes to take advantage of LK_SHARED and LK_RECURSIVE will be done in future commits.
* | Add a vnode argument to VOP_BWRITE to get rid of the last vnodemckusick1999-06-162-8/+8
| | | | | | | | | | operator special case. Delete special case code from vnode_if.sh, vnode_if.src, umap_vnops.c, and null_vnops.c.
* | Simplify cdevsw registration.phk1999-05-314-40/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up.
* | This commit should be a extensive NO-OP:phk1999-05-302-14/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
* | Fixed printing of a dev_t in a panic message. Fixed the function namebde1999-05-132-4/+4
| | | | | | | | in this message.
* | Divorce "dev_t" from the "major|minor" bitmap, which is now calledphk1999-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | udev_t in the kernel but still called dev_t in userland. Provide functions to manipulate both types: major() umajor() minor() uminor() makedev() umakedev() dev2udev() udev2dev() For now they're functions, they will become in-line functions after one of the next two steps in this process. Return major/minor/makedev to macro-hood for userland. Register a name in cdevsw[] for the "filedescriptor" driver. In the kernel the udev_t appears in places where we have the major/minor number combination, (ie: a potential device: we may not have the driver nor the device), like in inodes, vattr, cdevsw registration and so on, whereas the dev_t appears where we carry around a reference to a actual device. In the future the cdevsw and the aliased-from vnode will be hung directly from the dev_t, along with up to two softc pointers for the device driver and a few houskeeping bits. This will essentially replace the current "alias" check code (same buck, bigger bang). A little stunt has been provided to try to catch places where the wrong type is being used (dev_t vs udev_t), if you see something not working, #undef DEVT_FASCIST in kern/kern_conf.c and see if it makes a difference. If it does, please try to track it down (many hands make light work) or at least try to reproduce it as simply as possible, and describe how to do that. Without DEVT_FASCIST I belive this patch is a no-op. Stylistic/posixoid comments about the userland view of the <sys/*.h> files welcome now, from userland they now contain the end result. Next planned step: make all dev_t's refer to the same devsw[] which means convert BLK's to CHR's at the perimeter of the vnodes and other places where they enter the game (bootdev, mknod, sysctl).
OpenPOWER on IntegriCloud