The NetBSD Project

CVS log for src/sys/fs/tmpfs/tmpfs_vnops.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.121 / (download) - annotate - [select for diffs], Mon Sep 8 14:49:46 2014 UTC (6 weeks, 4 days ago) by gson
Branch: MAIN
CVS Tags: HEAD
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

Store symlinks without a NUL terminator so that lstat(2) returns the
correct length.  Fixes the tmpfs part of PR kern/48864.

Revision 1.98.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:28 2014 UTC (2 months ago) by tls
Branch: tls-maxphys
Changes since 1.98.2.2: +157 -132 lines
Diff to previous 1.98.2.2 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:54 2014 UTC (2 months, 2 weeks ago) by tls
Branch: tls-earlyentropy
Changes since 1.118: +5 -3 lines
Diff to previous 1.118 (colored) next main 1.119 (colored)

Rebase.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Jul 25 08:20:52 2014 UTC (3 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7
Changes since 1.119: +4 -2 lines
Diff to previous 1.119 (colored)

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.

Revision 1.119 / (download) - annotate - [select for diffs], Mon May 26 19:12:07 2014 UTC (4 months, 4 weeks ago) by rmind
Branch: MAIN
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

tmpfs_mknod: it is not our responsibility to call vput() on the directory
vnode, so remove it (and ensure *vpp is NULL while here).

Revision 1.92.2.7 / (download) - annotate - [select for diffs], Thu May 22 11:41:02 2014 UTC (5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.92.2.6: +157 -134 lines
Diff to previous 1.92.2.6 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

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.101.6.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:06 2014 UTC (5 months, 1 week ago) by rmind
Branch: rmind-smpnet
Changes since 1.101: +156 -133 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

sync with head

Revision 1.118 / (download) - annotate - [select for diffs], Thu Feb 27 16:51:38 2014 UTC (7 months, 3 weeks ago) by hannken
Branch: 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
Changes since 1.117: +2 -4 lines
Diff to previous 1.117 (colored)

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

Revision 1.117 / (download) - annotate - [select for diffs], Mon Feb 17 20:16:52 2014 UTC (8 months ago) by maxv
Branch: MAIN
Changes since 1.116: +5 -2 lines
Diff to previous 1.116 (colored)

Adapt my previous patch differently. read(2) wants EISDIR when the
object is a directory. Which also means that tmpfs_read() was returning
a wrong error code when dealing with non-regular vnodes.

Revision 1.116 / (download) - annotate - [select for diffs], Sun Feb 16 12:54:07 2014 UTC (8 months, 1 week ago) by maxv
Branch: MAIN
Changes since 1.115: +3 -6 lines
Diff to previous 1.115 (colored)

Fix tmpfs_read()'s return value; it should return EINVAL. Now consistent with
tmpfs_write().

ok christos@

Revision 1.115 / (download) - annotate - [select for diffs], Fri Feb 7 15:29:22 2014 UTC (8 months, 2 weeks ago) by hannken
Branch: MAIN
Changes since 1.114: +8 -6 lines
Diff to previous 1.114 (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.114 / (download) - annotate - [select for diffs], Thu Jan 23 10:13:56 2014 UTC (9 months ago) by hannken
Branch: MAIN
Changes since 1.113: +6 -6 lines
Diff to previous 1.113 (colored)

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.113 / (download) - annotate - [select for diffs], Fri Jan 17 10:55:02 2014 UTC (9 months ago) by hannken
Branch: MAIN
Changes since 1.112: +6 -6 lines
Diff to previous 1.112 (colored)

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.112 / (download) - annotate - [select for diffs], Fri Jan 10 16:42:38 2014 UTC (9 months, 1 week ago) by pedro
Branch: MAIN
Changes since 1.111: +4 -3 lines
Diff to previous 1.111 (colored)

Prevent a diagnostic assertion in tmpfs_rmdir() from being triggered
through an rmdir on ".." by moving it so it happens after the check for
empty directories; OK rmind@.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Jan 3 09:53:12 2014 UTC (9 months, 2 weeks ago) by hannken
Branch: MAIN
Changes since 1.110: +12 -3 lines
Diff to previous 1.110 (colored)

Fix a race where thread1 runs VOP_REMOVE() and gets preempted in
tmpfs_reclaim() before the call to tmpfs_free_node().  Thread2
runs VFS_FHTOVP() and gets a new vnode attached to the node thread1
is about to destroy.

Change tmpfs_alloc_node() to always assign non-zero generation number
and tmpfs_inactive() to set the generation number of unlinked nodes
to zero.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Dec 24 09:23:33 2013 UTC (10 months ago) by hannken
Branch: MAIN
Changes since 1.109: +11 -10 lines
Diff to previous 1.109 (colored)

It is not the task of tmpfs_open() to check for unlinked nodes.

Fix tmpfs_lookup() to always return ENOENT when looking up from
an unlinked directory.

Revision 1.109 / (download) - annotate - [select for diffs], Sun Nov 24 17:16:29 2013 UTC (10 months, 4 weeks ago) by rmind
Branch: MAIN
Changes since 1.108: +13 -12 lines
Diff to previous 1.108 (colored)

- tmpfs_construct_node: prevent from the new node construction if the
  directory was removed.  Fixes the crash reported by Nicolas Joly.
- tmpfs_reclaim: avoid race by checking tn_links with the vnode locked.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Nov 23 17:01:07 2013 UTC (11 months ago) by rmind
Branch: MAIN
Changes since 1.107: +4 -4 lines
Diff to previous 1.107 (colored)

Fix previous, add __diagused.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Nov 23 16:35:32 2013 UTC (11 months ago) by rmind
Branch: MAIN
Changes since 1.106: +63 -52 lines
Diff to previous 1.106 (colored)

- Simplify tmpfs_update(), eliminate tmpfs_note_t::tn_status and deferred
  timestamp updates.  Fix some incorrect updates and plug some missing ones.
  Should fix PR/48385.
- tmpfs_rmdir: avoid O(n) scan when the directory is not empty and whiteout
  entries were never added.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Nov 8 15:44:23 2013 UTC (11 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.105: +31 -48 lines
Diff to previous 1.105 (colored)

tmpfs: replace the broken tmpfs_dircookie() logic which uses the node
address truncated to 31 bits (required for 32-bit readdir compatibility,
e.g. linux32).  Instead, assign 2^31 range using the following logic:
- The first half of the 2^31 is assigned incrementally (the fast path).
- When exceeded, use the second half of 2^31, but manage with vmem(9).

It will require 2 billion files per-directory to trigger vmem(9) usage.
Also, while here, add some fixes for tmpfs_unmount().

Should fix PR/47739, PR/47480, PR/46088 and PR/41068.
Thanks to wiz@ for stress testing.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Nov 1 15:38:45 2013 UTC (11 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.104: +9 -6 lines
Diff to previous 1.104 (colored)

tmpfs: fix the zero-length symlink target case as NetBSD supports them.

Revision 1.104 / (download) - annotate - [select for diffs], Thu Oct 31 00:59:17 2013 UTC (11 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.103: +6 -5 lines
Diff to previous 1.103 (colored)

tmpfs_alloc_node: it is less error-prone to store the link path with
the NIL terminator included.  Adjust tmpfs_readlink() to exclude NIL.
Also, remove the check for zero-length and add some asserts.

Revision 1.103 / (download) - annotate - [select for diffs], Fri Oct 4 15:14:11 2013 UTC (12 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.102: +15 -7 lines
Diff to previous 1.102 (colored)

- tmpfs_remove: check 'appendable' flag for the parent directory as well.
  Patch from Pedro Martelletto.
- tmpfs_dir_detach: remove missleading check.
- tmpfs_link: remove unused variable.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Oct 1 23:10:25 2013 UTC (12 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.101: +7 -2 lines
Diff to previous 1.101 (colored)

tmpfs_remove: as per POSIX, "if the file's link count is not 0, the last
file status change timestamp of the file shall be marked for update."

From Pedro Martelletto.

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:28 2013 UTC (16 months ago) by tls
Branch: tls-maxphys
Changes since 1.98.2.1: +3 -3 lines
Diff to previous 1.98.2.1 (colored) to branchpoint 1.98 (colored)

resync from head

Revision 1.101 / (download) - annotate - [select for diffs], Mon Mar 18 19:35:40 2013 UTC (19 months, 1 week ago) by plunky
Branch: 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
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

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.92.2.6 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:41 2013 UTC (21 months, 1 week ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.92.2.5: +17 -6 lines
Diff to previous 1.92.2.5 (colored) to branchpoint 1.92 (colored)

sync with (a bit old) head

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:41 2012 UTC (23 months ago) by tls
Branch: tls-maxphys
Changes since 1.98: +17 -6 lines
Diff to previous 1.98 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.100 / (download) - annotate - [select for diffs], Mon Nov 5 17:27:39 2012 UTC (23 months, 2 weeks ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7
Changes since 1.99: +7 -4 lines
Diff to previous 1.99 (colored)

Excise struct componentname from the namecache.

This uglifies the interface, because several operations need to be
passed the namei flags and cache_lookup also needs for the time being
to be passed cnp->cn_nameiop. Nonetheless, it's a net benefit.

The glop should be able to go away eventually but requires structural
cleanup elsewhere first.

This change requires a kernel bump.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Nov 5 17:24:11 2012 UTC (23 months, 2 weeks ago) by dholland
Branch: MAIN
Changes since 1.98: +13 -5 lines
Diff to previous 1.98 (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.92.2.5 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:25 2012 UTC (23 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.92.2.4: +3 -3 lines
Diff to previous 1.92.2.4 (colored) to branchpoint 1.92 (colored)

sync with head

Revision 1.94.2.2 / (download) - annotate - [select for diffs], Sun Aug 12 12:59:50 2012 UTC (2 years, 2 months ago) by martin
Branch: 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
Changes since 1.94.2.1: +1 -1 lines
Diff to previous 1.94.2.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

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@.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Jul 22 00:53:21 2012 UTC (2 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

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@.

Revision 1.93.4.6 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:32 2012 UTC (2 years, 4 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.93.4.5: +0 -1268 lines
Diff to previous 1.93.4.5 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored)

sync to latest -current.

Revision 1.92.2.4 / (download) - annotate - [select for diffs], Wed May 23 10:08:09 2012 UTC (2 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.92.2.3: +2 -1270 lines
Diff to previous 1.92.2.3 (colored) to branchpoint 1.92 (colored)

sync with head.

Revision 1.97 / (download) - annotate - [select for diffs], Wed May 9 00:16:07 2012 UTC (2 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.96: +2 -1270 lines
Diff to previous 1.96 (colored)

Adapt tmpfs_rename to use genfs_rename.

Revision 1.92.2.3 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:20 2012 UTC (2 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.92.2.2: +49 -65 lines
Diff to previous 1.92.2.2 (colored) to branchpoint 1.92 (colored)

sync with head

Revision 1.93.4.5 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:38 2012 UTC (2 years, 6 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.93.4.4: +24 -35 lines
Diff to previous 1.93.4.4 (colored) to branchpoint 1.93 (colored)

sync to latest -current.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:50 2012 UTC (2 years, 7 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8
Changes since 1.95: +24 -35 lines
Diff to previous 1.95 (colored)

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.93.4.4 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:48 2012 UTC (2 years, 7 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.93.4.3: +6 -2 lines
Diff to previous 1.93.4.3 (colored) to branchpoint 1.93 (colored)

sync to -current

Revision 1.93.4.3 / (download) - annotate - [select for diffs], Tue Mar 6 09:56:27 2012 UTC (2 years, 7 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.93.4.2: +2 -6 lines
Diff to previous 1.93.4.2 (colored) to branchpoint 1.93 (colored)

sync to -current

Revision 1.93.4.2 / (download) - annotate - [select for diffs], Sun Mar 4 00:46:30 2012 UTC (2 years, 7 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.93.4.1: +6 -2 lines
Diff to previous 1.93.4.1 (colored) to branchpoint 1.93 (colored)

sync to latest -current.

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Mon Feb 27 20:25:33 2012 UTC (2 years, 7 months ago) by riz
Branch: netbsd-6
Changes since 1.94: +6 -2 lines
Diff to previous 1.94 (colored)

Pull up following revision(s) (requested by chs in ticket #58):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.95
in tmpfs_readdir(), skip the . and .. processing on removed directories,
since the latter will crash in this case.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Feb 27 16:10:56 2012 UTC (2 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4
Changes since 1.94: +6 -2 lines
Diff to previous 1.94 (colored)

in tmpfs_readdir(), skip the . and .. processing on removed directories,
since the latter will crash in this case.

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:25 2012 UTC (2 years, 8 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.93: +23 -35 lines
Diff to previous 1.93 (colored)

merge to -current.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Wed Jan 25 00:41:37 2012 UTC (2 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.92.2.1: +3 -2 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored)

uvm_loanabj: take an access pattern hint.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Jan 22 03:13:19 2012 UTC (2 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base5, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.93: +23 -35 lines
Diff to previous 1.93 (colored)

tmpfs_access: simplify, no need to separate the logic.

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Wed Jan 4 16:43:37 2012 UTC (2 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.92: +5 -2 lines
Diff to previous 1.92 (colored)

enable O->A loaning read for a few filesystems.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Nov 18 21:18:51 2011 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.92: +6 -3 lines
Diff to previous 1.92 (colored)

Obey MNT_RELATIME, the only addition is that mkdir in ufs sets IN_ACCESS too.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Sep 27 01:32:21 2011 UTC (3 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

return TMPFS_MAXNAMLEN instead of NAME_MAX

Revision 1.91 / (download) - annotate - [select for diffs], Tue Sep 27 01:10:43 2011 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

define and use TMPFS_MAXNAMLEN instead of MAXNAMLEN

Revision 1.90 / (download) - annotate - [select for diffs], Sat Aug 27 15:32:28 2011 UTC (3 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.89: +34 -15 lines
Diff to previous 1.89 (colored)

Finish and enable whiteout support for tmpfs:

- Enable VOP tmpfs_whiteout().
- Support ISWHITEOUT in tmpfs_alloc_file().
- Support DOWHITEOUT in tmpfs_remove() and tmpfs_rmdir().
- Make rmdir on a directory containing whiteouts working.

Should fix PR #35112 (tmpfs doesn't play well with unionfs).

Revision 1.89 / (download) - annotate - [select for diffs], Thu Aug 18 21:42:18 2011 UTC (3 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.88: +1192 -162 lines
Diff to previous 1.88 (colored)

Fix tmpfs_rename locking.

Fixes PR kern/36681.  tmpfs now survives dirconc, all our vfs/tmpfs
tests and rename races in atf, and a bunch of hand-written tests
that I'd commit if atf didn't find them highly indigestible.

ok dholland

Revision 1.88 / (download) - annotate - [select for diffs], Wed Jul 13 03:28:41 2011 UTC (3 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Fix renaming over mismatched non-directory types in tmpfs.

Renaming a file of any non-directory type over another file of any
other non-directory type is OK -- they need not match as long as
neither is a directory, so loosen the kassert to reflect this.

XXX Need to write test cases for this.

ok dholland, rmind

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:17 2011 UTC (3 years, 4 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.86: +10 -13 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:54 2011 UTC (3 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.86: +10 -13 lines
Diff to previous 1.86 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:24 2011 UTC (3 years, 4 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.76: +680 -697 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Sync with HEAD.

Revision 1.66.4.6 / (download) - annotate - [select for diffs], Tue May 31 03:05:00 2011 UTC (3 years, 4 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66.4.5: +680 -698 lines
Diff to previous 1.66.4.5 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

sync with head

Revision 1.86 / (download) - annotate - [select for diffs], Mon May 30 19:22:44 2011 UTC (3 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.85: +7 -6 lines
Diff to previous 1.85 (colored)

- tmpfs_getattr: perform tmpfs_update() before fetching the timestamps.
- tmpfs_rmdir: detach after tn_links decrement, so that correct event
  i.e. NOTE_DELETE would be trigerred.

Revision 1.85 / (download) - annotate - [select for diffs], Sun May 29 22:29:07 2011 UTC (3 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.84: +150 -98 lines
Diff to previous 1.84 (colored)

- Rework and document inode reference counting.  Also document inode life
  cycle (destruction part).  Perform link counting in tmpfs_dir_attach()
  and tmpfs_dir_detach(), instead of alloc/free and arbitrary places.
  Fixes PR/44285, PR/44288, PR/44657 and likely PR/42484.

- Fix the race between the lookup and inode destruction.  Fixes PR/43167
  and its duplicates PR/40088, PR/40757.

- Improve tmpfs_rename() locking a little, fix kqueue event notifications
  and also fix PR/43617.  Add simplistic tmpfs_parentcheck_p(); to be
  expanded and used for further rename() locking fixes.

- Cache directory entry "hint" in the tmpfs node, add tmpfs_dir_cached(),
  and thus avoid unnecessary lookup in tmpfs_remove() and tmpfs_rmdir().

- Set correct _PC_FILESIZEBITS value in tmpfs_pathconf().  Fixes PR/43576.

- Few minor fixes.

Revision 1.84 / (download) - annotate - [select for diffs], Tue May 24 23:16:16 2011 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.83: +46 -50 lines
Diff to previous 1.83 (colored)

- tmpfs_lookup: cache (cnp->cn_flags & ISLASTCN) in const bool; de-indent.
- Group tmpfs_{alloc,free}_dirent() with other dirent routines.

No functional changes.

Revision 1.83 / (download) - annotate - [select for diffs], Tue May 24 20:17:49 2011 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.82: +433 -490 lines
Diff to previous 1.82 (colored)

- Describe some locking.
- Add VOP argument comments, add some asserts.
- Update/fix/remove outdated/missleading comments.
- Clean up, de-indent, KNF, misc.

No functional changes intended.

Revision 1.66.4.5 / (download) - annotate - [select for diffs], Thu May 19 03:43:02 2011 UTC (3 years, 5 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66.4.4: +7 -9 lines
Diff to previous 1.66.4.4 (colored) to branchpoint 1.66 (colored)

Implement sharing of vnode_t::v_interlock amongst vnodes:
- Lock is shared amongst UVM objects using uvm_obj_setlock() or getnewvnode().
- Adjust vnode cache to handle unsharing, add VI_LOCKSHARE flag for that.
- Use sharing in tmpfs and layerfs for underlying object.
- Simplify locking in ubc_fault().
- Sprinkle some asserts.

Discussed with ad@.

Revision 1.82 / (download) - annotate - [select for diffs], Thu May 19 03:13:58 2011 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.81: +63 -63 lines
Diff to previous 1.81 (colored)

Add comments, clean up.

Revision 1.81 / (download) - annotate - [select for diffs], Thu May 19 03:11:58 2011 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.80: +2 -3 lines
Diff to previous 1.80 (colored)

Remove cache_purge(9) calls from reclamation routines in the file systems,
as vclean(9) performs it for us since Lite2 merge.

Revision 1.80 / (download) - annotate - [select for diffs], Tue May 10 00:34:26 2011 UTC (3 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.79: +3 -4 lines
Diff to previous 1.79 (colored)

yes, more C99 please (back out previous change).

Revision 1.79 / (download) - annotate - [select for diffs], Sun May 8 00:03:35 2011 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored)

no c99 please.

Revision 1.78 / (download) - annotate - [select for diffs], Mon May 2 23:42:10 2011 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.77: +47 -45 lines
Diff to previous 1.77 (colored)

Constify, update some comments, use memset() to clear pgs.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Apr 24 21:35:29 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.76: +18 -28 lines
Diff to previous 1.76 (colored)

sys_link: prevent hard links on directories (cross-mount operations are
already prevented).  File systems are no longer responsible to check this.
Clean up and add asserts (note that dvp == vp cannot happen in vop_link).

OK dholland@

Revision 1.66.4.4 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:09 2011 UTC (3 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66.4.3: +53 -15 lines
Diff to previous 1.66.4.3 (colored) to branchpoint 1.66 (colored)

sync with head

Revision 1.76 / (download) - annotate - [select for diffs], Thu Jan 13 13:35:12 2011 UTC (3 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.75: +48 -3 lines
Diff to previous 1.75 (colored)

Add some support for unionfs (not built by default).  It's still
missing at least opaque directory support, but until someone figures
out how that should work on ffs (see PR kern/kern/44383), there's
no point in trying to figure out how it should work here.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Nov 30 10:43:04 2010 UTC (3 years, 10 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.74: +2 -8 lines
Diff to previous 1.74 (colored)

Abolish the SAVENAME and HASBUF flags. There is now always a buffer,
so the path in a struct componentname is now always valid during VOP
calls.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 30 10:30:00 2010 UTC (3 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.73: +2 -8 lines
Diff to previous 1.73 (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.66.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:22 2010 UTC (4 years, 2 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.66.2.1: +116 -109 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Sync with HEAD.

Revision 1.49.10.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:36 2010 UTC (4 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.10.5: +120 -123 lines
Diff to previous 1.49.10.5 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jul 14 16:03:49 2010 UTC (4 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.72: +7 -2 lines
Diff to previous 1.72 (colored)

return same errno as ffs

Revision 1.66.4.3 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:51 2010 UTC (4 years, 3 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66.4.2: +113 -111 lines
Diff to previous 1.66.4.2 (colored) to branchpoint 1.66 (colored)

sync with head

Revision 1.72 / (download) - annotate - [select for diffs], Fri Jul 2 03:29:47 2010 UTC (4 years, 3 months ago) by rmind
Branch: MAIN
Changes since 1.71: +95 -90 lines
Diff to previous 1.71 (colored)

tmpfs_lookup: add comment, de-ident main path.  No functional change.
tmpfs_dir_attach: add assert.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:11 2010 UTC (4 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.70: +6 -6 lines
Diff to previous 1.70 (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.70 / (download) - annotate - [select for diffs], Tue Jun 22 18:32:08 2010 UTC (4 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.69: +16 -19 lines
Diff to previous 1.69 (colored)

Replace tmpfs_pool custom allocator code with a simpler layer for memory
accounting.  Use wired memory (which can be limited) for meta-data, and
kmem(9) for string allocations.

Close PR/31944.  Fix PR/38361 while here.  OK ad@.

Revision 1.66.4.2 / (download) - annotate - [select for diffs], Sun May 30 05:17:56 2010 UTC (4 years, 4 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66.4.1: +4 -14 lines
Diff to previous 1.66.4.1 (colored) to branchpoint 1.66 (colored)

sync with head

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:07 2010 UTC (4 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.66: +4 -14 lines
Diff to previous 1.66 (colored)

Sync with HEAD.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Apr 23 15:38:47 2010 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.68: +2 -12 lines
Diff to previous 1.68 (colored)

Enforce RLIMIT_FSIZE before VOP_WRITE.  This adds support to file
system drivers where it was missing from and fixes one buggy
implementation.  The arguably weird semantics of the check are
maintained (v_size vs. va_bytes, overwrite).

Revision 1.51.6.5.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:14 2010 UTC (4 years, 6 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.51.6.5: +26 -16 lines
Diff to previous 1.51.6.5 (colored) next main 1.51.6.6 (colored)

sync to netbsd-5

Revision 1.68 / (download) - annotate - [select for diffs], Mon Mar 29 13:11:33 2010 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

Stop exposing fifofs internals and leave only fifo_vnodeop_p visible.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Mar 27 02:37:34 2010 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

\n, police!

Revision 1.66.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:08 2010 UTC (4 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66: +10 -10 lines
Diff to previous 1.66 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.49.10.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:14 2010 UTC (4 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.10.4: +42 -19 lines
Diff to previous 1.49.10.4 (colored) to branchpoint 1.49 (colored)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:09 2010 UTC (4 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (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.51.6.6 / (download) - annotate - [select for diffs], Mon Dec 7 04:30:13 2009 UTC (4 years, 10 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, 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-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.51.6.5: +26 -16 lines
Diff to previous 1.51.6.5 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Pull up following revision(s) (requested by rmind in ticket #1072):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.63
tmpfs_rename: handle hard-links correctly.  Fixes PR/41236.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Nov 22 17:09:58 2009 UTC (4 years, 11 months ago) by jmmv
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.64: +6 -3 lines
Diff to previous 1.64 (colored)

Fix panic when trying to delete a directory entry (hi yamt!) by not
attempting to release a pnbuf that does not exist.

I.e. fixes "mkdir a ; unlink a/.".  And actually, this was caught by the
automated tests.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Oct 17 22:20:56 2009 UTC (5 years ago) by njoly
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.63: +12 -2 lines
Diff to previous 1.63 (colored)

Make tmpfs write fail when process file size limit is reached.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Oct 6 00:17:24 2009 UTC (5 years ago) by rmind
Branch: MAIN
Changes since 1.62: +26 -16 lines
Diff to previous 1.62 (colored)

tmpfs_rename: handle hard-links correctly.  Fixes PR/41236.

Revision 1.49.10.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:00 2009 UTC (5 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.10.3: +25 -6 lines
Diff to previous 1.49.10.3 (colored) to branchpoint 1.49 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Thu Sep 3 04:45:28 2009 UTC (5 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.61: +25 -6 lines
Diff to previous 1.61 (colored)

Implement the vnode scope and adapt tmpfs to use it.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/07/04/msg005404.html

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:33 2009 UTC (5 years, 3 months ago) by jym
Branch: jym-xensuspend
Changes since 1.53.2.1: +37 -15 lines
Diff to previous 1.53.2.1 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

Sync with HEAD.

Revision 1.49.10.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:22 2009 UTC (5 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.10.2: +37 -15 lines
Diff to previous 1.49.10.2 (colored) to branchpoint 1.49 (colored)

sync with head.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jul 3 21:17:41 2009 UTC (5 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.60: +36 -15 lines
Diff to previous 1.60 (colored)

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

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jun 23 19:36:39 2009 UTC (5 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored)

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

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:55 2009 UTC (5 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.53: +15 -24 lines
Diff to previous 1.53 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.49.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:44 2009 UTC (5 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.10.1: +37 -53 lines
Diff to previous 1.49.10.1 (colored) to branchpoint 1.49 (colored)

sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Apr 29 11:01:50 2009 UTC (5 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, jym-xensuspend-base
Changes since 1.58: +3 -5 lines
Diff to previous 1.58 (colored)

replace outdated comment.  no functional change

Revision 1.51.4.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:58 2009 UTC (5 years, 5 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.51.4.2: +14 -21 lines
Diff to previous 1.51.4.2 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Revision 1.51.6.5 / (download) - annotate - [select for diffs], Sun Apr 19 15:27:32 2009 UTC (5 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.51.6.4: +4 -2 lines
Diff to previous 1.51.6.4 (colored) to branchpoint 1.51 (colored)

Pull up following revision(s) (requested by ad in ticket #690):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.58
plug some pnbuf leaks.

Revision 1.51.6.4 / (download) - annotate - [select for diffs], Sun Apr 19 15:26:35 2009 UTC (5 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.51.6.3: +3 -2 lines
Diff to previous 1.51.6.3 (colored) to branchpoint 1.51 (colored)

Pull up following revision(s) (requested by christos in ticket #690):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.57
SAVENAME was not set for rename and delete as required
Patch from christos, fixes pr 41183

Revision 1.58 / (download) - annotate - [select for diffs], Wed Apr 15 11:41:25 2009 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.57: +4 -2 lines
Diff to previous 1.57 (colored)

plug some pnbuf leaks.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Apr 11 00:21:57 2009 UTC (5 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored)

SAVENAME was not set for rename and delete as required

Patch from christos, fixes pr 41183

Revision 1.51.6.3 / (download) - annotate - [select for diffs], Wed Apr 8 23:08:07 2009 UTC (5 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC4
Changes since 1.51.6.2: +6 -12 lines
Diff to previous 1.51.6.2 (colored) to branchpoint 1.51 (colored)

Pull up following revision(s) (requested by tron in ticket #680):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.55
Fix yet another recent crashy bug in tmpfs rename: since the source
dirent is no longer cached in lookup and we do the lookup ourselves
in rename, we are most definitely not allowed to assert that it
matches the source vnode passed as an argument.  In case the source
node does not exist or has been replaced, punt with ENOENT.
Also, nuke some misleading prehistoric comments which haven't been
valid in over a year.
Fixes PR kern/41128 by Nicolas Joly

Revision 1.56 / (download) - annotate - [select for diffs], Sun Apr 5 15:10:41 2009 UTC (5 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.55: +4 -10 lines
Diff to previous 1.55 (colored)

Invariants should be tested for with KASSERT instead of semi-pretending
that them not holding is an acceptable error condition.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Apr 3 14:47:40 2009 UTC (5 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.54: +6 -12 lines
Diff to previous 1.54 (colored)

Fix yet another recent crashy bug in tmpfs rename: since the source
dirent is no longer cached in lookup and we do the lookup ourselves
in rename, we are most definitely not allowed to assert that it
matches the source vnode passed as an argument.  In case the source
node does not exist or has been replaced, punt with ENOENT.

Also, nuke some misleading prehistoric comments which haven't been
valid in over a year.

Fixes PR kern/41128 by Nicolas Joly

Revision 1.51.6.2 / (download) - annotate - [select for diffs], Tue Mar 24 20:22:44 2009 UTC (5 years, 7 months ago) by snj
Branch: netbsd-5
Changes since 1.51.6.1: +5 -3 lines
Diff to previous 1.51.6.1 (colored) to branchpoint 1.51 (colored)

Pull up following revision(s) (requested by pooka in ticket #590):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.54
Release dvp in mknod error branch.
Nicolas Joly, PR kern/41006

Revision 1.54 / (download) - annotate - [select for diffs], Thu Mar 19 13:47:32 2009 UTC (5 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.53: +5 -3 lines
Diff to previous 1.53 (colored)

Release dvp in mknod error branch.

Nicolas Joly, PR kern/41006

Revision 1.51.4.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:35 2009 UTC (5 years, 7 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.51.4.1: +7 -2 lines
Diff to previous 1.51.4.1 (colored) to branchpoint 1.51 (colored)

Sync with HEAD.

Revision 1.51.6.1 / (download) - annotate - [select for diffs], Mon Feb 16 03:29:01 2009 UTC (5 years, 8 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC3
Changes since 1.51: +7 -2 lines
Diff to previous 1.51 (colored)

Pull up following revision(s) (requested by pooka in ticket #432):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.53
If fdvp is tvp, do nothing.  Prevents local DoS panic described in
PR kern/38219... maybe.  This is hastily concocted fix for 5.0 and
I'm not sure if it has side-effects.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Feb 7 19:42:57 2009 UTC (5 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.52: +7 -2 lines
Diff to previous 1.52 (colored)

If fdvp is tvp, do nothing.  Prevents local DoS panic described in
PR kern/38219... maybe.  This is hastily concocted fix for 5.0 and
I'm not sure if it has side-effects.

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:36 2009 UTC (5 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.51: +7 -16 lines
Diff to previous 1.51 (colored)

Sync with HEAD.

Revision 1.49.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:17 2009 UTC (5 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49.6.2: +5 -14 lines
Diff to previous 1.49.6.2 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

Sync with HEAD.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:59 2008 UTC (5 years, 10 months ago) by haad
Branch: haad-dm
Changes since 1.51: +7 -16 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Nov 26 20:17:33 2008 UTC (5 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.51: +7 -16 lines
Diff to previous 1.51 (colored)

Rototill all remaining file systems to use ubc_uiomove() instead
of the ubc_alloc() - uiomove() - ubc_release() dance.

Revision 1.49.6.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:13 2008 UTC (6 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49.6.1: +12 -15 lines
Diff to previous 1.49.6.1 (colored) to branchpoint 1.49 (colored)

Sync with HEAD.

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:29 2008 UTC (6 years, 3 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.50: +14 -17 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Sync with head.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:49 2008 UTC (6 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.50: +14 -17 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jun 19 19:03:44 2008 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: 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, netbsd-5-base, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Changes since 1.50: +14 -17 lines
Diff to previous 1.50 (colored)

- setting the birthdate is valid in setattr.
- don't call nanotime if not needed.
- don't call tempfs_update() if tempfs_chtimes succeeded, because it just did.

Revision 1.32.2.2.2.2 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:41 2008 UTC (6 years, 4 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.32.2.2.2.1: +20 -4 lines
Diff to previous 1.32.2.2.2.1 (colored) next main 1.32.2.3 (colored)

Sync with netbsd-4.

Revision 1.49.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:06 2008 UTC (6 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49: +2 -9 lines
Diff to previous 1.49 (colored)

Sync with HEAD.

Revision 1.49.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:03 2008 UTC (6 years, 5 months ago) by yamt
Branch: yamt-pf42
Changes since 1.49: +2 -9 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

sync with head.

Revision 1.49.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:21 2008 UTC (6 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49: +2 -9 lines
Diff to previous 1.49 (colored)

sync with head.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (6 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.49: +2 -9 lines
Diff to previous 1.49 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.39.6.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:57 2008 UTC (6 years, 7 months ago) by matt
Branch: matt-armv6
Changes since 1.39.6.3: +3 -19 lines
Diff to previous 1.39.6.3 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

sync with HEAD

Revision 1.40.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:40 2008 UTC (6 years, 8 months ago) by mjf
Branch: mjf-devfs
Changes since 1.40.2.2: +97 -110 lines
Diff to previous 1.40.2.2 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

Sync with HEAD.

Revision 1.24.6.10 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:53 2008 UTC (6 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.9: +3 -3 lines
Diff to previous 1.24.6.9 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Feb 6 11:22:12 2008 UTC (6 years, 8 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Drop trailing whitespace.

Revision 1.24.6.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:04 2008 UTC (6 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.8: +2 -18 lines
Diff to previous 1.24.6.8 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.32.2.4 / (download) - annotate - [select for diffs], Fri Feb 1 14:55:49 2008 UTC (6 years, 8 months ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.32.2.3: +18 -2 lines
Diff to previous 1.32.2.3 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

Pull up following revision(s) (requested by pooka in ticket #1010):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.43
Fix a race condition: in case two source paths hardlinked to the
same file were renamed simultaneously, there was a window where
directory entry cached in the vnode during lookup would be replaced
before calling rename.  This lead to one directory entry getting
renamed twice and the other one getting zero renames.  Do a relookup
in rename to make sure we have the correct directory entry.
Thanks go to Greg Oster for reporting the problem, helping with
debugging and thoroughly testing the patch.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jan 31 13:13:20 2008 UTC (6 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.47: +2 -14 lines
Diff to previous 1.47 (colored)

Remove debugging code that's no longer needed.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jan 30 09:50:21 2008 UTC (6 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.46: +2 -5 lines
Diff to previous 1.46 (colored)

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.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jan 25 14:32:13 2008 UTC (6 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.45: +2 -3 lines
Diff to previous 1.45 (colored)

Remove VOP_LEASE. Discussed on tech-kern.

Revision 1.24.6.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:55 2008 UTC (6 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.7: +108 -105 lines
Diff to previous 1.24.6.7 (colored) to branchpoint 1.24 (colored)

sync with head

Revision 1.39.6.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:53 2008 UTC (6 years, 9 months ago) by matt
Branch: matt-armv6
Changes since 1.39.6.2: +106 -81 lines
Diff to previous 1.39.6.2 (colored) to branchpoint 1.39 (colored)

sync with HEAD

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:40 2008 UTC (6 years, 9 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.44: +108 -105 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Sync with HEAD

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:47 2008 UTC (6 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.44: +108 -105 lines
Diff to previous 1.44 (colored)

Merge vmlocking2 to head.

Revision 1.44.2.11 / (download) - annotate - [select for diffs], Thu Dec 27 23:13:13 2007 UTC (6 years, 9 months ago) by ad
Branch: vmlocking2
Changes since 1.44.2.10: +3 -2 lines
Diff to previous 1.44.2.10 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

Uninit variable warning

Revision 1.44.2.10 / (download) - annotate - [select for diffs], Thu Dec 27 22:21:59 2007 UTC (6 years, 9 months ago) by ad
Branch: vmlocking2
Changes since 1.44.2.9: +6 -6 lines
Diff to previous 1.44.2.9 (colored) to branchpoint 1.44 (colored)

tmpfs_rename: don't free garbage if failing a cross-device rename.

Revision 1.44.2.9 / (download) - annotate - [select for diffs], Thu Dec 27 17:54:34 2007 UTC (6 years, 9 months ago) by ad
Branch: vmlocking2
Changes since 1.44.2.8: +10 -10 lines
Diff to previous 1.44.2.8 (colored) to branchpoint 1.44 (colored)

tmpfs_rename: reject cross-mount renames before doing anything else.

Revision 1.44.2.8 / (download) - annotate - [select for diffs], Sat Dec 22 00:33:16 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.44.2.7: +5 -4 lines
Diff to previous 1.44.2.7 (colored) to branchpoint 1.44 (colored)

Fix error in previous.

Revision 1.44.2.7 / (download) - annotate - [select for diffs], Sat Dec 22 00:31:15 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.44.2.6: +63 -46 lines
Diff to previous 1.44.2.6 (colored) to branchpoint 1.44 (colored)

tmpfs_rename: fix a couple more problems.

Revision 1.44.2.6 / (download) - annotate - [select for diffs], Thu Dec 13 17:55:19 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.44.2.5: +29 -32 lines
Diff to previous 1.44.2.5 (colored) to branchpoint 1.44 (colored)

Kill tn_lookup_dirent and find the correct node using the supplied
componentname.

Revision 1.44.2.5 / (download) - annotate - [select for diffs], Thu Dec 13 16:59:01 2007 UTC (6 years, 10 months ago) by yamt
Branch: vmlocking2
Changes since 1.44.2.4: +2 -1 lines
Diff to previous 1.44.2.4 (colored) to branchpoint 1.44 (colored)

tmpfs_lookup: don't bother to cache dotdot entry.  fixes rename.

Revision 1.44.2.4 / (download) - annotate - [select for diffs], Thu Dec 13 14:58:31 2007 UTC (6 years, 10 months ago) by yamt
Branch: vmlocking2
Changes since 1.44.2.3: +3 -3 lines
Diff to previous 1.44.2.3 (colored) to branchpoint 1.44 (colored)

tmpfs_rmdir: fix an assertion.

Revision 1.44.2.3 / (download) - annotate - [select for diffs], Wed Dec 12 17:38:40 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.44.2.2: +3 -3 lines
Diff to previous 1.44.2.2 (colored) to branchpoint 1.44 (colored)

Minor corrections to previous.

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Wed Dec 12 17:33:15 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.44.2.1: +3 -3 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored)

- Don't use LK_RETRY in tmpfs_alloc_vp().
- Reduce cosmetic diffs to head.

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:22 2007 UTC (6 years, 10 months ago) by mjf
Branch: mjf-devfs
Changes since 1.40.2.1: +25 -12 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored)

Sync with HEAD.

Revision 1.24.6.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:12 2007 UTC (6 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.6: +25 -12 lines
Diff to previous 1.24.6.6 (colored) to branchpoint 1.24 (colored)

sync with head

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:11 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.44: +19 -33 lines
Diff to previous 1.44 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.39.4.4 / (download) - annotate - [select for diffs], Tue Nov 27 19:37:55 2007 UTC (6 years, 10 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.39.4.3: +25 -12 lines
Diff to previous 1.39.4.3 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:55 2007 UTC (6 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.43: +7 -10 lines
Diff to previous 1.43 (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.43 / (download) - annotate - [select for diffs], Fri Nov 23 17:16:22 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.42: +20 -4 lines
Diff to previous 1.42 (colored)

Fix a race condition: in case two source paths hardlinked to the
same file were renamed simultaneously, there was a window where
directory entry cached in the vnode during lookup would be replaced
before calling rename.  This lead to one directory entry getting
renamed twice and the other one getting zero renames.  Do a relookup
in rename to make sure we have the correct directory entry.

Thanks go to Greg Oster for reporting the problem, helping with
debugging and thoroughly testing the patch.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:32 2007 UTC (6 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Sync with HEAD.

Revision 1.39.10.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:51 2007 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.39: +6 -13 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with HEAD

Revision 1.39.4.3 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:56 2007 UTC (6 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.39.4.2: +23 -14 lines
Diff to previous 1.39.4.2 (colored) to branchpoint 1.39 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Nov 10 03:36:16 2007 UTC (6 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.41: +21 -12 lines
Diff to previous 1.41 (colored)

Back out the tmpfs changes; there appears to be a bug lurking.

Revision 1.39.6.2 / (download) - annotate - [select for diffs], Thu Nov 8 10:59:58 2007 UTC (6 years, 11 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.39.6.1: +14 -23 lines
Diff to previous 1.39.6.1 (colored) to branchpoint 1.39 (colored)

sync with -HEAD

Revision 1.39.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:22 2007 UTC (6 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.39: +6 -13 lines
Diff to previous 1.39 (colored)

sync with HEAD

Revision 1.39.4.2 / (download) - annotate - [select for diffs], Tue Nov 6 21:16:24 2007 UTC (6 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.39.4.1: +14 -23 lines
Diff to previous 1.39.4.1 (colored) to branchpoint 1.39 (colored)

Sync with HEAD.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 6 19:50:56 2007 UTC (6 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.40: +14 -23 lines
Diff to previous 1.40 (colored)

Merge from vmlocking.

Revision 1.37.4.8 / (download) - annotate - [select for diffs], Thu Nov 1 22:48:26 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.37.4.7: +3 -3 lines
Diff to previous 1.37.4.7 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

Disable the leaked node KASSERT in tmpfs_rmdir for the time being.

Revision 1.24.6.6 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:15 2007 UTC (6 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.5: +6 -13 lines
Diff to previous 1.24.6.5 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.39.4.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:23 2007 UTC (7 years ago) by joerg
Branch: jmcneill-pm
Changes since 1.39: +6 -13 lines
Diff to previous 1.39 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Oct 23 19:49:01 2007 UTC (7 years ago) by dyoung
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.39: +6 -13 lines
Diff to previous 1.39 (colored)

Borrow a clue from the vmlocking branch, and consolidate all of
the vput(9)ing in tmpfs_rmdir() in one place.  No functional change
intended.

Revision 1.37.4.7 / (download) - annotate - [select for diffs], Thu Oct 18 23:24:56 2007 UTC (7 years ago) by ad
Branch: vmlocking
Changes since 1.37.4.6: +3 -3 lines
Diff to previous 1.37.4.6 (colored) to branchpoint 1.37 (colored)

tmpfs_rmdir: move assertion to catch leaked tmpfs_nodes to the correct
spot.

Revision 1.37.4.6 / (download) - annotate - [select for diffs], Mon Oct 8 20:19:29 2007 UTC (7 years ago) by ad
Branch: vmlocking
Changes since 1.37.4.5: +3 -2 lines
Diff to previous 1.37.4.5 (colored) to branchpoint 1.37 (colored)

- Don't leave nodes dangling in order to keep track of the inode generation
  number. Free them back to the pool as soon as the referenced file becomes
  unused. Using arc4random() for the generation and ino_t based off the
  node's in-core address is just about as as good as a disk-based file
  system is going to give.
- Add assertion to catch empty directories with linkcount > 1 being freed.
  This fires frequently but I haven't tracked the bug down yet..
- Use kmem_alloc.

Revision 1.37.4.5 / (download) - annotate - [select for diffs], Sun Sep 16 19:04:32 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.37.4.4: +4 -5 lines
Diff to previous 1.37.4.4 (colored) to branchpoint 1.37 (colored)

Checkpoint work in progress on the vnode lifecycle and reference counting
stuff. This makes it work properly without kernel_lock and fixes a few
quite old bugs. See vfs_subr.c 1.283.2.17 for details.

Revision 1.24.6.5 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:36 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.4: +28 -9 lines
Diff to previous 1.24.6.4 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.32.2.2.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:05:02 2007 UTC (7 years, 1 month ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.32.2.2: +25 -8 lines
Diff to previous 1.32.2.2 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.37.4.4 / (download) - annotate - [select for diffs], Wed Aug 22 20:24:52 2007 UTC (7 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.37.4.3: +13 -30 lines
Diff to previous 1.37.4.3 (colored) to branchpoint 1.37 (colored)

Fix some more concurrency problems.

Revision 1.37.4.3 / (download) - annotate - [select for diffs], Mon Aug 20 21:26:12 2007 UTC (7 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.37.4.2: +25 -8 lines
Diff to previous 1.37.4.2 (colored) to branchpoint 1.37 (colored)

Sync with HEAD.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:02 2007 UTC (7 years, 2 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.38: +25 -8 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Tue Jul 24 10:14:47 2007 UTC (7 years, 3 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-base-1, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.32.2.2: +25 -8 lines
Diff to previous 1.32.2.2 (colored) to branchpoint 1.32 (colored)

Pull up following revision(s) (requested by jmmv in ticket #786):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.39
	regress/sys/fs/tmpfs/h_tools.c: revision 1.8
	regress/sys/fs/tmpfs/t_rename: revision 1.6
	regress/sys/fs/tmpfs/t_rename: revision 1.7
Add test cases to ensure that:
1) Renaming a directory to an empty directory works by replacing
the target directory.
2) Renaming a directory to a non-empty directory fails.
This is all by calling rename(2) directly, not mv(1).

tmpfs currently fails those tests, raising an assertion if
DIAGNOSTIC is
enabled.  A fix will hopefully follow soon.
Found by pooka@.

Add some more tests to ensure that renaming a file to a directory
and a directory to a file fails with the appropriate error codes.
tmpfs still fails these tests, but the fix is almost ready to go in.

Multiple fixes for tmpfs' rename operation:
- Raise an error if renaming a file to a directory.
- Raise an error if renaming a directory to a file.
- Raise an error if renaming a directory to a non-empty directory.
- Properly allow renaming a directory to an empty directory.

The system could previously crash if the kernel had DIAGNOSTIC
enabled, as this triggered a bogus assertion.
Problem found by Geoff Wing.

Revision 1.39.12.2 / (download) - annotate - [select for diffs], Mon Jul 23 15:41:02 2007 UTC (7 years, 3 months ago) by jmmv
Branch: matt-mips64
Changes since 1.39.12.1: +1493 -0 lines
Diff to previous 1.39.12.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Multiple fixes for tmpfs' rename operation:

- Raise an error if renaming a file to a directory.
- Raise an error if renaming a directory to a file.
- Raise an error if renaming a directory to a non-empty directory.
- Properly allow renaming a directory to an empty directory.
  The system could previously crash if the kernel had DIAGNOSTIC enabled,
  as this triggered a bogus assertion.

Problem found by Geoff Wing.

Revision 1.39.12.1, Mon Jul 23 15:41:01 2007 UTC (7 years, 3 months ago) by jmmv
Branch: matt-mips64
Changes since 1.39: +0 -1493 lines
FILE REMOVED

file tmpfs_vnops.c was added on branch matt-mips64 on 2007-07-23 15:41:02 +0000

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jul 23 15:41:01 2007 UTC (7 years, 3 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.38: +25 -8 lines
Diff to previous 1.38 (colored)

Multiple fixes for tmpfs' rename operation:

- Raise an error if renaming a file to a directory.
- Raise an error if renaming a directory to a file.
- Raise an error if renaming a directory to a non-empty directory.
- Properly allow renaming a directory to an empty directory.
  The system could previously crash if the kernel had DIAGNOSTIC enabled,
  as this triggered a bogus assertion.

Problem found by Geoff Wing.

Revision 1.37.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:35 2007 UTC (7 years, 3 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.37: +5 -3 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:50 2007 UTC (7 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.37: +5 -3 lines
Diff to previous 1.37 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.37.4.2 / (download) - annotate - [select for diffs], Sun May 13 17:36:33 2007 UTC (7 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.37.4.1: +5 -3 lines
Diff to previous 1.37.4.1 (colored) to branchpoint 1.37 (colored)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Wed Mar 21 20:10:19 2007 UTC (7 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.37: +10 -10 lines
Diff to previous 1.37 (colored)

GC the simplelock/spinlock debugging stuff.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:15 2007 UTC (7 years, 7 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.35: +6 -6 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.24.6.4 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:00 2007 UTC (7 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.3: +27 -21 lines
Diff to previous 1.24.6.3 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Feb 22 06:37:00 2007 UTC (7 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored)

TRUE -> true, FALSE -> false

Revision 1.36 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:04 2007 UTC (7 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sat Feb 17 23:27:46 2007 UTC (7 years, 8 months ago) by tron
Branch: netbsd-4
Branch point for: wrstuden-fixsa
Changes since 1.32.2.1: +5 -23 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored)

Apply patch (requested by chs in ticket #422):
- Fix various deadlock problems with nullfs and unionfs.
- Speed up path lookups by upto 25%.

Revision 1.25.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:05 2007 UTC (7 years, 9 months ago) by ad
Branch: newlock2
Changes since 1.25.4.1: +26 -38 lines
Diff to previous 1.25.4.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Sync with head.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Thu Jan 4 20:29:50 2007 UTC (7 years, 9 months ago) by bouyer
Branch: netbsd-4
Changes since 1.32: +21 -16 lines
Diff to previous 1.32 (colored)

Pull up following revision(s) (requested by pooka in ticket #324):
	regress/sys/fs/tmpfs/t_remove: revision 1.8
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.34
* fix locking gotchas when trying to unlink "."
* return standard EPERM when trying to unlink a directory
* reorder some checks in rmdir avoid problems if trying to rmdir ".."
* add a test to check that unlink of "." is not succesful

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jan 4 15:42:37 2007 UTC (7 years, 9 months ago) by elad
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 2 11:02:19 2007 UTC (7 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.33: +21 -16 lines
Diff to previous 1.33 (colored)

* fix locking gotchas when trying to unlink "."
* return standard EPERM when trying to unlink a directory
* reorder some checks in rmdir avoid problems if trying to rmdir ".."

jmmv ok

Revision 1.24.6.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:01 2006 UTC (7 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.2: +51 -43 lines
Diff to previous 1.24.6.2 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:43 2006 UTC (7 years, 10 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.25: +47 -38 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

sync with head.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:51 2006 UTC (7 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.32: +5 -23 lines
Diff to previous 1.32 (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.25.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:21 2006 UTC (7 years, 11 months ago) by ad
Branch: newlock2
Changes since 1.25: +44 -17 lines
Diff to previous 1.25 (colored)

Sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 9 15:36:30 2006 UTC (7 years, 11 months ago) by jmmv
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.31: +11 -2 lines
Diff to previous 1.31 (colored)

Opening a file after it has been removed (e.g. rmdir $(pwd)) has to fail.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 9 15:06:03 2006 UTC (7 years, 11 months ago) by jmmv
Branch: MAIN
Changes since 1.30: +8 -13 lines
Diff to previous 1.30 (colored)

Audit kqueue notifications.  The reference behavior is taken from MFS and
is represented in the regression tests.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 7 14:08:13 2006 UTC (7 years, 11 months ago) by jmmv
Branch: MAIN
Changes since 1.29: +2 -3 lines
Diff to previous 1.29 (colored)

tmpfs_open cannot assume that the node to be open is still linked to a
directory, so remove an invalid assertion.  Otherwise the kernel incorrectly
panics when accessing the current directory after it has been removed.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Nov 5 16:59:18 2006 UTC (7 years, 11 months ago) by jmmv
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Truncate directory cookies to 31 bits to avoid problems exposed in Linux
binaries which cast the returned values to 64-bits and fail due to sign
expansion.  More details are provided in the big comment in tmpfs.h that
describes how the new tmpfs_dircookie works.

This is a rather ugly hack that shall be fixed with a cleaner solution,
but this resolves the problem in an effective way.

Fixes kern PR/32034.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Nov 2 15:35:25 2006 UTC (7 years, 11 months ago) by jmmv
Branch: MAIN
Changes since 1.27: +26 -3 lines
Diff to previous 1.27 (colored)

Make tmpfs_getpages behave as genfs_getpages by ignoring the input pages
array's contents and returning all the requested pages.  Otherwise there
are problems (accessing invalid memory) when the a_m vector is passed
uninitialized as the NFS server code does.  Fixes PR kern/34959.

Note that this is not a "real" fix.  While this makes tmpfs's getpages
operation consistent with the behavior of other file systems, it does
not resolve the different semantics between uvn_get and uao_get as
described in PR kern/32166.  I'm adding a comment in the code mentioning
exactly this so that it can be reviewed when this last problem is
addressed.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Oct 30 15:23:20 2006 UTC (7 years, 11 months ago) by jmmv
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

Update the file's ctime after a rename.  Thanks to pooka@.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 30 15:09:47 2006 UTC (7 years, 11 months ago) by jmmv
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

When renaming a file, we have to modify the mtime of the directory holding
it, not the mtime of the file itself.  This fixes the problems exposed when
unpacking software under a tmpfs and trying to build it because dependencies
were not calculated properly (e.g. autoconf 2.60 as reported by tls@).

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:06 2006 UTC (8 years, 1 month ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.20: +35 -28 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

sync with head

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:34 2006 UTC (8 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.22.2.1: +6 -7 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

sync with head

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:10 2006 UTC (8 years, 3 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.24: +6 -7 lines
Diff to previous 1.24 (colored)

Use the LWP cached credentials where sane.

Revision 1.24.6.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:36 2006 UTC (8 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.6.1: +1460 -0 lines
Diff to previous 1.24.6.1 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.20.4.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:05 2006 UTC (8 years, 4 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.20.4.1: +8 -7 lines
Diff to previous 1.20.4.1 (colored) next main 1.21 (colored)

Sync with head.

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (8 years, 5 months ago) by tron
Branch: peter-altq
Changes since 1.22: +8 -7 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (8 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.22: +8 -7 lines
Diff to previous 1.22 (colored)

sync with head.

Revision 1.24.6.1, Mon May 15 00:05:16 2006 UTC (8 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24: +0 -1460 lines
FILE REMOVED

file tmpfs_vnops.c was added on branch yamt-lazymbuf on 2006-06-21 15:09:36 +0000

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 15 00:05:16 2006 UTC (8 years, 5 months ago) by christos
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
Branch point for: yamt-lazymbuf
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

kauth fallout

Revision 1.23 / (download) - annotate - [select for diffs], Sun May 14 21:31:52 2006 UTC (8 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.22: +7 -7 lines
Diff to previous 1.22 (colored)

integrate kauth.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (8 years, 6 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.20: +28 -21 lines
Diff to previous 1.20 (colored)

Sync with head.

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Tue Apr 18 12:03:18 2006 UTC (8 years, 6 months ago) by elad
Branch: elad-kernelauth
Changes since 1.22.4.1: +5 -5 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

adapt to kauth, pointed out by yamt@, thanks!

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:31:33 2006 UTC (8 years, 7 months ago) by elad
Branch: elad-kernelauth
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

Adapt to kernel authorization KPI.

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:46 2006 UTC (8 years, 7 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.19.2.2: +7 -3 lines
Diff to previous 1.19.2.2 (colored) next main 1.20 (colored)

sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 21 03:19:45 2006 UTC (8 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, 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.21: +7 -3 lines
Diff to previous 1.21 (colored)

PR/31850: Geoff Wing: tmpfs does not honor sticky directories.

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:18 2006 UTC (8 years, 8 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.19.2.1: +23 -20 lines
Diff to previous 1.19.2.1 (colored)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Feb 16 14:57:50 2006 UTC (8 years, 8 months ago) by jmmv
Branch: MAIN
Changes since 1.20: +23 -20 lines
Diff to previous 1.20 (colored)

Do not use unnamed structures/unions without instances; they break the
build under vax because of gcc 2.95.  Found by he@.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:20 2006 UTC (8 years, 8 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jan 26 20:07:34 2006 UTC (8 years, 8 months ago) by jmmv
Branch: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

Cut a too long line introduced during the conversion to lwps.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (8 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.18: +13 -13 lines
Diff to previous 1.18 (colored)

merge ktrace-lwp.

Revision 1.17.2.4 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:11 2005 UTC (8 years, 10 months ago) by christos
Branch: ktrace-lwp
Changes since 1.17.2.3: +6 -4 lines
Diff to previous 1.17.2.3 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 29 22:52:02 2005 UTC (8 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.17: +6 -4 lines
Diff to previous 1.17 (colored)

merge yamt-readahead branch.

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Sat Nov 19 17:37:00 2005 UTC (8 years, 11 months ago) by yamt
Branch: yamt-readahead
Changes since 1.17: +6 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

- as read-ahead context is per-vnode now,
  there are less reasons to make VOP_READ call uvm_ra_request explicitly.
  move it to pager (uvn_get) so that it can handle accesses via mmap as well.
- pass advice to pager via ubc.
- tweak DPRINTF.

XXX can be disturbed by PGO_LOCKED.

XXX it's controversial where it should be done.
(uvm_fault, uvn_get or genfs_getpages.)

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Sat Nov 12 17:00:57 2005 UTC (8 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.17.2.2: +13 -13 lines
Diff to previous 1.17.2.2 (colored) to branchpoint 1.17 (colored)

Adapt to branch

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (8 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.17.2.1: +1449 -0 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored)

Sync with HEAD. Here we go again...

Revision 1.17.2.1, Wed Nov 2 12:38:59 2005 UTC (8 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.17: +0 -1449 lines
FILE REMOVED

file tmpfs_vnops.c was added on branch ktrace-lwp on 2005-11-10 14:09:44 +0000

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 2 12:38:59 2005 UTC (8 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base
Branch point for: yamt-readahead, ktrace-lwp
Changes since 1.16: +12 -83 lines
Diff to previous 1.16 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sat Oct 29 17:28:19 2005 UTC (8 years, 11 months ago) by yamt
Branch: yamt-vop
Changes since 1.16.2.1: +11 -13 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

as tmpfs_update never fails, make it return void.
suggested by Chuck Silvers.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 07:13:14 2005 UTC (9 years ago) by yamt
Branch: yamt-vop
Changes since 1.16: +7 -76 lines
Diff to previous 1.16 (colored)

adapt tmpfs.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 3 19:36:42 2005 UTC (9 years ago) by jmmv
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.15: +7 -4 lines
Diff to previous 1.15 (colored)

Follow symlinks during lookup (i.e., don't stop too early) so that symlinks
to directories work as expected.  Diagnosed by Greg Oster.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Sep 29 19:48:21 2005 UTC (9 years ago) by jmmv
Branch: MAIN
Changes since 1.14: +17 -2 lines
Diff to previous 1.14 (colored)

Implement the tmpfs_advlock operation.  Makes "user-level" file locking
work (aka lockf(3)).

Revision 1.14 / (download) - annotate - [select for diffs], Wed Sep 28 23:42:14 2005 UTC (9 years ago) by yamt
Branch: MAIN
Changes since 1.13: +5 -23 lines
Diff to previous 1.13 (colored)

tmpfs_getattr: return up-to-date timestamps.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 26 00:46:59 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

tmpfs_rename: fix lock/unlock mismatch.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Sep 23 15:36:15 2005 UTC (9 years, 1 month ago) by jmmv
Branch: MAIN
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored)

Kill the tmpfs(9) manual page; it was just documenting internal details of
tmpfs' "API" and was already rotting.

Instead, merge all the relevant comments into the code.  This includes
acknowledgements to Google's Summer of Code 2005 program (they were in the
AUTHORS section of tmpfs(9) before), so all the files need to be changed
to include this sentence alongside the title.  (Note that this was not a
requirement of the program.)

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 23 14:27:55 2005 UTC (9 years, 1 month ago) by jmmv
Branch: MAIN
Changes since 1.10: +14 -2 lines
Diff to previous 1.10 (colored)

Lock the source directory during the rename operation so that we are safe
to modify it (I hope this is the correct way to go).  Avoids triggering an
assertion in the tmpfs_dir_detach function, shown by the t_rename
regression test.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 15 12:34:35 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.9: +42 -43 lines
Diff to previous 1.9 (colored)

change the way to handle directory "offsets" so that
they won't be changed when removing entries in the directory.
some applications like cvs rely on this.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 14 20:27:26 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.8: +16 -3 lines
Diff to previous 1.8 (colored)

tmpfs_getpages: don't create pages past eof.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Sep 14 10:40:49 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored)

tmpfs_read: handle requests past EOF.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 13 20:02:05 2005 UTC (9 years, 1 month ago) by jmmv
Branch: MAIN
Changes since 1.6: +41 -41 lines
Diff to previous 1.6 (colored)

Adapt recent changes to the style of the rest of the file.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 13 14:29:18 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.5: +99 -47 lines
Diff to previous 1.5 (colored)

- don't waste/leak kva.
- implement getpages/putpages.  support mmap.
- eliminate meaningless memcpy.
- ubcify.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 13 14:27:29 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored)

tmpfs_read: return EISDIR rather than EINVAL for non-VREG files.
XXX should we follow nfs, which uses EPERM?

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 13 12:11:27 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.3: +3 -5 lines
Diff to previous 1.3 (colored)

tmpfs_link: always free pnbuf.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Sep 12 16:55:01 2005 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.2: +20 -18 lines
Diff to previous 1.2 (colored)

convert to use it nanotime, but don't call it unless it is necessary.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 10 22:28:57 2005 UTC (9 years, 1 month ago) by jmmv
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

wiz@ remembers that the preferred way to spell file-system in NetBSD is
file system.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 10 19:20:51 2005 UTC (9 years, 1 month ago) by jmmv
Branch: MAIN

Initial addition of tmpfs, an efficient memory file-system.  This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).

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 <webmaster@jp.NetBSD.org>