History log of /src/sys/miscfs/nullfs/null_vnops.c |
Revision | | Date | Author | Comments |
1.43 |
| 16-May-2020 |
christos | Add ACL support for FFS. From FreeBSD.
|
1.42 |
| 04-Jun-2017 |
hannken | Locking a layer vnode using the regular bypass routine is no longer racy. Undo the change from 2017-03-30 11:16:52, commitid eurqbzuGxGRlryLz and make vi_lock a krwlock_t again.
|
1.41 |
| 30-Mar-2017 |
hannken | branches: 1.41.6; Locking a layer vnode is racy as it may become reclaimed before calling the operation on the lower vnode.
Replace vi_lock with a rw_obj and change layered file systems to share the lock with the lower vnode.
Layered file systems now use genfs_lock()/_unlock/_islocked().
Welcome to 7.99.67
|
1.40 |
| 27-Jan-2017 |
hannken | Handle v_writecount from layer_open(), layer_close() and layer_revoke() so lower file system vnodes get marked as open for writing.
|
1.39 |
| 27-Feb-2014 |
hannken | branches: 1.39.6; 1.39.10; 1.39.14; The current implementation of vn_lock() is racy. Modification of the vnode operations vector for active vnodes is unsafe because it is not known whether deadfs or the original file system will be called.
- Pass down LK_RETRY to the lock operation (hint for deadfs only).
- Change deadfs lock operation to return ENOENT if LK_RETRY is unset.
- Change all other lock operations to check for dead vnode once the vnode is locked and unlock and return ENOENT in this case.
With these changes in place vnode lock operations will never succeed after vclean() has marked the vnode as VI_XLOCK and before vclean() has changed the operations vector.
Adresses PR kern/37706 (Forced unmount of file systems is unsafe)
Discussed on tech-kern.
Welcome to 6.99.33
|
1.38 |
| 11-Jul-2011 |
hannken | branches: 1.38.2; 1.38.12; 1.38.16; Change VOP_BWRITE() to take a vnode as its first argument like all other VOPs do. Layered file systems no longer have to modify bp->b_vp and run into trouble when an async VOP_BWRITE() uses the wrong vnode.
- change all occurences of VOP_BWRITE(bp) to VOP_BWRITE(bp->b_vp, bp). - remove layer_bwrite(). - welcome to 5.99.55
Adresses PR kern/38762 panic: vwakeup: neg numoutput
No objections from tech-kern@.
|
1.37 |
| 10-Jan-2011 |
hannken | Add layer_revoke() that adjusts the lower vnode use count to be at least as high as the upper vnode count before passing down the VOP_REVOKE().
This way vclean() check for active (vp->v_usecount > 1) vnodes gets it right.
Should fix PR kern/43456.
|
1.36 |
| 02-Jul-2010 |
hannken | LK_INTERLOCK is no longer a valid flag for VOP_LOCK(). This makes layer_*lock*() obsolete. Remove them and handle lock operations with the generic bypass function.
Ride 5.99.34.
|
1.35 |
| 02-Jul-2010 |
rmind | Slightly clean-up layerfs and nullfs: update the big description more to the reality (remove duplicate one in nullfs, merge some differences from it), KNF, improve and update some comments, add few KASSERT()s, remove unused declarations, avoid double inclusion of headers, misc.
No functional changes.
|
1.34 |
| 11-Dec-2005 |
christos | branches: 1.34.74; 1.34.96; 1.34.98; merge ktrace-lwp.
|
1.33 |
| 30-Aug-2005 |
xtraeme | Remove __P()
|
1.32 |
| 26-Feb-2005 |
perry | branches: 1.32.4; nuke trailing whitespace
|
1.31 |
| 30-Jun-2004 |
hannken | branches: 1.31.4; 1.31.6; Do LAYERFS_REMOVED for vop_rmdir.
Reviewed by: Bill Studenmund <wrstuden@netbsd.org>
|
1.30 |
| 07-Jun-2004 |
yamt | do a LAYERFS_REMOVED hack for vop_rename as well.
|
1.29 |
| 28-May-2004 |
wrstuden | Since VOP_UPCALL() has been a long time in coming, add this partial fix for layered-file-removal. It will work for the case of accessing and deleting a file through the layered file system. Accessing via the layer and deleting on the underlying still won't work, nor will accessing via complicated structures (like two umap layers over a given file systems).
We still need VOP_UPCALL(), but this is better than things were before.
This patch has been discussed off & on for a while. This incarnation was tested by hannken at netbsd dot org.
|
1.28 |
| 25-Jan-2004 |
hannken | branches: 1.28.2; Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern.
VOP_STRATEGY(bp) is replaced by one of two new functions:
- VOP_STRATEGY(vp, bp) Call the strategy routine of vp for bp. - DEV_STRATEGY(bp) Call the d_strategy routine of bp->b_dev for bp.
DEV_STRATEGY(bp) is used only for block-to-block device situations.
|
1.27 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.26 |
| 10-Sep-2002 |
jtk | branches: 1.26.6; restore ancestral RCS ID from 4.4BSD-Lite2
|
1.25 |
| 04-Jan-2002 |
chs | add the entry for layer_getpages() to the VOP tables of the layered file systems that need it.
|
1.24 |
| 06-Dec-2001 |
chs | add VOP_GETPAGES and VOP_PUTPAGES methods for layered filesystems. drop the interlock on the upper layer, acquire the interlock on the lower layer.
|
1.23 |
| 15-Nov-2001 |
lukem | don't need <sys/types.h> when including <sys/param.h>
|
1.22 |
| 10-Nov-2001 |
lukem | add RCSIDs
|
1.21 |
| 07-Nov-2001 |
enami | Fix typo in comment.
|
1.20 |
| 09-Jun-2001 |
wiz | branches: 1.20.2; 1.20.6; Some more corrections by Michael K. Sanders.
|
1.19 |
| 07-Jun-2001 |
wiz | Typos and grammer fixes in comments (misc/13133 by Michael K. Sanders)
|
1.18 |
| 22-Jan-2001 |
jdolecek | branches: 1.18.2; make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const
|
1.17 |
| 13-Mar-2000 |
soren | Fix doubled 'the's in comments.
|
1.16 |
| 08-Jul-1999 |
wrstuden | branches: 1.16.2; Introduce layer library in genfs. This set of files abstracts most of the functionality of nullfs. The latter is now just a mount & unmount routine, and a few tables. umapfs borrow most of this infrastructure.
Both fs's are now nfs-exportable.
All layered fs's share a common format to private mount & private vnode structs (which a particular fs can extend).
Also add genfs_noerr_rele(), a vnode op which will vrele/vput operand vnodes appropriately.
|
1.15 |
| 25-Mar-1999 |
bouyer | branches: 1.15.4; We must handle MNT_NODEV at open time, so add an open op for null and union, and do proper checks in union_open(). Fix to nullfs from OpenBSD, extended to umap and union by me.
|
1.14 |
| 22-Mar-1999 |
sommerfe | vinvalbuf, called from vclean, could cause a locking-against-self deadlock in VOP_FSYNC() if the unreferenced vnode picked for reclamation happened to be stacked on top of a vnode the process already had locked. This could happen if the same filesystem was accessed both through a union mount and directly; it seemed to happen most frequently when the direct access was through NFS.
Avoid this deadlock by changing vinvalbuf to pass a new FSYNC_RECLAIM flag bit to VOP_FSYNC() to indicate that a reclaim is in progress and only a `shallow' fsync is necessary.
Do nothing in *_fsync() in umapfs, nullfs, and unionfs when FSYNC_RECLAIM is set; the underlying vnodes will shortly be released in *_reclaim and may be reclaimed (and fsync'ed) later.
|
1.13 |
| 01-Mar-1998 |
fvdl | Merge with Lite2 + local changes
|
1.12 |
| 06-Oct-1997 |
thorpej | Make the vfs ops and vnodeop_opv symbols match the name of the file-system option used to configure the file system into the kernel.
|
1.11 |
| 10-Sep-1997 |
christos | PR/4098: Alan Barrett: Fix diagnostic printf formatting.
|
1.10 |
| 17-May-1997 |
pk | branches: 1.10.4; NULL => 0 (Arne Juul; PR#3629)
|
1.9 |
| 13-Oct-1996 |
christos | backout previous kprintf changes
|
1.8 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.7 |
| 10-May-1996 |
jtk | Add locking code to avoid deadlocks on vnode reclaim, which means the addition of null_lookup, null_lock, null_unlock, null_islocked.
|
1.6 |
| 13-Apr-1996 |
cgd | fix screw-up in the prototyping changes: print pointers with %p, NOT by casting them to (unsigned int) then printing with %x.
|
1.5 |
| 09-Feb-1996 |
christos | miscfs prototype changes
|
1.4 |
| 19-Aug-1994 |
mycroft | Convert hash tables.
|
1.3 |
| 20-Jul-1994 |
mycroft | Fix a null pointer dereference during rename(2).
|
1.2 |
| 29-Jun-1994 |
cgd | branches: 1.2.2; New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
1.1 |
| 08-Jun-1994 |
mycroft | branches: 1.1.1; Update to 4.4-Lite fs code, with local changes.
|
1.1.1.2 |
| 01-Mar-1998 |
fvdl | Import 4.4BSD-Lite2
|
1.1.1.1 |
| 01-Mar-1998 |
fvdl | Import 4.4BSD-Lite for reference
|
1.2.2.2 |
| 19-Aug-1994 |
mycroft | update from trunk
|
1.2.2.1 |
| 20-Jul-1994 |
cgd | update from trunk.
|
1.10.4.2 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.10.4.1 |
| 16-Sep-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.15.4.1 |
| 02-Aug-1999 |
thorpej | Update from trunk.
|
1.16.2.2 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.16.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago
|
1.18.2.6 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.18.2.5 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.18.2.4 |
| 11-Jan-2002 |
nathanw | More catchup.
|
1.18.2.3 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.18.2.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.18.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.20.6.1 |
| 12-Nov-2001 |
thorpej | Sync the thorpej-mips-cache branch with -current.
|
1.20.2.2 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.20.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.26.6.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.26.6.4 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.26.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.26.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.26.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.28.2.3 |
| 02-Jul-2004 |
he | Pull up revision 1.31 (requested by hannken in ticket #575): Do LAYERFS_REMOVED for vop_rmdir.
|
1.28.2.2 |
| 21-Jun-2004 |
tron | Pull up revision 1.30 (requested by yamt in ticket #512): do a LAYERFS_REMOVED hack for vop_rename as well.
|
1.28.2.1 |
| 30-May-2004 |
tron | Pull up revision 1.29 (requested by wrstuden in ticket #424): Since VOP_UPCALL() has been a long time in coming, add this partial fix for layered-file-removal. It will work for the case of accessing and deleting a file through the layered file system. Accessing via the layer and deleting on the underlying still won't work, nor will accessing via complicated structures (like two umap layers over a given file systems). We still need VOP_UPCALL(), but this is better than things were before. This patch has been discussed off & on for a while. This incarnation was tested by hannken at netbsd dot org.
|
1.31.6.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.31.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.32.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.34.98.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.34.98.1 |
| 03-Jul-2010 |
rmind | sync with head
|
1.34.96.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.34.74.1 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.38.16.1 |
| 18-May-2014 |
rmind | sync with head
|
1.38.12.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.38.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.38.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.39.14.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.39.10.2 |
| 26-Apr-2017 |
pgoyette | Sync with HEAD
|
1.39.10.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.39.6.2 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.39.6.1 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.41.6.1 |
| 04-Jun-2017 |
bouyer | pullup the following revisions, requested by hannken in ticket #2: src/share/man/man9/fstrans.9 1.25 src/sys/kern/vfs_mount.c 1.66 src/sys/kern/vfs_subr.c 1.468 src/sys/kern/vfs_trans.c 1.46 src/sys/kern/vfs_vnode.c 1.94, 1.95, 1.96 src/sys/kern/vnode_if.c 1.105, 1.106 src/sys/kern/vnode_if.sh 1.65, 1.66 src/sys/kern/vnode_if.src 1.76 src/sys/miscfs/genfs/genfs_io.c 1.69 src/sys/miscfs/genfs/genfs_vnops.c 1.196, 1.197 src/sys/miscfs/genfs/layer_extern.h 1.40 src/sys/miscfs/genfs/layer_vfsops.c 1.51 src/sys/miscfs/genfs/layer_vnops.c 1.67 src/sys/miscfs/nullfs/null_vnops.c 1.42 src/sys/miscfs/overlay/overlay_vnops.c 1.24 src/sys/miscfs/umapfs/umap_vnops.c 1.60 src/sys/rump/include/rump/rumpvnode_if.h 1.29, 1.30 src/sys/rump/librump/rumpkern/emul.c 1.182 src/sys/rump/librump/rumpvfs/rumpvnode_if.c 1.29, 1.30 src/sys/sys/fstrans.h 1.11 src/sys/sys/vnode.h 1.278 src/sys/sys/vnode_if.h 1.100, 1.101 src/sys/sys/vnode_impl.h 1.14, 1.15 src/sys/ufs/lfs/lfs_pages.c 1.12
Vnode state, lock and fstrans cleanup: - Rename vnode state "VS_ACTIVE" to "VS_LOADED" and add synthetic state "VS_ACTIVE" to assert a loaded vnode with usecount > 0.
- Redo FSTRANS in vnode_if.c and use it for VOP_LOCK and VOP_UNLOCK.
- Cleanup the genfs lock operations.
- Make "struct vnode_impl" member "vi_lock" a krwlock_t again.
- Remove the lock type argument from fstrans_start and fstrans_start_nowait, remove now unused FSTRANS state "FSTRANS_SUSPENDING".
|