OpenBSD CVS

CVS log for src/sys/tmpfs/tmpfs.h


[BACK] Up to [local] / src / sys / tmpfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 12 13:08:03 2020 UTC (3 years, 7 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

Fix build of tmpfs

The breakage was caused by the removal of #include <sys/systm.h>
from <uvm/uvm_map.h>.

OK deraadt@, mpi@, beck@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jan 21 18:09:21 2019 UTC (5 years, 4 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Introduce a dedicated entry point data structure for file locks. This new data
structure allows for better tracking of pending lock operations which is
essential in order to prevent a use-after-free once the underlying vnode is
gone.

Inspired by the lockf implementation in FreeBSD.

ok visa@

Reported-by: syzbot+d5540a236382f50f1dac@syzkaller.appspotmail.com

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 19 11:54:33 2016 UTC (7 years, 11 months ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Remove the lockmgr() API. It is only used by filesystems, where it is a
trivial change to use rrw locks instead. All it needs is LK_* defines
for the RW_* flags.

tested by naddy and sthen on package building infrastructure
input and ok jmc mpi tedu

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 17 19:42:15 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

remove lock.h from uvm_extern.h. another holdover from the simpletonlock
era. fix uvm including c files to include lock.h or atomic.h as necessary.
ok deraadt

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 16 18:30:04 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

primary change: move uvm_vnode out of vnode, keeping only a pointer.
objective: vnode.h doesn't include uvm_extern.h anymore.
followup changes: include uvm_extern.h or lock.h where necessary.
ok and help from deraadt

Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 14 18:01:52 2013 UTC (10 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.4: +43 -54 lines
Diff to previous 1.4 (colored)

bring in a few improvements from pedro, guenther, me...

thanks to krw@ for the original cherry-picking, millert@ for useful comment.

so:
- no longer expose internal kernel addresses, uses seq numbers instead
- make sure the numbers don't overflow (millert@ UINT64_MAX)... a
conservative estimate is that tmpfs will run out of seqs in >600 years...
- don't malloc dents, put them on the stack and zero them
- gc whiteout code
- gc getpage/putpage code (shrink uvm instead)

okay krw@, millert@

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 22 03:34:31 2013 UTC (10 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

The readdir vop should set uio_offset to the cookie of the entry
after the last entry that fit, but I had it setting it to the cookier
of the entry after that, so it would skip one entry for each block
required.

Remove the no-longer-needed cnt/cntp variable while we're touching things.

prodding and testing by espie@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 4 09:11:40 2013 UTC (11 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

fix include guard locations (from pedro)

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 3 10:37:02 2013 UTC (11 years ago) by espie
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

sprinkle $OpenBSD$, pointed out by pedro

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jun 1 14:37:32 2013 UTC (11 years ago) by espie
Branch: MAIN

import tmpfs code, originally from netbsd.
heavy lifting by Pedro Martelletto, timestamp fixes by me.

THIS IS NOT ENABLED YET, AND REQUIRES UVM CHANGES AND REVIEW.
Imported, so that working on it can be mostly done in tree with less painful
diff exchanges, and that we have history of further changes.

okay tedu@, deraadt@

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.