Up to [cvs.NetBSD.org] / src / sys / ufs / ufs
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.122 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:18 2013 UTC (3 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
tls-maxphys-nbase,
tls-maxphys-base,
khorben-n900,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.121: +9 -9
lines
Diff to previous 1.121 (colored)
Stuff UFS_ in front of a few of ufs's symbols to reduce namespace pollution. Specifically: ROOTINO -> UFS_ROOTINO WINO -> UFS_WINO NXADDR -> UFS_NXADDR NDADDR -> UFS_NDADDR NIADDR -> UFS_NIADDR MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency) Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have the same values in ext2fs and ffs. No functional change intended.
Revision 1.121 / (download) - annotate - [select for diffs], Thu Dec 20 08:03:45 2012 UTC (4 months, 4 weeks ago) by hannken
Branch: MAIN
Changes since 1.120: +2 -3
lines
Diff to previous 1.120 (colored)
Change bread() and breadn() to never return a buffer on error and modify all callers to not brelse() on error. Welcome to 6.99.16 PR kern/46282 (6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread)
Revision 1.120 / (download) - annotate - [select for diffs], Mon Nov 5 17:27:40 2012 UTC (6 months, 1 week ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.119: +7 -5
lines
Diff to previous 1.119 (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.119 / (download) - annotate - [select for diffs], Mon Nov 5 17:24:12 2012 UTC (6 months, 1 week ago) by dholland
Branch: MAIN
Changes since 1.118: +21 -4
lines
Diff to previous 1.118 (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.118 / (download) - annotate - [select for diffs], Sun Oct 14 23:57:32 2012 UTC (7 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.117: +9 -2
lines
Diff to previous 1.117 (colored)
Add an XXX comment about a broken error case in ufs_dirremove. (this was in one of my old rename patches)
Revision 1.117 / (download) - annotate - [select for diffs], Sun Jul 22 00:53:22 2012 UTC (9 months, 4 weeks ago) by rmind
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.116: +5 -5
lines
Diff to previous 1.116 (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.116 / (download) - annotate - [select for diffs], Mon Jun 4 16:46:45 2012 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.115: +6 -13
lines
Diff to previous 1.115 (colored)
Tidy up some typos and vestiges in comments after the ulr changes.
Revision 1.115 / (download) - annotate - [select for diffs], Wed May 9 00:21:18 2012 UTC (12 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
jmcneill-usbmp-base10
Changes since 1.114: +2 -4
lines
Diff to previous 1.114 (colored)
Adapt ffs, lfs, and ext2fs to use genfs_rename. ok dholland, rmind
Revision 1.114 / (download) - annotate - [select for diffs], Sat May 5 04:08:53 2012 UTC (12 months, 2 weeks ago) by yamt
Branch: MAIN
Changes since 1.113: +36 -24
lines
Diff to previous 1.113 (colored)
comments and cosmetics. no functional changes.
Revision 1.113 / (download) - annotate - [select for diffs], Fri Mar 16 08:39:54 2012 UTC (14 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8
Changes since 1.112: +22 -17
lines
Diff to previous 1.112 (colored)
Fix last commit that broke lookup for dot with op DELETE. Reviewed by: David Holland <dholland@netbsd.org>
Revision 1.112 / (download) - annotate - [select for diffs], Tue Mar 13 18:41:14 2012 UTC (14 months ago) by elad
Branch: MAIN
Changes since 1.111: +26 -21
lines
Diff to previous 1.111 (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.111 / (download) - annotate - [select for diffs], Sun Jul 17 22:07:59 2011 UTC (22 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
netbsd-6,
jmcneill-usbmp
Changes since 1.110: +125 -2
lines
Diff to previous 1.110 (colored)
Provide correct locking for ufs_wapbl_rename. Note that this does not fix the non-wapbl rename; that will be coming soon. This patch also leaves a lot of the older locking-related code around in #if 0 blocks, and there's a lot of leftover redundant logic. All that will be going away later. Relates to at least these PRs: PR kern/24887 PR kern/41417 PR kern/42093 PR kern/43626 and possibly others.
Revision 1.110 / (download) - annotate - [select for diffs], Thu Jul 14 16:27:11 2011 UTC (22 months ago) by dholland
Branch: MAIN
Changes since 1.109: +79 -25
lines
Diff to previous 1.109 (colored)
Update comments on functions that take ufs_lookup_results.
Revision 1.109 / (download) - annotate - [select for diffs], Tue Jul 12 16:59:49 2011 UTC (22 months, 1 week ago) by dholland
Branch: MAIN
Changes since 1.108: +12 -17
lines
Diff to previous 1.108 (colored)
Pass the ufs_lookup_results pointer around instead of fetching it from the inode in the guts of ufs. Now, in VOPs where i_crap is used it is used (directly) only immediately on entry to the VOP call and then passed around by reference. Except for rename, which needs explicit sorting out. The code in ufs_wapbl_rename is unchanged in behavior but I'm increasingly inclined to think it's wrong.
Revision 1.108 / (download) - annotate - [select for diffs], Tue Jul 12 02:22:13 2011 UTC (22 months, 1 week ago) by dholland
Branch: MAIN
Changes since 1.107: +111 -82
lines
Diff to previous 1.107 (colored)
Currently, ufs_lookup produces five auxiliary results that are left in the vnode when lookup returns and fished out again later. 1. Create struct ufs_lookup_results to hold these. 2. Call the ufs_lookup_results instance in struct inode "i_crap" to be clear about exactly what's going on, and to distinguish the lookup results from respectable members of struct inode. 3. Update references to these members in the directory access subroutines. 4. Include preliminary infrastructure for checking that the i_crap being used is still valid when it's used. This doesn't actually do anything yet. 5. Update the way ufs_wapbl_rename manipulates these elements to use the new data structures. I have not changed the manipulation; it may or may not be correct but I continue to suspect that it is not. The word of the day is "stigmergy".
Revision 1.107 / (download) - annotate - [select for diffs], Mon Jul 11 08:27:41 2011 UTC (22 months, 1 week ago) by hannken
Branch: MAIN
Changes since 1.106: +6 -6
lines
Diff to previous 1.106 (colored)
Change VOP_BWRITE() to take a vnode as its first argument like all other VOPs do. Layered file systems no longer have to modify bp->b_vp and run into trouble when an async VOP_BWRITE() uses the wrong vnode. - change all occurences of VOP_BWRITE(bp) to VOP_BWRITE(bp->b_vp, bp). - remove layer_bwrite(). - welcome to 5.99.55 Adresses PR kern/38762 panic: vwakeup: neg numoutput No objections from tech-kern@.
Revision 1.106 / (download) - annotate - [select for diffs], Tue Nov 30 10:43:06 2010 UTC (2 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.105: +2 -10
lines
Diff to previous 1.105 (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.105 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:20 2010 UTC (2 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2
Changes since 1.104: +6 -6
lines
Diff to previous 1.104 (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.104 / (download) - annotate - [select for diffs], Tue Mar 2 15:18:22 2010 UTC (3 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.103: +2 -7
lines
Diff to previous 1.103 (colored)
Remove last #ifdef FFS. Do this by making lfs include ffs.
Could use UFS_OPS, but:
1) the lfs kernel module depends on full ffs already anway
2) lfs is being split from ufs, so this will automatically
go away soon
3) chances of anyone wanting an lfs-only kernel are pretty slim
4) i'm too lazy to figure out how to test ffs_snapgone() is
still called properly if I change the call ;)
Revision 1.103 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:12 2010 UTC (3 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.102: +4 -4
lines
Diff to previous 1.102 (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.102 / (download) - annotate - [select for diffs], Mon Sep 28 00:39:03 2009 UTC (3 years, 7 months ago) by dholland
Branch: MAIN
CVS Tags: matt-premerge-20091211,
jym-xensuspend-nbase
Changes since 1.101: +7 -5
lines
Diff to previous 1.101 (colored)
Avoid nasal demons. Code of the form vput(vp); error = VFS_VGET(vp->v_mount, ...); just isn't right. Because of vnode caching this *probably* never bit anyone, except maybe under very heavy load, but still.
Revision 1.101 / (download) - annotate - [select for diffs], Sun Feb 22 20:28:07 2009 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
jymxensuspend-base,
jym-xensuspend-base
Changes since 1.100: +21 -100
lines
Diff to previous 1.100 (colored)
PR kern/26878 FFSv2 + softdep = livelock (no free ram) PR kern/16942 panic with softdep and quotas PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch PR kern/26274 softdep panic: allocdirect_merge: ... PR kern/26374 Long delay before non-root users can write to softdep partitions PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk PR kern/31981 stopping scsi disk can cause panic (softdep) PR kern/32116 kernel panic in softdep (assertion failure) PR kern/32532 softdep_trackbufs deadlock PR kern/37191 softdep: locking against myself PR kern/40474 Kernel panic after remounting raid root with softdep Retire softdep, pass 2. As discussed and later formally announced on the mailing lists.
Revision 1.100 / (download) - annotate - [select for diffs], Thu Nov 13 10:48:52 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.99: +3 -4
lines
Diff to previous 1.99 (colored)
_KERNEL_OPT
Revision 1.99 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:06 2008 UTC (4 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
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,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5,
matt-nb5-mips64
Changes since 1.98: +24 -10
lines
Diff to previous 1.98 (colored)
Merge the simonb-wapbl branch. From the original branch commit: Add Wasabi System's WAPBL (Write Ahead Physical Block Logging) journaling code. Originally written by Darrin B. Jewell while at Wasabi and updated to -current by Antti Kantee, Andy Doran, Greg Oster and Simon Burge. OK'd by core@, releng@.
Revision 1.98 / (download) - annotate - [select for diffs], Thu Jun 5 09:32:29 2008 UTC (4 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: simonb-wapbl,
haad-dm
Changes since 1.97: +4 -3
lines
Diff to previous 1.97 (colored)
ufs_blkatoff: Update comment.
Revision 1.97 / (download) - annotate - [select for diffs], Fri May 16 09:22:01 2008 UTC (5 years ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base3,
yamt-pf42-base2,
hpcarm-cleanup-nbase
Changes since 1.96: +12 -10
lines
Diff to previous 1.96 (colored)
Make sure all cached buffers with valid, not yet written data have been run through copy-on-write. Call fscow_run() with valid data where possible. The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against endless recursion. - Add a flag B_MODIFY to bread(), breada() and breadn(). If set the caller intends to modify the buffer returned. - Always run copy-on-write on buffers returned from ffs_balloc(). - Add new function ffs_getblk() that gets a buffer, assigns a new blkno, may clear the buffer and runs copy-on-write. Process possible errors from getblk() or fscow_run(). Part of PR kern/38664. Welcome to 4.99.63 Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
Revision 1.96 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:56 2007 UTC (5 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
jmcneill-pm-base,
hpcarm-cleanup-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp,
wrstuden-revivesa,
mjf-devfs2
Changes since 1.95: +4 -4
lines
Diff to previous 1.95 (colored)
Remove cn_lwp from struct componentname. curlwp should be used from on. The NDINIT() macro no longer takes the lwp parameter and associates the credentials of the calling thread with the namei structure.
Revision 1.95 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:34 2007 UTC (5 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.94: +7 -7
lines
Diff to previous 1.94 (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.94 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:40 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.93: +3 -3
lines
Diff to previous 1.93 (colored)
Merge from vmlocking: - Split vnode::v_flag into three fields, depending on field locking. - simple_lock -> kmutex in a few places. - Fix some simple locking problems.
Revision 1.93 / (download) - annotate - [select for diffs], Mon Oct 8 18:01:31 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.92: +6 -6
lines
Diff to previous 1.92 (colored)
Merge ffs locking & brelse changes from the vmlocking branch.
Revision 1.92 / (download) - annotate - [select for diffs], Tue Sep 25 15:13:14 2007 UTC (5 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.91: +15 -8
lines
Diff to previous 1.91 (colored)
avoid variable size stack allocations
Revision 1.91 / (download) - annotate - [select for diffs], Mon Jul 23 14:58:04 2007 UTC (5 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base,
nick-csl-alignment-base5,
matt-mips64-base,
hpcarm-cleanup
Branch point for: yamt-x86pmap,
matt-mips64,
matt-armv6,
jmcneill-pm
Changes since 1.90: +4 -4
lines
Diff to previous 1.90 (colored)
comment police: DIRBLKSIZE would be too chatty and therefore the macro is known as DIRBLKSIZ
Revision 1.90 / (download) - annotate - [select for diffs], Sat Jul 21 19:06:22 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.89: +3 -2
lines
Diff to previous 1.89 (colored)
Don't depend on uvm_extern.h pulling in proc.h.
Revision 1.89 / (download) - annotate - [select for diffs], Thu May 17 07:26:22 2007 UTC (6 years ago) by hannken
Branch: MAIN
CVS Tags: yamt-idlelwp-base8,
nick-csl-alignment-base,
mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.88: +3 -4
lines
Diff to previous 1.88 (colored)
Fstrans_start() always returns zero, so change its type to void.
Revision 1.88 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:47 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Changes since 1.87: +10 -11
lines
Diff to previous 1.87 (colored)
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.87 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:42 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.86: +3 -3
lines
Diff to previous 1.86 (colored)
Merge newlock2 to head.
Revision 1.86 / (download) - annotate - [select for diffs], Wed Feb 7 05:54:42 2007 UTC (6 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase,
newlock2-base
Changes since 1.85: +3 -3
lines
Diff to previous 1.85 (colored)
Add missing ')'. Noted by Paul Goyette.
Revision 1.85 / (download) - annotate - [select for diffs], Tue Feb 6 20:49:20 2007 UTC (6 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.84: +5 -5
lines
Diff to previous 1.84 (colored)
in ufs_dirremove swap ep->d_reclen before use if needed (affect UFS_DIRHASH only). While there remove an unneeded swap before compare against 0 in ufs_direnter(). Both pointed out by Pawel Jakub Dawidek on tech-kern@, thanks !
Revision 1.84 / (download) - annotate - [select for diffs], Mon Jan 29 15:42:50 2007 UTC (6 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.83: +3 -3
lines
Diff to previous 1.83 (colored)
Change fstrans enum types to upper case. No functional change. From Antti Kantee <pooka@netbsd.org>
Revision 1.83 / (download) - annotate - [select for diffs], Fri Jan 19 14:49:13 2007 UTC (6 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.82: +36 -20
lines
Diff to previous 1.82 (colored)
New file system suspension API to replace vn_start_write and vn_finished_write. The suspension helpers are now put into file system specific operations. This means every file system not supporting these helpers cannot be suspended and therefore snapshots are no longer possible. Implemented for file systems of type ffs. The new API is enabled on a kernel option NEWVNGATE. This option is not enabled by default in any kernel config. Presented and discussed on tech-kern with much input from Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>. Welcome to 4.99.9 (new vfs op vfs_suspendctl).
Revision 1.82 / (download) - annotate - [select for diffs], Thu Jan 4 16:55:30 2007 UTC (6 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.81: +4 -3
lines
Diff to previous 1.81 (colored)
Consistent usage of KAUTH_GENERIC_ISSUSER.
Revision 1.81 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:52 2006 UTC (6 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3
Changes since 1.80: +8 -39
lines
Diff to previous 1.80 (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.80 / (download) - annotate - [select for diffs], Thu Nov 16 22:29:03 2006 UTC (6 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.79: +8 -2
lines
Diff to previous 1.79 (colored)
LFS will never set SF_SNAPSHOT and doesn't support ffs_snapgone anyway. So conditionally the calls to that function on the inclusion of FFS and allow a LFS-only kernel to link.
Revision 1.79 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:15 2006 UTC (6 years, 9 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.78: +3 -3
lines
Diff to previous 1.78 (colored)
Use the LWP cached credentials where sane.
Revision 1.78 / (download) - annotate - [select for diffs], Fri Jun 23 14:13:02 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.77: +4 -4
lines
Diff to previous 1.77 (colored)
fix a simonb-timecounters regression. the precision of getnanotime() is not suitable for file timestamps. esp. when it's nfs-exported. - introduce vfs_timestamp(). (the name is from freebsd. currently merely a wrapper of nanotime()) - for ufs-like filesystems, use it rather than getnanotime(). XXX check other filesystems.
Revision 1.77 / (download) - annotate - [select for diffs], Wed Jun 7 22:34:43 2006 UTC (6 years, 11 months ago) by kardel
Branch: MAIN
CVS Tags: gdamore-uart-base,
chap-midi-nbase,
chap-midi-base
Branch point for: gdamore-uart
Changes since 1.76: +4 -4
lines
Diff to previous 1.76 (colored)
merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
Revision 1.76 / (download) - annotate - [select for diffs], Sun May 14 21:33:39 2006 UTC (7 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.75: +11 -10
lines
Diff to previous 1.75 (colored)
integrate kauth.
Revision 1.75 / (download) - annotate - [select for diffs], Sat Apr 15 05:32:29 2006 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.74: +3 -2
lines
Diff to previous 1.74 (colored)
Coverity CID 1166: Add KASSERT before deref.
Revision 1.74 / (download) - annotate - [select for diffs], Thu Mar 30 12:40:06 2006 UTC (7 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Changes since 1.73: +1 -1
lines
Diff to previous 1.73 (colored)
some cleanups after the introduction of GOP_SIZE_MEM flag. - remove GOP_SIZE_READ/GOP_SIZE_WRITE flags. they have not been used since the change. - ufs_balloc_range: remove code which has been no-op since the change. thanks Konrad Schroder for explaining the original intention of the code. - ffs_gop_size: don't extend past eof, in the case of GOP_SIZE_MEM. otherwise genfs_getpages end up to allocate pages past eof unnecessarily.
Revision 1.73 / (download) - annotate - [select for diffs], Sat Jan 14 17:41:18 2006 UTC (7 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
peter-altq,
elad-kernelauth
Changes since 1.72: +66 -6
lines
Diff to previous 1.72 (colored)
- unify ffs_blkatoff and lfs_blkatoff. - remove ufs_ops::uo_blkatoff. - add directory read-ahead code. (disabled for now.)
Revision 1.72 / (download) - annotate - [select for diffs], Sat Jan 14 09:09:02 2006 UTC (7 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.71: +30 -10
lines
Diff to previous 1.71 (colored)
pull freebsd's ufs_lookup.c rev.1.53 and 1.54. PR/31873. > ---------------------------- > revision 1.54 > date: 2001/08/26 01:25:12; author: iedowse; state: Exp; lines: +30 -12 > When compacting directories, ufs_direnter() always trusted DIRSIZ() > to supply the number of bytes to be bcopy()'d to move an entry. If > d_ino == 0 however, DIRSIZ() is not guaranteed to return a sensible > length, so ufs_direnter could end up corrupting a directory during > compaction. In practice I believe this can only happen after fsck_ffs > has fixed a previously-corrupted directory. > > We now deal with any mid-block unused entries specially to avoid > using DIRSIZ() or bcopy() on such entries. We also ensure that the > variables 'dsize' and 'spacefree' contain meaningful values at all > times. Add a few comments to describe better this intricate piece > of code. > > The special handling of mid-block unused entries makes the dirhash- > specific bugfix in the previous revision (1.53) now uncecessary, > so this change removes it. > > Reviewed by: mckusick > ---------------------------- > revision 1.53 > date: 2001/08/22 01:35:17; author: iedowse; state: Exp; lines: +2 -2 > When compressing directory blocks, the dirhash code didn't check > that the directory entry was in use before attempting to find it > in the hash structures to change its offset. Normally, unused > entries do not need to be moved, but fsck can leave behind some > unused entries that do. A dirhash sanity panic resulted when the > entry to be moved was not found. Add a check that stops entries > with d_ino == 0 from being passed to ufsdirhash_move().
Revision 1.71 / (download) - annotate - [select for diffs], Fri Jan 13 00:50:58 2006 UTC (7 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.70: +3 -3
lines
Diff to previous 1.70 (colored)
FSFMT: whitespace.
Revision 1.70 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:28 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.69: +10 -10
lines
Diff to previous 1.69 (colored)
merge ktrace-lwp.
Revision 1.69 / (download) - annotate - [select for diffs], Wed Nov 2 12:39:14 2005 UTC (7 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
ktrace-lwp-base
Changes since 1.68: +12 -12
lines
Diff to previous 1.68 (colored)
merge yamt-vop branch. remove following VOPs. VOP_BLKATOFF VOP_VALLOC VOP_BALLOC VOP_REALLOCBLKS VOP_VFREE VOP_TRUNCATE VOP_UPDATE
Revision 1.68 / (download) - annotate - [select for diffs], Mon Sep 26 13:52:20 2005 UTC (7 years, 7 months ago) by yamt
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.67: +4 -4
lines
Diff to previous 1.67 (colored)
always use nanotime rather than time. it's bad to mix nanotime and time because it sometimes make timestamps go backwards.
Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 23 08:05:13 2005 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.66: +4 -4
lines
Diff to previous 1.66 (colored)
Don't overload MAXNAMLEN, use a separate constant for each filesystem type.
Revision 1.66 / (download) - annotate - [select for diffs], Fri Aug 19 02:04:09 2005 UTC (7 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.65: +5 -4
lines
Diff to previous 1.65 (colored)
64 bit inode changes.
Revision 1.65 / (download) - annotate - [select for diffs], Sun Jul 10 01:08:52 2005 UTC (7 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +6 -2
lines
Diff to previous 1.64 (colored)
Defflag UFS_DIRHASH.
Revision 1.64 / (download) - annotate - [select for diffs], Sun Jul 10 00:18:52 2005 UTC (7 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +14 -40
lines
Diff to previous 1.63 (colored)
- Use ANSI function decls. - Sprinkle some static.
Revision 1.63 / (download) - annotate - [select for diffs], Sun May 29 21:25:24 2005 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.62: +3 -3
lines
Diff to previous 1.62 (colored)
- sprinkle const - avoid shadow variables.
Revision 1.62 / (download) - annotate - [select for diffs], Sat Feb 26 22:32:20 2005 UTC (8 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
kent-audio2-base
Changes since 1.61: +3 -3
lines
Diff to previous 1.61 (colored)
nuke trailing whitespace
Revision 1.61 / (download) - annotate - [select for diffs], Sun Jan 23 19:37:05 2005 UTC (8 years, 3 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-km-base2,
yamt-km-base,
matt-timespec
Branch point for: yamt-km
Changes since 1.60: +98 -2
lines
Diff to previous 1.60 (colored)
Bring in Ian Dowse's Dirhash from FreeBSD. Hash tables of directories are created on the fly and used to increase performance by circumventing ufs_lookup's linear search. Dirhash is enabled by the UFS_DIRHASH option, but not by default.
Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 17 14:11:27 2004 UTC (8 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: kent-audio2
Changes since 1.59: +4 -4
lines
Diff to previous 1.59 (colored)
There's no need to pass a proc value when using UIO_SYSSPACE with vn_rdwr(9) and uiomove(9). OK'd by Jason Thorpe
Revision 1.59 / (download) - annotate - [select for diffs], Sun Aug 15 21:44:11 2004 UTC (8 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.58: +6 -8
lines
Diff to previous 1.58 (colored)
Repair some FFS_EI code for ufsmount changes.
Revision 1.58 / (download) - annotate - [select for diffs], Sun Aug 15 07:19:58 2004 UTC (8 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +45 -63
lines
Diff to previous 1.57 (colored)
Fixing age old cruft: * Rather than using mnt_maxsymlinklen to indicate that a file systems returns d_type fields(!), add a new internal flag, IMNT_DTYPE. Add 3 new elements to ufsmount: * um_maxsymlinklen, replaces mnt_maxsymlinklen (which never should have existed in the first place). * um_dirblksiz, which tracks the current directory block size, eliminating the FS-specific checks littered throughout the code. This may be used later to make the block size variable. * um_maxfilesize, which is the maximum file size, possibly adjusted lower due to implementation issues. Sync some bug fixes from FFS into ext2fs, particularly: * ffs_lookup.c 1.21, 1.28, 1.33, 1.48 * ffs_inode.c 1.43, 1.44, 1.45, 1.66, 1.67 * ffs_vnops.c 1.84, 1.85, 1.86 Clean up some crappy pointer frobnication.
Revision 1.57 / (download) - annotate - [select for diffs], Tue May 25 14:55:46 2004 UTC (8 years, 11 months ago) by hannken
Branch: MAIN
Changes since 1.56: +17 -2
lines
Diff to previous 1.56 (colored)
Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.
- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
Snapshots may not be opened for writing and the attributes are read-only.
Use the mtime as the time this snapshot was taken.
Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
a vnode.
- Add snapshot support to ls, fsck_ffs and dump.
Welcome to 2.0F.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
Revision 1.56 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:46 2004 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.55: +3 -3
lines
Diff to previous 1.55 (colored)
Replace the statfs() family of system calls with statvfs(). Retain binary compatibility.
Revision 1.55 / (download) - annotate - [select for diffs], Sat Mar 6 06:54:12 2004 UTC (9 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Changes since 1.54: +7 -23
lines
Diff to previous 1.54 (colored)
revert ufs_lookup.c rev.1.53 (MNT_ASYNC changes) it was redundant because our bwrite() knows about MNT_ASYNC. ok'ed by Jaromir Dolecek and Chuck Silvers.
Revision 1.54 / (download) - annotate - [select for diffs], Sat Nov 8 06:36:13 2003 UTC (9 years, 6 months ago) by dbj
Branch: MAIN
Changes since 1.53: +8 -5
lines
Diff to previous 1.53 (colored)
comment out unnecessary IN_CHANGE|IN_UPDATE in lookup move softdep specific lock release/regrab inside if DOINGSOFTDEP
Revision 1.53 / (download) - annotate - [select for diffs], Sat Sep 20 21:05:53 2003 UTC (9 years, 8 months ago) by jdolecek
Branch: MAIN
Changes since 1.52: +23 -7
lines
Diff to previous 1.52 (colored)
if mounted ASYNC, use delayed writes for metadata, which improves performance of these operations significantly based on FreeBSD ufs_lookup.c rev. 1.8, by John Dyson
Revision 1.52 / (download) - annotate - [select for diffs], Mon Sep 15 15:08:09 2003 UTC (9 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.51: +11 -11
lines
Diff to previous 1.51 (colored)
indent.
Revision 1.51 / (download) - annotate - [select for diffs], Thu Sep 11 17:33:43 2003 UTC (9 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.50: +4 -3
lines
Diff to previous 1.50 (colored)
PR/15397: Jason Thorpe: directory operations on pathnames that refer to directories and have trailing slashes should succeed. Ok'd by kjk. Fix provided by enami.
Revision 1.50 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:45 2003 UTC (9 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.49: +3 -7
lines
Diff to previous 1.49 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 5 15:45:48 2003 UTC (9 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.48: +5 -4
lines
Diff to previous 1.48 (colored)
Pass the inode flags to set as an argument to ufs_dirrewrite(). Use it to restore the behaviour of not updating the modified time of a directory that moves to a new parent.
Revision 1.48 / (download) - annotate - [select for diffs], Wed Jul 23 13:56:53 2003 UTC (9 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.47: +4 -2
lines
Diff to previous 1.47 (colored)
yield cpu in directory entry search loop in ufs_lookup(). this loop can take a bit long time with large buffer cache.
Revision 1.47 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:47 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.46: +13 -14
lines
Diff to previous 1.46 (colored)
Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
Revision 1.46 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:48 2003 UTC (9 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +7 -7
lines
Diff to previous 1.45 (colored)
Undo part of the ktrace/lwp changes. In particular: * Remove the "lwp *" argument that was added to vget(). Turns out that nothing actually used it! * Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(), and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted above, didn't use it). * Remove all of the "lwp *" arguments to internal functions that were added just to appease the above.
Revision 1.45 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:29 2003 UTC (9 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.44: +19 -18
lines
Diff to previous 1.44 (colored)
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
Revision 1.44 / (download) - annotate - [select for diffs], Thu May 15 20:25:33 2003 UTC (10 years ago) by kristerw
Branch: MAIN
Changes since 1.43: +7 -7
lines
Diff to previous 1.43 (colored)
The C language does not permit statements of the form (X ? Y : Z) = 0; even though gcc handles this by a stupid extension. Transform these to correct C. Approved by fvdl.
Revision 1.43 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:44 2003 UTC (10 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.42: +26 -22
lines
Diff to previous 1.42 (colored)
Add support for UFS2. UFS2 is an enhanced FFS, adding support for 64 bit block pointers, extended attribute storage, and a few other things. This commit does not yet include the code to manipulate the extended storage (for e.g. ACLs), this will be done later. Originally written by Kirk McKusick and Network Associates Laboratories for FreeBSD.
Revision 1.42 / (download) - annotate - [select for diffs], Tue Nov 26 01:23:31 2002 UTC (10 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Changes since 1.41: +11 -10
lines
Diff to previous 1.41 (colored)
eliminate i_ino from in-core inode and use local variable instead. ok'ed by Frank van der Linden.
Revision 1.41 / (download) - annotate - [select for diffs], Mon Nov 25 01:55:21 2002 UTC (10 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +5 -5
lines
Diff to previous 1.40 (colored)
Avoid strict-alias warnings.
Revision 1.40 / (download) - annotate - [select for diffs], Sat Sep 28 20:11:09 2002 UTC (10 years, 7 months ago) by dbj
Branch: MAIN
CVS Tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge
Changes since 1.39: +32 -20
lines
Diff to previous 1.39 (colored)
Add support for the Apple UFS variation on ffs This is the bulk of PR #17345 The general approach is to use a run time deteriminable value for DIRBLKSIZ. Additional allowances are included for using MAXSYMLINKLEN with FS_42INODEFMT and a shift in the cylinder group cluster summary count array. Support is added for managing the Apple UFS volume label.
Revision 1.39 / (download) - annotate - [select for diffs], Sun May 12 23:06:30 2002 UTC (11 years ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
gehenna-devsw-base,
gehenna-devsw
Changes since 1.38: +2 -3
lines
Diff to previous 1.38 (colored)
Eliminate commons.
Revision 1.38 / (download) - annotate - [select for diffs], Tue Dec 18 10:57:23 2001 UTC (11 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: newlock-base,
newlock,
ifpoll-base,
ifpoll,
eeh-devprop-base,
eeh-devprop
Changes since 1.37: +28 -6
lines
Diff to previous 1.37 (colored)
Bring over fixes from FreeBSD that weren't incorporated yet, mainly from Kirk McKusick. They implement taking pending block/inode frees into account for the sake of correct statfs() numbers, and adding a new softdep type (newdirblk) to correctly handle newly allocated directory blocks. Minor additional changes: 1) swap the newly introduced fs_pendinginodes and fs_pendingblock fields in ffs_sb_swap, and 2) declare lkt_held in the debug version of the softdep lock structure volatile, as it can be modified from interrupt context #ifdef DEBUG.
Revision 1.37 / (download) - annotate - [select for diffs], Mon Nov 19 11:56:50 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.36: +4 -2
lines
Diff to previous 1.36 (colored)
fix compile error noted by itojun in [kern/14638]
Revision 1.36 / (download) - annotate - [select for diffs], Mon Nov 19 07:00:21 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.35: +13 -15
lines
Diff to previous 1.35 (colored)
be consistent and cache UFS_*NEEDSWAP results in more functions
Revision 1.35 / (download) - annotate - [select for diffs], Thu Nov 8 02:39:16 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.34: +4 -1
lines
Diff to previous 1.34 (colored)
add RCSID
Revision 1.34 / (download) - annotate - [select for diffs], Fri Oct 26 05:56:10 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.33: +1 -2
lines
Diff to previous 1.33 (colored)
remove #include <ufs/ufs/quota.h> where it was just to appease <ufs/ufs/inode.h>, since the latter now includes the former. leave the former in source that obviously uses specific bits of it (for completeness.)
Revision 1.33 / (download) - annotate - [select for diffs], Mon Feb 26 20:25:11 2001 UTC (12 years, 2 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base,
thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf,
perseant-lfsv2-base,
perseant-lfsv2
Branch point for: thorpej-mips-cache,
nathanw_sa,
kqueue
Changes since 1.32: +5 -5
lines
Diff to previous 1.32 (colored)
Some bugfixes from rev 1.33 and 1.34 of this file in FreeBSD (some
in effect cosmetic). Original FreeBSD commit messages:
==
date: 2000/03/15 07:18:15; author: mckusick; state: Exp; lines: +4 -4
Bug fixes for currently harmless bugs that could rise to bite
the unwary if the code were called in slightly different ways.
[...]
2) In ufs_lookup() there is an off-by-one error in the test that checks
if dp->i_diroff is outside the range of the the current directory size.
This is completely harmless, since the following while-loop condition
'dp->i_offset < endsearch' is never met, so the code immediately
does a second pass starting at dp->i_offset = 0.
3) Again in ufs_lookup(), the condition in a sanity check is wrong
for directories that are longer than one block. This bug means that
the sanity check is only effective for small directories.
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
==
date: 2000/03/09 18:54:59; author: dillon; state: Exp; lines: +2 -2
In the 'found' case for ufs_lookup() the underlying bp's data was
being accessed after the bp had been releaed. A simple move of the
brelse() solves the problem.
Approved by: jkh
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
==
Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 28 14:16:43 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.31: +1 -4
lines
Diff to previous 1.31 (colored)
remove include of <vm/vm.h> and <uvm/uvm_extern.h>
Revision 1.31 / (download) - annotate - [select for diffs], Sat May 13 23:43:16 2000 UTC (13 years ago) by perseant
Branch: MAIN
CVS Tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5,
minoura-xpg4dl-base,
minoura-xpg4dl
Changes since 1.30: +2 -2
lines
Diff to previous 1.30 (colored)
Change the sementics of the last parameter from a boolean ("waitfor") to
a set of flags ("flags"). Two flags are defined, UPDATE_WAIT and
UPDATE_DIROP.
Under the old semantics, VOP_UPDATE would block if waitfor were set,
under the assumption that directory operations should be done
synchronously. At least LFS and FFS+softdep do not make this
assumption; FFS+softdep got around the problem by enclosing all relevant
calls to VOP_UPDATE in a "if(!DOINGSOFTDEP(vp))", while LFS simply
ignored waitfor, one of the reasons why NFS-serving an LFS filesystem
did not work properly.
Under the new semantics, the UPDATE_DIROP flag is a hint to the
fs-specific update routine that the call comes from a dirop routine, and
should be wait for, or not, accordingly.
Closes PR#8996.
Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 30 12:41:14 2000 UTC (13 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.29: +9 -9
lines
Diff to previous 1.29 (colored)
Remove register declarations.
Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 20 06:34:46 2000 UTC (13 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.28: +1 -3
lines
Diff to previous 1.28 (colored)
remove obsoleted #if defined(UVM)
Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 14 22:00:23 2000 UTC (13 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.27: +19 -8
lines
Diff to previous 1.27 (colored)
Fixes to the softdep code from Ethan Solomita <ethan@geocast.com>. * Fix buffer ordering when it has dependencies. * Alleviate memory problems. * Deal with some recursive vnode locks (sigh). * Fix other bugs.
Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:15 1999 UTC (13 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
chs-ubc2-newbase
Changes since 1.26: +192 -119
lines
Diff to previous 1.26 (colored)
Add Kirk McKusick's soft updates code to the trunk. Not enabled by default, as the copyright on the main file (ffs_softdep.c) is such that is has been put into gnusrc. options SOFTDEP will pull this in. This code also contains the trickle syncer. Bump version number to 1.4O
Revision 1.26 / (download) - annotate - [select for diffs], Sun Sep 5 14:26:33 1999 UTC (13 years, 8 months ago) by jdolecek
Branch: MAIN
CVS Tags: fvdl-softdep-base,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Changes since 1.25: +3 -54
lines
Diff to previous 1.25 (colored)
Adapt to cache_lookup() changes. Tested by: jdolecek Rewieved by: wrstuden
Revision 1.25 / (download) - annotate - [select for diffs], Wed Aug 4 18:40:06 1999 UTC (13 years, 9 months ago) by wrstuden
Branch: MAIN
Changes since 1.24: +2 -2
lines
Diff to previous 1.24 (colored)
Make the compiler happy..
Revision 1.24 / (download) - annotate - [select for diffs], Wed Aug 4 18:14:59 1999 UTC (13 years, 9 months ago) by wrstuden
Branch: MAIN
Changes since 1.23: +2 -2
lines
Diff to previous 1.23 (colored)
Fix tyop in previous.
Revision 1.23 / (download) - annotate - [select for diffs], Wed Aug 4 18:07:39 1999 UTC (13 years, 9 months ago) by wrstuden
Branch: MAIN
Changes since 1.22: +7 -6
lines
Diff to previous 1.22 (colored)
Modify ISDOTDOT case so that we only clear PDIRUNLOCK if we really re-lock the parent vnode.
Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 30 01:55:38 1999 UTC (13 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.21: +3 -3
lines
Diff to previous 1.21 (colored)
Make one code path a bit clearer.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 8 01:06:07 1999 UTC (13 years, 10 months ago) by wrstuden
Branch: MAIN
Changes since 1.20: +33 -10
lines
Diff to previous 1.20 (colored)
Modify file systems to deal with struct lock in struct vnode. All leaf fs's other than nfs use genfs_lock() for locking. Modify lookup routines to set PDIRUNLOCK when they unlock the parrent.
Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 12 01:39:43 1999 UTC (14 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: chs-ubc2
Changes since 1.19: +3 -3
lines
Diff to previous 1.19 (colored)
Fix printf format problems on Alpha.
Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 8 08:37:12 1998 UTC (14 years, 8 months ago) by fvdl
Branch: MAIN
CVS Tags: kenh-if-detach-base,
kenh-if-detach,
chs-ubc-base,
chs-ubc
Changes since 1.18: +4 -4
lines
Diff to previous 1.18 (colored)
Fix some maxsymlinklen comparisons for old filesystems that were wrong after the byteswap changes.
Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 9 20:15:40 1998 UTC (14 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.17: +6 -6
lines
Diff to previous 1.17 (colored)
bzero->memset, bcopy->memcpy, bcmp->memcmp
Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 28 18:37:48 1998 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base,
eeh-paddr_t
Changes since 1.16: +4 -3
lines
Diff to previous 1.16 (colored)
Change the "aresid" argument of vn_rdwr() from an int * to a size_t *, to match the new uio_resid type.
Revision 1.16 / (download) - annotate - [select for diffs], Sat Jun 13 16:26:23 1998 UTC (14 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.15: +65 -60
lines
Diff to previous 1.15 (colored)
KNF, mostly of FFS_EI changes.
Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 18 15:57:29 1998 UTC (15 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.14: +112 -52
lines
Diff to previous 1.14 (colored)
Add support for reading/writing FFS in non-native byte order, conditioned to "options FFS_EI". The superblock and inodes (without blk addr) are byteswapped at disk read/write time, other metadatas are byteswapped when used (as they are acceeded directly in the buffer cache). This required the addition of a "um_flags" field to struct ufsmount. ffs_bswap.c contains superblock and inode byteswap routines also used by userland utilities.
Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:37 1998 UTC (15 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.13: +20 -23
lines
Diff to previous 1.13 (colored)
Merge with Lite2 + local changes
Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 11 10:10:13 1997 UTC (15 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base,
thorpej-signal,
netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
marc-pcmcia-bp,
marc-pcmcia-base,
marc-pcmcia,
bouyer-scsipi
Changes since 1.12: +17 -17
lines
Diff to previous 1.12 (colored)
Add support for ext2fs, this needed a few modifications to ufs/ufs/inode.h:
- added an "union inode_ext" to struct inode, for the per-fs extentions.
For now only ext2fs uses it.
- i_din is now an union:
union {
struct dinode ffs_din; /* 128 bytes of the on-disk dinode. */
struct ext2fs_dinode e2fs_din; /* 128 bytes of the on-disk dinode. */
} i_din
Added a lot of #define i_ffs_* and i_e2fs_* to access the fields.
- Added two macros: FFS_ITIMES and EXT2FS_ITIMES. ITIMES calls the rigth
macro, depending on the time of the inode. ITIMES is used where necessary,
FFS_ITIMES and EXT2FS_ITIMES in other places.
Revision 1.12 / (download) - annotate - [select for diffs], Mon May 12 19:04:16 1997 UTC (16 years ago) by kleink
Branch: MAIN
Changes since 1.11: +7 -1
lines
Diff to previous 1.11 (colored)
When doing a CREATE, RENAME or DELETE w/ DOWHITEOUT and ISWHITEOUT lookup on a non-existent file and the end of the pathname is reached, and this `current' directory resides on a read-only mounted file system, don't update/prepare its inode for the actual operation but return EROFS.
Revision 1.11 / (download) - annotate - [select for diffs], Thu May 8 16:20:44 1997 UTC (16 years ago) by mycroft
Branch: MAIN
Changes since 1.10: +2 -4
lines
Diff to previous 1.10 (colored)
Pass the vnode type to vaccess(), and use it when checking VEXEC. Make sure that the mode bits passed to vaccess() and returned by foo_getattr() contain only permission bits.
Revision 1.10 / (download) - annotate - [select for diffs], Thu May 8 10:57:47 1997 UTC (16 years ago) by mycroft
Branch: MAIN
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored)
VEXEC -> VLOOKUP, as appropriate.
Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 12 21:58:56 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot,
mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Changes since 1.8: +5 -5
lines
Diff to previous 1.8 (colored)
revert previous kprintf changes
Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 10 17:21:33 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.7: +5 -5
lines
Diff to previous 1.7 (colored)
printf -> kprintf, sprintf -> ksprintf
Revision 1.7 / (download) - annotate - [select for diffs], Fri Feb 9 22:36:06 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Changes since 1.6: +43 -26
lines
Diff to previous 1.6 (colored)
ufs prototype changes
Revision 1.6 / (download) - annotate - [select for diffs], Tue May 30 11:41:38 1995 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Changes since 1.5: +20 -3
lines
Diff to previous 1.5 (colored)
Fix thinko in previous commit. Do this as suggested by John Kohl.
Revision 1.5 / (download) - annotate - [select for diffs], Tue May 30 10:44:49 1995 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +3 -4
lines
Diff to previous 1.4 (colored)
When replacing a whiteout, set i_endoff to 0, so the directory cannot be shrunk.
Revision 1.4 / (download) - annotate - [select for diffs], Fri Dec 30 22:45:55 1994 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +3 -2
lines
Diff to previous 1.3 (colored)
Don't look at d_type for old format file systems.
Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 14 13:04:00 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +80 -37
lines
Diff to previous 1.2 (colored)
Sync with CSRG.
Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 29 06:47:29 1994 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Changes since 1.1: +3 -2
lines
Diff to previous 1.1 (colored)
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 8 11:43:19 1994 UTC (18 years, 11 months ago) by mycroft
Branch: MAIN
Update to 4.4-Lite fs code, with local changes.