The NetBSD Project

CVS log for src/sys/ufs/lfs/lfs_extern.h

[BACK] Up to [cvs.netbsd.org] / src / sys / ufs / lfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.96.30.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:56 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.96: +5 -4 lines
Diff to previous 1.96 (colored) next main 1.97 (colored)

sync with head

Revision 1.96.34.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:51 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.96.34.1: +3 -2 lines
Diff to previous 1.96.34.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored)

sync to -current.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Feb 23 22:33:33 2012 UTC (3 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, HEAD
Changes since 1.97: +3 -2 lines
Diff to previous 1.97 (colored)

Make sure that __BEGIN_DECLS and __END_DECLS are paired.

Revision 1.96.34.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:54 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

merge to -current.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Jan 2 22:10:44 2012 UTC (4 months, 3 weeks ago) by perseant
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6, jmcneill-usbmp-base2
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)


* Remove PGO_RECLAIM during lfs_putpages()' call to genfs_putpages(),
  to avoid a live lock in the latter when reclaiming a vnode with
  dirty pages.

* Add a new segment flag, SEGM_RECLAIM, to note when a segment is
  being written for vnode reclamation, and record which inode is being
  reclaimed, to aid in forensic debugging.

* Add a new segment flag, SEGM_SINGLE, so that opportunistic writes
  can write a single segment's worth of blocks and then stop, rather
  than writing all the way up to the cleaner's reserved number of
  segments.

* Add assert statements to check mutex ownership is the way it ought
  to be, mostly in lfs_putpages; fix problems uncovered by this.

* Don't clear VU_DIROP until the inode actually makes its way to disk,
  avoiding a problem where dirop inodes could become separated
  (uncovered by a modified version of the "ckckp" forensic regression
  test).

* Move the vfs_getopsbyname() call into lfs_writerd.  Prepare code to
  make lfs_writerd notice when there are no more LFSs, and exit losing
  the reference, so that, in theory, the module can be unloaded.  This
  code is not enabled, since it causes a crash on exit.

* Set IN_MODIFIED on inodes flushed by lfs_flush_dirops.  Really we
  only need to set IN_MODIFIED if we are going to write them again
  (e.g., to write pages); need to think about this more.

Finally, several changes to help avoid "no clean segments" panics:

* In lfs_bmapv, note when a vnode is loaded only to discover whether
  its blocks are live, so it can immediately be recycled.  Since the
  cleaner will try to choose ~empty segments over full ones, this
  prevents the cleaner from (1) filling the vnode cache with junk, and
  (2) squeezing any unwritten writes to disk and running the fs out of
  segments.

* Overestimate by half the amount of metadata that will be required
  to fill the clean segments.  This will make the disk appear smaller,
  but should help avoid a "no clean segments" panic.

* Rearrange lfs_writerd.  In particular, lfs_writerd now pays
  attention to the number of clean segments available, and holds off
  writing until there is room.

Revision 1.94.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:38 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.94.10.1: +1 -5 lines
Diff to previous 1.94.10.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

sync with head.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:06 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.95: +1 -5 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:25 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.95: +1 -5 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

Sync with head.

Revision 1.94.6.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:21 2008 UTC (3 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.94.6.1: +0 -4 lines
Diff to previous 1.94.6.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

Sync with HEAD.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Jun 28 01:34:05 2008 UTC (3 years, 10 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, simonb-wapbl-nbase, simonb-wapbl-base, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, 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, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.95: +1 -5 lines
Diff to previous 1.95 (colored)

Create sysctl entries during module initialisation and destroy them
appropriately.

Many of these file systems are now ready for modularisation.

Revision 1.94.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:36 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.94: +1 -8 lines
Diff to previous 1.94 (colored)

Sync with HEAD.

Revision 1.94.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:55 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.94: +1 -8 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

sync with head.

Revision 1.94.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:26:00 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.94: +1 -8 lines
Diff to previous 1.94 (colored)

sync with head.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:11 2008 UTC (4 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.94: +1 -8 lines
Diff to previous 1.94 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.91.10.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:28 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.91.10.2: +5 -3 lines
Diff to previous 1.91.10.2 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored)

Sync with HEAD.

Revision 1.69.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:48:11 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.4: +6 -4 lines
Diff to previous 1.69.2.4 (colored) next main 1.70 (colored)

sync with head

Revision 1.91.4.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:30 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.91: +10 -9 lines
Diff to previous 1.91 (colored) next main 1.92 (colored)

sync with HEAD

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:24 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.93: +5 -3 lines
Diff to previous 1.93 (colored) next main 1.94 (colored)

Sync with HEAD

Revision 1.94 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:11 2008 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.93: +5 -3 lines
Diff to previous 1.93 (colored)

Merge vmlocking2 to head.

Revision 1.91.10.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:50 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.91.10.1: +2 -2 lines
Diff to previous 1.91.10.1 (colored) to branchpoint 1.91 (colored)

Sync with HEAD.

Revision 1.92.2.4 / (download) - annotate - [select for diffs], Wed Dec 26 21:40:01 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.92.2.3: +2 -2 lines
Diff to previous 1.92.2.3 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

Sync with head.

Revision 1.92.2.3 / (download) - annotate - [select for diffs], Wed Dec 19 21:27:15 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.92.2.2: +2 -2 lines
Diff to previous 1.92.2.2 (colored) to branchpoint 1.92 (colored)

Use a global lfs_lock.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Wed Dec 19 00:02:00 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.92.2.1: +2 -2 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored)

Get lfs mostly working.

Revision 1.91.2.2 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:53 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.91.2.1: +2 -2 lines
Diff to previous 1.91.2.1 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored)

