The NetBSD Project

CVS log for src/sys/fs/v7fs/v7fs_vnops.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / fs / v7fs

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Jul 31 13:08:19 2022 UTC (2 years, 9 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -3 lines
Don't panic for a negative offset, just fail the operation with EINVAL.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun May 22 11:27:36 2022 UTC (2 years, 11 months ago) by andvar
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
fix various small typos, mainly in comments.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Mar 30 12:45:58 2022 UTC (3 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
fix unlock on error.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Mar 27 16:24:58 2022 UTC (3 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +11 -5 lines
add a kauth vnode check for creating links

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Feb 11 10:55:15 2022 UTC (3 years, 2 months ago) by hannken
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +34 -25 lines
A component name is a counted string (cn_nameptr, cn_namelen),
not a zero terminated string cn_nameptr.

Change the following operations to work with counted strings:

v7fs_file_lookup_by_name()
v7fs_file_allocate()
v7fs_file_deallocate()
v7fs_directory_add_entry()
v7fs_directory_remove_entry()
v7fs_file_rename()
v7fs_file_link()
v7fs_dirent_filename()

Adapt all vnode operations with component names as argument.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Feb 1 17:12:24 2022 UTC (3 years, 2 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
fix spelling of "regular" in comment

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Oct 20 03:08:18 2021 UTC (3 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -3 lines
Overhaul of the EVFILT_VNODE kevent(2) filter:

- Centralize vnode kevent handling in the VOP_*() wrappers, rather than
  forcing each individual file system to deal with it (except VOP_RENAME(),
  because VOP_RENAME() is a mess and we currently have 2 different ways
  of handling it; at least it's reasonably well-centralized in the "new"
  way).
- Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ,
  compatible with the same events in FreeBSD.
- Track which kevent notifications clients are interested in receiving
  to avoid doing work for events no one cares about (avoiding, e.g.
  taking locks and traversing the klist to send a NOTE_WRITE when
  someone is merely watching for a file to be deleted, for example).

In support of the above:

- Add support in vnode_if.sh for specifying PRE- and POST-op handlers,
  to be invoked before and after vop_pre() and vop_post(), respectively.
  Basic idea from FreeBSD, but implemented differently.
- Add support in vnode_if.sh for specifying CONTEXT fields in the
  vop_*_args structures.  These context fields are used to convey information
  between the file system VOP function and the VOP wrapper, but do not
  occupy an argument slot in the VOP_*() call itself.  These context fields
  are initialized and subsequently interpreted by PRE- and POST-op handlers.
- Version VOP_REMOVE(), uses the a context field for the file system to report
  back the resulting link count of the target vnode.  Return this in tmpfs,
  udf, nfs, chfs, ext2fs, lfs, and ufs.

NetBSD 9.99.92.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Jun 27 17:29:18 2020 UTC (4 years, 10 months ago) by christos
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +27 -32 lines
Introduce genfs_pathconf() and use it for the default case in all filesystems.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat May 16 18:31:50 2020 UTC (4 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +18 -18 lines
Add ACL support for FFS. From FreeBSD.

Revision 1.27.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 25 11:24:05 2020 UTC (5 years ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.27.4.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.4.1: +4 -4 lines
Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Apr 23 21:47:08 2020 UTC (5 years ago) by ad
Branches: MAIN
CVS tags: bouyer-xenpvh-base2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4 lines
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.

Revision 1.26.10.2: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:41 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.26.10.1: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.10.1: +3 -3 lines
Sync with HEAD

Revision 1.27.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:10 2020 UTC (5 years ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -5 lines
Sync with HEAD

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Apr 13 19:23:18 2020 UTC (5 years ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421, bouyer-xenpvh-base1
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -5 lines
Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function
that hides the details and does atomic_load_relaxed().  Signature matches
FreeBSD.

Revision 1.26.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:51 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +12 -7 lines
Merge changes from current as of 20200406

Revision 1.26.16.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:35 2020 UTC (5 years, 3 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +12 -7 lines
Sync with head.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Jan 17 20:08:09 2020 UTC (5 years, 3 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Branch point for: bouyer-xenpvh
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +12 -7 lines
VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode.  Matches
FreeBSD.

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:44 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.2: +46 -33 lines
update from HEAD

Revision 1.17.4.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:07 2017 UTC (7 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.17.4.3: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.4.3: +12 -11 lines
Sync with HEAD

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri May 26 14:21:01 2017 UTC (7 years, 11 months ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, isaki-audio2-base, isaki-audio2, ad-namecache-base
Branch point for: phil-wifi, ad-namecache
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -3 lines
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.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Apr 26 03:02:49 2017 UTC (8 years ago) by riastradh
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -6 lines
Change VOP_REMOVE and VOP_RMDIR to preserve lock/ref on dvp.

No change to vp -- the plan is to replace the node by the
componentname in the vop parameters, and let all directory vops do
lookups internally.

Proposed on tech-kern with no objections:
https://mail-index.netbsd.org/tech-kern/2017/04/17/msg021825.html

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:26 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +7 -6 lines
Sync with HEAD

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:02 2017 UTC (8 years ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +7 -6 lines
Sync with HEAD

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Apr 11 14:25:00 2017 UTC (8 years ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-localcount-20170426, bouyer-socketcan-base1
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -5 lines
Make VOP_INACTIVE preserve vnode lock on return.

Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html

Ride 7.99.68, a bumpy bus of incremental vfs improvements!

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Apr 8 08:51:02 2017 UTC (8 years ago) by hannken
Branches: MAIN
CVS tags: jdolecek-ncq-base, jdolecek-ncq
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -3 lines
Update mtime when updating file size.

PR kern/51762 (mtime not updated by open(O_TRUNC))

Revision 1.17.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:02 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.17.4.2: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.4.2: +2 -4 lines
Sync with HEAD

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Aug 20 12:37:08 2016 UTC (8 years, 8 months ago) by hannken
Branches: MAIN
CVS tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -4 lines
Remove now obsolete operation vcache_remove().

Welcome to 7.99.36

Revision 1.17.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:21 2015 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.17.4.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.4.1: +3 -5 lines
Sync with HEAD

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Apr 20 23:03:08 2015 UTC (10 years ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Branch point for: pgoyette-localcount
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -5 lines
Make VOP_LINK return directory still locked and referenced.

Ride 7.99.10 bump.

Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:20 2015 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +39 -23 lines
Sync with HEAD

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 7 10:08:15 2015 UTC (10 years, 3 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +35 -20 lines
Pull up following revision(s) (requested by hannken in ticket #386):
	sys/fs/v7fs/v7fs_file.c: revision 1.6
	sys/fs/v7fs/v7fs_vnops.c: revision 1.18
	sys/fs/v7fs/v7fs_vnops.c: revision 1.19
	sys/fs/v7fs/v7fs_vfsops.c: revision 1.11
v7fs_getattr: adjust size of symlinks by -1 to compensate the trailing NUL.
Should fix the v7fs part of PR kern/48864.
Defer deallocating unlinked inodes to v7fs_reclaim().
Remove v7fs_vnode_reload() and always use v7fs_inode_load().  No need
to search for a vnode we already hold a reference on.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Dec 29 15:29:38 2014 UTC (10 years, 4 months ago) by hannken
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -5 lines
Change v7fs to vcache.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Dec 29 15:28:58 2014 UTC (10 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +30 -20 lines
Defer deallocating unlinked inodes to v7fs_reclaim().

Remove v7fs_vnode_reload() and always use v7fs_inode_load().  No need
to search for a vnode we already hold a reference on.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Dec 29 15:28:08 2014 UTC (10 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -2 lines
v7fs_getattr: adjust size of symlinks by -1 to compensate the trailing NUL.

Should fix the v7fs part of PR kern/48864.

Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:28 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.1: +26 -28 lines
Rebase to HEAD as of a few days ago.

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:54 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +3 -3 lines
Rebase.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Aug 8 19:15:33 2014 UTC (10 years, 8 months ago) by gson
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Whitespace fix

Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:02 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.2: +28 -30 lines
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")

Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +27 -29 lines
sync with head

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Feb 7 15:29:22 2014 UTC (11 years, 2 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -3 lines
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

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jan 23 10:13:56 2014 UTC (11 years, 3 months ago) by hannken
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +18 -6 lines
Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.

Discussed on tech-kern@

Welcome to 6.99.30

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Jan 17 10:55:02 2014 UTC (11 years, 3 months ago) by hannken
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +12 -25 lines
Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.

Discussed on tech-kern@

Welcome to 6.99.29

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Nov 20 23:44:23 2013 UTC (11 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -8 lines
v7fs: replace malloc(9) with kmem(9), fix a memory leak and few missing
mutex destruction cases in the error path.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:18:28 2013 UTC (11 years, 10 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
resync from head

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Mar 18 19:35:42 2013 UTC (12 years, 1 month ago) by plunky
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
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@)

Revision 1.6.6.3: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:32 2012 UTC (12 years, 11 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.6.6.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.6.2: +1 -2 lines
sync to latest -current.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:08:10 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +3 -4 lines
sync with head.

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Mon May 7 03:01:12 2012 UTC (12 years, 11 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +3 -4 lines
Pull up following revision(s) (requested by chs in ticket #204):
	sys/fs/sysvbfs/sysvbfs_vnops.c: revision 1.44
	sys/ufs/ffs/ffs_vfsops.c: revision 1.277
	sys/fs/v7fs/v7fs_vnops.c: revision 1.11
	sys/ufs/chfs/chfs_vnops.c: revision 1.7
	sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.61
	sys/miscfs/genfs/genfs_io.c: revision 1.54
	sys/kern/vfs_wapbl.c: revision 1.52
	sys/uvm/uvm_pager.h: revision 1.43
	sys/ufs/ffs/ffs_vnops.c: revision 1.121
	sys/kern/vfs_subr.c: revision 1.434
	sys/fs/msdosfs/msdosfs_vnops.c: revision 1.83
	sys/fs/ntfs/ntfs_vnops.c: revision 1.51
	sys/fs/udf/udf_subr.c: revision 1.119
	sys/miscfs/specfs/spec_vnops.c: revision 1.135
	sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.103
	sys/fs/udf/udf_vnops.c: revision 1.71
	sys/ufs/ufs/ufs_readwrite.c: revision 1.104
change vflushbuf() to take the full FSYNC_* flags.
translate FSYNC_LAZY into PGO_LAZY for VOP_PUTPAGES() so that
genfs_do_io() can set the appropriate io priority for the I/O.
this is the first part of addressing PR 46325.
mark all wapbl I/O as BPRIO_TIMECRITICAL.
this is the second part of addressing PR 46325.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Apr 29 22:54:00 2012 UTC (13 years ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -4 lines
change vflushbuf() to take the full FSYNC_* flags.
translate FSYNC_LAZY into PGO_LAZY for VOP_PUTPAGES() so that
genfs_do_io() can set the appropriate io priority for the I/O.
this is the first part of addressing PR 46325.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:21 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +42 -20 lines
sync with head

Revision 1.6.6.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:38 2012 UTC (13 years ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.6.6.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.6.1: +35 -20 lines
sync to latest -current.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Mar 31 21:44:28 2012 UTC (13 years, 1 month ago) by njoly
Branches: MAIN
CVS tags: yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -7 lines
Make v7fs_getattr() report file flags, and adjust v7fs_setattr() to
allow unsetting SF_APPEND flag.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Mar 22 22:16:21 2012 UTC (13 years, 1 month ago) by njoly
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Pass operations flags to genfs_can_chtimes(), not file ones.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Mar 13 18:40:51 2012 UTC (13 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +33 -16 lines
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.

Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:25 2012 UTC (13 years, 2 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -2 lines
merge to -current.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jan 27 12:22:02 2012 UTC (13 years, 3 months ago) by njoly
Branches: MAIN
CVS tags: netbsd-6-base, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -2 lines
Check parent directory write permission for DELETE operation.

ok uch@.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jul 30 03:53:18 2011 UTC (13 years, 9 months ago) by uch
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +47 -12 lines
v7fs_lookup() fix return value. Pass t_vnops rename_dir(3)
v7fs_setttr() check credential. Pass t_unpriv owner
v7fs_rename() reload inode(v7fs_vnode_reload). Pass t_vnops rename_reg_nodir

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jul 24 12:31:33 2011 UTC (13 years, 9 months ago) by uch
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -7 lines
Existing inode don't recycle. rump works.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jul 16 12:35:40 2011 UTC (13 years, 9 months ago) by uch
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -21 lines
core symlink operation moved to v7fs_file_util.c and introduce V7FSBSD_MAXSYMLINKLEN for makefs

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jul 13 12:28:57 2011 UTC (13 years, 9 months ago) by uch
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -2 lines
Fix readdir eofflag(bogus eofflags was setted). getcwd works.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jul 13 12:22:49 2011 UTC (13 years, 9 months ago) by uch
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +22 -12 lines
Fix inode update method. chown and chmod works.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Jun 27 11:52:25 2011 UTC (13 years, 10 months ago) by uch
Branches: MAIN
7th Edition(V7) File System support. and NetBSD symbolic-link, socket, FIFO extension. see newfs_v7fs(8).

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>