The NetBSD Project

CVS log for src/sys/ufs/ffs/ffs_inode.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / ufs / ffs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.116 / (download) - annotate - [select for diffs], Sun Oct 20 00:29:10 2013 UTC (5 months, 3 weeks ago) by htodd
Branch: MAIN
CVS Tags: tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, HEAD
Changes since 1.115: +2 -4 lines
Diff to previous 1.115 (colored)

Definining needswap where needed.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Jun 23 07:28:37 2013 UTC (9 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.114: +10 -10 lines
Diff to previous 1.114 (colored)

Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front of
the following symbols so as to disambiguate fully. (Christos already
did the lfs ones.)

   lblkno
   lblktosize
   lfragtosize
   numfrags
   blkroundup
   fragroundup

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:39 2013 UTC (9 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.110.2.1: +14 -14 lines
Diff to previous 1.110.2.1 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

resync from head

Revision 1.114 / (download) - annotate - [select for diffs], Sun Jun 23 02:06:05 2013 UTC (9 months, 3 weeks ago) by dholland
Branch: MAIN
Changes since 1.113: +10 -10 lines
Diff to previous 1.113 (colored)

fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)

Revision 1.113 / (download) - annotate - [select for diffs], Wed Jun 19 17:51:26 2013 UTC (9 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base
Changes since 1.112: +14 -14 lines
Diff to previous 1.112 (colored)

Rename ambiguous macros:
   MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE
   NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR
   INOPB -> FFS_INOPB, LFS_INOPB
   INOPF -> FFS_INOPF, LFS_INOPF
   blksize -> ffs_blksize, ext2_blksize, or lfs_blksize
   sblksize -> ffs_blksize

These are not the only ambiguously defined filesystem macros, of
course, there's a pile more. I may not have found all the ambiguous
definitions of blksize(), too, as there are a lot of other things
called 'blksize' in the system.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:15 2013 UTC (13 months, 2 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.110: +17 -18 lines
Diff to previous 1.110 (colored)

resync with head

Revision 1.107.2.3 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:32 2013 UTC (14 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.107.2.2: +17 -18 lines
Diff to previous 1.107.2.2 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored)

sync with head

Revision 1.112 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:16 2013 UTC (14 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, khorben-n900, agc-symver-base, agc-symver
Changes since 1.111: +17 -17 lines
Diff to previous 1.111 (colored)

Stuff UFS_ in front of a few of ufs's symbols to reduce namespace
pollution. Specifically:
   ROOTINO -> UFS_ROOTINO
   WINO -> UFS_WINO
   NXADDR -> UFS_NXADDR
   NDADDR -> UFS_NDADDR
   NIADDR -> UFS_NIADDR
   MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN
   MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)

Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have
the same values in ext2fs and ffs.

No functional change intended.

Revision 1.111 / (download) - annotate - [select for diffs], Thu Dec 20 08:03:44 2012 UTC (15 months, 3 weeks ago) by hannken
Branch: MAIN
Changes since 1.110: +2 -3 lines
Diff to previous 1.110 (colored)

Change bread() and breadn() to never return a buffer on
error and modify all callers to not brelse() on error.

Welcome to 6.99.16

PR kern/46282 (6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread)

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:23:00 2012 UTC (17 months, 2 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.107.2.1: +5 -3 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored)

sync with head

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jul 9 11:20:22 2012 UTC (21 months, 1 week ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.109: +5 -3 lines
Diff to previous 1.109 (colored)

Convert a KDASSERT to a KDASSERTMSG

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:56 2012 UTC (23 months, 4 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.107: +9 -6 lines
Diff to previous 1.107 (colored)

sync with head

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:53 2012 UTC (2 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.108: +5 -5 lines
Diff to previous 1.108 (colored) next main 1.109 (colored)

merge to -current.

Revision 1.109 / (download) - annotate - [select for diffs], Fri Jan 27 19:22:49 2012 UTC (2 years, 2 months ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Changes since 1.108: +5 -5 lines
Diff to previous 1.108 (colored)

converting readdir in ffs ext2fs from malloc(9) to kmem(9)
while there allocate ufs mount structs from kmem(9) too
preceding kmem-vmem-pool-patch

releng@ acknowledged

Revision 1.99.4.2 / (download) - annotate - [select for diffs], Wed Jan 25 18:18:46 2012 UTC (2 years, 2 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.99.4.1: +6 -3 lines
Diff to previous 1.99.4.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1702):
	sys/ufs/lfs/lfs_inode.c: revision 1.126
	sys/ufs/ffs/ffs_inode.c: revision 1.108
If ufs_balloc_range() fails, make sure to call ?fs_truncate() to
reset v_writesize to the right value.
If v_writesize is left larger than the allocated blocks, we may have
the same issue as the one described in
http://mail-index.netbsd.org/tech-kern/2010/02/02/msg007156.html

Revision 1.108 / (download) - annotate - [select for diffs], Wed Nov 23 19:42:10 2011 UTC (2 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.107: +6 -3 lines
Diff to previous 1.107 (colored)

If ufs_balloc_range() fails, make sure to call ?fs_truncate() to
reset v_writesize to the right value.
If v_writesize is left larger than the allocated blocks, we may have
the same issue as the one described in
http://mail-index.netbsd.org/tech-kern/2010/02/02/msg007156.html

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:30 2011 UTC (2 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.105: +6 -5 lines
Diff to previous 1.105 (colored) next main 1.106 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Jun 16 09:21:03 2011 UTC (2 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.106: +4 -3 lines
Diff to previous 1.106 (colored)

Rename uvm_vnp_zerorange(struct vnode *, off_t, size_t) to
ubc_zerorange(struct uvm_object *, off_t, size_t, int) changing
the first argument to an uvm_object and adding a flags argument.

Modify tmpfs_reg_resize() to zero the backing store (aobj) instead
of the vnode.  Ubc_purge() no longer panics when unmounting tmpfs.

Keep uvm_vnp_zerorange() until the next kernel version bump.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Jun 12 03:36:00 2011 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.105: +2 -2 lines
Diff to previous 1.105 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.104.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:15 2011 UTC (2 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

Sync with HEAD.

Revision 1.104.4.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:20 2011 UTC (2 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.104.4.1: +3 -3 lines
Diff to previous 1.104.4.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored)

sync with head

Revision 1.105 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:38 2011 UTC (3 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored)

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.

Revision 1.104.8.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:25:02 2011 UTC (3 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

Snapshot of work in progress on a modernised disk quota system:
- new quotactl syscall (versionned for backward compat), which takes
  as parameter a path to a mount point, and a prop_dictionary
  (in plistref format) describing commands and arguments.
  For each command, status and data are returned as a prop_dictionary.
  quota commands features will be added to take advantage of this,
  exporting quota data or getting quota commands as plists.

- new on disk-format storage (all 64bit wide), integrated to metadata for
  ffs (and playing nicely with wapbl).
  Quotas are enabled on a ffs filesystem via superblock flags.
  tunefs(8) can enable or disable quotas.
  On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid
  block and inode usages, and will check and update quotas in Pass 6.
  quota usage and limits are stored in unliked files (one for users,
  one for groups)l fsck_ffs(8) will create the files if needed, or
  free them if needed. This means that after enabling or disabling
  quotas on a filesystem; a fsck_ffs(8) run is required.
  quotacheck(8) is not needed any more, on a unclean shutdown
  fsck or journal replay will take care of fixing quotas.
  newfs(8) can create a ready-to-mount quota-enabled filesystem
  (superblock flags are set and quota inodes are created).
  Other new features or semantic changes:
  - default quota datas, applied to users or groups which don't already
    have a quota entry
  - per-user/group grace time (instead of a filesystem global one)
  - 0 really means "nothing allowed at all", not "no limit".
    If you want "no limit", set the limit to UQUAD_MAX (tools will
    understand "unlimited" and "-")

  A quota file is structured as follow:
  it starts with a header, containing a few per-filesystem values,
  and the default quota limits.
  Quota entries are linked together as a simple list, each entry has a
  pointer (as an offset withing the file) to the next.
  The header has a pointer to a list of free quota entries, and
  a hash table of in-use entries. The size of the hash table depends
  on the filesystem block size (header+hash table should fit in the
  first block). The file is not sparse and is a multiple of
  filesystem block size (when the free quota entry list is empty a new
  filesystem block is allocated). quota entries to not cross
  filesystem block boundaries.

  In memory, the kernel keeps a cache of recently used quota entries
  as a reference to the block number, and offset withing the block.
  The quota entry itself is keept in the buf cache.

fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with
related atf tests :)
The kernel can update disk usage and report it via quotactl(2).

Todo: enforce quotas limits (limits are not checked by kernel yet)
      update repquota, edquota and rpc.rquotad to the new world
      implement compat_50_quotactl ioctl.
      update quotactl(2) man page

fsck_ffs required fixes so that allocating new blocks or inodes will
properly update the superblock and cg sumaries. This was not an issue up
to now because superblock and cg sumaries check happened last, but now
allocations or frees can happen in pass 6.

Revision 1.99.10.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:25 2010 UTC (3 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

sync to netbsd-5

Revision 1.104.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:14 2010 UTC (4 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.95.4.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:44 2010 UTC (4 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.95.4.1: +4 -2 lines
Diff to previous 1.95.4.1 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

sync with head

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Mon Feb 22 04:43:46 2010 UTC (4 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1302):
	sys/ufs/ext2fs/ext2fs_inode.c: revision 1.71
	sys/ufs/ffs/ffs_inode.c: revision 1.104
	sys/ufs/lfs/lfs_inode.c: revision 1.121
	sys/ufs/ufs/ufs_inode.c: revision 1.79
- ufs_balloc_range(): on error, only PG_RELEASED the pages that were
  allocated to extend the file to the new size. Releasing all pages
  may release pages that contains previously-written data not yet flushed
  to disk. Should fix PR kern/35704
- {ffs,lfs,ext2fs}_truncate(): Even if the inode's size is the same as
  the new length, call uvm_vnp_setsize(). *_truncate() may have been
  called by *_write() in the error path (e.g. block allocation failure
  because of quota of file system full), and at this point v_writesize
  has been set to the desired size of the file and not reverted to the
  old size. Not adjusting v_writesize to the real size cause
  genfs_do_io() to write to disk past the real end of the file.

Revision 1.104 / (download) - annotate - [select for diffs], Sun Feb 7 17:12:40 2010 UTC (4 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Changes since 1.103: +4 -2 lines
Diff to previous 1.103 (colored)

- ufs_balloc_range(): on error, only PG_RELEASED the pages that were
  allocated to extend the file to the new size. Releasing all pages
  may release pages that contains previously-written data not yet flushed
  to disk. Should fix PR kern/35704
- {ffs,lfs,ext2fs}_truncate(): Even if the inode's size is the same as
  the new length, call uvm_vnp_setsize(). *_truncate() may have been
  called by *_write() in the error path (e.g. block allocation failure
  because of quota of file system full), and at this point v_writesize
  has been set to the desired size of the file and not reverted to the
  old size. Not adjusting v_writesize to the real size cause
  genfs_do_io() to write to disk past the real end of the file.

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:23:06 2009 UTC (4 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.102: +5 -42 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:37 2009 UTC (4 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.95: +96 -59 lines
Diff to previous 1.95 (colored)

sync with head.

Revision 1.99.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:34:39 2009 UTC (5 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.99.2.1: +5 -42 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)

Sync with HEAD.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Feb 22 20:28:06 2009 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.102: +5 -42 lines
Diff to previous 1.102 (colored)

PR kern/26878 FFSv2 + softdep = livelock (no free ram)
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep

Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:31 2009 UTC (5 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored)

Sync with HEAD.

Revision 1.94.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:42 2009 UTC (5 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.94.6.4: +1 -1 lines
Diff to previous 1.94.6.4 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

Sync with HEAD.

Revision 1.102 / (download) - annotate - [select for diffs], Thu Jan 15 21:26:03 2009 UTC (5 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.101: +0 -4 lines
Diff to previous 1.101 (colored)

Revert 1.101, author did not provide a justification.

Revision 1.101 / (download) - annotate - [select for diffs], Tue Dec 23 11:32:08 2008 UTC (5 years, 3 months ago) by cegger
Branch: MAIN
Changes since 1.100: +6 -2 lines
Diff to previous 1.100 (colored)

ffs_update: sprinkle KASSERTs

Revision 1.100 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:38 2008 UTC (5 years, 3 months ago) by cegger
Branch: MAIN
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored)

kill MALLOC and FREE macros.

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:18:10 2008 UTC (5 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.97: +83 -17 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Sync with HEAD.

Revision 1.94.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:41:06 2008 UTC (5 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.94.6.3: +81 -15 lines
Diff to previous 1.94.6.3 (colored) to branchpoint 1.94 (colored)

Sync with HEAD.

Revision 1.95.6.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:05 2008 UTC (5 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.95.6.1: +83 -17 lines
Diff to previous 1.95.6.1 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Aug 30 08:25:53 2008 UTC (5 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.98: +5 -4 lines
Diff to previous 1.98 (colored)

ffs_truncate() always runs with journal locked.  Propagate this information
to VOP_PUTPAGES().

Report from Lars Nordlund on current-users@

Revision 1.98 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:06 2008 UTC (5 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.97: +80 -15 lines
Diff to previous 1.97 (colored)

Merge the simonb-wapbl branch.  From the original branch commit:

   Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
   journaling code.  Originally written by Darrin B. Jewell while
   at Wasabi and updated to -current by Antti Kantee, Andy Doran,
   Greg Oster and Simon Burge.

OK'd by core@, releng@.

Revision 1.95.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:05 2008 UTC (5 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.95: +12 -4 lines
Diff to previous 1.95 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Thu Jun 12 08:39:22 2008 UTC (5 years, 10 months ago) by martin
Branch: simonb-wapbl
Changes since 1.97.2.1: +2 -9 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

License police

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Tue Jun 10 14:51:23 2008 UTC (5 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.97: +87 -15 lines
Diff to previous 1.97 (colored)

Initial commit of Wasabi System's WAPBL (Write Ahead Physical Block
Logging) journaling code.  Originally written by Darrin B. Jewell
while at Wasabi and updated to -current by Antti Kantee, Andy Doran,
Greg Oster and Simon Burge.

Still a number of issues - look in doc/BRANCHES for "simonb-wapbl"
for more info.

Revision 1.94.6.3 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:37 2008 UTC (5 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.94.6.2: +8 -1 lines
Diff to previous 1.94.6.2 (colored) to branchpoint 1.94 (colored)

Sync with HEAD.

Also fix build.

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:53 2008 UTC (5 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.95.2.1: +10 -3 lines
Diff to previous 1.95.2.1 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

sync with head

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jun 3 09:47:49 2008 UTC (5 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: simonb-wapbl, haad-dm
Changes since 1.96: +10 -3 lines
Diff to previous 1.96 (colored)

ufs/ffs: replace calls to getblk() with ffs_getblk().  Now all buffers
have been run through copy-on-write and async mounts work again.

Fixes PR kern/38820

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>

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

Sync with HEAD.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:54 2008 UTC (5 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.95: +4 -3 lines
Diff to previous 1.95 (colored)

sync with head.

Revision 1.96 / (download) - annotate - [select for diffs], Fri May 16 09:22:00 2008 UTC (5 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base2, hpcarm-cleanup-nbase
Changes since 1.95: +4 -3 lines
Diff to previous 1.95 (colored)

Make sure all cached buffers with valid, not yet written data have been
run through copy-on-write.  Call fscow_run() with valid data where possible.

The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against
endless recursion.

- Add a flag B_MODIFY to bread(), breada() and breadn().  If set the caller
  intends to modify the buffer returned.

- Always run copy-on-write on buffers returned from ffs_balloc().

- Add new function ffs_getblk() that gets a buffer, assigns a new blkno,
  may clear the buffer and runs copy-on-write.  Process possible errors
  from getblk() or fscow_run().  Part of PR kern/38664.

Welcome to 4.99.63

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>

Revision 1.94.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:13 2008 UTC (6 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored)

Sync with HEAD.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Mar 27 19:06:52 2008 UTC (6 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored)

Make rusage collection per-LWP and collate in the appropriate places.
cloned threads need a little bit more work but the locking needs to
be fixed first.

Revision 1.88.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:11 2008 UTC (6 years ago) by matt
Branch: matt-armv6
Changes since 1.88.8.2: +2 -11 lines
Diff to previous 1.88.8.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

sync with HEAD

Revision 1.89.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:28 2008 UTC (6 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.89.4.2: +7 -7 lines
Diff to previous 1.89.4.2 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

Sync with HEAD.

Revision 1.71.12.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:48:07 2008 UTC (6 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.71.12.5: +12 -12 lines
Diff to previous 1.71.12.5 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

sync with head

Revision 1.92.4.2 / (download) - annotate - [select for diffs], Thu Jan 10 23:44:43 2008 UTC (6 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.92.4.1: +0 -9 lines
Diff to previous 1.92.4.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

Sync with HEAD

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

Go back to freeing on disk inodes in the inactive routine. It would be
better not to do this, but it rules out potential side effects with softdep.

Revision 1.88.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:26 2008 UTC (6 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.88.8.1: +22 -13 lines
Diff to previous 1.88.8.1 (colored) to branchpoint 1.88 (colored)

sync with HEAD

Revision 1.92.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:17 2008 UTC (6 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.92: +16 -7 lines
Diff to previous 1.92 (colored)

Sync with HEAD

Revision 1.93 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:09 2008 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.92: +16 -7 lines
Diff to previous 1.92 (colored)

Merge vmlocking2 to head.

Revision 1.90.2.4 / (download) - annotate - [select for diffs], Sun Dec 30 22:29:26 2007 UTC (6 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.90.2.3: +13 -4 lines
Diff to previous 1.90.2.3 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

ffs_update: if softdep and the inode has been unlinked, wait for the update
(and so dependencies) to flush. Ensures that the slate is clean when the
inode is reused. Should work around "panic: handle_written_inodeblock:
filefree".

Revision 1.89.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:48 2007 UTC (6 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.89.4.1: +7 -7 lines
Diff to previous 1.89.4.1 (colored) to branchpoint 1.89 (colored)

Sync with HEAD.

Revision 1.90.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:59 2007 UTC (6 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.90.2.2: +5 -7 lines
Diff to previous 1.90.2.2 (colored) to branchpoint 1.90 (colored)

Sync with head.

Revision 1.88.6.3 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:52 2007 UTC (6 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.88.6.2: +7 -7 lines
Diff to previous 1.88.6.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

Sync with HEAD.

Revision 1.86.6.1 / (download) - annotate - [select for diffs], Sun Dec 9 16:04:14 2007 UTC (6 years, 4 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.86: +4 -2 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Pullup to HEAD

Revision 1.92 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:54 2007 UTC (6 years, 4 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.91: +5 -7 lines
Diff to previous 1.91 (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.89.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:38 2007 UTC (6 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

Sync with HEAD.

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 17:58:08 2007 UTC (6 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.90.2.1: +2 -2 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored)

Sync with head.

Revision 1.91 / (download) - annotate - [select for diffs], Sat Dec 8 15:23:32 2007 UTC (6 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base2, reinoud-bufcleanup-nbase
Changes since 1.90: +4 -2 lines
Diff to previous 1.90 (colored)

Grab ump->um_lock in another spot.

Revision 1.71.12.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:35:19 2007 UTC (6 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.71.12.4: +3 -3 lines
Diff to previous 1.71.12.4 (colored) to branchpoint 1.71 (colored)

sync with head

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

Pull the vmlocking changes into a new branch.

Revision 1.88.6.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:39:20 2007 UTC (6 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.88.6.1: +3 -3 lines
Diff to previous 1.88.6.1 (colored) to branchpoint 1.88 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:28 2007 UTC (6 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (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.88.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:35:11 2007 UTC (6 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.88: +5 -6 lines
Diff to previous 1.88 (colored)

sync with HEAD

Revision 1.71.12.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:42 2007 UTC (6 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.71.12.3: +5 -6 lines
Diff to previous 1.71.12.3 (colored) to branchpoint 1.71 (colored)

sync with head.

Revision 1.88.6.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:29 2007 UTC (6 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.88: +5 -6 lines
Diff to previous 1.88 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.88.10.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:49:15 2007 UTC (6 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.88: +5 -6 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Oct 8 18:01:28 2007 UTC (6 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.88: +5 -6 lines
Diff to previous 1.88 (colored)

Merge ffs locking & brelse changes from the vmlocking branch.

Revision 1.71.12.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:46:48 2007 UTC (6 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.71.12.2: +8 -11 lines
Diff to previous 1.71.12.2 (colored) to branchpoint 1.71 (colored)

sync with head.

Revision 1.86.2.6 / (download) - annotate - [select for diffs], Fri Aug 24 23:28:44 2007 UTC (6 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.86.2.5: +4 -7 lines
Diff to previous 1.86.2.5 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored)

Sync with buffer cache locking changes. See buf.h/vfs_bio.c for details.
Some minor portions are incomplete and needs to be verified as a whole.

Revision 1.86.2.5 / (download) - annotate - [select for diffs], Sun Jul 15 13:28:15 2007 UTC (6 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.86.2.4: +2 -6 lines
Diff to previous 1.86.2.4 (colored) to branchpoint 1.86 (colored)

Sync with head.

Revision 1.86.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:42 2007 UTC (6 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.86: +4 -7 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Sync with head.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Jul 10 09:50:07 2007 UTC (6 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.87: +2 -6 lines
Diff to previous 1.87 (colored)

Move `struct dquot' and its supporting functions from quota.h to ufs_quota.c.

- Make quota-internal functions static.
- Clean up declarations in quota.h and ufs_extern.h.  quota.h now has the
  description of quota criterions, on-disk structure, user-kernel interface and
  declaration of init/done functions.  All ufs quota related function
  prototypes go to ufs_extern.h.
- New functions ufsquota_init() and ufsquota_free() create or destroy the
  quota fields of `struct inode'.
- chkdq() and chkiq() always update the quota fields of `struct inode' first.
- Only ufs_access() explicitely calls getinoquota().

No objections on tech-kern@

Revision 1.86.2.4 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:19 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.86.2.3: +4 -3 lines
Diff to previous 1.86.2.3 (colored) to branchpoint 1.86 (colored)

Sync with head.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Jun 5 12:31:34 2007 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.86: +4 -3 lines
Diff to previous 1.86 (colored)

improve post-ubc file overwrite performance in common cases.
ie. when it's safe, actually overwrite blocks rather than doing
read-modify-write.

also fixes PR/33152 and PR/36303.

Revision 1.86.2.3 / (download) - annotate - [select for diffs], Sun May 13 17:36:42 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.86.2.2: +8 -6 lines
Diff to previous 1.86.2.2 (colored) to branchpoint 1.86 (colored)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Fri Apr 13 15:47:04 2007 UTC (7 years ago) by ad
Branch: vmlocking
Changes since 1.86.2.1: +4 -2 lines
Diff to previous 1.86.2.1 (colored) to branchpoint 1.86 (colored)

Put a per-mount lock around ffs shared data structures, excluding softdep
and quotas. Strategy lifted from FreeBSD.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:19 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored)

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

Revision 1.85.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 06:00:58 2007 UTC (7 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.85: +6 -6 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

Sync with HEAD.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:43 2007 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Branch point for: vmlocking, reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.85: +6 -6 lines
Diff to previous 1.85 (colored)

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

Revision 1.71.12.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:51:00 2006 UTC (7 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.71.12.1: +20 -14 lines
Diff to previous 1.71.12.1 (colored) to branchpoint 1.71 (colored)

sync with head.

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:48 2006 UTC (7 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.83: +19 -13 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

Sync with head.

Revision 1.83.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:50 2006 UTC (7 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.83: +19 -13 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

sync with head

Revision 1.85 / (download) - annotate - [select for diffs], Tue Oct 17 11:39:18 2006 UTC (7 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.84: +13 -6 lines
Diff to previous 1.84 (colored)

ffs_truncate: don't forget to zero the past eof in the case of
blocksize < pagesize.  PR/33777 from Simon Burge.
XXX check other filesystems, esp. lfs.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Oct 14 09:17:26 2006 UTC (7 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.83: +4 -5 lines
Diff to previous 1.83 (colored)

don't use g_glock directly.

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 03:00:00 2006 UTC (7 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.79: +9 -7 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

sync with head

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

Merge from HEAD.

Revision 1.79.8.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:54:49 2006 UTC (7 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.79.8.2: +7 -6 lines
Diff to previous 1.79.8.2 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

sync with head.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Jun 23 14:13:02 2006 UTC (7 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

fix a simonb-timecounters regression.
the precision of getnanotime() is not suitable for file timestamps.
esp. when it's nfs-exported.

- introduce vfs_timestamp().
  (the name is from freebsd.  currently merely a wrapper of nanotime())
- for ufs-like filesystems, use it rather than getnanotime().

XXX check other filesystems.

Revision 1.71.12.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:31 2006 UTC (7 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.71: +78 -58 lines
Diff to previous 1.71 (colored)

sync with head.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:11:13 2006 UTC (7 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.81: +7 -6 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

Sync with head.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jun 7 22:34:19 2006 UTC (7 years, 10 months ago) by kardel
Branch: MAIN
CVS Tags: gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.81: +7 -6 lines
Diff to previous 1.81 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.79.6.4 / (download) - annotate - [select for diffs], Thu Jun 1 22:39:28 2006 UTC (7 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.79.6.3: +4 -3 lines
Diff to previous 1.79.6.3 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

Sync with head.

Revision 1.79.12.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:47 2006 UTC (7 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.79.12.1: +4 -3 lines
Diff to previous 1.79.12.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

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

Revision 1.79.8.2 / (download) - annotate - [select for diffs], Wed May 24 10:59:25 2006 UTC (7 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.79.8.1: +4 -3 lines
Diff to previous 1.79.8.1 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.81 / (download) - annotate - [select for diffs], Sun May 14 21:32:45 2006 UTC (7 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.80: +4 -3 lines
Diff to previous 1.80 (colored)

integrate kauth.

Revision 1.79.10.3 / (download) - annotate - [select for diffs], Sat May 6 23:32:33 2006 UTC (7 years, 11 months ago) by christos
Branch: elad-kernelauth
Changes since 1.79.10.2: +3 -2 lines
Diff to previous 1.79.10.2 (colored) to branchpoint 1.79 (colored) next main 1.80 (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.79.6.3 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:24 2006 UTC (7 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.79.6.2: +2 -2 lines
Diff to previous 1.79.6.2 (colored) to branchpoint 1.79 (colored)

Sync with head.

Revision 1.79.10.2 / (download) - annotate - [select for diffs], Wed Apr 19 03:54:09 2006 UTC (7 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.79.10.1: +3 -3 lines
Diff to previous 1.79.10.1 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.79.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:51 2006 UTC (8 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

sync with head.

Revision 1.79.12.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:29 2006 UTC (8 years ago) by tron
Branch: peter-altq
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

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

Revision 1.80 / (download) - annotate - [select for diffs], Sat Mar 18 13:56:51 2006 UTC (8 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

Fix dead error condition, coverity ID 747.

Revision 1.79.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:39:12 2006 UTC (8 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

Adapt to kernel authorization KPI.

Revision 1.79.6.2 / (download) - annotate - [select for diffs], Sun Feb 5 11:42:39 2006 UTC (8 years, 2 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.79.6.1: +7 -8 lines
Diff to previous 1.79.6.1 (colored) to branchpoint 1.79 (colored)

In the *itimes functions, just call getnanotime() at the start of
the function and use the result if needed, rather than the previous
conditional calls/assignments method.  The code is clearer this way,
and benchmarks at about the same speed.

Revision 1.79.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:12:50 2006 UTC (8 years, 2 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.79: +7 -5 lines
Diff to previous 1.79 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.79 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:25 2005 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, 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.78: +6 -6 lines
Diff to previous 1.78 (colored)

merge ktrace-lwp.

Revision 1.59.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:41 2005 UTC (8 years, 4 months ago) by christos
Branch: ktrace-lwp
Changes since 1.59.2.6: +8 -2 lines
Diff to previous 1.59.2.6 (colored) next main 1.60 (colored)

Sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Nov 11 15:50:57 2005 UTC (8 years, 5 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.77: +8 -2 lines
Diff to previous 1.77 (colored)

- ignore truncation for VCHR/VBLK/VFIFO as it used to be
  before yamt-vop merge.  PR/32049 from Atsushi Onoe.
- reject setattr which attempts to change size of VLNK/VSOCK.

Revision 1.59.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:31 2005 UTC (8 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.59.2.5: +70 -58 lines
Diff to previous 1.59.2.5 (colored)

Sync with HEAD. Here we go again...

Revision 1.77 / (download) - annotate - [select for diffs], Wed Nov 2 12:39:00 2005 UTC (8 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.76: +28 -44 lines
Diff to previous 1.76 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Sat Oct 29 17:21:11 2005 UTC (8 years, 5 months ago) by yamt
Branch: yamt-vop
Changes since 1.76.2.1: +8 -8 lines
Diff to previous 1.76.2.1 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored)

use ffs_* directly rather than via ufs_ops.
suggested by Chuck Silvers.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 03:00:30 2005 UTC (8 years, 5 months ago) by yamt
Branch: yamt-vop
Changes since 1.76: +28 -44 lines
Diff to previous 1.76 (colored)

adapt ufs.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Sep 27 06:48:55 2005 UTC (8 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.75: +5 -3 lines
Diff to previous 1.75 (colored)

introduce "ufs_ops" and use it for ITIMES.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Sep 12 20:26:44 2005 UTC (8 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.74: +5 -2 lines
Diff to previous 1.74 (colored)

Add another KASSERT.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Sep 12 20:09:59 2005 UTC (8 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.73: +35 -2 lines
Diff to previous 1.73 (colored)

move the new ffs_itimes() to a berr place -- ffs_subr.c is shared with
userland

Revision 1.73 / (download) - annotate - [select for diffs], Mon Sep 12 16:24:41 2005 UTC (8 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.72: +3 -7 lines
Diff to previous 1.72 (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.72 / (download) - annotate - [select for diffs], Fri Jul 15 05:01:16 2005 UTC (8 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.71: +8 -14 lines
Diff to previous 1.71 (colored)

Use ANSI function decls.

Revision 1.59.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:39:08 2004 UTC (9 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.59.2.4: +6 -6 lines
Diff to previous 1.59.2.4 (colored)

Fix the sync with head I botched.

Revision 1.59.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:52 2004 UTC (9 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.59.2.3: +6 -6 lines
Diff to previous 1.59.2.3 (colored)

Sync with HEAD.

Revision 1.59.2.3 / (download) - annotate - [select for diffs], Wed Aug 25 06:59:14 2004 UTC (9 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.59.2.2: +50 -35 lines
Diff to previous 1.59.2.2 (colored)

Sync with HEAD.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Aug 15 19:01:16 2004 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, matt-timespec, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.70: +4 -3 lines
Diff to previous 1.70 (colored)

Don't write out the extra zero pages with PGO_SYNCIO.  We start an asynchronous
write anyway, and they will not be freed until that write is finished.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Aug 15 17:36:00 2004 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.69: +15 -11 lines
Diff to previous 1.69 (colored)

Correct the fix for the partial-truncate inefficiency.  We still need to zero,
but we only need to sync those pages that are being lopped off, if any.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Aug 15 16:17:37 2004 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.68: +10 -8 lines
Diff to previous 1.68 (colored)

Minor simplification to some arithmetic.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Aug 15 07:19:56 2004 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.67: +12 -15 lines
Diff to previous 1.67 (colored)

Fixing age old cruft:
* Rather than using mnt_maxsymlinklen to indicate that a file systems returns
  d_type fields(!), add a new internal flag, IMNT_DTYPE.

Add 3 new elements to ufsmount:
* um_maxsymlinklen, replaces mnt_maxsymlinklen (which never should have existed
  in the first place).
* um_dirblksiz, which tracks the current directory block size, eliminating the
  FS-specific checks littered throughout the code.  This may be used later to
  make the block size variable.
* um_maxfilesize, which is the maximum file size, possibly adjusted lower due
  to implementation issues.

Sync some bug fixes from FFS into ext2fs, particularly:
* ffs_lookup.c 1.21, 1.28, 1.33, 1.48
* ffs_inode.c 1.43, 1.44, 1.45, 1.66, 1.67
* ffs_vnops.c 1.84, 1.85, 1.86

Clean up some crappy pointer frobnication.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Aug 14 02:26:57 2004 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.66: +21 -13 lines
Diff to previous 1.66 (colored)

Partially fix a performance problem in the partial-truncate case.  We were
doing synchronous writes unnecessarily in a couple of places.  Now it's 1
write per truncate in my test case rather than 3.  :-P

Revision 1.66 / (download) - annotate - [select for diffs], Sat Aug 14 01:32:02 2004 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

There is no need to do a synchronous write when truncating a short symlink.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Aug 14 01:08:02 2004 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.64: +6 -3 lines
Diff to previous 1.64 (colored)

Add a new flag, IN_MODIFY.  This is like IN_UPDATE|IN_CHANGE, but unlike
setting those flags, it does not cause the inode to be written in the periodic
sync.  This is used for writes to special files (devices and named pipes) and
FIFOs.

Do not preemptively sync updates to access times and modification times.  They
are now updated in the inode only opportunistically, or when the file or device
is closed.  (Really, it should be delayed beyond close, but this is enough to
help substantially with device nodes.)

And the most amusing part:
Trickle sync was broken on both FFS and ext2fs, in different ways.  In FFS, the
periodic call to VFS_SYNC(MNT_LAZY) was still causing all file data to be
synced.  In ext2fs, it was causing the metadata to *not* be synced.  We now
only call VOP_UPDATE() on the node if we're doing MNT_LAZY.  I've confirmed
that we do in fact trickle correctly now.

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:49 2004 UTC (9 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.59.2.1: +25 -21 lines
Diff to previous 1.59.2.1 (colored)

Sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jun 20 18:23:30 2004 UTC (9 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.63: +13 -11 lines
Diff to previous 1.63 (colored)

Use one daddr_t XXXblks[NDADDR + NIADDR] instead of two.
No functional changes. Reduces kernel stack usage by 120 bytes.

Approved by: Jason R. Thorpe <thorpej@netbsd.org>

Revision 1.63 / (download) - annotate - [select for diffs], Tue May 25 14:54:59 2004 UTC (9 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.62: +11 -6 lines
Diff to previous 1.62 (colored)

Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.

- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
    may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
    Snapshots may not be opened for writing and the attributes are read-only.
    Use the mtime as the time this snapshot was taken.
    Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
  one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
  a vnode.
- Add snapshot support to ls, fsck_ffs and dump.

Welcome to 2.0F.

Approved by: Jason R. Thorpe <thorpej@netbsd.org>

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jan 25 18:06:49 2004 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern.

VOP_STRATEGY(bp) is replaced by one of two new functions:

- VOP_STRATEGY(vp, bp)  Call the strategy routine of vp for bp.
- DEV_STRATEGY(bp)      Call the d_strategy routine of bp->b_dev for bp.

DEV_STRATEGY(bp) is used only for block-to-block device situations.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Jan 10 14:39:51 2004 UTC (10 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored)

store a i/o priority hint in struct buf for buffer queue discipline.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:30 2003 UTC (10 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.59: +3 -7 lines
Diff to previous 1.59 (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.59.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:21 2003 UTC (10 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.59: +6 -6 lines
Diff to previous 1.59 (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.59 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:35 2003 UTC (10 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

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

Revision 1.58 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:25 2003 UTC (10 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.57: +6 -6 lines
Diff to previous 1.57 (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.51.10.1 / (download) - annotate - [select for diffs], Tue Jun 24 09:44:19 2003 UTC (10 years, 9 months ago) by grant
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Pull up revision 1.52 (requested by nakayama in ticket #1333):

Move a brace that is in the wrong position when changes from FreeBSD
were added in rev 1.51.  This may fix the "N lost blocks" problem some
people have noticed.
Reviewed by fvdl.

Revision 1.57 / (download) - annotate - [select for diffs], Thu May 15 20:25:32 2003 UTC (10 years, 11 months ago) by kristerw
Branch: MAIN
Changes since 1.56: +22 -16 lines
Diff to previous 1.56 (colored)

The C language does not permit statements of the form
   (X ? Y : Z) = 0;
even though gcc handles this by a stupid extension.

Transform these to correct C.

Approved by fvdl.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Apr 10 20:02:36 2003 UTC (11 years ago) by fvdl
Branch: MAIN
Changes since 1.55: +2 -14 lines
Diff to previous 1.55 (colored)

Remove some leftover diagnostic checks.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:37 2003 UTC (11 years ago) by fvdl
Branch: MAIN
Changes since 1.54: +123 -61 lines
Diff to previous 1.54 (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.54 / (download) - annotate - [select for diffs], Sat Jan 25 16:40:29 2003 UTC (11 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.53: +4 -3 lines
Diff to previous 1.53 (colored)

The oldblks and newblks arrays are used to store direct copies of
on-disk block pointers, so they should be int32_t. Error found
by Izumi Tsutsui.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:22 2003 UTC (11 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.52: +17 -15 lines
Diff to previous 1.52 (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.40.2.9 / (download) - annotate - [select for diffs], Fri Oct 18 02:45:49 2002 UTC (11 years, 6 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.40.2.8: +3 -3 lines
Diff to previous 1.40.2.8 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

Catch up to -current.

Revision 1.41.4.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:44:52 2002 UTC (11 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.41.4.2: +3 -3 lines
Diff to previous 1.41.4.2 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.52 / (download) - annotate - [select for diffs], Thu Sep 26 21:35:27 2002 UTC (11 years, 6 months ago) by simonb
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

Move a brace that is in the wrong position when changes from FreeBSD
were added in rev 1.51.  This may fix the "N lost blocks" problem some
people have noticed.
Reviewed by fvdl.

Revision 1.40.2.8 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:39 2002 UTC (11 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.7: +2 -3 lines
Diff to previous 1.40.2.7 (colored) to branchpoint 1.40 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.40.2.7 / (download) - annotate - [select for diffs], Mon Jun 24 22:12:25 2002 UTC (11 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.6: +3 -3 lines
Diff to previous 1.40.2.6 (colored) to branchpoint 1.40 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.35.2.3 / (download) - annotate - [select for diffs], Tue Feb 26 21:13:18 2002 UTC (12 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.35.2.2: +17 -1 lines
Diff to previous 1.35.2.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Apply patch (requested by fvdl):
  Fix a panic in the FFS sofdep code on an NFS server triggered by
  an excerciser program run on an NFS client.

Revision 1.41.4.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:05:01 2002 UTC (12 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.41.4.1: +53 -22 lines
Diff to previous 1.41.4.1 (colored) to branchpoint 1.41 (colored)

Sync kqueue branch with -current.

Revision 1.40.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:46 2002 UTC (12 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.5: +12 -8 lines
Diff to previous 1.40.2.5 (colored) to branchpoint 1.40 (colored)

Catch up to -current.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Dec 18 10:57:21 2001 UTC (12 years, 4 months ago) by fvdl
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, ifpoll-base, ifpoll, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6
Changes since 1.50: +4 -6 lines
Diff to previous 1.50 (colored)

Bring over fixes from FreeBSD that weren't incorporated yet, mainly
from Kirk McKusick. They implement taking pending block/inode frees
into account for the sake of correct statfs() numbers, and adding
a new softdep type (newdirblk) to correctly handle newly allocated
directory blocks.

Minor additional changes: 1) swap the newly introduced fs_pendinginodes
and fs_pendingblock fields in ffs_sb_swap, and 2) declare lkt_held
in the debug version of the softdep lock structure volatile, as it
can be modified from interrupt context #ifdef DEBUG.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 18 06:50:28 2001 UTC (12 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.49: +8 -3 lines
Diff to previous 1.49 (colored)

when truncating a file, make sure the last block of the file is actually
allocated, since other parts of the code assume this.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Nov 30 07:05:55 2001 UTC (12 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.48: +4 -3 lines
Diff to previous 1.48 (colored)

VOP_PUTPAGES() requires page-aligned offsets, so be sure to provide such.
fixes PR 14759.

(while I'm here, call VOP_PUTPAGES() directly instead of indirecting through
the UVM pager op vector.)

Revision 1.40.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:18:55 2001 UTC (12 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.4: +30 -11 lines
Diff to previous 1.40.2.4 (colored) to branchpoint 1.40 (colored)

Catch up to -current.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:45 2001 UTC (12 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.45: +30 -11 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Nov 8 05:24:52 2001 UTC (12 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.47: +28 -10 lines
Diff to previous 1.47 (colored)

in both paths that can cause fragments to be expanded (write and truncate-up),
deal with the fragment expansion separately before the rest of the operation.
this allows us to simplify ufs_balloc_range() by not worrying about implicit
fragment expansion.

call VOP_PUTPAGES() directly for vnodes instead of
going through the UVM pager "put" vector.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Nov 6 06:59:06 2001 UTC (12 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.46: +2 -4 lines
Diff to previous 1.46 (colored)

Remove some bogus checks for unsigned variables < 0.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Oct 30 01:11:53 2001 UTC (12 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.45: +4 -1 lines
Diff to previous 1.45 (colored)

add __KERNEL_RCSID()

Revision 1.40.2.4 / (download) - annotate - [select for diffs], Mon Oct 8 20:11:51 2001 UTC (12 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.3: +5 -2 lines
Diff to previous 1.40.2.3 (colored) to branchpoint 1.40 (colored)

Catch up to -current.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:48:22 2001 UTC (12 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.42: +19 -11 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Catch up with -current.

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Sun Sep 30 13:17:24 2001 UTC (12 years, 6 months ago) by he
Branch: netbsd-1-5
Changes since 1.35.2.1: +3 -2 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored)

Apply patch (requested by chuck):
  Make one call to uvm_vnp_uncache() conditional.  Fixes a panic
  when removing an mmap'ing to an unlinked, closed file.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Sep 28 11:43:23 2001 UTC (12 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.44: +5 -2 lines
Diff to previous 1.44 (colored)

handle allocation errors in truncate-up case.

Revision 1.40.2.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:37:04 2001 UTC (12 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.2: +16 -11 lines
Diff to previous 1.40.2.2 (colored) to branchpoint 1.40 (colored)

Catch up to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Sep 20 08:25:59 2001 UTC (12 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

we can't assert that the inode and vnode sizes are consistent at the start
of ffs_truncate() since there are cases (eg. when ffs_write() gets ENOSPC)
where they should be different.  move the assert to the end instead.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Sep 15 20:36:42 2001 UTC (12 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: post-chs-ubcperf
Changes since 1.42: +15 -10 lines
Diff to previous 1.42 (colored)

a whole bunch of changes to improve performance and robustness under load:

 - remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Thu Sep 13 01:16:29 2001 UTC (12 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Update the kqueue branch to HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 30 03:47:53 2001 UTC (12 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

min() -> MIN()

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:10:06 2001 UTC (12 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.1: +2 -2 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored)

Catch up to -current.

Revision 1.41 / (download) - annotate - [select for diffs], Wed May 30 11:57:18 2001 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: perseant-lfsv2-base, perseant-lfsv2
Branch point for: kqueue
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

use _KERNEL_OPT

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:50:06 2001 UTC (13 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.28.8.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:41 2001 UTC (13 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.8.3: +2 -2 lines
Diff to previous 1.28.8.3 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 27 04:23:21 2001 UTC (13 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Fix from chuq:
don't update UVM's notion of the file size before the VOP_FSYNC() when
we're partially truncating a file with softdeps enabled.  doing so could
free pages without updating the dependency info, which would result in
"panic: softdep_write_inodeblock: direct pointer #1 mismatch 0 != N".

Revision 1.28.8.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:37:01 2001 UTC (13 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.8.2: +1 -1 lines
Diff to previous 1.28.8.2 (colored) to branchpoint 1.28 (colored)

Sync with HEAD

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jan 1 05:17:26 2001 UTC (13 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Convert a MALLOC with a variable size to malloc().  Saves 220 bytes of text
on VAX.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Thu Dec 14 23:36:36 2000 UTC (13 years, 4 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Pull up revision 1.37 (requested by fvdl):
  Improve NFS performance, possibly with as much as 100% in
  throughput.  Please note: this implies a kernel interface change,
  VOP_FSYNC gains two arguments.

Revision 1.28.8.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:20:11 2000 UTC (13 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.8.1: +58 -72 lines
Diff to previous 1.28.8.1 (colored) to branchpoint 1.28 (colored)

Sync with HEAD.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:54 2000 UTC (13 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.37: +58 -72 lines
Diff to previous 1.37 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.28.8.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:45 2000 UTC (13 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28: +97 -47 lines
Diff to previous 1.28 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.37 / (download) - annotate - [select for diffs], Tue Sep 19 22:04:09 2000 UTC (13 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Adapt for VOP_FSYNC parameter change.

Implement range fsync for FFS. Note: not yet implemented for the
SOFTDEP case.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jun 28 14:16:40 2000 UTC (13 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.35: +1 -5 lines
Diff to previous 1.35 (colored)

remove include of <vm/vm.h> and <uvm/uvm_extern.h>

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:10:33 2000 UTC (13 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.31: +24 -16 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 30 17:23:52 2000 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.34: +10 -7 lines
Diff to previous 1.34 (colored)

In ffs_update():
* Move the clearing of IN_MODIFIED and IN_ACCESSED later, so they are not
  cleared if the bread() failed.
* Explicitly set waitfor to 0 in the softdep case, if IN_MODIFIED is not
  set (mirroring the bwrite()/bdwrite() decision).

Revision 1.34 / (download) - annotate - [select for diffs], Mon May 29 18:04:30 2000 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +9 -8 lines
Diff to previous 1.33 (colored)

Add a new inode flags called IN_ACCESSED.  This used in place of IN_MODIFIED
to record that the atime was updated.  In ffs_update(), we only do synchronous
writes if something *other* than the atime was changed.

Revision 1.33 / (download) - annotate - [select for diffs], Sun May 28 08:15:42 2000 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

When unwinding a failed allocation, make sure to nuke the unwound block from
the vnode's block list.  This fixes `itrunc3' panics (at least in some cases;
further testing is needed) and prevents further lossage later on.

Revision 1.32 / (download) - annotate - [select for diffs], Sun May 28 04:13:58 2000 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +11 -7 lines
Diff to previous 1.31 (colored)

Add a new function to remove extra buffers when truncating a file.  This is
more generic than the vinvalbuf(V_SAVEMETA) case, avoiding synchronous
operations when truncating to a non-zero length.

Revision 1.31 / (download) - annotate - [select for diffs], Sat May 13 23:43:13 2000 UTC (13 years, 11 months ago) by perseant
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.30: +17 -10 lines
Diff to previous 1.30 (colored)

Change the sementics of the last parameter from a boolean ("waitfor") to
a set of flags ("flags").  Two flags are defined, UPDATE_WAIT and
UPDATE_DIROP.

Under the old semantics, VOP_UPDATE would block if waitfor were set,
under the assumption that directory operations should be done
synchronously.  At least LFS and FFS+softdep do not make this
assumption; FFS+softdep got around the problem by enclosing all relevant
calls to VOP_UPDATE in a "if(!DOINGSOFTDEP(vp))", while LFS simply
ignored waitfor, one of the reasons why NFS-serving an LFS filesystem
did not work properly.

Under the new semantics, the UPDATE_DIROP flag is a hint to the
fs-specific update routine that the call comes from a dirop routine, and
should be wait for, or not, accordingly.

Closes PR#8996.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 30 12:41:12 2000 UTC (14 years ago) by augustss
Branch: MAIN
Changes since 1.29: +12 -12 lines
Diff to previous 1.29 (colored)

Remove register declarations.

Revision 1.28.14.2 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:37 1999 UTC (14 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.28.14.1: +58 -19 lines
Diff to previous 1.28.14.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Pull up to last week's -current.

Revision 1.28.14.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:20:07 1999 UTC (14 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.28: +6 -5 lines
Diff to previous 1.28 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:13 1999 UTC (14 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.28: +58 -19 lines
Diff to previous 1.28 (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.28.10.2 / (download) - annotate - [select for diffs], Tue Oct 26 19:15:19 1999 UTC (14 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.28.10.1: +10 -7 lines
Diff to previous 1.28.10.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Merge changes in the trickle-sync and softdep code as done by Kirk McKusick
in FreeBSD since the version that we based the branch on. Merging mostly
done by Ethan Solomita <ethan@geocast.com>.

Also, make sure the syncer thread/process isn't active when we're
unmounting a filesystem. This could wreak havoc. XXX should be done
on a per-mountpoint basis, but especially the softdep code would
end up to be a big pile of vfs_busy() calls.

Revision 1.28.10.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:34 1999 UTC (14 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.28: +49 -13 lines
Diff to previous 1.28 (colored)

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

Revision 1.28.4.3 / (download) - annotate - [select for diffs], Sat Jul 31 18:49:18 1999 UTC (14 years, 8 months ago) by chs
Branch: chs-ubc2
Changes since 1.28.4.2: +7 -28 lines
Diff to previous 1.28.4.2 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

simplify ffs_truncate().

Revision 1.28.4.2 / (download) - annotate - [select for diffs], Sun Jul 11 05:43:59 1999 UTC (14 years, 9 months ago) by chs
Branch: chs-ubc2
Changes since 1.28.4.1: +1 -4 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored)

remove uvm_vnp_uncache(), it's no longer needed.

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Mon Jun 7 04:25:34 1999 UTC (14 years, 10 months ago) by chs
Branch: chs-ubc2
Changes since 1.28: +17 -18 lines
Diff to previous 1.28 (colored)

merge everything from chs-ubc branch.

Revision 1.24.2.3 / (download) - annotate - [select for diffs], Sun May 30 15:04:34 1999 UTC (14 years, 10 months ago) by chs
Branch: chs-ubc
Changes since 1.24.2.2: +4 -4 lines
Diff to previous 1.24.2.2 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

update call to ffs_balloc() for new args.
fix an uninitialize variable in ffs_truncate().

Revision 1.28 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:30 1999 UTC (15 years ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep, chs-ubc2
Changes since 1.27: +1 -17 lines
Diff to previous 1.27 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 5 21:09:49 1999 UTC (15 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.26: +5 -7 lines
Diff to previous 1.26 (colored)

Pass null pointers to VOP_UPDATE rather than having all the callers fetch the
current time themselves.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Mar 5 20:47:07 1999 UTC (15 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

Permit the access and modify time pointers passed to VOP_UPDATE to be null,
meaning the current time.

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Thu Feb 25 04:03:31 1999 UTC (15 years, 1 month ago) by chs
Branch: chs-ubc
Changes since 1.24.2.1: +21 -4 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored)

add UBC stuff to ffs_truncate().

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 12 19:54:42 1998 UTC (15 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

defopt FFS_EI

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Nov 9 06:06:36 1998 UTC (15 years, 5 months ago) by chs
Branch: chs-ubc
Changes since 1.24: +4 -1 lines
Diff to previous 1.24 (colored)

initial snapshot.  lots left to do.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Oct 23 00:31:28 1998 UTC (15 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc-base
Branch point for: chs-ubc
Changes since 1.23: +6 -5 lines
Diff to previous 1.23 (colored)

Use DINODE_SIZE rather than pointer arithmetic.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Oct 4 18:07:57 1998 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

Missed a conditional for FFS_EI; appears when we compile without -Ox

Revision 1.22 / (download) - annotate - [select for diffs], Sun Aug 9 20:15:39 1998 UTC (15 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.21: +8 -8 lines
Diff to previous 1.21 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 9 07:46:32 1998 UTC (15 years, 10 months ago) by scottr
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored)

Protect various config(8)-generated files from inclusion while
building LKMs.  Fixes PR 5557.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jun 8 04:27:51 1998 UTC (15 years, 10 months ago) by scottr
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Use the newly-defined opt_quota.h.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 18 15:57:27 1998 UTC (16 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.18: +13 -8 lines
Diff to previous 1.18 (colored)

Add support for reading/writing FFS in non-native byte order, conditioned
to "options FFS_EI". The superblock and inodes (without blk addr) are
byteswapped at disk read/write time, other metadatas are byteswapped
when used (as they are acceeded directly in the buffer cache).
This required the addition of a "um_flags" field to struct ufsmount.
ffs_bswap.c contains superblock and inode byteswap routines also used
by userland utilities.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:14 1998 UTC (16 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.17: +28 -31 lines
Diff to previous 1.17 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:14:04 1998 UTC (16 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +28 -29 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:44 1998 UTC (16 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1: +3 -4 lines
Diff to previous 1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 10 14:10:55 1998 UTC (16 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Feb 5 08:00:34 1998 UTC (16 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.15: +17 -1 lines
Diff to previous 1.15 (colored)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the rest of the MI portion changes.

this will be KNF'd shortly.  :-)

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 4 20:22:16 1997 UTC (16 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Don't cast 64bit (off_t) file sizes to vm_offset_t (32bit on many
architectures), truncate them intelligently instead.
The truncation is done centralized in vnode_pager.c.
This prevents from wrap-over effects when parts of large (>2^32 byte) files
are mmapped.
Don't allow to mmap above the numerical range of vm_offset_t.
This is considered a temporary solution until the vm system handles the
object sizes/offsets more cleanly.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 11 10:09:43 1997 UTC (16 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.13: +32 -32 lines
Diff to previous 1.13 (colored)

Add support for ext2fs, this needed a few modifications to ufs/ufs/inode.h:
- added an "union inode_ext" to struct inode, for the per-fs extentions.
  For now only ext2fs uses it.
- i_din is now an union:
	union {
		struct  dinode ffs_din; /* 128 bytes of the on-disk dinode. */
		struct ext2fs_dinode e2fs_din; /* 128 bytes of the on-disk dinode. */
	} i_din
  Added a lot of #define i_ffs_* and i_e2fs_* to access the fields.
- Added two macros: FFS_ITIMES and EXT2FS_ITIMES. ITIMES calls the rigth
  macro, depending on the time of the inode. ITIMES is used where necessary,
  FFS_ITIMES and EXT2FS_ITIMES in other places.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 27 10:30:14 1997 UTC (17 years, 2 months ago) by tls
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.12: +9 -7 lines
Diff to previous 1.12 (colored)

Correct old inode flag names in comment, and reformat for 80 character screen

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 6 03:02:59 1996 UTC (17 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.11: +20 -13 lines
Diff to previous 1.11 (colored)

Performance enhancement from Kirk McKusick <mckusick@McKusick.COM>:
When freeing an indirect block, there is no need to write it (synchronously,
no less!) before tossing it.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Sep 1 23:49:21 1996 UTC (17 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +8 -22 lines
Diff to previous 1.10 (colored)

Add a set of generic file system operations that most file systems use.
Also, fix some time stamp bogosities.

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 11 18:27:19 1996 UTC (17 years, 11 months ago) by mycroft
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.9: +16 -11 lines
Diff to previous 1.9 (colored)

Change VOP_UPDATE() semantics:
* Make 2nd and 3rd args timespecs, not timevals.
* Consistently pass a Boolean as the 4th arg (except in LFS).
Also, fix ffs_update() and lfs_update() to actually change the nsec fields.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Feb 9 22:22:23 1996 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.8: +31 -23 lines
Diff to previous 1.8 (colored)

ffs prototypes

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 15 23:22:41 1995 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

compensate for timeval/timespec/stat structure changes.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 14 13:03:37 1994 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Sync with CSRG.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Wed Nov 23 08:18:33 1994 UTC (19 years, 4 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-PATCH06, netbsd-1-0-PATCH05
Changes since 1.5.2.1: +4 -4 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

from mycroft, for patch_05

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 28 19:31:07 1994 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored)

Don't allow truncating past maxfilesize.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Wed Oct 19 04:29:45 1994 UTC (19 years, 6 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

temporary sanity checks, as suggested by charles.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 29 06:46:32 1994 UTC (19 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 15 15:35:06 1994 UTC (19 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

Fastlink compat.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 13 20:49:56 1994 UTC (19 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Format police.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 13 20:38:42 1994 UTC (19 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

Check requested file size; negative values cause havoc.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 8 11:42:04 1994 UTC (19 years, 10 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>