OpenBSD CVS

CVS log for src/sys/msdosfs/msdosfs_denode.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.68 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:08 2023 UTC (15 months ago) by guenther
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, HEAD
Changes since 1.67: +1 -2 lines
Diff to previous 1.67 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 23 20:37:16 2022 UTC (21 months, 2 weeks ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

msdosfs: don't pass NULL proc pointer to detrunc()

detrunc()'s proc pointer argument may be passed to vinvalbuf(9), which
under certain conditions will pass the given proc pointer to
VOP_FSYNC(9), which always asserts that the given proc pointer is
equal to curproc.

msdosfs_write(), msdosfs_inactive(), createde(), and deextend() all
pass NULL for detrunc()'s proc pointer argument.  I have no idea why.
If these detrunc() calls ever reach VOP_FSYNC(9) the kernel will
panic.

So, for example, any user with write access to an msdosfs partition
can panic the kernel by writing to the partition until they cause
ENOSPC.  That particular panic looks like this:

panic: kernel diagnostic assertion "p == curproc" failed: file "/usr/src/sys/kern/vfs_vops.c", line 305
Stopped at      db_enter+0xa:   popq    %rbp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*500294   8955      0    0x100003          0    1K ksh
db_enter() at db_enter+0xa
panic(ffffffff81f1b0cf) at panic+0xc4
__assert(ffffffff81fa361c,ffffffff81ee8329,131,ffffffff81f7229b) at assert+0x3b
VOP_FSYNC(fffffd8449a78b30,ffffffffffffffff,1,0) at VOP_FSYNC+Oxd6
vinvalbuf(fffffd8449a78b30,3,ffffffffffffffff,0,0,ffffffffffffffff) at vinvalbuf+0xd5
detrunc(ffff80000186f900,1fe,0,ffffffffffffffff,0) at detrunc+0x239
msdosfs_write(ffff800055774b98) at msdosf_write+0x4a4
VOP_WRITE(fffffd8449a78b30,ffff800055774d10,3,fffffd8370e8d5d0) at VOP_WRITE+0x59
vn_write(fffffd83c723b860,ffff800055774d10,0) at vn_write+0xc0
dofilewritev(ffff8000556ecfc0,1,ffff800055774d10,0.ffff800055774dc0) at dofilewritev+0x14d
sys_write(ffff8000556ecfc0,ffff800055774dd0,ffff800055774dc0) at sys_write+0x6a
syscall(ffff800055774e70) at syscall+0x39b
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffd8bf0, count: 2

This patch tweaks all the detrunc() calls in the aforementioned
msdosfs functions to pass curproc instead of a NULL pointer to
detrunc().  We don't appear to have curproc stashed anywhere in
msdosfs_write() or deextend(), so for those calls we explicitly pass
curproc.

This might have unforseen consequences I can't anticipate.  However,
with this patch I can no longer panic the kernel by filling an msdosfs
partition, which seems like an improvement.

With advice from gnezdo@.

ok gnezdo@

Revision 1.66 / (download) - annotate - [select for diffs], Thu Feb 27 09:10:31 2020 UTC (4 years, 3 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.65: +2 -3 lines
Diff to previous 1.65 (colored)

Remove unused "struct proc *" argument from the following functions:

- ufs_chown() & ufs_chmod()
- ufs_reclaim()
- ext2fs_chown() & ext2fs_chmod()
- ntfs_ntget() & ntfs_ntput()
- ntfs_vgetex(), ntfs_ntlookup() & ntfs_ntlookupfile()

While here use `ap->a_p' directly when it is only required to re-enter
the VFS layer in order to help reducing the loop.

ok visa@

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jan 20 23:21:56 2020 UTC (4 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

struct vops is not modified during runtime so use const which moves each
into read-only data segment.
OK deraadt@ tedu@

Revision 1.64 / (download) - annotate - [select for diffs], Thu Jul 25 01:43:21 2019 UTC (4 years, 10 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

vinvalbuf(9): tlseep -> tsleep_nsec(9); ok millert@

Revision 1.63 / (download) - annotate - [select for diffs], Sun May 27 06:02:14 2018 UTC (6 years ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored)

Drop unnecessary `p' parameter from vget(9).

OK mpi@

Revision 1.62 / (download) - annotate - [select for diffs], Wed May 2 02:24:56 2018 UTC (6 years, 1 month ago) by visa
Branch: MAIN
Changes since 1.61: +2 -3 lines
Diff to previous 1.61 (colored)

Remove proc from the parameters of vn_lock(). The parameter is
unnecessary because curproc always does the locking.

OK mpi@

Revision 1.61 / (download) - annotate - [select for diffs], Sat Apr 28 03:13:05 2018 UTC (6 years, 1 month ago) by visa
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is always
curproc that does the locking or unlocking, so the proc parameter
is pointless and can be dropped.

OK mpi@, deraadt@

Revision 1.60 / (download) - annotate - [select for diffs], Wed Mar 28 16:34:28 2018 UTC (6 years, 2 months ago) by visa
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Use RWL_IS_VNODE with locks that are acquired through VOP_LOCK(),
to appease WITNESS. ext2fs and ffs already use the flag. The same
locking pattern appears with other file systems too, so this patch
addresses the remaining cases.

OK mpi@

Revision 1.59 / (download) - annotate - [select for diffs], Mon Aug 14 22:43:56 2017 UTC (6 years, 9 months ago) by sf
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

msdofs: Add new CLUST_END constant

Add new CLUST_END and use it as parameter to pcbmap() when searching
for end cluster, instead of explicitly passing 0xffff. This fixes potential
problem for FAT32, where cluster number may be legally bigger than 0xffff.

Also change clusteralloc() so that fillwith is not explicitly passed by caller
anymore (there is no need to use anything other than CLUST_EOFE).

From NetBSD commit by jdolecek@NetBSD.org

ok tb@ mpi@

Revision 1.58 / (download) - annotate - [select for diffs], Thu Apr 20 14:13:00 2017 UTC (7 years, 1 month ago) by visa
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Tweak lock inits to make the system runnable with witness(4)
on amd64 and i386.

Revision 1.57 / (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_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (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.56 / (download) - annotate - [select for diffs], Sat Mar 19 12:04:16 2016 UTC (8 years, 2 months ago) by natano
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Remove the unused flags argument from VOP_UNLOCK().

torture tested on amd64, i386 and macppc
ok beck mpi stefan
"the change looks right" deraadt

Revision 1.55 / (download) - annotate - [select for diffs], Fri Oct 23 17:21:34 2015 UTC (8 years, 7 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.54: +8 -7 lines
Diff to previous 1.54 (colored)

Fix printf() types so kernel compiles with or w/o MSDOSFS_DEBUG.
e.g. print pointers with %p instead of %08x. No changes outside of
MSDOSFS_DEBUG.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Oct 23 10:45:31 2015 UTC (8 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.53: +19 -19 lines
Diff to previous 1.53 (colored)

Nuke a bunch of leading/embedded/trailing whitespace so the code can be
read without generating spurious headaches.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 9 05:01:57 2015 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

rename desiredvnodes to initialvnodes. less of a lie. ok beck deraadt

Revision 1.52 / (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.51: +2 -1 lines
Diff to previous 1.51 (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.51 / (download) - annotate - [select for diffs], Tue Nov 18 10:42:15 2014 UTC (9 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.50: +21 -3 lines
Diff to previous 1.50 (colored)

use siphash for key lookups in all the filesystem hashes.

ok deraadt@ tedu@

Revision 1.50 / (download) - annotate - [select for diffs], Sun Sep 14 14:17:26 2014 UTC (9 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.49: +1 -2 lines
Diff to previous 1.49 (colored)

remove uneeded proc.h includes
ok mpi@ kspillner@

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jul 12 18:50:41 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Jul 8 17:19:25 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.47: +1 -3 lines
Diff to previous 1.47 (colored)

decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h
don't need to be married.
ok guenther miod beck jsing kettenis

Revision 1.47 / (download) - annotate - [select for diffs], Tue Dec 24 00:18:46 2013 UTC (10 years, 5 months ago) by halex
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

fix error checking oddity in msdosfs code, as noted by kettenis@

ok mikeb@ espie@

Revision 1.46 / (download) - annotate - [select for diffs], Tue Oct 1 20:22:13 2013 UTC (10 years, 8 months ago) by sf
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Format string fixes: %hu/%hd for uint16_t, %u/%d/%x for uint32_t

- despite the name, ntohl returns uint32_t, not long
- also fix some %d into %u

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jun 11 16:42:16 2013 UTC (11 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

final removal of daddr64_t.  daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others

Revision 1.44 / (download) - annotate - [select for diffs], Thu Sep 6 19:06:04 2012 UTC (11 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.43: +8 -6 lines
Diff to previous 1.43 (colored)

Remove the need to occasionally treat dos file names as strings by
using "%.11s" to print them out. Make all dos file names 11 byte
arrays and nuke the attempt to put '\0' at the 12th position of
such an array.

Fixes 'panic: smashed stack in msdosfs_rename.c' reported by
MERHIGI Marcus via tech@.

Tested by MERHIGI Marcus. Suggestions and ok tedu@.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jul 4 04:30:41 2011 UTC (12 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.42: +3 -5 lines
Diff to previous 1.42 (colored)

bread does nothing with its ucred argument.  remove it.  ok matthew

Revision 1.42 / (download) - annotate - [select for diffs], Tue Dec 21 20:14:43 2010 UTC (13 years, 5 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.41: +3 -4 lines
Diff to previous 1.41 (colored)

Bring back the "End the VOP experiment." diff, naddy's issues where
unrelated, and his alpha is much happier now.

OK deraadt@

Revision 1.41 / (download) - annotate - [select for diffs], Wed Oct 27 19:16:17 2010 UTC (13 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

improve the look of a for loop

Revision 1.40 / (download) - annotate - [select for diffs], Fri Sep 10 16:34:08 2010 UTC (13 years, 9 months ago) by thib
Branch: MAIN
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

Backout the VOP diff until the issues naddy was seeing on alpha (gcc3)
have been resolved.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Sep 6 23:44:10 2010 UTC (13 years, 9 months ago) by thib
Branch: MAIN
Changes since 1.38: +3 -4 lines
Diff to previous 1.38 (colored)

End the VOP experiment. Instead of the ridicolusly complicated operation
vector setup that has questionable features (that have, as far as I can
tell never been used in practice, atleast not in OpenBSD), remove all
the gunk and favor a simple struct full of function pointers that get
set directly by each of the filesystems.

Removes gobs of ugly code and makes things simpler by a magnitude.

The only downside of this is that we loose the vnoperate feature so
the spec/fifo operations of the filesystems need to be kept in sync
with specfs and fifofs, this is no big deal as the API it self is pretty
static.

Many thanks to armani@ who pulled an earlier version of this diff to
current after c2k10 and Gabriel Kihlman on tech@ for testing.

Liked by many. "come on, find your balls" deraadt@.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Mar 29 23:33:39 2010 UTC (14 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Initialize various uninitialized variables. Found by jsg@ via Clang.

Feedback from miod@ and kettenis@.

ok beck@

Revision 1.37 / (download) - annotate - [select for diffs], Thu Aug 13 22:34:29 2009 UTC (14 years, 10 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.36: +14 -35 lines
Diff to previous 1.36 (colored)

- ansify function declarations, no binary change

"fine" thib@

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jul 9 22:29:56 2009 UTC (14 years, 11 months ago) by thib
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Remove the VREF() macro and replaces all instances with a call to verf(),
which is exactly what the macro does.

Macro's that are nothing more then:
#define FUNCTION(arg) function(arg)
are almost always pointless and should go away.

OK blambert@
Agreed by many.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jan 13 21:27:09 2008 UTC (16 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.34: +4 -2 lines
Diff to previous 1.34 (colored)

Return pcbmap() errors from deget() rather than ignoring them. EIO at
least has been seen from ian@'s new iPod, causing inappropriate
mounting.

ok miod@

Revision 1.34 / (download) - annotate - [select for diffs], Sat Oct 6 02:18:38 2007 UTC (16 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Oops. Forgot to do FREE -> free when I did MALLOC -> malloc.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Oct 3 10:52:11 2007 UTC (16 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.32: +2 -4 lines
Diff to previous 1.32 (colored)

MALLOC+bzero -> malloc+M_ZERO.

In ip_esp.c all allocated memory is now zero'd in the
"malloc(sizeof(*tc) + alen ..." case. The +alen memory was not
initialized by the bzero() call. Noticed by chl@.

"Looks good" art@ "seems ok" chl@

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jun 2 02:04:21 2007 UTC (17 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

convert all daddr_t types to either daddr64_t or uint32_t or other such
things based on their use.  ok with fixes from tom, tested by grange too

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jun 1 23:47:57 2007 UTC (17 years ago) by deraadt
Branch: MAIN
Changes since 1.30: +3 -8 lines
Diff to previous 1.30 (colored)

pedro ok'd this ~3500 line diff which removes the vop argument
"ap = v" comments in under 8 seconds, so it must be ok.  and it compiles
too.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 11 16:08:50 2007 UTC (17 years, 2 months ago) by thib
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Remove the simplelock argument from vrecycle();

ok pedro@, sturm@

Revision 1.29 / (download) - annotate - [select for diffs], Wed Mar 21 17:29:32 2007 UTC (17 years, 2 months ago) by thib
Branch: MAIN
Changes since 1.28: +2 -3 lines
Diff to previous 1.28 (colored)

Remove the v_interlock simplelock from the vnode structure.
Zap all calls to simple_lock/unlock() on it (those calls are
#defined away though). Remove the LK_INTERLOCK from the calls
to vn_lock() and cleanup the filesystems wich implement VOP_LOCK().
(by remvoing the v_interlock from there calls to lockmgr()).

ok pedro@, art@, tedu@

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jan 9 12:43:16 2006 UTC (18 years, 5 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.27: +11 -6 lines
Diff to previous 1.27 (colored)

Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 24 19:35:25 2004 UTC (19 years, 11 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

This moves access to wall and uptime variables in MI code,
encapsulating all such access into wall-defined functions
that makes sure locking is done as needed.

It also cleans up some uses of wall time vs. uptime some
places, but there is sure to be more of these needed as
well, particularily in MD code.  Also, many current calls
to microtime() should probably be changed to getmicrotime(),
or to the {,get}microuptime() versions.

ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others
"Oh, that is not your problem!" from miod@

Revision 1.16.4.6 / (download) - annotate - [select for diffs], Sat Jun 5 23:13:07 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.16.4.5: +12 -12 lines
Diff to previous 1.16.4.5 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Merge with the trunk

Revision 1.26 / (download) - annotate - [select for diffs], Fri May 14 04:05:05 2004 UTC (20 years, 1 month ago) by tedu
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A
Changes since 1.25: +0 -0 lines
Diff to previous 1.25 (colored)

use pool for namei pathbuf.  testing ok millert@ tdeval@

Revision 1.25 / (download) - annotate - [select for diffs], Wed May 12 21:04:15 2004 UTC (20 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.24: +13 -13 lines
Diff to previous 1.24 (colored)

32 bit ints are uint32_t, not u_long.  works on 64bit now.  ok deraadt@

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Tue Jun 11 03:30:32 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.22.2.1: +5 -5 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Sync UBC branch to -current

Revision 1.16.4.5 / (download) - annotate - [select for diffs], Thu Mar 28 15:02:01 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.16.4.4: +4 -4 lines
Diff to previous 1.16.4.4 (colored) to branchpoint 1.16 (colored)

Merge in -current from roughly a week ago

Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 14 01:27:09 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

First round of __P removal in sys

Revision 1.16.4.4 / (download) - annotate - [select for diffs], Wed Mar 6 02:13:25 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.16.4.3: +5 -12 lines
Diff to previous 1.16.4.3 (colored) to branchpoint 1.16 (colored)

Merge in trunk

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Sat Feb 2 03:28:25 2002 UTC (22 years, 4 months ago) by art
Branch: UBC
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Merge in UBC performance changes from NetBSD.
Fix a bunch of merge errors from yesterday.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 19 08:58:06 2001 UTC (22 years, 5 months ago) by art
Branch: MAIN
Changes since 1.22: +6 -26 lines
Diff to previous 1.22 (colored)

UBC was a disaster. It worked very good when it worked, but on some
machines or some configurations or in some phase of the moon (we actually
don't know when or why) files disappeared. Since we've not been able to
track down the problem in two weeks intense debugging and we need -current
to be stable, back out everything to a state it had before UBC.

We apologise for the inconvenience.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 10 04:45:31 2001 UTC (22 years, 6 months ago) by art
Branch: MAIN
CVS Tags: UBC_BASE
Branch point for: UBC
Changes since 1.21: +14 -1 lines
Diff to previous 1.21 (colored)

Big cleanup inspired by NetBSD with some parts of the code from NetBSD.
 - get rid of VOP_BALLOCN and VOP_SIZE
 - move the generic getpages and putpages into miscfs/genfs
 - create a genfs_node which must be added to the top of the private portion
   of each vnode for filsystems that want to use genfs_{get,put}pages
 - rename genfs_mmap to vop_generic_mmap

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 10 02:19:34 2001 UTC (22 years, 6 months ago) by art
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Merge in struct uvm_vnode into struct vnode.

Revision 1.16.4.3 / (download) - annotate - [select for diffs], Wed Dec 5 01:02:39 2001 UTC (22 years, 6 months ago) by niklas
Branch: SMP
Changes since 1.16.4.2: +12 -5 lines
Diff to previous 1.16.4.2 (colored) to branchpoint 1.16 (colored)

Merge in -current

Revision 1.20 / (download) - annotate - [select for diffs], Tue Nov 27 05:27:12 2001 UTC (22 years, 6 months ago) by art
Branch: MAIN
Changes since 1.19: +13 -6 lines
Diff to previous 1.19 (colored)

Merge in the unified buffer cache code as found in NetBSD 2001/03/10. The
code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>.

Tested for the past few weeks by many developers, should be in a pretty stable
state, but will require optimizations and additional cleanups.

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Tue Nov 13 23:04:24 2001 UTC (22 years, 7 months ago) by niklas
Branch: SMP
Changes since 1.16.4.1: +2 -2 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored)

merge in -current

Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 6 19:53:20 2001 UTC (22 years, 7 months ago) by miod
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.
(Look ma, I might have broken the tree)

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Wed Jul 4 10:49:26 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.16: +24 -10 lines
Diff to previous 1.16 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 27 04:58:45 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.17: +1 -9 lines
Diff to previous 1.17 (colored)

Remove old vm.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 23 02:15:24 2001 UTC (22 years, 11 months ago) by csapuntz
Branch: MAIN
Changes since 1.16: +24 -2 lines
Diff to previous 1.16 (colored)

Get rid of several vnode operations

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 28 09:28:16 1999 UTC (25 years, 1 month ago) by art
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Branch point for: SMP
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

zap the newhashinit hack.
Add an extra flag to hashinit telling if it should wait in malloc.
update all calls to hashinit.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 26 03:28:13 1999 UTC (25 years, 3 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.14: +9 -1 lines
Diff to previous 1.14 (colored)

compat with uvm vnode pager

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 8 11:00:53 1999 UTC (25 years, 5 months ago) by art
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

always initialize error in inactive

Revision 1.13 / (download) - annotate - [select for diffs], Fri Aug 21 22:40:02 1998 UTC (25 years, 9 months ago) by csapuntz
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)



Make tabbing better.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 21 22:36:11 1998 UTC (25 years, 9 months ago) by csapuntz
Branch: MAIN
Changes since 1.11: +28 -4 lines
Diff to previous 1.11 (colored)



malloc can block so there was a race in this code which could cause two
vnodes to be created for a given file.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jan 11 20:39:07 1998 UTC (26 years, 5 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.10: +32 -18 lines
Diff to previous 1.10 (colored)

FAT32 support from NetBSD by Wolfgang Solfrank.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 11 18:57:16 1997 UTC (26 years, 7 months ago) by niklas
Branch: MAIN
Changes since 1.9: +7 -4 lines
Diff to previous 1.9 (colored)

Initialize the de_lock.  some KNF

Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 6 22:52:46 1997 UTC (26 years, 7 months ago) by csapuntz
Branch: MAIN
Changes since 1.8: +5 -3 lines
Diff to previous 1.8 (colored)

Fixed minor bug in msdosfs_hashget

Revision 1.8 / (download) - annotate - [select for diffs], Thu Nov 6 05:58:56 1997 UTC (26 years, 7 months ago) by csapuntz
Branch: MAIN
Changes since 1.7: +21 -28 lines
Diff to previous 1.7 (colored)

Updates for VFS Lite 2 + soft update.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 6 20:20:57 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.6: +6 -13 lines
Diff to previous 1.6 (colored)

back out vfs lite2 till after 2.2

Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 6 15:22:38 1997 UTC (26 years, 8 months ago) by csapuntz
Branch: MAIN
Changes since 1.5: +14 -7 lines
Diff to previous 1.5 (colored)

VFS Lite2 Changes

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 4 19:08:12 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

cleanup timestamp code for NT/Win95; khym@bga.com

Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 2 18:01:54 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.3: +6 -57 lines
Diff to previous 1.3 (colored)

Sync msdosfs with NetBSD sans const-ness.  NetSBD log messages:
    Fix panic on mkdir.
    Thanks to Dave Huang for finding the bug.
    Fixes a bug with allowed/forbidden characters in non-W95 filenames.
    Don't extend directory when nothing is written to it.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Feb 29 10:46:51 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +37 -22 lines
Diff to previous 1.2 (colored)

From NetBSD: merge with 960217

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 14 04:19:53 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +27 -42 lines
Diff to previous 1.1 (colored)

from netbsd (mostly by ws):
Win95 ignores case on lookup
Really don't generate long names when mounted with -s
Fix cookie handling
Don't forward credentials to bread, it makes nfs panic
(Of course, nfs shouldn't rely on the credentials not being referenced)
Don't give directory entry to deget, it could result in a deadlock
Use device blocks, not clusters for logical block numbers
Add support for Win'95 separate creation/modification/access timestamps
Re-introduce lowercase filenames for non-Win'95-filesystems
Fix thinko with block boundaries in directories
Don't overwrite dirclust, it's needed later on
Enable flock(2).

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:53:04 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:53:04 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

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.