The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.2.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:28 2014 UTC (2 months, 1 week ago) by tls
Branch: tls-maxphys
Changes since 1.2.6.1: +20 -14 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:41:02 2014 UTC (5 months, 1 week ago) by yamt
Branch: yamt-pagecache
Changes since 1.2.2.3: +20 -14 lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored) next main 1.3 (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.4.2.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.4: +20 -14 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.6 / (download) - annotate - [select for diffs], Sat Nov 23 16:35:32 2013 UTC (11 months, 1 week ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, netbsd-7, HEAD
Changes since 1.5: +14 -14 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Fri Nov 8 15:44:23 2013 UTC (11 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.4: +12 -6 lines
Diff to previous 1.4 (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.2.6.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:41 2012 UTC (23 months, 1 week ago) by tls
Branch: tls-maxphys
Changes since 1.2: +13 -4 lines
Diff to previous 1.2 (colored)

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

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:25 2012 UTC (2 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.2.2.2: +13 -4 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)

sync with head

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 27 17:40:51 2012 UTC (2 years, 1 month ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, 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.3: +2 -4 lines
Diff to previous 1.3 (colored)

Uncomment call to genfs_rename_cache_purge.

Fixes a side issue mentioned in PR kern/46990.

I left this commented to preserve the old behaviour of tmpfs_rename,
but it is obviously broken to omit the cache purge, and I'm surprised
nobody had encountered any problems with it until now.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Sep 25 16:11:42 2012 UTC (2 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.2: +13 -2 lines
Diff to previous 1.2 (colored)

Check tmpfs_rmdired_p after tmpfs_vnode_get when walking up the tree.

tmpfs_vnode_get drops all locks except possibly the reclaiming bit
lock to keep the tmpfs node from being reclaimed while we're still
interested in it.  Consequently, it does not keep the directory's
existence invariant, so we must check that after tmpfs_vnode_get.

Fixes PR kern/46990.  Tested by Wolfgang Stukenbrock.

Revision 1.2.4.2 / (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.2.4.1: +591 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync to latest -current.

Revision 1.2.2.2 / (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.2.2.1: +591 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

sync with head.

Revision 1.2.4.1, Wed May 9 22:46:25 2012 UTC (2 years, 5 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.2: +0 -591 lines
FILE REMOVED

file tmpfs_rename.c was added on branch jmcneill-usbmp on 2012-06-02 11:09:32 +0000

Revision 1.2.2.1, Wed May 9 22:46:25 2012 UTC (2 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +0 -591 lines
FILE REMOVED

file tmpfs_rename.c was added on branch yamt-pagecache on 2012-05-23 10:08:09 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 9 22:46:25 2012 UTC (2 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Branch point for: yamt-pagecache, tls-maxphys, jmcneill-usbmp
Changes since 1.1: +4 -2 lines
Diff to previous 1.1 (colored)

Fix omitted VN_KNOTE(fvp, NOTE_RENAME) in tmpfs_rename.

Missed that line while refactoring tmpfs_rename to use genfs_rename.

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 9 00:16:07 2012 UTC (2 years, 5 months ago) by riastradh
Branch: MAIN

Adapt tmpfs_rename to use genfs_rename.

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>