The NetBSD Project

CVS log for src/sys/kern/vfs_getcwd.c

[BACK] Up to [] / src / sys / kern

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: MAIN

Revision 1.53 / (download) - annotate - [select for diffs], Sat Sep 14 21:23:34 2019 UTC (2 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, HEAD
Changes since 1.52: +5 -3 lines
Diff to previous 1.52 (colored)

- add missing error check
- use '\0' for char const

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jul 28 15:37:23 2017 UTC (2 years, 3 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20190609, phil-wifi, 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, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.51: +4 -3 lines
Diff to previous 1.51 (colored)

Don't walk off the end of the dirent buffer.

From Ilja Van Sprundel.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:13 2017 UTC (2 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base
Branch point for: netbsd-8
Changes since 1.50: +2 -5 lines
Diff to previous 1.50 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Feb 7 15:29:22 2014 UTC (5 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, 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, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.49: +10 -6 lines
Diff to previous 1.49 (colored)

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.49 / (download) - annotate - [select for diffs], Sun Jun 9 18:29:25 2013 UTC (6 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.48: +4 -3 lines
Diff to previous 1.48 (colored)

Stick UFS_ in front of these symbols:

Part of PR 47909.

(two stragglers in this commit; oops)

Revision 1.48 / (download) - annotate - [select for diffs], Mon Nov 5 17:24:11 2012 UTC (7 years ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, khorben-n900, agc-symver-base, agc-symver
Changes since 1.47: +2 -3 lines
Diff to previous 1.47 (colored)

Disentangle the namecache from the internals of namei.

 - Move the namecache's hash computation to inside the namecache code,
instead of being spread out all over the place. Remove cn_hash from
struct componentname and delete all uses of it.

 - It is no longer necessary (if it ever was) for cache_lookup and
cache_lookup_raw to clear MAKEENTRY from cnp->cn_flags for the cases
that cache_enter already checks for.

 - Rearrange the interface of cache_lookup (and cache_lookup_raw) to
make it somewhat simpler, to exclude certain nonexistent error
conditions, and (most importantly) to make it not require write access
to cnp->cn_flags.

This change requires a kernel bump.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Nov 30 10:30:02 2010 UTC (8 years, 11 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, 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-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6-1, netbsd-6-0, netbsd-6
Changes since 1.46: +2 -3 lines
Diff to previous 1.46 (colored)

Abolish struct componentname's cn_pnbuf. Use the path buffer in the
pathbuf object passed to namei as work space instead. (For now a pnbuf
pointer appears in struct nameidata, to support certain unclean things
that haven't been fixed yet, but it will be going away in the future.)

This removes the need for the SAVENAME and HASBUF namei flags.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Jul 21 09:01:36 2010 UTC (9 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.45: +12 -29 lines
Diff to previous 1.45 (colored)

Using cache_revlookup() leads to vnode races as it returns an unreferenced
vnode that may disappear before the caller has a chance to reference it.

Reference the vnode while the name cache is locked.

No objections on tech-kern.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:11 2010 UTC (9 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

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.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:10 2010 UTC (9 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.43: +6 -6 lines
Diff to previous 1.43 (colored)

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

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jan 17 07:02:35 2009 UTC (10 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.42: +7 -7 lines
Diff to previous 1.42 (colored)

malloc -> kmem_alloc.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:05 2008 UTC (11 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: wrstuden-revivesa, nick-hppapmap
Changes since 1.41: +2 -9 lines
Diff to previous 1.41 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.41 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:13 2007 UTC (11 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:49 2007 UTC (11 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.39: +2 -3 lines
Diff to previous 1.39 (colored)

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

Revision 1.39 / (download) - annotate - [select for diffs], Mon Dec 3 02:06:58 2007 UTC (11 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.38: +53 -2 lines
Diff to previous 1.38 (colored)

- add an elf aux vector entry for implementing $ORIGIN.
- the code to convert from a vnode to a path is commented out now until
  a better solution is implemented. Only absolute paths work for now
  (which is most of the cases).

requested by core

Revision 1.38 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:06 2007 UTC (11 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

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

Revision 1.37 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:26 2007 UTC (12 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Merge from vmlocking:

- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Oct 8 15:12:08 2007 UTC (12 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.35: +7 -3 lines
Diff to previous 1.35 (colored)

Merge file descriptor locking, cwdi locking and cross-call changes
from the vmlocking branch.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:32 2007 UTC (12 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: yamt-x86pmap, vmlocking, matt-armv6, jmcneill-pm
Changes since 1.34: +2 -3 lines
Diff to previous 1.34 (colored)

Merge newlock2 to head.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:51 2006 UTC (12 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, newlock2-nbase, newlock2-base
Changes since 1.33: +16 -28 lines
Diff to previous 1.33 (colored)

a smorgasbord of improvements to vnode locking and path lookup:
 - LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP().
   these now always return the parent vnode locked.  namei() works as before.
   lookup() and various other paths no longer acquire vnode locks in the
   wrong order via vrele().  fixes PR 32535.
   as a nice side effect, path lookup is also up to 25% faster.
 - the above allows us to get rid of PDIRUNLOCK.
 - also get rid of WANTPARENT (just use LOCKPARENT and unlock it).
 - remove an assumption in layer_node_find() that all file systems implement
   a recursive VOP_LOCK() (unionfs doesn't).
 - require that all file systems supply vfs_vptofh and vfs_fhtovp routines.
   fill in eopnotsupp() for file systems that don't support being exported
   and remove the checks for NULL.  (layerfs calls these without checking.)
 - in union_lookup1(), don't change refcounts in the ISDOTDOT case, just
   adjust which vnode is locked.  fixes PR 33374.
 - apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().

Revision 1.33 / (download) - annotate - [select for diffs], Wed Oct 25 18:55:49 2006 UTC (13 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.32: +8 -8 lines
Diff to previous 1.32 (colored)

Defer the vnode test for directory until after the cache lookup. This makes
getcwd work with plain files too, if we allow plain files in the vnode->name

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:12 2006 UTC (13 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Use the LWP cached credentials where sane.

Revision 1.31 / (download) - annotate - [select for diffs], Sun May 14 21:15:12 2006 UTC (13 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.30: +10 -8 lines
Diff to previous 1.30 (colored)

integrate kauth.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (13 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.29: +3 -4 lines
Diff to previous 1.29 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (13 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.28: +21 -19 lines
Diff to previous 1.28 (colored)

merge ktrace-lwp.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Aug 19 02:04:03 2005 UTC (14 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.27: +3 -5 lines
Diff to previous 1.27 (colored)

64 bit inode changes.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jun 5 23:47:48 2005 UTC (14 years, 5 months ago) by thorpej
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.26: +11 -38 lines
Diff to previous 1.26 (colored)

Use ANSI function decls.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Sep 17 14:11:25 2004 UTC (15 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).

OK'd by Jason Thorpe

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 23 13:22:05 2004 UTC (15 years, 8 months ago) by junyoung
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored)

Nuke __P().

Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 17 01:45:34 2004 UTC (15 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.23: +35 -33 lines
Diff to previous 1.23 (colored)

Some whitespace fix.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 17 01:35:33 2004 UTC (15 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.22: +11 -15 lines
Diff to previous 1.22 (colored)

The vnode capability id is gone.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 17 01:29:39 2004 UTC (15 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored)

Rewind the `bp' advanced backward by cache_revlookup() if getcwd_getcache()
finally returns cache miss.

# Slightly modified from posted version so that it is cleanly patchable
# at least on 1.6 branch.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 30 12:10:57 2003 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.20: +3 -5 lines
Diff to previous 1.20 (colored)

eliminate v_id.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:33 2003 UTC (16 years, 4 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.19: +27 -30 lines
Diff to previous 1.19 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:28 2003 UTC (16 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:59 2003 UTC (16 years, 4 months ago) by darrenr
Branch: MAIN
Changes since 1.17: +31 -28 lines
Diff to previous 1.17 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 16 20:00:03 2003 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.16: +2 -7 lines
Diff to previous 1.16 (colored)

move declaration of getcwd_common and constant to the header file.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:37 2003 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +7 -6 lines
Diff to previous 1.15 (colored)

Merge the nathanw_sa branch.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:37 2001 UTC (18 years ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored)

add RCSIDs

Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 15 11:52:14 2000 UTC (18 years, 11 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, nathanw_sa, kqueue
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Jump out of the scandir loop if VOP_READDIR returns an error, avoiding
running around in circles.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:14 2000 UTC (19 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Get rid of register declarations.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 30 16:01:34 1999 UTC (19 years, 10 months ago) by eeh
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Make getcwd_common() available to COMPAT_NETBSD32 code as well.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 15 08:36:44 1999 UTC (19 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.10: +9 -10 lines
Diff to previous 1.10 (colored)

g/c redundant vn_isunder() prototype (it.s in <sys/vnode.h>)
minor KNF changes

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jul 11 09:27:23 1999 UTC (20 years, 4 months ago) by sommerfeld
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored)

Fix kern/7944: getcwd permission checking was overly restrictive.
(Don't require start directory to have read permission).

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 4 20:16:57 1999 UTC (20 years, 4 months ago) by sommerfeld
Branch: MAIN
Changes since 1.8: +130 -241 lines
Diff to previous 1.8 (colored)

Housecleaning time:

Fix and document naming convention for vnode variables (always use
lvp/lvpp and uvp/uvpp instead of a hash of cvp, vpp, dvpp, pvp, pvpp).

Delete old stale #if 0'ed code at the end.

Change error path code in getcwd_getcache() slightly (merge common
cleanup code; shouldn't affect behavior any).

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 21 05:11:09 1999 UTC (20 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.7: +91 -52 lines
Diff to previous 1.7 (colored)

Fix PR7373 for real: Rearrange locking to avoid need for LOCKPARENT in lookup

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 19 18:01:26 1999 UTC (20 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

Fix PR7761: clip overly large length rather than failing

Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 30 18:43:00 1999 UTC (20 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +10 -10 lines
Diff to previous 1.5 (colored)

Break cdir/rdir/cmask info out of struct filedesc, and put it in a new
substructure, `cwdinfo'.  Implement optional sharing of this substructure.

This is required for clone(2).

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 26 20:33:18 1999 UTC (20 years, 6 months ago) by is
Branch: MAIN
Changes since 1.4: +7 -1 lines
Diff to previous 1.4 (colored)

Fix adosfs's locking panic

Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 5 03:33:31 1999 UTC (20 years, 7 months ago) by sommerfe
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Fix compile warning (not seen with egcs, but...)

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 25 04:45:57 1999 UTC (20 years, 8 months ago) by sommerfe
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.2: +24 -1 lines
Diff to previous 1.2 (colored)

Disallow tracing of processes unless tracer's root directory is at or
above tracee's root directory.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 25 02:32:18 1999 UTC (20 years, 8 months ago) by nathanw
Branch: MAIN
Changes since 1.1: +3 -4 lines
Diff to previous 1.1 (colored)

Garbage collect a non-useful variable in getcwd_scandir().

Revision 1.1 / (download) - annotate - [select for diffs], Mon Mar 22 17:01:55 1999 UTC (20 years, 8 months ago) by sommerfe
Branch: MAIN

Change namei cache to record vnode->(parent,name) entries (for directories).
Add kernel implementation of getcwd() which uses this cache, falling
back to reading the filesystem on a cache miss.
Along for the ride: add new VOP_FSYNC flag FSYNC_RECLAIM indicating
that a reclaim is being done, so only a "shallow" fsync is needed.

This form allows you to request diff's 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.

CVSweb <>