Sync with HEAD.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:55 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.92: +2 -2 lines
Diff to previous 1.92 (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.91.10.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:40 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.91: +5 -6 lines
Diff to previous 1.91 (colored)

Sync with HEAD.

Revision 1.69.2.4 / (download) - annotate - [select for diffs], Fri Dec 7 17:35:21 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.3: +5 -6 lines
Diff to previous 1.69.2.3 (colored)

sync with head

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:50 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.92: +4 -2 lines
Diff to previous 1.92 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Tue Nov 27 19:39:25 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.91: +5 -6 lines
Diff to previous 1.91 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:31 2007 UTC (4 years, 6 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.91: +5 -6 lines
Diff to previous 1.91 (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.69.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:46:53 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.2: +6 -4 lines
Diff to previous 1.69.2.2 (colored)

sync with head.

Revision 1.87.12.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:05:19 2007 UTC (4 years, 8 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.87: +3 -2 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.88.2.4 / (download) - annotate - [select for diffs], Mon Aug 20 21:28:26 2007 UTC (4 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.88.2.3: +2 -2 lines
Diff to previous 1.88.2.3 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

Sync with HEAD.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:51:14 2007 UTC (4 years, 9 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Sync with HEAD.

Revision 1.91.12.2 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:21 2007 UTC (4 years, 9 months ago) by pooka
Branch: matt-mips64
Changes since 1.91.12.1: +297 -0 lines
Diff to previous 1.91.12.1 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored)

* nuke the nameidata parameter from VFS_MOUNT().  Nobody on tech-kern
  knew what it was supposed to be used for and wrstuden gave a go-ahead
* while rototilling, convert file systems which went easily to
  use VFS_PROTOS() instead of manually prototyping the methods

Revision 1.91.12.1, Tue Jul 31 21:14:20 2007 UTC (4 years, 9 months ago) by pooka
Branch: matt-mips64
Changes since 1.91: +0 -297 lines
FILE REMOVED

file lfs_extern.h was added on branch matt-mips64 on 2007-07-31 21:14:21 +0000

Revision 1.91 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:20 2007 UTC (4 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, matt-mips64-base, matt-armv6-prevmlocking, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored)

* nuke the nameidata parameter from VFS_MOUNT().  Nobody on tech-kern
  knew what it was supposed to be used for and wrstuden gave a go-ahead
* while rototilling, convert file systems which went easily to
  use VFS_PROTOS() instead of manually prototyping the methods

Revision 1.88.2.3 / (download) - annotate - [select for diffs], Sun Jul 15 13:28:17 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.88.2.2: +3 -2 lines
Diff to previous 1.88.2.2 (colored) to branchpoint 1.88 (colored)

Sync with head.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Jul 12 19:35:36 2007 UTC (4 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: nick-csl-alignment-base, hpcarm-cleanup
Branch point for: nick-csl-alignment
Changes since 1.89: +3 -2 lines
Diff to previous 1.89 (colored)

Change the VFS_MOUNT() interface so that the 'data' buffer passed to the
fs code is a kernel buffer, pass though the length of the buffer as well.
Since the length of the userspace buffer isn'it (yet) passed through the mount
system call, add a field to the vfsops structure containing the default length.
Split sys_mount() for calls from compat code.
Ride one of the recent kernel version changes - old fs LKMs will load, but
sys_mount() will reject any attempt to use them.

Revision 1.88.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:45 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.88: +3 -2 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

Sync with head.

Revision 1.88.2.2 / (download) - annotate - [select for diffs], Fri Jun 8 14:18:17 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.88.2.1: +3 -2 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (colored)

Sync with head.

Revision 1.87.6.1 / (download) - annotate - [select for diffs], Tue Jun 5 20:35:00 2007 UTC (4 years, 11 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.87: +3 -2 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Pull up following revision(s) (requested by perseant in ticket #703):
	sys/miscfs/genfs/genfs.h              1.21
	sys/miscfs/genfs/genfs_vnops.c        1.151
	sys/ufs/lfs/lfs.h                     1.119, 1.120
	sys/ufs/lfs/lfs_bio.c                 1.99-101
	sys/ufs/lfs/lfs_extern.h              1.89
	sys/ufs/lfs/lfs_inode.c               1.108, 1.109
	sys/ufs/lfs/lfs_segment.c             1.197, 1.199, 1.200
	sys/ufs/lfs/lfs_subr.c                1.69, 1.70
	sys/ufs/lfs/lfs_syscalls.c            1.119
	sys/ufs/lfs/lfs_vfsops.c              1.234, 1.235
	sys/ufs/lfs/lfs_vnops.c               1.195, 1.196, 1.200, 1.202-206

Reduce busy waiting in lfs_putpages(), and other LFS improvements.

Revision 1.87.8.2 / (download) - annotate - [select for diffs], Mon May 7 10:56:16 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.87.8.1: +3 -2 lines
Diff to previous 1.87.8.1 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Apr 17 01:16:46 2007 UTC (5 years, 1 month ago) by perseant
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, mjf-ufs-trans-base
Changes since 1.88: +3 -2 lines
Diff to previous 1.88 (colored)

Install a new sysctl, vfs.lfs.ignore_lazy_sync, which causes LFS to ignore
the "smooth" syncer, as if vfs.sync.*delay = 0, but only for LFS.  The
default is "on", i.e., ignore lazy sync.

Reduce the amount of polling/busy-waiting done by lfs_putpages().  To
accomplish this, copied genfs_putpages() and modified it to indicate which
page it was that caused it to return with EDEADLK.  fsync()/fdatasync()
should no longer ever fail with EAGAIN, and should not consume huge
quantities of cpu.

Also, try to make dirops less likely to be written as the result of a
VOP_PUTPAGES(), while ensuring that they are written regularly.

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:23 2007 UTC (5 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.88: +4 -2 lines
Diff to previous 1.88 (colored)

Pull in the initial set of changes for the vmlocking branch.

Revision 1.87.8.1 / (download) - annotate - [select for diffs], Mon Mar 12 06:01:08 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

Sync with HEAD.

Revision 1.88 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:45 2007 UTC (5 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: +2 -2 lines
Diff to previous 1.87 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.69.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:51:01 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.1: +10 -3 lines
Diff to previous 1.69.2.1 (colored)

sync with head.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 03:00:00 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.75: +36 -26 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

sync with head

Revision 1.75.6.5 / (download) - annotate - [select for diffs], Sun Sep 3 15:26:07 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.75.6.4: +2 -1 lines
Diff to previous 1.75.6.4 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

sync with head.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Sep 1 19:41:28 2006 UTC (5 years, 8 months ago) by perseant
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Changes since 1.86: +2 -1 lines
Diff to previous 1.86 (colored)

Changes to help the roll-forward agent, to wit:

* Mark being-deleted files in the Ifile so we can finish deleting them
  at fs mount time.
* Flag the Ifile with "cleaner must clean" when writers are waiting for
  the cleaner, rather than relying solely on the cleaner's estimation of
  whether it should clean or not.
* Note partial segments written by a user agent (in particular,
  fsck_lfs) so that repeated rolls forward don't interfere with one
  another.
* Add a new fcntl, LFCNPASS, that allows the log to wrap exactly once,
  for better testing of the validity of checkpoints.
* Keep track of the on-disk nlink count when cleaning, so that we don't
  partially complete directory operations while cleaning.
* Ensure that every single Ifile inode write represents a consistent
  view of the filesystem.  In particular, the accounting for the segment
  we are writing the inode into must be correct, and the accounting for
  the segment that inode used to reside in must be correct.  Rather than
  just rewriting the inode if we wrote it wrong, rewrite the necessary
  ifile blocks before writing the inode so we never write it wrong.
* Don't unmark any VDIROP vnodes if we haven't written them to disk,
  avoiding yet another problem with the "wait for the cleaner" error
  return from lfs_putpages().

Also, move the last callback to an aiodone call, so we no longer do any
memory management from interrupt context.

Revision 1.75.6.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:47:37 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.75.6.3: +9 -3 lines
Diff to previous 1.75.6.3 (colored) to branchpoint 1.75 (colored)

sync with head

Revision 1.64.2.9 / (download) - annotate - [select for diffs], Thu Aug 10 12:16:46 2006 UTC (5 years, 9 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Changes since 1.64.2.8: +4 -1 lines
Diff to previous 1.64.2.8 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored)

Apply patch (requested by fair in perseant #1457):
Bring LFS up to current, including a patch (1.95 lfs_alloc.c) that
should prevent the inode free list errors seen on the STABLE branch
subsequent to pullup ticket #1327.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jul 20 23:49:07 2006 UTC (5 years, 10 months ago) by perseant
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.85: +7 -2 lines
Diff to previous 1.85 (colored)

Separate the (non-working) LFS kernel roll-forward code into its own file,
lfs_rfw.c.

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:50:13 2006 UTC (5 years, 10 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.83: +3 -2 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

Merge from HEAD.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:26 2006 UTC (5 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

Fix alignement problems for fhandle_t, exposed by gcc4.1.

While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).

Revision 1.84 / (download) - annotate - [select for diffs], Thu Jun 29 19:28:21 2006 UTC (5 years, 10 months ago) by perseant
Branch: MAIN
Changes since 1.83: +2 -1 lines
Diff to previous 1.83 (colored)

Don't wake up the cleaner if the filesystem is unwrappable, and fix the
compatibility fcntls.

Also includes one-line fixes for an MP locking bug and a zero-length FINFO
problem that manifested during testing.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:39 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69: +34 -34 lines
Diff to previous 1.69 (colored)

sync with head.

Revision 1.75.4.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:39:43 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.75.4.1: +23 -23 lines
Diff to previous 1.75.4.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

Sync with head.

Revision 1.75.10.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:48 2006 UTC (6 years ago) by tron
Branch: peter-altq
Changes since 1.75.10.1: +25 -23 lines
Diff to previous 1.75.10.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

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

Revision 1.75.6.3 / (download) - annotate - [select for diffs], Wed May 24 10:59:25 2006 UTC (6 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.75.6.2: +23 -23 lines
Diff to previous 1.75.6.2 (colored) to branchpoint 1.75 (colored)

sync with head.

Revision 1.64.2.8 / (download) - annotate - [select for diffs], Sat May 20 22:41:31 2006 UTC (6 years ago) by riz
Branch: netbsd-3
Changes since 1.64.2.7: +2 -1 lines
Diff to previous 1.64.2.7 (colored) to branchpoint 1.64 (colored)

Pull up following revision(s) (requested by perseant in ticket #1327):
	sys/ufs/lfs/lfs_vnops.c: revision 1.171
	sys/ufs/lfs/lfs_extern.h: revision 1.81
	sys/ufs/lfs/lfs_segment.c: revision 1.177
Don't ever partially write dirops, even if we need the cleaner to run.
This increases the chances of the "no clean segments" panic slightly,
but allows us to run the ckckp regression test successfully to completion.

Revision 1.64.2.7 / (download) - annotate - [select for diffs], Sat May 20 22:38:57 2006 UTC (6 years ago) by riz
Branch: netbsd-3
Changes since 1.64.2.6: +3 -1 lines
Diff to previous 1.64.2.6 (colored) to branchpoint 1.64 (colored)

Pull up following revision(s) (requested by perseant in ticket #1327):
	sys/ufs/lfs/lfs.h: revision 1.104
	sys/ufs/lfs/lfs_vfsops.c: revision 1.206
	sys/ufs/lfs/lfs_vnops.c: revision 1.170
	sys/ufs/lfs/lfs_extern.h: revision 1.80
	sys/ufs/lfs/lfs_segment.c: revision 1.176
	sys/ufs/lfs/lfs_inode.c: revision 1.103 via patch
	sys/ufs/lfs/lfs_alloc.c: revision 1.90
Postpone the segment accounting changes coming from truncation until the
inode that makes those changes valid is either written to disk by
lfs_writeinode() or discarded by lfs_vfree().
A couple of locking fixes are also included as well.

Revision 1.64.2.6 / (download) - annotate - [select for diffs], Sat May 20 22:10:29 2006 UTC (6 years ago) by riz
Branch: netbsd-3
Changes since 1.64.2.5: +2 -1 lines
Diff to previous 1.64.2.5 (colored) to branchpoint 1.64 (colored)

Pull up following revision(s) (requested by perseant in ticket #1327):
	sys/ufs/lfs/lfs_vfsops.c: revision 1.200
	sys/ufs/lfs/lfs_vnops.c: revision 1.164
	sys/ufs/lfs/lfs_inode.c: revision 1.101
	sys/ufs/lfs/lfs_extern.h: revision 1.78
	sys/ufs/lfs/lfs.h: revision 1.100
Implement a somewhat finer-grained mechanism for paging LFS-backed pages.
The writer daemon, if it does not need to flush the whole filesystem,
now only writes the vnodes for which the pagedaemon has requested pageouts
(although it does not pay attention to the page ranges the pagedaemon
supplies).

Revision 1.64.2.5 / (download) - annotate - [select for diffs], Sat May 20 22:09:28 2006 UTC (6 years ago) by riz
Branch: netbsd-3
Changes since 1.64.2.4: +2 -1 lines
Diff to previous 1.64.2.4 (colored) to branchpoint 1.64 (colored)

Pull up following revision(s) (requested by perseant in ticket #1327):
	sys/ufs/lfs/lfs_alloc.c: revision 1.87
	sys/ufs/lfs/lfs.h: revision 1.99
	sys/ufs/lfs/lfs_vfsops.c: revision 1.199
	sys/ufs/lfs/lfs_extern.h: revision 1.77 via patch
Keep the free list ordered.  This solves a problem first pointed out to me
by Michel Oey, in which an aged LFS writes up to an extra Ifile block for
every file created; and paves the way for the truncation of the Ifile when
many files are deleted.

Revision 1.64.2.4 / (download) - annotate - [select for diffs], Sat May 20 21:59:47 2006 UTC (6 years ago) by riz
Branch: netbsd-3
Changes since 1.64.2.3: +3 -2 lines
Diff to previous 1.64.2.3 (colored) to branchpoint 1.64 (colored)

Pull up following revision(s) (requested by perseant in ticket #1327):
	sys/ufs/lfs/lfs_vnops.c: revision 1.158
	sys/ufs/lfs/lfs_subr.c: revision 1.57
	sys/ufs/lfs/lfs_segment.c: revision 1.171
	sys/ufs/lfs/lfs.h: revision 1.97
	sys/ufs/lfs/lfs_vfsops.c: revision 1.195
	sys/ufs/lfs/lfs_extern.h: revision 1.76
Improvements to LFS's paging mechanism, to wit:
* Acknowledge that sometimes there are more dirty pages to be written to
   disk than clean segments.  When we reach the danger line,
   lfs_gop_write() now returns EAGAIN.  The caller of VOP_PUTPAGES(), if
   it holds the segment lock, drops it and waits for the cleaner to make
   room before continuing.
* Note and avoid a three-way deadlock in lfs_putpages (a writer holding
   a page busy blocks on the cleaner while the cleaner blocks on the
   segment lock while lfs_putpages blocks on the page).

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Sat May 20 21:50:26 2006 UTC (6 years ago) by riz
Branch: netbsd-3
Changes since 1.64.2.2: +3 -3 lines
Diff to previous 1.64.2.2 (colored) to branchpoint 1.64 (colored)

Pull up following revision(s) (requested by perseant in ticket #1327):
	sys/ufs/lfs/lfs_vnops.c: revision 1.152
	sys/ufs/lfs/lfs_debug.c: revision 1.31
	sys/ufs/lfs/lfs_subr.c: revision 1.53
	sys/ufs/lfs/lfs_extern.h: revision 1.68
	sys/ufs/lfs/lfs_inode.c: revision 1.96
	sys/ufs/lfs/lfs_bio.c: revision 1.86
	sys/ufs/lfs/lfs_alloc.c: revision 1.83
	sys/ufs/lfs/lfs_vfsops.c: revision 1.181
	sys/ufs/lfs/lfs.h: revision 1.88
	sys/ufs/lfs/lfs_segment.c: revision 1.164
- sprinkle const
- avoid shadow variables.

Revision 1.83 / (download) - annotate - [select for diffs], Thu May 18 23:15:09 2006 UTC (6 years ago) by perseant
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Changes since 1.82: +3 -1 lines
Diff to previous 1.82 (colored)

Break out the finfo array manipulation code into two new functions,
lfs_acquire_finfo() and lfs_release_finfo().  Add a debugging check
for zero-length finfo arrays in the segment summary to avoid future
regressions.

Revision 1.82 / (download) - annotate - [select for diffs], Sun May 14 21:32:45 2006 UTC (6 years ago) by elad
Branch: MAIN
Changes since 1.81: +18 -14 lines
Diff to previous 1.81 (colored)

integrate kauth.

Revision 1.75.8.5 / (download) - annotate - [select for diffs], Thu May 11 23:32:03 2006 UTC (6 years ago) by elad
Branch: elad-kernelauth
Changes since 1.75.8.4: +4 -10 lines
Diff to previous 1.75.8.4 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

sync with head

Revision 1.75.8.4 / (download) - annotate - [select for diffs], Sat May 6 23:32:58 2006 UTC (6 years ago) by christos
Branch: elad-kernelauth
Changes since 1.75.8.3: +1 -2 lines
Diff to previous 1.75.8.3 (colored) to branchpoint 1.75 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.75.8.3 / (download) - annotate - [select for diffs], Wed May 3 16:01:08 2006 UTC (6 years ago) by yamt
Branch: elad-kernelauth
Changes since 1.75.8.2: +13 -8 lines
Diff to previous 1.75.8.2 (colored) to branchpoint 1.75 (colored)

wrap some decls with #ifdef _KERNEL.  ok'ed by elad@.

Revision 1.81 / (download) - annotate - [select for diffs], Mon May 1 19:47:29 2006 UTC (6 years ago) by perseant
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored)

Don't ever partially write dirops, even if we need the cleaner to run.
This increases the chances of the "no clean segments" panic slightly,
but allows us to run the ckckp regression test successfully to completion.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Apr 30 21:19:42 2006 UTC (6 years ago) by perseant
Branch: MAIN
Changes since 1.79: +3 -1 lines
Diff to previous 1.79 (colored)

Postpone the segment accounting changes coming from truncation until the
inode that makes those changes valid is either written to disk by
lfs_writeinode() or discarded by lfs_vfree().

A couple of locking fixes are also included as well.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Apr 23 14:15:12 2006 UTC (6 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.78: +1 -10 lines
Diff to previous 1.78 (colored)

remove unused FFS_NAMES and LFS_NAMES.

Revision 1.75.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:25 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.75: +5 -2 lines
Diff to previous 1.75 (colored)

Sync with head.

Revision 1.75.8.2 / (download) - annotate - [select for diffs], Wed Apr 19 03:54:09 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.75.8.1: +5 -2 lines
Diff to previous 1.75.8.1 (colored) to branchpoint 1.75 (colored)

sync with head.

Revision 1.75.6.2 / (download) - annotate - [select for diffs], Tue Apr 11 11:55:58 2006 UTC (6 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.75.6.1: +3 -1 lines
Diff to previous 1.75.6.1 (colored) to branchpoint 1.75 (colored)

sync with head

Revision 1.78 / (download) - annotate - [select for diffs], Sat Apr 8 00:26:34 2006 UTC (6 years, 1 month ago) by perseant
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4
Changes since 1.77: +2 -1 lines
Diff to previous 1.77 (colored)

Implement a somewhat finer-grained mechanism for paging LFS-backed pages.
The writer daemon, if it does not need to flush the whole filesystem,
now only writes the vnodes for which the pagedaemon has requested pageouts
(although it does not pay attention to the page ranges the pagedaemon
supplies).

Revision 1.77 / (download) - annotate - [select for diffs], Sat Apr 8 00:16:56 2006 UTC (6 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.76: +2 -1 lines
Diff to previous 1.76 (colored)

Keep the free list ordered.  This solves a problem first pointed out to me
by Michel Oey, in which an aged LFS writes up to an extra Ifile block for
every file created; and paves the way for the truncation of the Ifile when
many files are deleted.

Revision 1.75.6.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:56 2006 UTC (6 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored)

sync with head.

Revision 1.75.10.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:30 2006 UTC (6 years, 2 months ago) by tron
Branch: peter-altq
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored)

Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Mar 24 20:05:32 2006 UTC (6 years, 2 months ago) by perseant
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored)

Improvements to LFS's paging mechanism, to wit:

* Acknowledge that sometimes there are more dirty pages to be written to
  disk than clean segments.  When we reach the danger line,
  lfs_gop_write() now returns EAGAIN.  The caller of VOP_PUTPAGES(), if
  it holds the segment lock, drops it and waits for the cleaner to make
  room before continuing.

* Note and avoid a three-way deadlock in lfs_putpages (a writer holding
  a page busy blocks on the cleaner while the cleaner blocks on the
  segment lock while lfs_putpages blocks on the page).

Revision 1.75.8.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:39:12 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.75: +6 -6 lines
Diff to previous 1.75 (colored)

Adapt to kernel authorization KPI.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:03:05 2006 UTC (6 years, 4 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.73: +1 -3 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

sync with head.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Jan 14 17:41:17 2006 UTC (6 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.74: +0 -1 lines
Diff to previous 1.74 (colored)

- unify ffs_blkatoff and lfs_blkatoff.
- remove ufs_ops::uo_blkatoff.
- add directory read-ahead code.  (disabled for now.)

Revision 1.74 / (download) - annotate - [select for diffs], Fri Jan 6 09:27:55 2006 UTC (6 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.73: +1 -2 lines
Diff to previous 1.73 (colored)

remove an obsolete prototype.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:26 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.72: +7 -7 lines
Diff to previous 1.72 (colored)

merge ktrace-lwp.

Revision 1.50.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:32 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.50.2.8: +15 -13 lines
Diff to previous 1.50.2.8 (colored) next main 1.51 (colored)

Sync with HEAD. Here we go again...

Revision 1.72 / (download) - annotate - [select for diffs], Wed Nov 2 12:39:14 2005 UTC (6 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.71: +8 -7 lines
Diff to previous 1.71 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 03:00:30 2005 UTC (6 years, 7 months ago) by yamt
Branch: yamt-vop
Changes since 1.71: +8 -7 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

adapt ufs.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Sep 13 04:13:25 2005 UTC (6 years, 8 months ago) by christos
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.70: +1 -3 lines
Diff to previous 1.70 (colored)

split out lfs_itimes(). It is used in fsck_lfs.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Sep 12 16:24:41 2005 UTC (6 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Use nanotime() to update the time fields in filesystems. Convert the code
from macros to real functions. Original patch and review from chuq.
Note: ext2fs only keeps seconds in the on-disk inode, and msdosfs does not
have enough precision for all fields, so this is not very useful for those
two.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Wed Aug 24 18:43:37 2005 UTC (6 years, 9 months ago) by riz
Branch: netbsd-3
CVS Tags: 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
Changes since 1.64.2.1: +2 -2 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored)

Pull up following revision(s) (requested by yamt in ticket #688):
	sys/miscfs/genfs/genfs_vnops.c: revision 1.98 via patch
	sys/ufs/ffs/ffs_vfsops.c: revision 1.165
	sys/ufs/lfs/lfs_extern.h: revision 1.69
	sys/fs/filecorefs/filecore_vfsops.c: revision 1.20
	sys/nfs/nfs_node.c: revision 1.80
	sys/fs/smbfs/smbfs_node.c: revision 1.24
	sys/fs/cd9660/cd9660_vfsops.c: revision 1.24
	sys/fs/msdosfs/msdosfs_denode.c: revision 1.8
	sys/miscfs/genfs/genfs_node.h: revision 1.6
	sys/ufs/lfs/lfs_vfsops.c: revision 1.183
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.86
	sys/fs/adosfs/advfsops.c: revision 1.23
	sys/fs/ntfs/ntfs_vfsops.c: revision 1.31
- constify genfs_ops.
- use member designators.

        sys/miscfs/genfs/genfs_vnops.c: revision 1.99 via patch
genfs_getpages: don't forget to put the vnode onto the syncer's work que
ue
even in the case of PGO_LOCKED.

        sys/uvm/uvm_bio.c: revision 1.40
        sys/uvm/uvm_pager.h: revision 1.29
        sys/miscfs/genfs/genfs_vnops.c: revision 1.100 via patch
        sys/ufs/ufs/ufs_inode.c: revision 1.50
- introduce PGO_NOBLOCKALLOC and use it for ubc mapping
  to prevent unnecessary block allocations in the case that
  page size > block size.
- ufs_balloc_range: use VM_PROT_WRITE+PGO_NOBLOCKALLOC rather than
  VM_PROT_READ.

        sys/uvm/uvm_fault.c: revision 1.96
        sys/miscfs/genfs/genfs_vnops.c: revision 1.101 via patch
        sys/uvm/uvm_object.h: revision 1.19
        sys/miscfs/genfs/genfs_node.h: revision 1.7
ensure that vnodes with dirty pages are always on syncer's queue.
- genfs_putpages: wait for i/o completion of PG_RELEASED/PG_PAGEOUT pages by
  setting "wasclean" false when encountering them.
  suggested by Stephan Uphoff in PR/24596 (1).
- genfs_putpages: write protect pages when cleaning out, if
  we're going to take the vnode off the syncer's queue.
  uvm_fault: don't write-map pages unless its vnode is already on
  the syncer's queue.
  fix PR/24596 (3) but in the different way from the suggested fix.
  (to keep our current behaviour, ie. not to require explicit msync.
  discussed on tech-kern@.)
- genfs_putpages: don't mistakenly take a vnode off the queue
  by introducing a generation number in genfs_node.
  genfs_getpages: increment the generation number.
  suggested by Stephan Uphoff in PR/24596 (2).
- add some assertions.

        sys/miscfs/genfs/genfs_vnops.c: revision 1.102 via patch
genfs_putpages: don't bother to clean the vnode unless VONWORKLST.

        sys/ufs/ffs/ffs_vnops.c: revision 1.71
ffs_full_fsync: because VBLK/VCHR can be mmap'ed,
do VOP_PUTPAGES for them as well.

        sys/uvm/uvm_fault.c: revision 1.97
uvm_fault: check a correct object in the case of layered filesystems.
fix PR/30811 from Jukka Salmi.

        sys/uvm/uvm_object.h: revision 1.20
        sys/ufs/ffs/ffs_vfsops.c: revision 1.167
        sys/uvm/uvm_bio.c: revision 1.41
        sys/ufs/ufs/ufs_vnops.c: revision 1.129
        sys/uvm/uvm_mmap.c: revision 1.92
        sys/uvm/uvm_fault.c: revision 1.98
        sys/kern/vfs_subr.c: revision 1.252
        sys/fs/msdosfs/denode.h: revision 1.5
        sys/miscfs/genfs/genfs_vnops.c: revision 1.103 via patch
        sys/fs/msdosfs/msdosfs_denode.c: revision 1.9
        sys/sys/vnode.h: revision 1.141
        sys/ufs/ufs/ufs_inode.c: revision 1.51
        sys/ufs/ufs/ufs_extern.h: revision 1.45 via patch
        sys/miscfs/genfs/genfs_node.h: revision 1.8
        sys/ufs/lfs/lfs_vfsops.c: revision 1.184
        sys/uvm/uvm_pager.h: revision 1.30
        sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.87
update file timestamps for nfsd loaned-read and mmap.
PR/25279.  discussed on tech-kern@.

        sys/miscfs/genfs/genfs_vnops.c: revision 1.104 via patch
don't write-protect wired pages.  pointed by Chuck Silvers.
for now, leave a vnode on the syncer's queue, as suggested by him.

        sys/ufs/ffs/ffs_vnops.c: revision 1.72
revert VCHR part of ffs_vnops.c 1.71.
as VCHR uses the device pager, no point to call VOP_PUTPAGES here.
pointed by Chuck Silvers.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Jun 28 09:30:38 2005 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

- constify genfs_ops.
- use member designators.

Revision 1.68 / (download) - annotate - [select for diffs], Sun May 29 21:25:24 2005 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

- sprinkle const
- avoid shadow variables.

Revision 1.59.2.1.2.1 / (download) - annotate - [select for diffs], Tue May 10 05:08:57 2005 UTC (7 years ago) by riz
Branch: netbsd-2
CVS Tags: 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
Changes since 1.59.2.1: +11 -3 lines
Diff to previous 1.59.2.1 (colored) next main 1.60 (colored)

Pull up the following revisions (requested by perseant in ticket #1281):

        1.8 sys/ufs/lfs/TODO
        1.75 sys/ufs/lfs/lfs.h                  (via patch)
        1.74 sys/ufs/lfs/lfs_alloc.c            (via patch)
        1.49, 1.51 sys/ufs/lfs/lfs_balloc.c     (1.51 via patch)
        1.78 sys/ufs/lfs/lfs_bio.c
        1.62 sys/ufs/lfs/lfs_extern.h           (via patch)
        1.156 sys/ufs/lfs/lfs_segment.c         (via patch)
        1.48 sys/ufs/lfs/lfs_subr.c
        1.101 sys/ufs/lfs/lfs_syscalls.c
        1.163 sys/ufs/lfs/lfs_vfsops.c          (via patch)
        1.134 sys/ufs/lfs/lfs_vnops.c           (via patch)
        1.61 sys/ufs/ufs/ufs_readwrite.c        (via patch)

        1.20 libexec/lfs_cleanerd/clean.h       (via patch)
        1.52 libexec/lfs_cleanerd/cleanerd.c    (via patch)
        1.41 libexec/lfs_cleanerd/library.c     (via patch)

        1.4 regress/sys/fs/lfs/newfs_fsck/Makefile
        1.2 regress/sys/fs/lfs/newfs_fsck/mkfs_mount
        1.2 regress/sys/fs/lfs/newfs_fsck/smallfiles
        1.3 sbin/fsck_lfs/bufcache.c
        1.3 sbin/fsck_lfs/bufcache.h
        1.3 sbin/fsck_lfs/lfs.h
        1.8 sbin/fsck_lfs/lfs.c                 (via patch)
        1.8 sbin/fsck_lfs/pass3.c               (via patch)
        1.18 sbin/fsck_lfs/pass0.c              (via patch)
        1.18 sbin/fsck_lfs/utilities.c          (via patch)
        1.7 sbin/fsck_lfs/segwrite.c
        1.19 sbin/fsck_lfs/setup.c              (via patch)
        1.3 sbin/newfs_lfs/Makefile
        0 sbin/newfs_lfs/lfs.c                  (yes, remove it)
        1.1 sbin/newfs_lfs/make_lfs.c
        1.15 sbin/newfs_lfs/newfs.c             (via patch)

Various minor LFS improvements.

Kernel:

* Note when lfs_putpages(9) thinks it is not going to be writing any
   pages before calling genfs_putpages(9).  This prevents a situation in
   which blocks can be queued for writing without a segment header.
* Correct computation of NRESERVE(), though it is still a gross
   overestimate in most cases.  Note that if NRESERVE() is too high, it
   may be impossible to create files on the filesystem.  We catch this
   case on filesystem mount and refuse to mount r/w.
* Allow filesystems to be mounted whose block size is == MAXBSIZE.
* Somewhere along the line, ufs_bmaparray(9) started mangling UNWRITTEN
   entries in indirect blocks again, triggering a failed assertion "daddr
   <= LFS_MAX_DADDR".  Explicitly convert to and from int32_t to correct
   this.  Should fix PR #29045.
* Add a high-water mark for the number of dirty pages any given LFS can
   hold before triggering a flush.  This is settable by sysctl, but off
   (zero) by default.
* Be more careful about the MAX_BYTES and MAX_BUFS computations so we
   shouldn't see "please increase to at least zero" messages.
* Note that VBLK and VCHR vnodes can have nonzero values in di_db[0]
   even though their v_size == 0.  Don't panic when we see this.
   Fixes PR #26680.
* Change lfs_bfree to a signed quantity.  The manner in which it is
   processed before being passed to the cleaner means that sometimes it
   may drop below zero, and the cleaner must be aware of this.
* Never report bfree < 0 (or higher than lfs_dsize) through
   lfs_statfs(9).  This prevents df(1) from ever telling us that our full
   filesystems have 16TB free.
* Account space allocated through lfs_balloc(9) that does not have
   associated buffer headers, so that the pagedaemon doesn't run us out
   of segments.
* Return ENOSPC from lfs_balloc(9) when bfree drops to zero.
* Address a deadlock in lfs_bmapv/lfs_markv when the filesystem is being
   unmounted.  Because vfs_busy() is a shared lock, and
   lfs_bmapv/lfs_markv mark the filesystem vfs_busy(), the cleaner can be
   holding the lock that umount() is blocking on, then try to vfs_busy()
   again in getnewvnode().

cleaner:

* Adapt lfs_cleanerd to use the fcntl call to get the Ifile filehandle,
   so it need not be in the namespace.
* Make lfs_cleanerd be more careful when there are very few available
   segments.
* Make lfs_cleanerd less verbose when the filesystem is unmounted.

newfs_lfs, fsck_lfs, and regression:

* Extend the lfs library from fsck_lfs(8) so that it can be used with a
   not-yet-existent LFS.  Make newfs_lfs(8) use this library, so it can
   create LFSs whose Ifile is larger than one segment.  Addresses PR #11110.
* Make newfs_lfs(8) use strsuftoi64() for its arguments, a la newfs(8).
* Make fsck_lfs(8) respect the "file system is clean" flag.
* Don't let fsck_lfs(8) think it has dirty blocks when invoked with the
   -n flag.
* Remove the Ifile from the filesystem namespace.  The cleaner now uses
   a fcntl call on the root inode to find the Ifile filehandle.  (As a
   side-effect, addresses PR #29144.)

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Sat May 7 11:21:30 2005 UTC (7 years ago) by tron
Branch: netbsd-3
Changes since 1.64: +5 -2 lines
Diff to previous 1.64 (colored)

Apply patch (requested by perseant in ticket #242):
* fsck_lfs buffer cache fixes, including PR #29151
* Change fsck_lfs phase 0 message to reflect reality
* fsck_lfs: check phase 5 (cleanerinfo accounting) even on
  roll-forward
* Keep better track of the free list during roll-forward, avoiding
  a core dump
* Improve hash table use for fsck_lfs buffer and vnode cache
* Document fsck_lfs flag -f, and implement -q
* Add resize_lfs, including kernel support
* Add LFS to mountd's list of exportable filesystem types
* Make the LFS lkm work again [christos@]
* Add MP locking to the LFS kernel subsystem
* Fix pager_map deadlock in lfs_putpages()
* Avoid incomplete file extension that looks like "partial
  truncation" to fsck
* Use lfs_malloc for cleaner malloc, since the cleaner often runs
  in low-memory conditions.
* Use splay trees, not hash table, to track page allocation for
  write.
* Fix mkdir panic on full fs
* Fix page accounting leak by counting differently.
* Use rightly named structure for lfs_getattr [skrll@]
* Cosmetic changes for readability.

Revision 1.61.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:39 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.61: +22 -5 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with -current

Revision 1.67 / (download) - annotate - [select for diffs], Sat Apr 23 19:47:51 2005 UTC (7 years, 1 month ago) by perseant
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.66: +5 -2 lines
Diff to previous 1.66 (colored)

Provide a resize_lfs(8), including kernel and cleaner support.  The current
implementation requires the fs to be mounted while resizing.  Tested in both
directions, and everything appears to work happily, but ymmv.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Apr 16 17:35:58 2005 UTC (7 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored)

Use splay trees, rather than a hash table, to manage the accounting of
blocks allocated through VOP_BALLOC() for pages to be written to disk.
This accounting no longer takes a noticeable fraction of the system CPU.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Apr 14 00:44:17 2005 UTC (7 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.64: +1 -2 lines
Diff to previous 1.64 (colored)

Consolidate the hash table we use to maintain the integrity of lfs_avail
into a single, system-wide table, rather than having a separate hash table
per inode.  Significantly reduces the "system" cpu usage of your average
file write.

Revision 1.61.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:37:03 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.61: +18 -4 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.50.2.8 / (download) - annotate - [select for diffs], Tue Mar 8 13:53:12 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.50.2.7: +8 -2 lines
Diff to previous 1.50.2.7 (colored)

Sync with HEAD.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Mar 8 00:18:19 2005 UTC (7 years, 2 months ago) by perseant
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.63: +8 -2 lines
Diff to previous 1.63 (colored)

Straighten out the maze of ifdefs.  Instead, consolidate all the debugging
stuff under '#ifdef DEBUG', and use sysctl knobs to turn on/off particular
parts of the debugging reporting (if DEBUG is enabled).  Re-enable the LFS
statistics in sysctl, while I'm there.  A bit of a rototill.

Revision 1.50.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:54:48 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.50.2.6: +12 -4 lines
Diff to previous 1.50.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.63 / (download) - annotate - [select for diffs], Sat Feb 26 22:32:20 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

nuke trailing whitespace

Revision 1.62 / (download) - annotate - [select for diffs], Sat Feb 26 05:40:42 2005 UTC (7 years, 2 months ago) by perseant
Branch: MAIN
Changes since 1.61: +11 -3 lines
Diff to previous 1.61 (colored)

Various minor LFS improvements:

* Note when lfs_putpages(9) thinks it is not going to be writing any
  pages before calling genfs_putpages(9).  This prevents a situation in
  which blocks can be queued for writing without a segment header.
* Correct computation of NRESERVE(), though it is still a gross
  overestimate in most cases.  Note that if NRESERVE() is too high, it
  may be impossible to create files on the filesystem.  We catch this
  case on filesystem mount and refuse to mount r/w.
* Allow filesystems to be mounted whose block size is == MAXBSIZE.
* Somewhere along the line, ufs_bmaparray(9) started mangling UNWRITTEN
  entries in indirect blocks again, triggering a failed assertion "daddr
  <= LFS_MAX_DADDR".  Explicitly convert to and from int32_t to correct
  this.
* Add a high-water mark for the number of dirty pages any given LFS can
  hold before triggering a flush.  This is settable by sysctl, but off
  (zero) by default.
* Be more careful about the MAX_BYTES and MAX_BUFS computations so we
  shouldn't see "please increase to at least zero" messages.
* Note that VBLK and VCHR vnodes can have nonzero values in di_db[0]
  even though their v_size == 0.  Don't panic when we see this.
* Change lfs_bfree to a signed quantity.  The manner in which it is
  processed before being passed to the cleaner means that sometimes it
  may drop below zero, and the cleaner must be aware of this.
* Never report bfree < 0 (or higher than lfs_dsize) through
  lfs_statvfs(9).  This prevents df(1) from ever telling us that our full
  filesystems have 16TB free.
* Account space allocated through lfs_balloc(9) that does not have
  associated buffer headers, so that the pagedaemon doesn't run us out
  of segments.
* Return ENOSPC from lfs_balloc(9) when bfree drops to zero.
* Address a deadlock in lfs_bmapv/lfs_markv when the filesystem is being
  unmounted.  Because vfs_busy() is a shared lock, and
  lfs_bmapv/lfs_markv mark the filesystem vfs_busy(), the cleaner can be
  holding the lock that umount() is blocking on, then try to vfs_busy()
  again in getnewvnode().

Revision 1.50.2.6 / (download) - annotate - [select for diffs], Sat Oct 30 09:17:57 2004 UTC (7 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.50.2.5: +2 -2 lines
Diff to previous 1.50.2.5 (colored)

Oops, forgot this as part of the

"Reduced diff to HEAD by restoring the struct proc * argument to lfs_bmapv"

change

Revision 1.50.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:39:15 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.50.2.4: +7 -7 lines
Diff to previous 1.50.2.4 (colored)

Fix the sync with head I botched.

Revision 1.50.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:59 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.50.2.3: +7 -7 lines
Diff to previous 1.50.2.3 (colored)

Sync with HEAD.

Revision 1.50.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:53 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.50.2.2: +3 -3 lines
Diff to previous 1.50.2.2 (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.50.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:57 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.50.2.1: +22 -16 lines
Diff to previous 1.50.2.1 (colored)

Sync with HEAD

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Sun May 23 10:44:28 2004 UTC (8 years ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-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
Branch point for: netbsd-2
Changes since 1.59: +5 -1 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Pull up revision 1.61 (requested by atatat in ticket #374):
Tweak sysctl setup functions (the macros, actually) for use in lkms,
and tweak lkminit_*.c (where applicable) to call them, and to call
sysctl_teardown() when being unloaded.
This consists of (1) making setup functions not be static when being
compiled as lkms (change to sys/sysctl.h), (2) making prototypes
visible for the various setup functions in header files (changes to
various header files), and (3) making simple "load" and "unload"
functions in the actual lkminit stuff.
linux_sysctl.c also needs its root exposed (ie, made not static) for
this (when built as an lkm).

Revision 1.61 / (download) - annotate - [select for diffs], Thu May 20 06:34:33 2004 UTC (8 years ago) by atatat
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.60: +5 -1 lines
Diff to previous 1.60 (colored)

Tweak sysctl setup functions (the macros, actually) for use in lkms,
and tweak lkminit_*.c (where applicable) to call them, and to call
sysctl_teardown() when being unloaded.

This consists of (1) making setup functions not be static when being
compiled as lkms (change to sys/sysctl.h), (2) making prototypes
visible for the various setup functions in header files (changes to
various header files), and (3) making simple "load" and "unload"
functions in the actual lkminit stuff.

linux_sysctl.c also needs its root exposed (ie, made not static) for
this (when built as an lkm).

Revision 1.60 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:44 2004 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Mar 9 07:43:49 2004 UTC (8 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.58: +3 -1 lines
Diff to previous 1.58 (colored)

calculate data checksum inline.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:25 2003 UTC (8 years, 5 months ago) by atatat
Branch: MAIN
Changes since 1.57: +1 -2 lines
Diff to previous 1.57 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Nov 7 17:55:29 2003 UTC (8 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored)

- tweak lfs_update_single()'s prototype so that it can be used by
  roll-forward code.
- reduce code duplication using the above in update_meta()
  this also fixes fragment accounting.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Nov 7 14:52:27 2003 UTC (8 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

fix spec vnode aliasing.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Sep 29 15:12:08 2003 UTC (8 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.54: +1 -6 lines
Diff to previous 1.54 (colored)

remove redundant prototypes.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 23 05:26:49 2003 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored)

cleanup IN_ADIROP/VDIROP handling a little.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:36 2003 UTC (8 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.52: +2 -6 lines
Diff to previous 1.52 (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.52 / (download) - annotate - [select for diffs], Sat Jul 12 16:17:07 2003 UTC (8 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.51: +7 -1 lines
Diff to previous 1.51 (colored)

- protect global resource counts with lfs_subsys_lock.
- clean up scattered externs a little.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:23 2003 UTC (8 years, 10 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.50: +10 -10 lines
Diff to previous 1.50 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jul 2 13:40:52 2003 UTC (8 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.50: +3 -1 lines
Diff to previous 1.50 (colored)

- add a new functions, lfs_writer_enter/leave, and use them instead of
  duplicated code fragments.
- add an assertion.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:38 2003 UTC (8 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.49: +8 -8 lines
Diff to previous 1.49 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:44 2003 UTC (8 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (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.48 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:26 2003 UTC (8 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.47: +10 -10 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:40 2003 UTC (9 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.46: +7 -6 lines
Diff to previous 1.46 (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.46 / (download) - annotate - [select for diffs], Thu Mar 20 14:11:46 2003 UTC (9 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

fix "more than one fragment" panics;
direct and indirect block pointers are not valid in the case of shortlinks.
while i'm here, move duplicated code in lfs_vget/fastvget into a new
function, lfs_vinit.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Mar 8 02:55:48 2003 UTC (9 years, 2 months ago) by perseant
Branch: MAIN
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)

Add an lfs_strategy() that checks to make sure we're not trying to read
where the cleaner is trying to write, instead of tying up the "live"
buffers (or pages).

Fix a bug in the LFS_UBC case where oversized buffers would not be
checksummed correctly, causing uncleanable segments.

Make sure that wakeup(fs->lfs_iocount) is done if fs->lfs_iocount is 1
as well as 0, since we wait in some places for it to drop to 1.

Activate all pages that make it into lfs_gop_write without the segment
lock held, since they must have been dirtied very recently, even if
PG_DELWRI is not set.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Feb 25 23:12:07 2003 UTC (9 years, 3 months ago) by perseant
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

Make fs-specific fcntl macros take three arguments (approved wrstuden).
Let LFS use fcntl for cleaner functions.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Feb 24 08:42:49 2003 UTC (9 years, 3 months ago) by perseant
Branch: MAIN
Changes since 1.42: +7 -1 lines
Diff to previous 1.42 (colored)

Add lfs_ioctl vnode op, with ioctls to take over cleaner system call
functionality (not including segment clean, since that is now done
automatically as checkpoints happen).

Revision 1.42 / (download) - annotate - [select for diffs], Sun Feb 23 00:22:34 2003 UTC (9 years, 3 months ago) by perseant
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Fix a buffer overflow bug in the LFS_UBC case that manifested itself
either as a mysterious UVM error or as "panic: dirty bufs".  Verify
maximum size in lfs_malloc.

Teach lfs_updatemeta and lfs_shellsort about oversized cluster blocks from
lfs_gop_write.

When unwiring pages in lfs_gop_write, deactivate them, under the theory
that the pagedaemon wanted to free them last we knew.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Feb 20 04:27:24 2003 UTC (9 years, 3 months ago) by perseant
Branch: MAIN
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

Tabify, and fix some comment alignment problems.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Feb 18 02:00:08 2003 UTC (9 years, 3 months ago) by perseant
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

Make it compile again, grr....

Revision 1.39 / (download) - annotate - [select for diffs], Mon Feb 17 23:48:18 2003 UTC (9 years, 3 months ago) by perseant
Branch: MAIN
Changes since 1.38: +20 -17 lines
Diff to previous 1.38 (colored)

Add code to UBCify LFS.  This is still behind "#ifdef LFS_UBC" for now
(there are still some details to work out) but expect that to go
away soon.  To support these basic changes (creation of lfs_putpages,
lfs_gop_write, mods to lfs_balloc) several other changes were made, to
wit:

* Create a writer daemon kernel thread whose purpose is to handle page
  writes for the pagedaemon, but which also takes over some of the
  functions of lfs_check().  This thread is started the first time an
  LFS is mounted.

* Add a "flags" parameter to GOP_SIZE.  Current values are
  GOP_SIZE_READ, meaning that the call should return the size of the
  in-core version of the file, and GOP_SIZE_WRITE, meaning that it
  should return the on-disk size.  One of GOP_SIZE_READ or
  GOP_SIZE_WRITE must be specified.

* Instead of using malloc(...M_WAITOK) for everything, reserve enough
  resources to get by and use malloc(...M_NOWAIT), using the reserves if
  necessary.  Use the pool subsystem for structures small enough that
  this is feasible.  This also obsoletes LFS_THROTTLE.

And a few that are not strictly necessary:

* Moves the LFS inode extensions off onto a separately allocated
  structure; getting closer to LFS as an LKM.  "Welcome to 1.6O."

* Unified GOP_ALLOC between FFS and LFS.

* Update LFS copyright headers to correct values.

* Actually cast to unsigned in lfs_shellsort, like the comment says.

* Keep track of which segments were empty before the previous
  checkpoint; any segments that pass two checkpoints both dirty and
  empty can be summarily cleaned.  Do this.  Right now lfs_segclean
  still works, but this should be turned into an effectless
  compatibility syscall.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Feb 1 18:34:14 2003 UTC (9 years, 3 months ago) by tron
Branch: MAIN
Changes since 1.37: +4 -1 lines
Diff to previous 1.37 (colored)

Only use MALLOC_DECLARE() in kernel namespace.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:53 2003 UTC (9 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +4 -1 lines
Diff to previous 1.36 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jan 30 14:18:32 2003 UTC (9 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.35: +1 -2 lines
Diff to previous 1.35 (colored)

there's no need to treat VOP_WHITEOUT as dirop
because it modifies only one inode.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:27 2003 UTC (9 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.34: +7 -6 lines
Diff to previous 1.34 (colored)

Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.

Revision 1.24.2.8 / (download) - annotate - [select for diffs], Sun Dec 29 20:57:19 2002 UTC (9 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.24.2.7: +2 -2 lines
Diff to previous 1.24.2.7 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Dec 28 14:39:09 2002 UTC (9 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

- in lfs_reserve, vref vnodes that we're locking so that cleaner doesn't
  try to reclaim them.
  (workaround for deadlock noted in the comment in lfs_reserveavail)
- in lfs_rename, mark vnodes which are being moved as well as directry vnodes.

Revision 1.24.2.7 / (download) - annotate - [select for diffs], Thu Dec 19 00:59:48 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.24.2.6: +2 -2 lines
Diff to previous 1.24.2.6 (colored) to branchpoint 1.24 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Dec 17 14:37:49 2002 UTC (9 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

no need for cleaner to hold vnode locks.
cleaner and normal vnode operations are synchronized enough by
seglock/fraglock and buf's B_BUSY-ness.

Revision 1.24.2.6 / (download) - annotate - [select for diffs], Wed Dec 11 06:51:44 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.24.2.5: +6 -1 lines
Diff to previous 1.24.2.5 (colored) to branchpoint 1.24 (colored)

Sync with HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Dec 1 00:12:11 2002 UTC (9 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.31: +6 -1 lines
Diff to previous 1.31 (colored)

Add multiple inclusion protection for headers.  Fix mismatched
variable declarations (missing const's) as needed.

Revision 1.24.6.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:52:11 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.24.6.3: +34 -29 lines
Diff to previous 1.24.6.3 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

catch up with -current on kqueue branch

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Thu Jun 20 15:53:08 2002 UTC (9 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.30: +29 -27 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

catch up with -current.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Thu Jun 20 03:51:23 2002 UTC (9 years, 11 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.30: +29 -27 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Pull up revision 1.31 (requested by perseant in ticket #325):
For synchronous writes, keep separate i/o counters for each write, so
processes don't have to wait for one another to finish (e.g., nfsd seems
to be a little happier now, though I haven't measured the difference).
Synchronous checkpoints, however, must always wait for all i/o to finish.
Take the contents of the callback functions and have them run in thread
context instead (aiodoned thread).  lfs_iocount no longer has to be
protected in splbio(), and quite a bit less of the segment construction
loop needs to be in splbio() as well.
If lfs_markv is handed a block that is not the correct size according to
the inode, refuse to process it.  (Formerly it was extended to the "correct"
size.)  This is possibly more prone to deadlock, but less prone to corruption.
lfs_segclean now outright refuses to clean segments that appear to have live
bytes in them.  Again this may be more prone to deadlock but avoids
corruption.
Replace ufsspec_close and ufsfifo_close with LFS equivalents; this means
that no UFS functions need to know about LFS_ITIMES any more.  Remove
the reference from ufs/inode.h.
Tested on i386, test-compiled on alpha.

Revision 1.24.2.5 / (download) - annotate - [select for diffs], Thu Jun 20 03:50:30 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.24.2.4: +34 -29 lines
Diff to previous 1.24.2.4 (colored) to branchpoint 1.24 (colored)

Catch up to -current.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jun 16 00:13:15 2002 UTC (9 years, 11 months ago) by perseant
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Changes since 1.30: +29 -27 lines
Diff to previous 1.30 (colored)

For synchronous writes, keep separate i/o counters for each write, so
processes don't have to wait for one another to finish (e.g., nfsd seems
to be a little happier now, though I haven't measured the difference).
Synchronous checkpoints, however, must always wait for all i/o to finish.

Take the contents of the callback functions and have them run in thread
context instead (aiodoned thread).  lfs_iocount no longer has to be
protected in splbio(), and quite a bit less of the segment construction
loop needs to be in splbio() as well.

If lfs_markv is handed a block that is not the correct size according to
the inode, refuse to process it.  (Formerly it was extended to the "correct"
size.)  This is possibly more prone to deadlock, but less prone to corruption.

lfs_segclean now outright refuses to clean segments that appear to have live
bytes in them.  Again this may be more prone to deadlock but avoids
corruption.

Replace ufsspec_close and ufsfifo_close with LFS equivalents; this means
that no UFS functions need to know about LFS_ITIMES any more.  Remove
the reference from ufs/inode.h.

Tested on i386, test-compiled on alpha.

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 14 20:03:53 2002 UTC (10 years ago) by perseant
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored)

Phase one of my three-phase plan to make LFS play nice with UBC, and bug-fixes
I found while making sure there weren't any new ones.

* Make the write clusters keep track of the buffers whose blocks they contain.
  This should make it possible to (1) write clusters using a page mapping
  instead of malloc, if desired, and (2) schedule blocks for rewriting
  (somewhere else) if a write error occurs.  Code is present to use
  pagemove() to construct the clusters but that is untested and will go away
  anyway in favor of page mapping.
* DEBUG now keeps a log of Ifile writes, so that any lingering instances of
  the "dirty bufs" problem can be properly debugged.
* Keep track of whether the Ifile has been dirtied by various routines that
  can be called by lfs_segwrite, and loop on that until it is clean, for
  a checkpoint.  Checkpoints need to be squeaky clean.
* Warn the user (once) if the Ifile grows larger than is reasonable for their
  buffer cache.  Both lfs_mountfs and lfs_unmount check since the Ifile can
  grow.
* If an inode is not found in a disk block, try rereading the block, under
  the assumption that the block was copied to a cluster and then freed.
* Protect WRITEINPROG() with splbio() to fix a hang in lfs_update.

Revision 1.29 / (download) - annotate - [select for diffs], Sun May 12 23:06:29 2002 UTC (10 years ago) by matt
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Eliminate commons.

Revision 1.24.6.3 / (download) - annotate - [select for diffs], Sat Mar 16 16:02:25 2002 UTC (10 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.24.6.2: +2 -1 lines
Diff to previous 1.24.6.2 (colored) to branchpoint 1.24 (colored)

Catch up with -current.

Revision 1.24.2.4 / (download) - annotate - [select for diffs], Thu Feb 28 04:15:29 2002 UTC (10 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.24.2.3: +2 -1 lines
Diff to previous 1.24.2.3 (colored) to branchpoint 1.24 (colored)

Catch up to -current.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 11 02:47:29 2002 UTC (10 years, 3 months ago) by perseant
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

Include the space taken by inodes in the count made by lfs_check();
make VOP_SETATTR call lfs_check.  This prevents large numbers of inode
changes (say, at the end of tar(1)) from filling the buffer cache.

Revision 1.24.6.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:05:12 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.24.6.1: +5 -1 lines
Diff to previous 1.24.6.1 (colored) to branchpoint 1.24 (colored)

Sync kqueue branch with -current.

Revision 1.24.2.3 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:52 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.24.2.2: +4 -1 lines
Diff to previous 1.24.2.2 (colored) to branchpoint 1.24 (colored)

Catch up to -current.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 18 07:51:17 2001 UTC (10 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (colored)

use the new compatibility routines to allow mmap() to work
(in the same non-coherent fashion that it worked pre-UBC)
until someone has time to do it the right way.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:48:27 2001 UTC (10 years, 7 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Catch up with -current.

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:37:06 2001 UTC (10 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.24.2.1: +2 -1 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored)

Catch up to -current.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Sep 15 16:13:05 2001 UTC (10 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

add a new VFS op, vfs_reinit, which is called when desiredvnodes is
adjusted via sysctl.  file systems that have hash tables which are
sized based on the value of this variable now resize those hash tables
using the new value.  the max number of FFS softdeps is also recalculated.

convert various file systems to use the <sys/queue.h> macros for
their hash tables.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:13:26 2001 UTC (10 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.24: +93 -94 lines
Diff to previous 1.24 (colored)

Catch up with -current.

Revision 1.24.6.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:14:08 2001 UTC (10 years, 9 months ago) by lukem
Branch: kqueue
Changes since 1.24: +93 -94 lines
Diff to previous 1.24 (colored)

update to -current

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 13 20:30:23 2001 UTC (10 years, 10 months ago) by perseant
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Changes since 1.24: +93 -94 lines
Diff to previous 1.24 (colored)

Merge the short-lived perseant-lfsv2 branch into the trunk.

Kernels and tools understand both v1 and v2 filesystems; newfs_lfs
generates v2 by default.  Changes for the v2 layout include:

- Segments of non-PO2 size and arbitrary block offset, so these can be
  matched to convenient physical characteristics of the partition (e.g.,
  stripe or track size and offset).

- Address by fragment instead of by disk sector, paving the way for
  non-512-byte-sector devices.  In theory fragments can be as large
  as you like, though in reality they must be smaller than MAXBSIZE in size.

- Use serial number and filesystem identifier to ensure that roll-forward
  doesn't get old data and think it's new.  Roll-forward is enabled for
  v2 filesystems, though not for v1 filesystems by default.

- The inode free list is now a tailq, paving the way for undelete (undelete
  is not yet implemented, but can be without further non-backwards-compatible
  changes to disk structures).

- Inode atime information is kept in the Ifile, instead of on the inode;
  that is, the inode is never written *just* because atime was changed.
  Because of this the inodes remain near the file data on the disk, rather
  than wandering all over as the disk is read repeatedly.  This speeds up
  repeated reads by a small but noticeable amount.

Other changes of note include:

- The ifile written by newfs_lfs can now be of arbitrary length, it is no
  longer restricted to a single indirect block.

- Fixed an old bug where ctime was changed every time a vnode was created.
  I need to look more closely to make sure that the times are only updated
  during write(2) and friends, not after-the-fact during a segment write,
  and certainly not by the cleaner.

Revision 1.24.4.2 / (download) - annotate - [select for diffs], Fri Jun 29 03:56:41 2001 UTC (10 years, 10 months ago) by perseant
Branch: perseant-lfsv2
Changes since 1.24.4.1: +92 -93 lines
Diff to previous 1.24.4.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Get rid of __P(), protoizing where it had not already been done

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Wed Jun 27 03:49:39 2001 UTC (10 years, 11 months ago) by perseant
Branch: perseant-lfsv2
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

Import of what I've been calling "LFSv2", that is, LFS with some features
added that require changes to the on-disk data structures.  These include:

- 64-bit time in everything but inodes
- User-specified segment offset, and segment size no longer
  restricted to PO2.
- Serial number on segment summaries in addition to timestamp, and
  a new volume identifier, to make roll-forward feasible without
  fear of finding old data and thinking it was new.

Although I think this version works at least as well as what's on the trunk,
we're not done yet; hence this commit is going in on a branch and not on
the trunk.  Enhancements that are not here yet include fragment addressing,
like FFS does, instead of block addressing.

Revision 1.17.4.3 / (download) - annotate - [select for diffs], Sat Feb 3 21:52:03 2001 UTC (11 years, 3 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.17.4.2: +3 -1 lines
Diff to previous 1.17.4.2 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Pull up revision 1.22 (requested by perseant):
  o Close up accounting holes in LFS' accounting of immediately-
    available-space, number of clean segments, and amount of dirty
    space taken up by metadata (PR#11468, PR#11470, PR#11534).

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:20:14 2000 UTC (11 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.14.2.2: +12 -3 lines
Diff to previous 1.14.2.2 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 3 05:56:27 2000 UTC (11 years, 5 months ago) by perseant
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, perseant-lfsv2-base
Branch point for: perseant-lfsv2, nathanw_sa, kqueue
Changes since 1.23: +10 -2 lines
Diff to previous 1.23 (colored)

Get rid of some old unnecessary code that cleared B_NEEDCOMMIT from buffers in
lfs_writeseg (possibly after they had been freed).

If MALLOCLOG is defined, make lfs_newbuf and lfs_freebuf pass along the
caller's file and line to _malloc and _free.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Nov 25 02:39:35 2000 UTC (11 years, 6 months ago) by perseant
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

Use u_int32_t instead of u_long to compute LFS checksums, since the
checksum is stored in a u_int32_t.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:06:50 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.14.2.1: +3 -1 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:49 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.14: +17 -11 lines
Diff to previous 1.14 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 17 19:14:41 2000 UTC (11 years, 6 months ago) by perseant
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

Correct accounting of lfs_avail, locked_queue_count, and locked_queue_bytes.
(PR #11468).  In the case of fragment allocation, check to see if enough
space is available before extending a fragment already scheduled for writing.

The locked_queue_* variables indicate the number of buffer headers and bytes,
respectively, that are unavailable to getnewbuf() because they are locked up
waiting for LFS to flush them; make sure that that is actually what we're
counting, i.e., never count malloced buffers, and always use b_bufsize instead
of b_bcount.

If DEBUG is defined, the periodic calls to lfs_countlocked will now complain
if either counter is incorrect.  (In the future lfs_countlocked will not need
to be called at all if DEBUG is not defined.)

Revision 1.17.4.2 / (download) - annotate - [select for diffs], Thu Sep 14 18:50:18 2000 UTC (11 years, 8 months ago) by perseant
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.17.4.1: +12 -3 lines
Diff to previous 1.17.4.1 (colored) to branchpoint 1.17 (colored)

Pull up recent LFS kernel changes (approved by thorpej):

ufs/ufs/inode.h, 1.20--1.22      (add i_lfs_effnblks extension ;
                                 make ITIMES aware of LFS_ITIMES;
                                 _LKM protection so userland progs
                                 compile)
ufs/ufs/ufs_vnops.c, 1.69, 1.71  (remove IN_ADIROP;
                                 use ITIMES instead of FFS_ITIMES)
ufs/ufs/ufs_readwrite.c, 1.27    (use lfs_reserve in lfs_write)
ufs/lfs/lfs.h, 1.26--1.32        (define LFS_EST_* macros ;
                                 change MIN_FREE_SEGS to lfs_minfreesegs ;
                                 add avail and bfree to CLEANERINFO ;
                                 change lfs_uinodes to signed ;
                                 change lfs_dmeta to signed ;
                                 add whitespace to line up structure
                                 members ;
                                 explicit cast to int32_t in LFS_EST_*
                                 macros)
ufs/lfs/lfs_alloc.c, back out 1.34.2.3 (pullups of 1.39, 1.40);
then pull up         1.38        (clean up on error)
                     1.39--1.43  (restore fvdl's ufs_hashlock fix ;
                                 restore fvdl's ufs_hashlock fix ;
                                 set i_lfs_effnblks ;
                                 use UINO macros ;
                                 add comments and fix long lines)
ufs/lfs/lfs_balloc.c, 1.19       (don't succeed halfway)
                      1.21--1.25 (use i_lfs_effnblks ;
                                 fix i_lfs_effnblks computation and
                                 quieten ;
                                 fix i_ffs_blocks in unwritten fragment ;
                                 remove useless debugging check ;
                                 add comments and (c) 2000)
ufs/lfs/lfs_bio.c, 1.24--1.30    (cleanup and make lfs_flush_fs take
                                   "struct lfs *" instead of "struct
                                 mount *" ;
                                 use lfs_minfreeseg instead of
                                 MIN_FREE_SEGS ;
                                 use UINO macros, and copy bfree/avail
                                   to CLEANERINFO ;
                                 add lfs_reserve function ;
                                 1.28--1.30 fix printf formatting)
ufs/lfs/lfs_cksum.c, 1.13        (add (c) 2000)
ufs/lfs/lfs_debug.c, 1.11        (use btodb instead of DEV_BSIZE)
ufs/lfs/lfs_extern.h, 1.18, 1.20--1.21 (function prototype changes)
ufs/lfs/lfs_inode.c, 1.38        (rewrite lfs_truncate from
                                 ffs_truncate)
                     1.40--1.44  (count written and unwritten blocks
                                   seperately ;
                                 use disk block units instead of bytes ;
                                 remove unnecessary "mod" variable ;
                                 correct B_DELWRI to avoid bawrite panic ;
                                 use lfs_reserve)
ufs/lfs/lfs_segment.c, 1.52-1.59 (use lfs_dmeta to note used summaries ;
                                 check for UNWRITTEN in indirect blocks ;
                                 more debugging stuff inside #ifdef
                                 DEBUG_LFS ;
                                 use LK_CANRECURSE ;
                                 don't drop dirty indirect blocks ;
                                 use UINO macros ;
                                 don't hose the free list ;
                                 use btodb() instead of DEV_BSIZE ;
                                 make it compile again (oops))
ufs/lfs/lfs_subr.c, 1.16--1.17   (check for locked inodes before
                                 changing ;
                                 use btodb() instead of DEV_BSIZE, (c)
                                 2000)
ufs/lfs/lfs_syscalls.c, back out 1.41.4.2 (fvdl's ufs_hashlock fix);
then pull up          1.43       (use lfs_dmeta)
                      1.44--1.45 (restore fvdl's ufs_hashlock fix)
                      1.46--1.47 (fix lfs_avail leakage from sblock
                                 segments ;
                                 use UINO macros)
                      1.49       (bounds-check inode numbers in
                                 lfs_markv)
ufs/lfs/lfs_vfsops.c, 1.53       (use LFS_EST_* macros in lfs_statfs)
                      1.56--1.58 (initialize lfs_minfreeseg, lfs_effnblk ;
                                 initialize lfs_uinodes ;
                                 initialize lfs_ravail)
ufs/lfs/lfs_vnops.c, 1.40        (remove VDIROP from removed files)
                     1.42--1.44  (move SET_ENDOP below the removal of
                                 VDIROP ;
                                 use UINO macros and add lfs_itimes
                                 function ;
                                 use lfs_reserve in dirops)

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 9 04:49:55 2000 UTC (11 years, 8 months ago) by perseant
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

Various bug-fixes to LFS, to wit:


Kernel:

* Add runtime quantity lfs_ravail, the number of disk-blocks reserved
  for writing.  Writes to the filesystem first reserve a maximum amount
  of blocks before their write is allowed to proceed; after the blocks
  are allocated the reserved total is reduced by a corresponding amount.

  If the lfs_reserve function cannot immediately reserve the requested
  number of blocks, the inode is unlocked, and the thread sleeps until
  the cleaner has made enough space available for the blocks to be
  reserved.  In this way large files can be written to the filesystem
  (or, smaller files can be written to a nearly-full but thoroughly
  clean filesystem) and the cleaner can still function properly.

* Remove explicit switching on dlfs_minfreeseg from the kernel code; it
  is now merely a fs-creation parameter used to compute dlfs_avail and
  dlfs_bfree (and used by fsck_lfs(8) to check their accuracy).  Its
  former role is better assumed by a properly computed dlfs_avail.

* Bounds-check inode numbers submitted through lfs_bmapv and lfs_markv.
  This prevents a panic, but, if the cleaner is feeding the filesystem
  the wrong data, you are still in a world of hurt.

* Cleanup: remove explicit references of DEV_BSIZE in favor of
  btodb()/dbtob().

lfs_cleanerd:

* Make -n mean "send N segments' blocks through a single call to
  lfs_markv".  Previously it had meant "clean N segments though N calls
  to lfs_markv, before looking again to see if more need to be cleaned".
  The new behavior gives better packing of direct data on disk with as
  little metadata as possible, largely alleviating the problem that the
  cleaner can consume more disk through inefficient use of metadata than
  it frees by moving dirty data away from clean "holes" to produce
  entirely clean segments.

* Make -b mean "read as many segments as necessary to write N segments
  of dirty data back to disk", rather than its former meaning of "read
  as many segments as necessary to free N segments worth of space".  The
  new meaning, combined with the new -n behavior described above,
  further aids in cleaning storage efficiency as entire segments can be
  written at once, using as few blocks as possible for segment summaries
  and inode blocks.

* Make the cleaner take note of segments which could not be cleaned due
  to error, and not attempt to clean them until they are entirely free
  of dirty blocks.  This prevents the case in which a cleanerd running
  with -n 1 and without -b (formerly the default) would spin trying
  repeatedly to clean a corrupt segment, while the remaining space
  filled and deadlocked the filesystem.

* Update the lfs_cleanerd manual page to describe all the options,
  including the changes mentioned here (in particular, the -b and -n
  flags were previously undocumented).

fsck_lfs:

* Check, and optionally fix, lfs_avail (to an exact figure) and
  lfs_bfree (within a margin of error) in pass 5.

newfs_lfs:

* Reduce the default dlfs_minfreeseg to 1/20 of the total segments.

* Add a warning if the sgs disklabel field is 16 (the default for FFS'
  cpg, but not usually desirable for LFS' sgs: 5--8 is a better range).

* Change the calculation of lfs_avail and lfs_bfree, corresponding to
  the kernel changes mentioned above.

mount_lfs:

* Add -N and -b options to pass corresponding -n and -b options to
  lfs_cleanerd.

* Default to calling lfs_cleanerd with "-b -n 4".


[All of these changes were largely tested in the 1.5 branch, with the
idea that they (along with previous un-pulled-up work) could be applied
to the branch while it was still in ALPHA2; however my test system has
experienced corruption on another filesystem (/dev/console has gone
missing :^), and, while I believe this unrelated to the LFS changes, I
cannot with good conscience request that the changes be pulled up.]

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 5 22:25:43 2000 UTC (11 years, 10 months ago) by perseant
Branch: MAIN
Changes since 1.19: +6 -1 lines
Diff to previous 1.19 (colored)

Clean up accounting of lfs_uinodes (dirty but unwritten inodes).

Make lfs_uinodes a signed quantity for debugging purposes, and set it to
zero as fs mount time.

Enclose setting/clearing of the dirty flags (IN_MODIFIED, IN_ACCESSED,
IN_CLEANING) in macros, and use those macros everywhere.  Make
LFS_ITIMES use these macros; updated the ITIMES macro in inode.h to know
about this.  Make ufs_getattr use ITIMES instead of FFS_ITIMES.

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Mon Jul 3 18:33:55 2000 UTC (11 years, 10 months ago) by fvdl
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

pullup the fixes from the trunk to not hold ufs_hashlock across
getnewvnode()

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jun 30 20:45:39 2000 UTC (11 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Rearrange code around getnewvnode as was already done for ffs, to avoid
locking against oneself because getnewvnode recycles a softdep-using vnode.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 27 20:57:13 2000 UTC (11 years, 11 months ago) by perseant
Branch: MAIN
Changes since 1.17: +5 -2 lines
Diff to previous 1.17 (colored)

Fixes associated with filling an LFS:

Change the space computation to appear to change the size of the *disk*
rather than the *bytes used* when more segment summaries and inode
blocks are written.  Try to estimate the amount of space that these will
take up when more files are written, so the disk size doesn't change too
much.

Regularize error returns from lfs_valloc, lfs_balloc, lfs_truncate: they
now fail entirely, rather than succeeding half-way and leaving the fs in
an inconsistent state.

Rewrite lfs_truncate, mostly stealing from ffs_truncate.  The old
lfs_truncate had difficulty truncating a large file to a non-zero size
(indirect blocks were not handled appropriately).

Unmark VDIROP on fvp after ufs_remove, ufs_rmdir, so these can be
reclaimed immediately: this vnode would not be written to disk again
anyway if the removal succeeded, and if it failed, no directory
operation occurred.

ufs_makeinode and ufs_mkdir now remove IN_ADIROP on error.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 16 18:08:33 2000 UTC (12 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

Add new VFS op routine - vfs_done and call it on filesystem detach
in vfs_detach(). vfs_done may free global filesystem's resources,
typically those allocated in respective filesystem's init function.
Needed so those filesystems which went in via LKM have a chance to
clean after themselves before unloading. This fixes random panics
when LKM for filesystem using pools was loaded and unloaded several
times.

For each leaf filesystem, add appropriate vfs_done routine.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Thu Jan 20 21:01:33 2000 UTC (12 years, 4 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.13.2.1: +2 -2 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Pull up revision 1.16 (requested by perseant):
  Files removed (through unlink, rmdir) are now really removed, though the
  removal is postponed until the dirop is complete to ensure validity of
  the filesystem through a crash.  Use a separate per-fs lock, instead of
  ufs_hashlock, to protect the inode free list.  Change calling semantics
  of lfs_ifind, to give better error reporting:  If fed a struct buf, it
  can report the block number of the offending inode block as well as the
  inode number.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 19 00:03:04 2000 UTC (12 years, 4 months ago) by perseant
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Changes to stabilize LFS.  The first two of these should also apply to the
1.4 branch.

* Use a separate per-fs lock, instead of ufs_hashlock, to protect the Inode
  free list.  This seems to prevent the "lockmgr: %d, not exclusive lock holder
  %d, unlocking" message I was mis-attributing last night to an unlocked vnode
  being passed to vrele.

* Change calling semantics of lfs_ifind, to give better error reporting:
  If fed a struct buf, it can report the block number of the offending inode
  block as well as the inode number.

* Back out rev 1.10 of lfs_subr.c, since the replacement code was slightly
  uglier while being functionally identical.

* Make lfs_vunref use the same free list convention as vrele/vput, so that
  vget does not remove vnodes from a hash list they are not on.

Revision 1.14.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:39 1999 UTC (12 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.14: +2 -6 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pull up to last week's -current.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Fri Dec 17 23:21:30 1999 UTC (12 years, 5 months ago) by he
Branch: netbsd-1-4
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Pull up revision 1.14 (requested by perseant):
  Avoid flushing vnodes involved in a dirop, making lfs' promise
  of "no fsck needed, even in the event of a crash" closer to
  reality.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:14 1999 UTC (12 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.14: +2 -6 lines
Diff to previous 1.14 (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.14.4.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:42 1999 UTC (12 years, 7 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.14: +2 -6 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Bring in Kirk McKusick's FFS softdep code on a branch.

Revision 1.13.4.3 / (download) - annotate - [select for diffs], Tue Aug 31 21:03:46 1999 UTC (12 years, 8 months ago) by perseant
Branch: chs-ubc2
Changes since 1.13.4.2: +7 -4 lines
Diff to previous 1.13.4.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Rudimentary support for LFS under UBC:

- LFS-specific VOP_BALLOC and VOP_PUTPAGES vnode ops.

- getblk VREG panic #ifdef'd out (can be reinstated when Ifile is
  internalized and Ifile can be made another type from VREG)

- interface to VOP_PUTPAGES changed to pass all pager flags, not
  just sync.  FS putpages routines must know about the pager flags.

- new LFS magic disk address, -2 ("unwritten"), meaning accounted for
  but not assigned to a fixed disk location (since LFS does these two
  things separately, and the previous accounting method using buffer
  headers no longer will work).  Changed references to (foo == (daddr_t)-1)
  to (foo < 0).  Since disk drivers reject all addresses < 0, this should
  not present a problem for other FSs.

Revision 1.13.4.2 / (download) - annotate - [select for diffs], Sun Jul 11 05:52:10 1999 UTC (12 years, 10 months ago) by chs
Branch: chs-ubc2
Changes since 1.13.4.1: +4 -1 lines
Diff to previous 1.13.4.1 (colored) to branchpoint 1.13 (colored)

add placeholders for getpages/putpages.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:31:09 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Sync w/ -current.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 1 03:00:40 1999 UTC (12 years, 11 months ago) by perseant
Branch: MAIN
CVS Tags: fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Fixed lfs_update (and related functions) so that calls from lfs_fsync
will DTRT with vnodes marked VDIROP.  In particular, the message
"flushing VDIROP" will no longer appear, and the filesystem will remain
stable in the event of a crash.

This was particularly a problem with NFS-exported LFSes, since fsync
was called on every file close.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 10 00:20:00 1999 UTC (13 years, 2 months ago) by perseant
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.12: +67 -8 lines
Diff to previous 1.12 (colored)

New sources should leave the LFS in a more-or-less working state.  Changes
include:

	- DIROP segregation is enabled, and greater care is taken
	  to make sure that a checkpoint completes.  Fsck is not
	  needed to remount the filesystem.
	- Several checks to make sure that the LFS subsystem does not
	  overuse various resources (memory, in particular).
	- The cleaner routines, lfs_markv in particular, are completely
	  rewritten.  A buffer overflow is removed.  Greater care is taken
	  to ensure that inodes come from where lfs_cleanerd say they come
	  from (so we know nothing has changed since lfs_bmapv was called).
	- Fragment allocation is fixed, so that writes beyond end-of-file
	  do the right thing.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Feb 26 23:44:49 1999 UTC (13 years, 3 months ago) by wrstuden
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Modify vfsops to seperate vfs_fhtovp() into two routines. vfs_fhtovp() now
only handles the file handle to vnode conversion, and a new call,
vfs_checkexp(), performs the export verification.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 11 21:27:12 1998 UTC (13 years, 8 months ago) by pk
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

PR#6032: define fixed sized on-disk superblock structure.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Sep 1 03:26:05 1998 UTC (13 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

Use the pool allocator and the "nointr" pool page allocator for LFS inodes.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 24 20:58:48 1998 UTC (13 years, 11 months ago) by sommerfe
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.8: +2 -8 lines
Diff to previous 1.8 (colored)

Always include fifos; "not an option any more".

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 22 22:01:09 1998 UTC (13 years, 11 months ago) by sommerfe
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

defopt for options FIFO

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:24 1998 UTC (14 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.6: +10 -7 lines
Diff to previous 1.6 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:14:12 1998 UTC (14 years, 2 months ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +9 -5 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:10:48 1998 UTC (14 years, 2 months ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1: +1 -3 lines
Diff to previous 1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.6 / (download) - annotate - [select for diffs], Sun Dec 22 10:10:42 1996 UTC (15 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, 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, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Change the second and third args to struct vfsops' (*vfs_mount)() to
'const char *', and 'void *', respectively.  The second arg is taken directly
from user arguments, and is const there, so must be const in the prototypes
and functions.  The third arg is also taken directly from user arguments.
It doesn't have to be changed, but since it's cleaner to keep the type
the same as the user arg's type, and I'm already making the 'const char *'
change...

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 12 15:20:12 1996 UTC (16 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.4: +2 -1 lines
Diff to previous 1.4 (colored)

Add fwd declaration for struct ucred

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 9 22:28:51 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.3: +97 -54 lines
Diff to previous 1.3 (colored)

lfs prototypes

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 14 13:03:47 1994 UTC (17 years, 5 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.2: +2 -2 lines
Diff to previous 1.2 (colored)

Sync with CSRG.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 29 06:46:55 1994 UTC (17 years, 11 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:42:33 1994 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN

Update to 4.4-Lite fs code, with local changes.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>