summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/nullfs
Commit message (Collapse)AuthorAgeFilesLines
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls torwatson2000-01-191-1/+1
| | | | | | prettier (?) names, adding some const's around here, et al. Reviewed by: bde
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | 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-191-0/+15
| | | | | | | 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-151-0/+2
|
* Lock reporting and assertion changes.eivind1999-12-112-5/+5
| | | | | | | | | | | | | | | * lockstatus() and VOP_ISLOCKED() gets a new process argument and a new return value: LK_EXCLOTHER, when the lock is held exclusively by another process. * The ASSERT_VOP_(UN)LOCKED family is extended to use what this gives them * Extend the vnode_if.src format to allow more exact specification than locked/unlocked. This commit should not do any semantic changes unless you are using DEBUG_VFS_LOCKS. Discussed with: grog, mch, peter, phk Reviewed by: peter
* Seperate the export check in VFS_FHTOVP, exports are now checked viaalfred1999-09-111-8/+18
| | | | | | | | | VFS_CHECKEXP. Add fh(open|stat|stafs) syscalls to allow userland to query filesystems based on (network) filehandle. Obtained from: NetBSD
* Get rid of the NULLFS_DIAGNOSTIC option. This option was as useful asbde1999-09-044-20/+14
| | | | | | the other XXXFS_DIAGNOSTIC options (not very) and mostly controlled tracing of normal operation. Use `#ifdef DEBUG' for non-diagnostics and `#ifdef DIAGNOSTIC' for diagnostics.
* Converted the silly SAFTEY option into a new-style option by renaming it tobde1999-08-301-3/+2
| | | | | | DIAGNOSTIC. Fixed an English style bug in the panic messages controlled by SAFETY.
* $Id$ -> $FreeBSD$peter1999-08-284-5/+5
|
* Make sure that stat(2) and friends always return a valid st_dev field.phk1999-07-021-4/+2
| | | | | | Pseudo-FS need not fill in the va_fsid anymore, the syscall code will use the first half of the fsid, which now looks like a udev_t with major 255.
* Add a vnode argument to VOP_BWRITE to get rid of the last vnodemckusick1999-06-161-56/+2
| | | | | operator special case. Delete special case code from vnode_if.sh, vnode_if.src, umap_vnops.c, and null_vnops.c.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-281-3/+3
| | | | kernel compile
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-2/+4
| | | | kernel compile
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-071-4/+2
| | | | and local variables, goto labels, and functions declared but not defined.
* Removed statically configured mount type numbers (MOUNT_*) and allbde1998-09-071-2/+2
| | | | | | | | | references to them. The change a couple of days ago to ignore these numbers in statically configured vfsconf structs was slightly premature because the cd9660, cfs, devfs, ext2fs, nfs vfs's still used MOUNT_* instead of the number in their vfsconf struct.
* Fixed printf format errors.bde1998-07-302-16/+14
|
* Cast pointers to uintptr_t/intptr_t instead of to u_long/long,bde1998-07-151-2/+2
| | | | | | | respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types.
* VOP_STRATEGY grows an (struct vnode *) argumentjulian1998-07-041-3/+3
| | | | | | 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>
* Don't silently accept attempts to change flags where they are notpeter1998-06-101-2/+4
| | | | supported.
* As described by the submitter:msmith1998-05-061-21/+1
| | | | | | | | | | | | | 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>
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.des1998-04-171-3/+3
|
* The intent is to get rid of WILLRELE in vnode_if.src by makingmsmith1998-03-011-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Staticize.eivind1998-02-091-3/+3
|
* Back out DIAGNOSTIC changes.eivind1998-02-062-4/+2
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-042-2/+4
|
* Make the debug options new-style.eivind1998-01-313-4/+10
| | | | | This also zaps a DPT option from lint; it wasn't referenced from anywhere.
* Fixed missing initialization of mp->mnt_stat. At least vm depends onbde1998-01-011-1/+2
| | | | | | at least mp->mnt_stat.f_iosize being nonzero. PR: 5212
* Fix the file leak bug. The lower layer wasn't informed the vnode was inactiveroberto1997-10-211-2/+8
| | | | | | | | and kept a reference, preventing the blocks to be reclaimed. Changed the comment in null_inactive to reflect the current situation. Reviewed by: phk
* Hmm, realign the vnops into two columns.phk1997-10-151-4/+4
|
* Stylistic overhaul of vnops tables.phk1997-10-151-17/+14
| | | | | | | 1. Remove comment stating the blatantly obvious. 2. Align in two columns. 3. Sort all but the default element alphabetically. 4. Remove XXX comments pointing out entries not needed.
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.phk1997-10-121-5/+7
| | | | | | | | Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
* Executing binaries on a nullfs (or nullfs-based) filesystem results inphk1997-09-181-3/+4
| | | | | | | a trap. PR: 3104 Reviewed by: phk Submitted by: Dan Walters hannibal@cyberstation.net
* Some staticized variables were still declared to be extern.bde1997-09-071-2/+1
|
* Include "opt_ddb.h" only when NULLFS_DIAGNOSTIC is defined.kato1997-08-281-3/+3
|
* Fixed NULLFS_DIAGNOSTIC stuff.kato1997-08-271-2/+11
|
* Fix all areas of the system (or at least all those in LINT) to avoid storingwollman1997-08-161-4/+5
| | | | | | | | socket addresses in mbufs. (Socket buffers are the one exception.) A number of kernel APIs needed to get fixed in order to make this happen. Also, fix three protocol families which kept PCBs in mbufs to not malloc them instead. Delete some old compatibility cruft while we're at it, and add some new routines in the in_cksum family.
* Removed unused #includes.bde1997-08-023-12/+4
|
* More comment cleanup.alex1997-06-261-5/+5
|
* Typo police.alex1997-06-261-3/+3
|
* Fix some warnings (missing prototypes, wrong "generic" args etc)peter1997-05-252-4/+5
| | | | umapfs uses one of nullfs's functions...
* Avoid `lock against myself' panic by following operation:kato1997-04-191-4/+17
| | | | | | | | | | # mount -t union (or null) dir1 dir2 # mount -t union (or null) dir2 dir1 The function namei in union_mount calls union_root. The upper vnode has been already locked and vn_lock in union_root causes above panic. Add printf's included in `#ifdef DIAGNOSTIC' for EDEADLK cases.
* Fix `locking against myself' panic by multi nullfs mount of samekato1997-04-171-1/+25
| | | | directory pair.
* Use NULLVP instead of NULL.kato1997-04-173-11/+11
|
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-224-5/+5
| | | | ready for it yet.
* Eliminate the last of the compile warnings in this module bympp1997-02-121-7/+7
| | | | correctly casting the arguments to all of the null_bypass() calls.
* Restore of #include <sys/kernel.h> so that this compiles withoutmpp1997-02-121-0/+1
| | | | warnings again.
* Make this compile again after the Lite2 merge.mpp1997-02-123-8/+12
| | | | Also add missing function prototypes.
* This is the kernel Lite/2 commit. There are some requisite userlanddyson1997-02-104-72/+236
| | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-144-4/+4
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Moved the fsnode MALLOC to before the call to getnewvnode() so that thedg1996-06-121-3/+11
| | | | | | | | process won't possibly block before filling in the fsnode pointer (v_data) which might be dereferenced during a sync since the vnode is put on the mnt_vnodelist by getnewvnode. Pointed out by Matt Day <mday@artisoft.com>
OpenPOWER on IntegriCloud