| History log of /src/sys/fs/hfs/hfs_vnops.c |
| Revision | | Date | Author | Comments |
| 1.40 |
| 06-Aug-2022 |
andvar | s/blity/bility/ in various words, mainly in comments.
|
| 1.39 |
| 18-Jul-2021 |
dholland | Use macros for the canned parts of device and fifo vnode op tables.
Add GENFS_SPECOP_ENTRIES and GENFS_FIFOOP_ENTRIES macros that contain the portion of the vnode ops table declaration that is (conservatively) the same in every fs. Use these in every fs that supports devices and/or fifos with separate ops tables.
Note that ptyfs works differently (it has one type of vnode with open-coded dispatch to the specfs code, which I haven't changed in this commit) and rump/librump/rumpvfs/rumpfs.c has an indirect dynamic dispatch that already does more or less the same thing, which I also haven't changed.
Also note that this anticipates a few bits in the next changeset here and there, and adds missing but unreachable calls in some cases (e.g. most fses weren't defining whiteout on devices and fifos, but it isn't reachable there), and it changes parsepath on devices and fifos to genfs_badop from genfs_parsepath (but it's not reachable there either).
It appears that devices in kernfs were missing kqfilter, so it's possible that if you try to use kqueue on /kern/rootdev that it'll explode.
And finally note that the ops declaration tables aren't order-dependent. (Other than vop_default_desc has to come first.) Otherwise this wouldn't work.
|
| 1.38 |
| 29-Jun-2021 |
dholland | Implement VOP_PARSEPATH() for hfs.
This checks for a following "/rsrc" at the end of the pathname (to indicate the resource fork of a file) and assimilates it into the component name to be looked up. Then cn_namelen will already include this text in lookup, and it's no longer necessary to muck with cn_consume.
Invalid uses of "/rsrc" are ignored rather than rejected, which appears to be the same as the old behavior. It is possible that the parsepath logic should only consume the "/rsrc" if the name names a file and not a directory, which would require looking it up in parsepath and be a general nuisance; I hope not. It's also possible that the whole thing doesn't work at all now, or it didn't before, as I don't have any way to test it.
|
| 1.37 |
| 29-Jun-2021 |
dholland | - Add a new vnode op: VOP_PARSEPATH. - Move namei_getcomponent to genfs_vnops.c and call it genfs_parsepath. - Add a parsepath entry to every vnode ops table.
VOP_PARSEPATH takes a directory vnode to be searched and a complete following path and chooses how much of that path to consume. To begin with, all parsepath calls are genfs_parsepath, which locates the first '/' as always.
Note that the call doesn't take the whole struct componentname, only the string. The other bits of struct componentname should not be needed and there's no reason to cause potential complications by exposing them.
|
| 1.36 |
| 16-May-2020 |
christos | branches: 1.36.6; Add ACL support for FFS. From FreeBSD.
|
| 1.35 |
| 23-Apr-2020 |
ad | PR kern/54759 (vm.ubc_direct deadlock when read()/write() into mapping of itself)
- Add new flag UBC_ISMAPPED which tells ubc_uiomove() the object is mmap()ed somewhere. Use it to decide whether to do direct-mapped copy, rather than poking around directly in the vnode in ubc_uiomove(), which is ugly and doesn't work for tmpfs. It would be nicer to contain all this in UVM but the filesystem provides the needed locking here (VV_MAPPED) and to reinvent that would suck more.
- Rename UBC_UNMAP_FLAG() to UBC_VNODE_FLAGS(). Pass in UBC_ISMAPPED where appropriate.
|
| 1.34 |
| 26-May-2017 |
riastradh | branches: 1.34.20; Make VOP_RECLAIM do the last unlock of the vnode.
VOP_RECLAIM naturally has exclusive access to the vnode, so having it locked on entry is not strictly necessary -- but it means if there are any final operations that must be done on the vnode, such as ffs_update, requiring exclusive access to it, we can now kassert that the vnode is locked in those operations.
We can't just have the caller release the last lock because some file systems don't use genfs_lock, and require the vnode to remain valid for VOP_UNLOCK to work, notably unionfs.
|
| 1.33 |
| 20-Aug-2016 |
hannken | Remove now obsolete operation vcache_remove().
Welcome to 7.99.36
|
| 1.32 |
| 21-Jun-2015 |
maxv | KNF
|
| 1.31 |
| 10-Aug-2014 |
hannken | branches: 1.31.4; Change hfs from hashlist to vcache. - use (cnid, fork) as key. - use pool for hfs nodes.
|
| 1.30 |
| 25-Jul-2014 |
dholland | Add VOP_FALLOCATE and VOP_FDISCARD to every vnode ops table I can find.
The filesystem ones all call genfs_eopnotsupp - right now I am only implementing the plumbing and we can implement fallocate and/or fdiscard for files later.
The device ones call spec_fallocate (which is also genfs_eopnotsupp) and spec_fdiscard, which dispatches to the device-level op.
The fifo ones all call vn_fifo_bypass, which also ends up being EOPNOTSUPP.
|
| 1.29 |
| 07-Feb-2014 |
hannken | branches: 1.29.2; Change vnode operation lookup to return the resulting vnode *vpp unlocked. Change cache_lookup() to return an unlocked vnode.
Discussed on tech-kern@
Welcome to 6.99.31
|
| 1.28 |
| 18-Oct-2013 |
christos | remove unused variables
|
| 1.27 |
| 18-Mar-2013 |
plunky | branches: 1.27.6; C99 section 6.7.2.3 (Tags) Note 3 states that:
A type specifier of the form
enum identifier
without an enumerator list shall only appear after the type it specifies is complete.
which means that we cannot pass an "enum vtype" argument to kauth_access_action() without fully specifying the type first. Unfortunately there is a complicated include file loop which makes that difficult, so convert this minimal function into a macro (and capitalize it).
(ok elad@)
|
| 1.26 |
| 22-Jul-2012 |
rmind | branches: 1.26.2; Move some the test for MAKEENTRY into the cache_enter(9). Make some variables in vfs_cache.c static, __read_mostly, etc.
No objection on tech-kern@.
|
| 1.25 |
| 13-Mar-2012 |
elad | Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with something meaningful. All relevant documentation has been updated or written.
Most of these changes were brought up in the following messages:
http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html
Thanks to christos, manu, njoly, and jmmv for input.
Huge thanks to pgoyette for spinning these changes through some build cycles and ATF.
|
| 1.24 |
| 27-Sep-2011 |
christos | branches: 1.24.2; 1.24.6; 1.24.8; use NAME_MAX instead of MAXNAMLEN
|
| 1.23 |
| 19-May-2011 |
rmind | Remove cache_purge(9) calls from reclamation routines in the file systems, as vclean(9) performs it for us since Lite2 merge.
|
| 1.22 |
| 10-Feb-2011 |
christos | remove comments about needing to encode : since the on disk format does not allow them. Also fix reversed encoding in lookup. From Taylor R Campbell.
|
| 1.21 |
| 10-Feb-2011 |
christos | PR/44523: Taylor R Campbell: mount_hfs badly handles file names with slashes in them, encode them as colons. XXX: Should encode : as :: too?
|
| 1.20 |
| 07-Feb-2011 |
jakllsch | Make this build.
Also, the previous commit contanined "unintended" functional changes I'm going to ignore.
|
| 1.19 |
| 07-Feb-2011 |
christos | KNF, no functional changes intended.
|
| 1.18 |
| 24-Jun-2010 |
hannken | branches: 1.18.2; 1.18.4; Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
|
| 1.17 |
| 29-Mar-2010 |
pooka | Stop exposing fifofs internals and leave only fifo_vnodeop_p visible.
|
| 1.16 |
| 08-Jan-2010 |
pooka | branches: 1.16.2; 1.16.4; The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live years ago when the kernel was modified to not alter ABI based on DIAGNOSTIC, and now just call the respective function interfaces (in lowercase). Plenty of mix'n match upper/lowercase has creeped into the tree since then. Nuke the macros and convert all callsites to lowercase.
no functional change
|
| 1.15 |
| 03-Jul-2009 |
elad | Where possible, extract the file-system's access() routine to two internal functions: the first checking if the operation is possible (regardless of permissions), the second checking file-system permissions, ACLs, etc.
Mailing list reference:
http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005311.html
|
| 1.14 |
| 23-Jun-2009 |
elad | Move the implementation of vaccess() to genfs_can_access(), in line with the other routines of the same spirit.
Adjust file-system code to use it.
Keep vaccess() for KPI compatibility and to keep element of least surprise. A "diagnostic" message warning that vaccess() is deprecated will be printed when it's used (obviously, only in DIAGNOSTIC kernels).
No objections on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005310.html
|
| 1.13 |
| 17-Dec-2008 |
cegger | branches: 1.13.2; kill MALLOC and FREE macros.
|
| 1.12 |
| 26-Nov-2008 |
pooka | Rototill all remaining file systems to use ubc_uiomove() instead of the ubc_alloc() - uiomove() - ubc_release() dance.
|
| 1.11 |
| 03-Sep-2008 |
gmcgarry | branches: 1.11.2; 1.11.4; Don't use unnamed structures.
|
| 1.10 |
| 29-Apr-2008 |
ad | branches: 1.10.2; 1.10.6; PR kern/38057 ffs makes assuptions about devvp file system PR kern/33406 softdeps get stuck in endless loop
Introduce VFS_FSYNC() and call it when syncing a block device, if it has a mounted file system.
|
| 1.9 |
| 30-Jan-2008 |
ad | branches: 1.9.6; 1.9.8; 1.9.10; Replace struct lock on vnodes with a simpler lock object built on krwlock_t. This is a step towards removing lockmgr and simplifying vnode locking. Discussed on tech-kern.
|
| 1.8 |
| 25-Jan-2008 |
ad | Remove VOP_LEASE. Discussed on tech-kern.
|
| 1.7 |
| 03-Jan-2008 |
pooka | struct vop_foo_args comment police: a_l has ceased to be
|
| 1.6 |
| 08-Dec-2007 |
pooka | branches: 1.6.4; Remove cn_lwp from struct componentname. curlwp should be used from on. The NDINIT() macro no longer takes the lwp parameter and associates the credentials of the calling thread with the namei structure.
|
| 1.5 |
| 26-Nov-2007 |
pooka | branches: 1.5.2; Remove the "struct lwp *" argument from all VFS and VOP interfaces. The general trend is to remove it from all kernel interfaces and this is a start. In case the calling lwp is desired, curlwp should be used.
quick consensus on tech-kern
|
| 1.4 |
| 17-Aug-2007 |
pooka | branches: 1.4.2; 1.4.4; 1.4.10; In the new world order (a.k.a. the human-understandable world order) VOP_LOOKUP ignores LOCKPARENT completely, so make this ignore it also.
XXX: tested only with rump, but I can't really see how this worked at all before
|
| 1.3 |
| 22-Mar-2007 |
dillo | branches: 1.3.4; 1.3.8; Add support for HFS Wrapper (HFS+ volume inside an HFS volume). Remove offset argument, we should now find an HFS+ volume in any of its standard places.
Based on work from and test image provided by Pelle Johansson.
|
| 1.2 |
| 06-Mar-2007 |
dillo | branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; Complete rename of hfsp to hfs, requested by thorpej.
|
| 1.1 |
| 06-Mar-2007 |
dillo | Rename files from hfsp to hfs.
|
| 1.2.8.1 |
| 29-Mar-2007 |
reinoud | Pullup to -current
|
| 1.2.6.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
| 1.2.4.3 |
| 24-Mar-2007 |
yamt | sync with head.
|
| 1.2.4.2 |
| 12-Mar-2007 |
rmind | Sync with HEAD (missed new files in previous).
|
| 1.2.4.1 |
| 06-Mar-2007 |
rmind | file hfs_vnops.c was added on branch yamt-idlelwp on 2007-03-12 06:14:55 +0000
|
| 1.2.2.2 |
| 20-Aug-2007 |
ad | Sync with HEAD.
|
| 1.2.2.1 |
| 10-Apr-2007 |
ad | Sync with head.
|
| 1.3.8.3 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
| 1.3.8.2 |
| 27-Nov-2007 |
joerg | Sync with HEAD. amd64 Xen support needs testing.
|
| 1.3.8.1 |
| 03-Sep-2007 |
jmcneill | Sync with HEAD.
|
| 1.3.4.1 |
| 03-Sep-2007 |
skrll | Sync with HEAD.
|
| 1.4.10.3 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
| 1.4.10.2 |
| 27-Dec-2007 |
mjf | Sync with HEAD.
|
| 1.4.10.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
| 1.4.4.5 |
| 04-Feb-2008 |
yamt | sync with head.
|
| 1.4.4.4 |
| 21-Jan-2008 |
yamt | sync with head
|
| 1.4.4.3 |
| 07-Dec-2007 |
yamt | sync with head
|
| 1.4.4.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
| 1.4.4.1 |
| 17-Aug-2007 |
yamt | file hfs_vnops.c was added on branch yamt-lazymbuf on 2007-09-03 14:40:21 +0000
|
| 1.4.2.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
| 1.4.2.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
| 1.5.2.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
| 1.6.4.1 |
| 08-Jan-2008 |
bouyer | Sync with HEAD
|
| 1.9.10.5 |
| 11-Aug-2010 |
yamt | sync with head.
|
| 1.9.10.4 |
| 11-Mar-2010 |
yamt | sync with head
|
| 1.9.10.3 |
| 18-Jul-2009 |
yamt | sync with head.
|
| 1.9.10.2 |
| 04-May-2009 |
yamt | sync with head.
|
| 1.9.10.1 |
| 16-May-2008 |
yamt | sync with head.
|
| 1.9.8.1 |
| 18-May-2008 |
yamt | sync with head.
|
| 1.9.6.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
| 1.9.6.2 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
| 1.9.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.10.6.2 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
| 1.10.6.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
| 1.10.2.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
| 1.11.4.1 |
| 16-Feb-2011 |
bouyer | Pull up following revision(s) (requested by dholland in ticket #1554): sys/fs/hfs/hfs_vnops.c: revision 1.21, 1.22 via patch PR/44523: Taylor R Campbell: mount_hfs badly handles file names with slashes in them, encode them as colons. XXX: Should encode : as :: too? remove comments about needing to encode : since the on disk format does not allow them. Also fix reversed encoding in lookup. From Taylor R Campbell.
|
| 1.11.2.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
| 1.13.2.1 |
| 23-Jul-2009 |
jym | Sync with HEAD.
|
| 1.16.4.4 |
| 31-May-2011 |
rmind | sync with head
|
| 1.16.4.3 |
| 05-Mar-2011 |
rmind | sync with head
|
| 1.16.4.2 |
| 03-Jul-2010 |
rmind | sync with head
|
| 1.16.4.1 |
| 30-May-2010 |
rmind | sync with head
|
| 1.16.2.2 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
| 1.16.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
| 1.18.4.2 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
| 1.18.4.1 |
| 08-Feb-2011 |
bouyer | Sync with HEAD
|
| 1.18.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
| 1.24.8.1 |
| 12-Aug-2012 |
martin | Pull up following revision(s) (requested by manu in ticket #484): sys/fs/nilfs/nilfs_vnops.c: revision 1.18 sys/ufs/ufs/ufs_lookup.c: revision 1.117 sys/nfs/nfs_vnops.c: revision 1.295 sys/ufs/chfs/chfs_vnops.c: revision 1.8 sys/ufs/ext2fs/ext2fs_lookup.c: revision 1.70 sys/fs/unionfs/unionfs_vnops.c: revision 1.6 sys/kern/vfs_cache.c: revision 1.89 sys/fs/efs/efs_vnops.c: revision 1.26 sys/fs/hfs/hfs_vnops.c: revision 1.26 sys/fs/adosfs/adlookup.c: revision 1.16 sys/fs/puffs/puffs_vnops.c: revision 1.168 sys/fs/tmpfs/tmpfs_vnops.c: revision 1.98 sys/fs/ntfs/ntfs_vnops.c: revision 1.52 sys/fs/cd9660/cd9660_lookup.c: revision 1.20 sys/fs/msdosfs/msdosfs_lookup.c: revision 1.24 sys/fs/smbfs/smbfs_vnops.c: revision 1.80 sys/fs/udf/udf_vnops.c: revision 1.72 sys/fs/filecorefs/filecore_lookup.c: revision 1.14 sys/fs/puffs/puffs_node.c: revision 1.25 Move some the test for MAKEENTRY into the cache_enter(9). Make some variables in vfs_cache.c static, __read_mostly, etc. No objection on tech-kern@.
|
| 1.24.6.1 |
| 05-Apr-2012 |
mrg | sync to latest -current.
|
| 1.24.2.3 |
| 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.24.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
| 1.24.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
| 1.26.2.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
| 1.26.2.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.26.2.1 |
| 23-Jun-2013 |
tls | resync from head
|
| 1.27.6.1 |
| 18-May-2014 |
rmind | sync with head
|
| 1.29.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
| 1.31.4.3 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
| 1.31.4.2 |
| 05-Oct-2016 |
skrll | Sync with HEAD
|
| 1.31.4.1 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
| 1.34.20.1 |
| 25-Apr-2020 |
bouyer | Sync with bouyer-xenpvh-base2 (HEAD)
|
| 1.36.6.1 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|