The NetBSD Project

CVS log for src/sys/ufs/ufs/ufs_readwrite.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.128 / (download) - annotate - [select for diffs], Mon Feb 21 17:07:45 2022 UTC (2 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored) to selected 1.21 (colored)

Fix wrong assertion, the negatiopn of "a && b" is "!a || !b" so we
need "DIP(ip, blocks) != 0" here.

Should fix PR kern/56725 (Panic when ls directory with device nodes
on an older ffs)

Revision 1.127 / (download) - annotate - [select for diffs], Wed Oct 20 03:08:19 2021 UTC (2 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.126: +6 -14 lines
Diff to previous 1.126 (colored) to selected 1.21 (colored)

Overhaul of the EVFILT_VNODE kevent(2) filter:

- Centralize vnode kevent handling in the VOP_*() wrappers, rather than
  forcing each individual file system to deal with it (except VOP_RENAME(),
  because VOP_RENAME() is a mess and we currently have 2 different ways
  of handling it; at least it's reasonably well-centralized in the "new"
  way).
- Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ,
  compatible with the same events in FreeBSD.
- Track which kevent notifications clients are interested in receiving
  to avoid doing work for events no one cares about (avoiding, e.g.
  taking locks and traversing the klist to send a NOTE_WRITE when
  someone is merely watching for a file to be deleted, for example).

In support of the above:

- Add support in vnode_if.sh for specifying PRE- and POST-op handlers,
  to be invoked before and after vop_pre() and vop_post(), respectively.
  Basic idea from FreeBSD, but implemented differently.
- Add support in vnode_if.sh for specifying CONTEXT fields in the
  vop_*_args structures.  These context fields are used to convey information
  between the file system VOP function and the VOP wrapper, but do not
  occupy an argument slot in the VOP_*() call itself.  These context fields
  are initialized and subsequently interpreted by PRE- and POST-op handlers.
- Version VOP_REMOVE(), uses the a context field for the file system to report
  back the resulting link count of the target vnode.  Return this in tmpfs,
  udf, nfs, chfs, ext2fs, lfs, and ufs.

NetBSD 9.99.92.

Revision 1.125.4.1 / (download) - annotate - [select for diffs], Sat Apr 25 11:24:08 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored) next main 1.126 (colored) to selected 1.21 (colored)

Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.126 / (download) - annotate - [select for diffs], Thu Apr 23 21:47:09 2020 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored) to selected 1.21 (colored)

PR kern/54759 (vm.ubc_direct deadlock when read()/write() into mapping of itself)

- Add new flag UBC_ISMAPPED which tells ubc_uiomove() the object is mmap()ed
  somewhere.  Use it to decide whether to do direct-mapped copy, rather than
  poking around directly in the vnode in ubc_uiomove(), which is ugly and
  doesn't work for tmpfs.  It would be nicer to contain all this in UVM but
  the filesystem provides the needed locking here (VV_MAPPED) and to
  reinvent that would suck more.

- Rename UBC_UNMAP_FLAG() to UBC_VNODE_FLAGS().  Pass in UBC_ISMAPPED where
  appropriate.

Revision 1.121.14.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:21 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.121.14.2: +0 -73 lines
Diff to previous 1.121.14.2 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored) to selected 1.21 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.121.14.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:04 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.121.14.1: +5 -5 lines
Diff to previous 1.121.14.1 (colored) to branchpoint 1.121 (colored) to selected 1.21 (colored)

Merge changes from current as of 20200406

Revision 1.124.4.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:11 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.124: +5 -5 lines
Diff to previous 1.124 (colored) next main 1.125 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Feb 23 15:46:43 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base1, bouyer-xenpvh-base, ad-namecache-base3
Branch point for: bouyer-xenpvh
Changes since 1.124: +5 -5 lines
Diff to previous 1.124 (colored) to selected 1.21 (colored)

UVM locking changes, proposed on tech-kern:

- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart.  v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap.  Others to follow later.

Revision 1.124 / (download) - annotate - [select for diffs], Thu Jun 20 00:52:05 2019 UTC (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.123: +2 -75 lines
Diff to previous 1.123 (colored) to selected 1.21 (colored)

unifdef -ULFS_READWRITE ufs_readwrite.c

Revision 1.121.14.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:58 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.121: +2 -2 lines
Diff to previous 1.121 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.123 / (download) - annotate - [select for diffs], Mon Dec 10 20:48:34 2018 UTC (5 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, isaki-audio2-base, isaki-audio2
Changes since 1.122: +3 -2 lines
Diff to previous 1.122 (colored) to selected 1.21 (colored)

put back UFS_WAPBL_JUNLOCK_ASSERT(), the underlying rw_write_held() check
doesn't actually have a race since it checks if the rwlock is held by
current lwp

Revision 1.122 / (download) - annotate - [select for diffs], Mon Dec 10 19:29:41 2018 UTC (5 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.121: +2 -3 lines
Diff to previous 1.121 (colored) to selected 1.21 (colored)

make UFS_WAPBL_JLOCK_ASSERT() #ifdef DIAGNOSTIC, same as the underlying
function KASSERT(), so that it actually does something; fix code using
it to actually pass correct params, so that it compiles

remove UFS_WAPBL_JUNLOCK_ASSERT(), as that is inherently racy (it's
okay on those places if the rwlock is held by other lwp); depend
on the RW_ASSERT()/LOCKDEBUG inside rw_enter() to catch the case
with wapbl rwlock held by current lwp

Revision 1.104.2.6 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:22 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.104.2.5: +241 -109 lines
Diff to previous 1.104.2.5 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored) to selected 1.21 (colored)

update from HEAD

Revision 1.107.10.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:17 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107.10.2: +2 -15 lines
Diff to previous 1.107.10.2 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:09 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.120: +2 -15 lines
Diff to previous 1.120 (colored) next main 1.121 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:54 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.120: +2 -15 lines
Diff to previous 1.120 (colored) next main 1.121 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.121 / (download) - annotate - [select for diffs], Wed Mar 1 10:42:45 2017 UTC (7 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: phil-wifi
Changes since 1.120: +2 -15 lines
Diff to previous 1.120 (colored) to selected 1.21 (colored)

Remove now redundant calls to fstrans_start()/fstrans_done().

Revision 1.107.10.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:31 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.107.10.1: +4 -7 lines
Diff to previous 1.107.10.1 (colored) to branchpoint 1.107 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.120 / (download) - annotate - [select for diffs], Sun Apr 12 22:48:38 2015 UTC (9 years ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.119: +3 -4 lines
Diff to previous 1.119 (colored) to selected 1.21 (colored)

Omit now-unused variable.  rump build didn't catch this...

Revision 1.119 / (download) - annotate - [select for diffs], Sun Apr 12 22:41:28 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.118: +3 -5 lines
Diff to previous 1.118 (colored) to selected 1.21 (colored)

Don't putpages in ufs buffercached writes: kassert there are none.

Revision 1.107.10.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:33 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.107: +252 -104 lines
Diff to previous 1.107 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.118 / (download) - annotate - [select for diffs], Tue Mar 31 11:43:05 2015 UTC (9 years ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.117: +7 -2 lines
Diff to previous 1.117 (colored) to selected 1.21 (colored)

Amplify that even if we fixed it now the tentacles are still stuck.

Revision 1.117 / (download) - annotate - [select for diffs], Tue Mar 31 00:22:50 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.116: +24 -2 lines
Diff to previous 1.116 (colored) to selected 1.21 (colored)

Write an essay explaining why ffs_write is one huge WAPBL transaction.

Revision 1.116 / (download) - annotate - [select for diffs], Sun Mar 29 14:39:41 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.115: +2 -4 lines
Diff to previous 1.115 (colored) to selected 1.21 (colored)

WAPBL tx is always locked by ufs_bufrd caller, so never unlock it.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Mar 28 19:24:05 2015 UTC (9 years ago) by maxv
Branch: MAIN
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) to selected 1.21 (colored)

Remove the 'cred' argument from bread(). Remove a now unused var in
ffs_snapshot.c. Update the man page accordingly.

ok hannken@

Revision 1.114 / (download) - annotate - [select for diffs], Sat Mar 28 17:45:47 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.113: +14 -5 lines
Diff to previous 1.113 (colored) to selected 1.21 (colored)

Let I/O errors override inode update errors in UFS.

Fixes tests/fs/vfs/t_io:read_fault for UFS.

Revision 1.113 / (download) - annotate - [select for diffs], Sat Mar 28 17:23:42 2015 UTC (9 years ago) by maxv
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored) to selected 1.21 (colored)

Remove the 'cred' argument from breadn(), and update the man page
accordingly.

ok hannken@

Revision 1.112 / (download) - annotate - [select for diffs], Sat Mar 28 17:06:15 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.111: +52 -64 lines
Diff to previous 1.111 (colored) to selected 1.21 (colored)

Factor out post-read/write inode updates in UFS.

Revision 1.111 / (download) - annotate - [select for diffs], Sat Mar 28 04:13:25 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.110: +9 -10 lines
Diff to previous 1.110 (colored) to selected 1.21 (colored)

VOP_WRITE never has IO_JOURNALLOCKED.

Revision 1.110 / (download) - annotate - [select for diffs], Sat Mar 28 03:53:36 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.109: +10 -22 lines
Diff to previous 1.109 (colored) to selected 1.21 (colored)

Turn some `#if DIAGNOSTIC' into KASSERT.

Revision 1.109 / (download) - annotate - [select for diffs], Fri Mar 27 19:47:14 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.108: +5 -4 lines
Diff to previous 1.108 (colored) to selected 1.21 (colored)

Tighten some kasserts in ufs_bufio code paths.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Mar 27 17:27:56 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.107: +198 -60 lines
Diff to previous 1.107 (colored) to selected 1.21 (colored)

Disentangle buffer-cached I/O from page-cached I/O in UFS.

Page-cached I/O is used for regular files, and is initiated by VFS
users such as userland and NFS.

Buffer-cached I/O is used for directories and symlinks, and is issued
only internally by UFS.

New UFS routine ufs_bufio replaces vn_rdwr for internal use.
ufs_bufio is implemented by new UFS operations uo_bufrd/uo_bufwr,
which sit in ufs_readwrite.c alongside the VOP_READ/VOP_WRITE
implementations.

I preserved the code as much as possible and will leave further
simplification for future commits.  I kept the ulfs_readwrite.c
copypasta close to ufs_readwrite.c in case we ever want to merge them
back; likewise ext2fs_readwrite.c.

No externally visible semantic change.  All atf fs tests still pass.

Revision 1.104.2.5 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:45 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.104.2.4: +15 -9 lines
Diff to previous 1.104.2.4 (colored) to branchpoint 1.104 (colored) to selected 1.21 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.99.2.6 / (download) - annotate - [select for diffs], Thu May 22 11:41:19 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.99.2.5: +30 -20 lines
Diff to previous 1.99.2.5 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.21 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.107 / (download) - annotate - [select for diffs], Sun Jun 23 07:28:37 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.106: +17 -11 lines
Diff to previous 1.106 (colored) to selected 1.21 (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.104.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:40 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.104.2.3: +15 -11 lines
Diff to previous 1.104.2.3 (colored) to branchpoint 1.104 (colored) to selected 1.21 (colored)

resync from head

Revision 1.106 / (download) - annotate - [select for diffs], Wed Jun 19 17:51:26 2013 UTC (10 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.105: +15 -11 lines
Diff to previous 1.105 (colored) to selected 1.21 (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.104.2.3 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:18 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.104.2.2: +6 -6 lines
Diff to previous 1.104.2.2 (colored) to branchpoint 1.104 (colored) to selected 1.21 (colored)

resync with head

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Sun Feb 10 16:26:34 2013 UTC (11 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.104.2.1: +3 -3 lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored) to selected 1.21 (colored)


Add an accessor -- ufs_maxphys() -- to check the maximum transfer size
for a given UFS mountpoint, and move the code from mount that finds
the underlying disk and resets the mountpoint max transfer size into a
utility function, ufs_update_maxphys().

Add a global serial number that counts disk property changes to which
filesystems are meant to accomodate themselves.  Make ufs_maxphys()
check it.  This is a sort of flag-polling interface that avoids callbacks
into the filesystem code, but will require freezing filesystems and
draining in-flight transactions before a decrease in size that is
mandatory (like attaching a disk with a smaller maximum transfer size
as a spare in a RAIDframe set), rather than "advisory", like finding
out set geometry from a RAID controller long after boot and deciding
a smaller transfer size would be optimal, can be signalled.  Still, the
"advisory" case is the common one so this is progress.

Make a bit of an example of RAIDframe by making it bump this new
serial number when disks are added to the subsystem.  I will attack
one of the hardware RAID drivers (probably arcmsr) next.

Revision 1.99.2.5 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:35 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.99.2.4: +6 -6 lines
Diff to previous 1.99.2.4 (colored) to branchpoint 1.99 (colored) to selected 1.21 (colored)

sync with head

Revision 1.105 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:18 2013 UTC (11 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, khorben-n900, agc-symver-base, agc-symver
Changes since 1.104: +6 -6 lines
Diff to previous 1.104 (colored) to selected 1.21 (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.104.2.1 / (download) - annotate - [select for diffs], Sun Oct 14 14:33:32 2012 UTC (11 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.104: +18 -9 lines
Diff to previous 1.104 (colored) to selected 1.21 (colored)

In the FFS writebehind code (ufs_readwrite.c:WRITE()), use division
and multiplication instead of shifts, to accomodate devices with
MAXPHYS that is a multiple of the page size, but not a power of 2.

MegaRAID neatly writes out 192k chunks now.

An open question: is is really a good idea to always writebehind
at the largest size supported by the device?  Likely not, as this
could have a major impact on I/O fairness.  OS X and Solaris both
seem to limit transfers to 128k likely for this reason (the same
problem exists with the readahead code but since it is adaptive,
it will not *always* do huge transfers).

However, simply imposing a smallish limit like 128k here seems
like a bad idea because then we cannot accomodate greedy devices
like RAID, for which you want something like 128k * number of
data components.  Hmmmmmm.

Revision 1.100.4.4 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:41 2012 UTC (11 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.100.4.3: +3 -3 lines
Diff to previous 1.100.4.3 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored) to selected 1.21 (colored)

sync to latest -current.

Revision 1.99.2.4 / (download) - annotate - [select for diffs], Wed May 23 10:08:19 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.99.2.3: +7 -9 lines
Diff to previous 1.99.2.3 (colored) to branchpoint 1.99 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Mon May 7 03:01:14 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, 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-6-RELEASE, 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by chs in ticket #204):
	sys/fs/sysvbfs/sysvbfs_vnops.c: revision 1.44
	sys/ufs/ffs/ffs_vfsops.c: revision 1.277
	sys/fs/v7fs/v7fs_vnops.c: revision 1.11
	sys/ufs/chfs/chfs_vnops.c: revision 1.7
	sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.61
	sys/miscfs/genfs/genfs_io.c: revision 1.54
	sys/kern/vfs_wapbl.c: revision 1.52
	sys/uvm/uvm_pager.h: revision 1.43
	sys/ufs/ffs/ffs_vnops.c: revision 1.121
	sys/kern/vfs_subr.c: revision 1.434
	sys/fs/msdosfs/msdosfs_vnops.c: revision 1.83
	sys/fs/ntfs/ntfs_vnops.c: revision 1.51
	sys/fs/udf/udf_subr.c: revision 1.119
	sys/miscfs/specfs/spec_vnops.c: revision 1.135
	sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.103
	sys/fs/udf/udf_vnops.c: revision 1.71
	sys/ufs/ufs/ufs_readwrite.c: revision 1.104
change vflushbuf() to take the full FSYNC_* flags.
translate FSYNC_LAZY into PGO_LAZY for VOP_PUTPAGES() so that
genfs_do_io() can set the appropriate io priority for the I/O.
this is the first part of addressing PR 46325.
mark all wapbl I/O as BPRIO_TIMECRITICAL.
this is the second part of addressing PR 46325.

Revision 1.100.4.3 / (download) - annotate - [select for diffs], Sun Apr 29 23:05:08 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.100.4.2: +6 -8 lines
Diff to previous 1.100.4.2 (colored) to branchpoint 1.100 (colored) to selected 1.21 (colored)

sync to latest -current.

Revision 1.104 / (download) - annotate - [select for diffs], Sun Apr 29 22:54:01 2012 UTC (11 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored) to selected 1.21 (colored)

change vflushbuf() to take the full FSYNC_* flags.
translate FSYNC_LAZY into PGO_LAZY for VOP_PUTPAGES() so that
genfs_do_io() can set the appropriate io priority for the I/O.
this is the first part of addressing PR 46325.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Apr 17 19:15:16 2012 UTC (12 years ago) by christos
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.102: +6 -8 lines
Diff to previous 1.102 (colored) to selected 1.21 (colored)

it is not an error if the kernel needs to clear the setuid/
setgid bit on write/chown/chgrp

Revision 1.99.2.3 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:57 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.99.2.2: +23 -6 lines
Diff to previous 1.99.2.2 (colored) to branchpoint 1.99 (colored) to selected 1.21 (colored)

sync with head

Revision 1.100.4.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:52 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.100.4.1: +20 -6 lines
Diff to previous 1.100.4.1 (colored) to branchpoint 1.100 (colored) to selected 1.21 (colored)

sync to latest -current.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Mar 13 18:41:14 2012 UTC (12 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base8
Changes since 1.101: +20 -6 lines
Diff to previous 1.101 (colored) to selected 1.21 (colored)

Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.

Revision 1.100.4.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:57 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.100: +3 -2 lines
Diff to previous 1.100 (colored) to selected 1.21 (colored)

merge to -current.

Revision 1.99.2.2 / (download) - annotate - [select for diffs], Wed Jan 25 00:41:36 2012 UTC (12 years, 2 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.99.2.1: +1 -1 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) to selected 1.21 (colored)

uvm_loanabj: take an access pattern hint.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Wed Jan 4 16:43:37 2012 UTC (12 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.99: +5 -2 lines
Diff to previous 1.99 (colored) to selected 1.21 (colored)

enable O->A loaning read for a few filesystems.

Revision 1.101 / (download) - annotate - [select for diffs], Mon Jan 2 22:10:45 2012 UTC (12 years, 3 months ago) by perseant
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.100: +3 -2 lines
Diff to previous 1.100 (colored) to selected 1.21 (colored)


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

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

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

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

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

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

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

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

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

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

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

Revision 1.100 / (download) - annotate - [select for diffs], Fri Nov 18 21:18:52 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored) to selected 1.21 (colored)

Obey MNT_RELATIME, the only addition is that mkdir in ufs sets IN_ACCESS too.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Jul 11 08:27:41 2011 UTC (12 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) to selected 1.21 (colored)

Change VOP_BWRITE() to take a vnode as its first argument like all other
VOPs do.  Layered file systems no longer have to modify bp->b_vp and run
into trouble when an async VOP_BWRITE() uses the wrong vnode.

- change all occurences of VOP_BWRITE(bp) to VOP_BWRITE(bp->b_vp, bp).
- remove layer_bwrite().
- welcome to 5.99.55

Adresses PR kern/38762 panic: vwakeup: neg numoutput

No objections from tech-kern@.

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:33 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.96: +8 -10 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.21 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Jun 19 02:42:53 2011 UTC (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.97: +4 -6 lines
Diff to previous 1.97 (colored) to selected 1.21 (colored)

- Fix a silly bug: remove umap from uobj in ubc_release() UBC_UNMAP case.
- Use UBC_WANT_UNMAP() consistently.

ARM (PMAP_CACHE_VIVT case) works again.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Jun 12 03:36:02 2011 UTC (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.96: +4 -4 lines
Diff to previous 1.96 (colored) to selected 1.21 (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.95.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:19 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.94.4.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:21 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.94.4.2: +3 -3 lines
Diff to previous 1.94.4.2 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored) to selected 1.21 (colored)

sync with head

Revision 1.96 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:39 2011 UTC (13 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.95: +3 -3 lines
Diff to previous 1.95 (colored) to selected 1.21 (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.95.4.1 / (download) - annotate - [select for diffs], Fri Feb 18 19:54:44 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.21 (colored)

Add a new inode flag, SF_SNAPINVAL, to be set on SF_SNAPSHOT inodes when
the snapshot is invalid.
Set SF_SNAPSHOT | SF_SNAPINVAL early when initializing a snapshot indode,
so that quota are bypassed for allocations on this inode.
Set SF_SNAPSHOT | SF_SNAPINVAL (instead of clearing SF_SNAPSHOT) when
expuge()ing a snapshot inode, so that userland tools working on the
snapshot (e.g. fsck or dump) can properly handle this inode.

The main point at this time is to have fsck_ffs -X properly compute quotas;
as a bonus persistent snapshots files won't show up in a dump(8) from a
snapshot.

This may also help speeding up taking snapshots, by bypassing expuge()
for snapshot inodes completely (but this needs more thoughs).


Briefly discussed with hannken@ in private mail.

Revision 1.87.2.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:55:15 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.87.2.1: +2 -16 lines
Diff to previous 1.87.2.1 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.94.4.2 / (download) - annotate - [select for diffs], Sun May 30 05:18:09 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.94.4.1: +2 -16 lines
Diff to previous 1.94.4.1 (colored) to branchpoint 1.94 (colored) to selected 1.21 (colored)

sync with head

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:37 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.94: +2 -16 lines
Diff to previous 1.94 (colored) next main 1.95 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Apr 23 15:38:46 2010 UTC (13 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.94: +2 -16 lines
Diff to previous 1.94 (colored) to selected 1.21 (colored)

Enforce RLIMIT_FSIZE before VOP_WRITE.  This adds support to file
system drivers where it was missing from and fixes one buggy
implementation.  The arguably weird semantics of the check are
maintained (v_size vs. va_bytes, overwrite).

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:16 2010 UTC (14 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.94: +6 -6 lines
Diff to previous 1.94 (colored) to selected 1.21 (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.93.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:23:07 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.93: +2 -3 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.21 (colored)

Sync with HEAD.

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

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:38 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.87: +42 -14 lines
Diff to previous 1.87 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:34:40 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.92.2.1: +2 -3 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Feb 22 20:28:07 2009 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.93: +2 -3 lines
Diff to previous 1.93 (colored) to selected 1.21 (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.92.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:36 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.86.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:42 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.86.6.2: +3 -3 lines
Diff to previous 1.86.6.2 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.88.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:41 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.88.4.1: +5 -5 lines
Diff to previous 1.88.4.1 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.21 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Dec 8 11:48:03 2008 UTC (15 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base
Branch point for: jym-xensuspend
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored) to selected 1.21 (colored)

Decode write access advice and pass to uvm (not that it's handled
there, but ...).

Revision 1.88.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:18:10 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.88: +37 -8 lines
Diff to previous 1.88 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Oct 19 18:17:14 2008 UTC (15 years, 6 months ago) by hannken
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored) to selected 1.21 (colored)

Make genfs_directio() IO_JOURNALLOCKED aware.  DirectIO no longer triggers
"locking against myself" panic in wapbl_begin().

Observed and tested by: Frank Kardel <kardel@netbsd.org>

Revision 1.86.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:41:06 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.86.6.1: +35 -6 lines
Diff to previous 1.86.6.1 (colored) to branchpoint 1.86 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.87.4.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:06 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.87.4.1: +37 -8 lines
Diff to previous 1.87.4.1 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored) to selected 1.21 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Aug 22 10:48:22 2008 UTC (15 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, haad-dm-base1
Changes since 1.90: +8 -6 lines
Diff to previous 1.90 (colored) to selected 1.21 (colored)

Add snapshot support for logging ffs file systems.

- Add UFS_WAPBL_BEGIN() / UFS_WAPBL_END() where needed.

- Expunge WAPBL log inodes from snapshots.

- Ffs_copyonwrite() and ffs_snapblkfree() must run inside a WAPBL transaction.

- Add ffs_gop_write() as a wrapper around genfs_gop_write() that makes sure
  genfs_gop_write() gets always called inside a WAPBL transaction.

- Add VOP_PUTPAGES() flag PGO_JOURNALLOCKED to tag calls to VOP_PUTPAGES()
  inside a WAPBL transaction.

Reviewed by: Simon Burge <simonb@netbsd.org>,  Greg Oster <oster@netbsd.org>

PGO_JOURNALLOCKED / ffs_gop_write() part presented on tech-kern@.

Revision 1.90 / (download) - annotate - [select for diffs], Tue Aug 12 10:14:38 2008 UTC (15 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.89: +7 -2 lines
Diff to previous 1.89 (colored) to selected 1.21 (colored)

Deny read/write access to snapshot vnodes.  We use fss(4) to read from
snapshots.  With this policy in place:

- Separate the snapshot vnode lock from the snapshot common lock.
  Snapshots no longer need recursive vnode locks.

- Use a mutex (si_snaplock) to serialize creation, deletion, reading and
  writing of snapshots.

- Move ffs_read() for snapshots into ffs_snapshot.c.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>

While here change ffs_copyonwrite() to fail requests from pagedaemon that need
to copy-on-write.

Revision 1.89 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:06 2008 UTC (15 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.88: +26 -4 lines
Diff to previous 1.88 (colored) to selected 1.21 (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.87.4.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:05 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.87: +4 -4 lines
Diff to previous 1.87 (colored) to selected 1.21 (colored)

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

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Tue Jun 10 14:51:23 2008 UTC (15 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.88: +26 -4 lines
Diff to previous 1.88 (colored) next main 1.89 (colored) to selected 1.21 (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.86.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:37 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.86.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:56 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored) next main 1.87 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.88 / (download) - annotate - [select for diffs], Fri May 16 09:22:01 2008 UTC (15 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl, haad-dm
Changes since 1.87: +4 -4 lines
Diff to previous 1.87 (colored) to selected 1.21 (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.87 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:31 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base2, yamt-nfs-mp-base
Branch point for: yamt-nfs-mp, wrstuden-revivesa
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored) to selected 1.21 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.84.4.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:32 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.84: +6 -6 lines
Diff to previous 1.84 (colored) next main 1.85 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.63.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:48:17 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.2.5: +7 -8 lines
Diff to previous 1.63.2.5 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.21 (colored)

sync with head

Revision 1.81.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:36 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.81.6.1: +7 -8 lines
Diff to previous 1.81.6.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.21 (colored)

sync with HEAD

Revision 1.85.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:30 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.85: +6 -6 lines
Diff to previous 1.85 (colored) next main 1.86 (colored) to selected 1.21 (colored)

Sync with HEAD

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

Merge vmlocking2 to head.

Revision 1.84.6.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:40:04 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.84.6.1: +3 -4 lines
Diff to previous 1.84.6.1 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.81.4.3 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:55 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.81.4.2: +3 -4 lines
Diff to previous 1.81.4.2 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:57 2007 UTC (16 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.84: +3 -4 lines
Diff to previous 1.84 (colored) to selected 1.21 (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.84.6.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:55 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.84: +6 -6 lines
Diff to previous 1.84 (colored) to selected 1.21 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.81.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:35:25 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.81: +9 -12 lines
Diff to previous 1.81 (colored) to selected 1.21 (colored)

sync with HEAD

Revision 1.63.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:52 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.2.4: +9 -12 lines
Diff to previous 1.63.2.4 (colored) to branchpoint 1.63 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.81.4.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:39 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.81.4.1: +6 -7 lines
Diff to previous 1.81.4.1 (colored) to branchpoint 1.81 (colored) to selected 1.21 (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.81.8.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:49:23 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.81.8.1: +6 -7 lines
Diff to previous 1.81.8.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:40 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored) to selected 1.21 (colored)

Merge from vmlocking:

- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.

Revision 1.76.4.8 / (download) - annotate - [select for diffs], Tue Oct 9 13:45:17 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.76.4.7: +5 -7 lines
Diff to previous 1.76.4.7 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Oct 8 18:01:31 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.82: +5 -6 lines
Diff to previous 1.82 (colored) to selected 1.21 (colored)

Merge ffs locking & brelse changes from the vmlocking branch.

Revision 1.81.8.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:43:46 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.81: +5 -7 lines
Diff to previous 1.81 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:33 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.81: +5 -7 lines
Diff to previous 1.81 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Sep 24 16:50:58 2007 UTC (16 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.81: +5 -7 lines
Diff to previous 1.81 (colored) to selected 1.21 (colored)

BLKSIZE is always the same as blksize these days, so get rid of it.

Revision 1.63.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:47:01 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.2.3: +36 -37 lines
Diff to previous 1.63.2.3 (colored) to branchpoint 1.63 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.76.4.7 / (download) - annotate - [select for diffs], Fri Aug 24 23:28:49 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.76.4.6: +3 -3 lines
Diff to previous 1.76.4.6 (colored) to branchpoint 1.76 (colored) to selected 1.21 (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.76.4.6 / (download) - annotate - [select for diffs], Mon Aug 20 21:28:29 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.76.4.5: +8 -11 lines
Diff to previous 1.76.4.5 (colored) to branchpoint 1.76 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:51:18 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.79: +8 -11 lines
Diff to previous 1.79 (colored) next main 1.80 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.81.10.2 / (download) - annotate - [select for diffs], Fri Jul 27 10:00:43 2007 UTC (16 years, 8 months ago) by yamt
Branch: matt-mips64
Changes since 1.81.10.1: +523 -0 lines
Diff to previous 1.81.10.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.21 (colored)

use ubc_uiomove for read as well.

Revision 1.81.10.1, Fri Jul 27 10:00:42 2007 UTC (16 years, 8 months ago) by yamt
Branch: matt-mips64
Changes since 1.81: +0 -523 lines
FILE REMOVED

file ufs_readwrite.c was added on branch matt-mips64 on 2007-07-27 10:00:43 +0000

Revision 1.81 / (download) - annotate - [select for diffs], Fri Jul 27 10:00:42 2007 UTC (16 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.80: +6 -10 lines
Diff to previous 1.80 (colored) to selected 1.21 (colored)

use ubc_uiomove for read as well.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Jul 27 09:50:36 2007 UTC (16 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.79: +4 -3 lines
Diff to previous 1.79 (colored) to selected 1.21 (colored)

ubc_uiomove: add an "advice" argument rather than using UVM_ADV_RANDOM blindly.

Revision 1.76.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:51 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.76: +31 -29 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.76.4.5 / (download) - annotate - [select for diffs], Sun Jun 17 21:32:19 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.76.4.4: +3 -3 lines
Diff to previous 1.76.4.4 (colored) to branchpoint 1.76 (colored) to selected 1.21 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.76.4.4 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:20 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.76.4.3: +27 -25 lines
Diff to previous 1.76.4.3 (colored) to branchpoint 1.76 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.76.4.3 / (download) - annotate - [select for diffs], Fri Jun 8 14:18:20 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.76.4.2: +6 -6 lines
Diff to previous 1.76.4.2 (colored) to branchpoint 1.76 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Jun 5 12:31:35 2007 UTC (16 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.78: +27 -25 lines
Diff to previous 1.78 (colored) to selected 1.21 (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.74.2.3 / (download) - annotate - [select for diffs], Thu May 17 13:42:01 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.74.2.2: +4 -6 lines
Diff to previous 1.74.2.2 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Thu May 17 07:26:23 2007 UTC (16 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.77: +4 -6 lines
Diff to previous 1.77 (colored) to selected 1.21 (colored)

Fstrans_start() always returns zero, so change its type to void.

Revision 1.76.4.2 / (download) - annotate - [select for diffs], Sun May 13 17:36:46 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.76.4.1: +5 -6 lines
Diff to previous 1.76.4.1 (colored) to branchpoint 1.76 (colored) to selected 1.21 (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.74.2.2 / (download) - annotate - [select for diffs], Mon May 7 10:56:18 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.74.2.1: +4 -2 lines
Diff to previous 1.74.2.1 (colored) to branchpoint 1.74 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Apr 19 11:05:14 2007 UTC (17 years ago) by yamt
Branch: MAIN
Changes since 1.76: +4 -2 lines
Diff to previous 1.76 (colored) to selected 1.21 (colored)

hold proclist_mutex when calling psignal().

Revision 1.76.4.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:53 2007 UTC (17 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.76: +6 -6 lines
Diff to previous 1.76 (colored) to selected 1.21 (colored)

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

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:55:23 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.74: +10 -10 lines
Diff to previous 1.74 (colored) to selected 1.21 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.63.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:12:25 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.2.2: +23 -11 lines
Diff to previous 1.63.2.2 (colored) to branchpoint 1.63 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Feb 22 06:10:49 2007 UTC (17 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.75: +8 -8 lines
Diff to previous 1.75 (colored) to selected 1.21 (colored)

TRUE -> true, FALSE -> false

Revision 1.75 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:11 2007 UTC (17 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.74: +7 -7 lines
Diff to previous 1.74 (colored) to selected 1.21 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.68.8.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:51 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.68.8.2: +14 -2 lines
Diff to previous 1.68.8.2 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Jan 29 15:42:50 2007 UTC (17 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

Change fstrans enum types to upper case.
No functional change.

From Antti Kantee <pooka@netbsd.org>

Revision 1.73 / (download) - annotate - [select for diffs], Fri Jan 19 14:49:13 2007 UTC (17 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.72: +14 -2 lines
Diff to previous 1.72 (colored) to selected 1.21 (colored)

New file system suspension API to replace vn_start_write and vn_finished_write.
The suspension helpers are now put into file system specific operations.
This means every file system not supporting these helpers cannot be suspended
and therefore snapshots are no longer possible.

Implemented for file systems of type ffs.

The new API is enabled on a kernel option NEWVNGATE.  This option is
not enabled by default in any kernel config.

Presented and discussed on tech-kern with much input from
Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>.

Welcome to 4.99.9 (new vfs op vfs_suspendctl).

Revision 1.68.8.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:25 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.68.8.1: +3 -3 lines
Diff to previous 1.68.8.1 (colored) to branchpoint 1.68 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jan 4 16:55:30 2007 UTC (17 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.21 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:51:01 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.2.1: +18 -7 lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.68.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:49 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.68: +18 -7 lines
Diff to previous 1.68 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.68.10.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:51 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.68: +18 -7 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.21 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Sat Oct 14 09:17:26 2006 UTC (17 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, 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
Changes since 1.70: +4 -6 lines
Diff to previous 1.70 (colored) to selected 1.21 (colored)

don't use g_glock directly.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Oct 5 14:48:33 2006 UTC (17 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.69: +14 -3 lines
Diff to previous 1.69 (colored) to selected 1.21 (colored)

add support for O_DIRECT (I/O directly to application memory,
bypassing any kernel caching for file data).

Revision 1.69 / (download) - annotate - [select for diffs], Tue Oct 3 18:24:48 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.68: +4 -2 lines
Diff to previous 1.68 (colored) to selected 1.21 (colored)

Coverity CID 3156: async = TRUE when LFS_READWRITE is defined, leading to
dead code. Ifdef the dead code appropriately (from Arnaud Lacombe)

Revision 1.66.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 03:00:13 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.66: +9 -8 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.21 (colored)

sync with head

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:39 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63: +21 -18 lines
Diff to previous 1.63 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.66.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:39:44 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.66.6.1: +7 -6 lines
Diff to previous 1.66.6.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.67.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:48 2006 UTC (17 years, 11 months ago) by tron
Branch: peter-altq
Changes since 1.67: +7 -6 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.21 (colored)

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

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:59:26 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.67: +7 -6 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Sun May 14 21:33:39 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.67: +7 -6 lines
Diff to previous 1.67 (colored) to selected 1.21 (colored)

integrate kauth.

Revision 1.66.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:27 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.67.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:39:12 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.67: +7 -6 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.21 (colored)

Adapt to kernel authorization KPI.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:33 2006 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) to selected 1.21 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 12:37:20 2005 UTC (18 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.21 (colored)

adapt some random parts of kernel to uio_vmspace.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:28 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.65: +8 -8 lines
Diff to previous 1.65 (colored) to selected 1.21 (colored)

merge ktrace-lwp.

Revision 1.54.2.10 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:41 2005 UTC (18 years, 4 months ago) by christos
Branch: ktrace-lwp
Changes since 1.54.2.9: +6 -4 lines
Diff to previous 1.54.2.9 (colored) next main 1.55 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Nov 29 22:52:03 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.64: +6 -4 lines
Diff to previous 1.64 (colored) to selected 1.21 (colored)

merge yamt-readahead branch.

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Sat Nov 19 17:37:00 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-readahead
Changes since 1.64.2.2: +4 -8 lines
Diff to previous 1.64.2.2 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.21 (colored)

- as read-ahead context is per-vnode now,
  there are less reasons to make VOP_READ call uvm_ra_request explicitly.
  move it to pager (uvn_get) so that it can handle accesses via mmap as well.
- pass advice to pager via ubc.
- tweak DPRINTF.

XXX can be disturbed by PGO_LOCKED.

XXX it's controversial where it should be done.
(uvm_fault, uvn_get or genfs_getpages.)

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Fri Nov 18 08:44:55 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-readahead
CVS Tags: yamt-readahead-pervnode
Changes since 1.64.2.1: +6 -7 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored) to selected 1.21 (colored)

- associate read-ahead context to vnode, rather than file.
- revert VOP_READ prototype.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Tue Nov 15 03:48:47 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-readahead
CVS Tags: yamt-readahead-perfile
Changes since 1.64: +9 -2 lines
Diff to previous 1.64 (colored) to selected 1.21 (colored)

adapt ffs, lfs, nfs.

Revision 1.54.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:39 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.54.2.8: +6 -14 lines
Diff to previous 1.54.2.8 (colored) to selected 1.21 (colored)

Sync with HEAD. Here we go again...

Revision 1.64 / (download) - annotate - [select for diffs], Wed Nov 2 12:39:14 2005 UTC (18 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base
Branch point for: yamt-readahead
Changes since 1.63: +6 -6 lines
Diff to previous 1.63 (colored) to selected 1.21 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Thu Oct 20 03:00:31 2005 UTC (18 years, 6 months ago) by yamt
Branch: yamt-vop
Changes since 1.63: +6 -6 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.21 (colored)

adapt ufs.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Tue May 10 05:08:58 2005 UTC (18 years, 11 months ago) by riz
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored) next main 1.56 (colored) to selected 1.21 (colored)

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

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

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

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

Various minor LFS improvements.

Kernel:

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

cleaner:

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

newfs_lfs, fsck_lfs, and regression:

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

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Sat May 7 11:21:30 2005 UTC (18 years, 11 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.61: +2 -10 lines
Diff to previous 1.61 (colored) next main 1.62 (colored) to selected 1.21 (colored)

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

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:39 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.60: +2 -9 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.21 (colored)

sync with -current

Revision 1.63 / (download) - annotate - [select for diffs], Tue Apr 19 20:59:05 2005 UTC (19 years ago) by perseant
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr, kent-audio2-base
Branch point for: yamt-vop, yamt-lazymbuf
Changes since 1.62: +2 -12 lines
Diff to previous 1.62 (colored) to selected 1.21 (colored)

Keep per-inode, per-fs, and subsystem-wide counts of blocks allocated through
lfs_balloc(), and use that to estimate the number of dirty pages belonging
to LFS (subsystem or filesystem).  This is almost certainly wrong for
the case of a large mmap()ed region, but the accounting is tighter than
what we had before, and performs much better in the typical case of pages
dirtied through write().

Revision 1.62 / (download) - annotate - [select for diffs], Fri Apr 1 21:59:47 2005 UTC (19 years ago) by perseant
Branch: MAIN
Changes since 1.61: +4 -2 lines
Diff to previous 1.61 (colored) to selected 1.21 (colored)

Protect various per-fs structures with fs->lfs_interlock simple_lock, to
improve behavior in the multiprocessor case.  Add debugging segment-lock
assertion statements.

Revision 1.60.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:37:07 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.21 (colored)

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

Revision 1.54.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:55:00 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.54.2.7: +3 -2 lines
Diff to previous 1.54.2.7 (colored) to selected 1.21 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.61 / (download) - annotate - [select for diffs], Sat Feb 26 05:40:42 2005 UTC (19 years, 1 month ago) by perseant
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored) to selected 1.21 (colored)

Various minor LFS improvements:

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

Revision 1.54.2.7 / (download) - annotate - [select for diffs], Mon Jan 17 19:33:11 2005 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.54.2.6: +10 -8 lines
Diff to previous 1.54.2.6 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jan 9 16:42:44 2005 UTC (19 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.59: +10 -8 lines
Diff to previous 1.59 (colored) to selected 1.21 (colored)

adjust the UBC mapping code to support non-vnode uvm_objects.
this means we can no longer look at the vnode size to determine how many
pages to request in a fault, which is good since for NFS the size can change
out from under us on the server anyway.  there's also a new flag UBC_UNMAP
for ubc_release(), so that the file system code can make the decision about
whether to cache mappings for files being used as executables.

Revision 1.54.2.6 / (download) - annotate - [select for diffs], Sat Oct 30 09:30:30 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.54.2.5: +7 -7 lines
Diff to previous 1.54.2.5 (colored) to selected 1.21 (colored)

Re-arrange code slightly.

Revision 1.54.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:39:22 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.54.2.4: +4 -4 lines
Diff to previous 1.54.2.4 (colored) to selected 1.21 (colored)

Fix the sync with head I botched.

Revision 1.54.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:59 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.54.2.3: +4 -5 lines
Diff to previous 1.54.2.3 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Sep 10 09:36:05 2004 UTC (19 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.58: +2 -3 lines
Diff to previous 1.58 (colored) to selected 1.21 (colored)

g/c no longer used definition of fs_maxfilesize.

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Wed Aug 25 06:59:15 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.54.2.2: +28 -31 lines
Diff to previous 1.54.2.2 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Aug 15 16:46:18 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +4 -6 lines
Diff to previous 1.57 (colored) to selected 1.21 (colored)

Fix some formatting glitches.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Aug 15 16:24:41 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.56: +13 -12 lines
Diff to previous 1.56 (colored) to selected 1.21 (colored)

Minor simplification to some arithmetic.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Aug 15 07:19:58 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.55: +15 -17 lines
Diff to previous 1.55 (colored) to selected 1.21 (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.54.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:57:00 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.54.2.1: +3 -7 lines
Diff to previous 1.54.2.1 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:46 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-base, 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
Branch point for: netbsd-2
Changes since 1.54: +3 -7 lines
Diff to previous 1.54 (colored) to selected 1.21 (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.54.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:28 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored) to selected 1.21 (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.54 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:48 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored) to selected 1.21 (colored)

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

Revision 1.53 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:29 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored) to selected 1.21 (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.52 / (download) - annotate - [select for diffs], Thu May 15 20:25:33 2003 UTC (20 years, 11 months ago) by kristerw
Branch: MAIN
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored) to selected 1.21 (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.51 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:44 2003 UTC (21 years ago) by fvdl
Branch: MAIN
Changes since 1.50: +21 -18 lines
Diff to previous 1.50 (colored) to selected 1.21 (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.50 / (download) - annotate - [select for diffs], Sat Mar 15 07:24:37 2003 UTC (21 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.49: +11 -3 lines
Diff to previous 1.49 (colored) to selected 1.21 (colored)

Add write-behind to lfs_write().

Revision 1.49 / (download) - annotate - [select for diffs], Sat Mar 8 21:52:57 2003 UTC (21 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.48: +3 -9 lines
Diff to previous 1.48 (colored) to selected 1.21 (colored)

Take away "#ifdef LFS_UBC".

Revision 1.48 / (download) - annotate - [select for diffs], Mon Feb 17 23:48:23 2003 UTC (21 years, 2 months ago) by perseant
Branch: MAIN
Changes since 1.47: +15 -6 lines
Diff to previous 1.47 (colored) to selected 1.21 (colored)

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

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

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

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

And a few that are not strictly necessary:

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

* Unified GOP_ALLOC between FFS and LFS.

* Update LFS copyright headers to correct values.

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

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

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:30 2003 UTC (21 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored) to selected 1.21 (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.30.2.9 / (download) - annotate - [select for diffs], Sun Dec 29 20:57:20 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.30.2.8: +22 -6 lines
Diff to previous 1.30.2.8 (colored) next main 1.31 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Dec 28 14:39:10 2002 UTC (21 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored) to selected 1.21 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Thu Dec 26 13:37:21 2002 UTC (21 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.44: +22 -6 lines
Diff to previous 1.44 (colored) to selected 1.21 (colored)

- in lfs_reserve, reserve locked buffer count as well.
- don't wait for locking buf in lfs_bwrite_ext to avoid deadlocks.
- skip lfs_reserve when we're doing dirop.
  reserve more (for lfs_truncate) in set_dirop instead.

this mostly solves PR 18972. (and hopefully PR 19196)

Revision 1.30.2.8 / (download) - annotate - [select for diffs], Mon Nov 11 22:16:57 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.2.7: +29 -7 lines
Diff to previous 1.30.2.7 (colored) to selected 1.21 (colored)

Catch up to -current

Revision 1.44 / (download) - annotate - [select for diffs], Wed Oct 23 09:15:08 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.43: +7 -2 lines
Diff to previous 1.43 (colored) to selected 1.21 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Mon Oct 21 01:54:27 2002 UTC (21 years, 6 months ago) by lukem
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, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.42: +26 -9 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.21 (colored)

Pull up revision 1.43 (requested by yamt in ticket #926):
make sure to update the vnode's size even if uiomove failed.
otherwise, softdep states can't be flushed later.
ok'ed by Chuck Silvers. fix PR/16670.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 18 01:05:52 2002 UTC (21 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: kqueue-beforemerge
Changes since 1.42: +26 -9 lines
Diff to previous 1.42 (colored) to selected 1.21 (colored)

make sure to update the vnode's size even if uiomove failed.
otherwise, softdep states can't be flushed later.

ok'ed by Chuck Silvers. fix PR/16670.

Revision 1.31.4.7 / (download) - annotate - [select for diffs], Thu Sep 26 20:17:43 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.31.4.6: +3 -2 lines
Diff to previous 1.31.4.6 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored) to selected 1.21 (colored)

WRITE: make sure to set 'extended' in the part of code which handles regular
files, too

Revision 1.31.4.6 / (download) - annotate - [select for diffs], Wed Sep 25 16:10:20 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.31.4.5: +3 -3 lines
Diff to previous 1.31.4.5 (colored) to branchpoint 1.31 (colored) to selected 1.21 (colored)

need to initialize 'extended' so that the NOTE_EXTEND flag would
be set correctly in non-extend case
(FreeBSD ufs/ffs/ffs_vnops.c rev 1.95 has this bug too)

Revision 1.31.4.5 / (download) - annotate - [select for diffs], Sun Jun 23 17:52:14 2002 UTC (21 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.31.4.4: +8 -3 lines
Diff to previous 1.31.4.4 (colored) to branchpoint 1.31 (colored) to selected 1.21 (colored)

catch up with -current on kqueue branch

Revision 1.30.2.7 / (download) - annotate - [select for diffs], Mon Apr 1 07:49:19 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.2.6: +8 -3 lines
Diff to previous 1.30.2.6 (colored) to selected 1.21 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.42 / (download) - annotate - [select for diffs], Mon Mar 25 02:23:56 2002 UTC (22 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, kqueue-base, gehenna-devsw-base, gehenna-devsw
Branch point for: netbsd-1-6
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored) to selected 1.21 (colored)

if the size argument to write(2) is 0, do not modify the file in any way,
including updating timestamps.  required for standards conformance.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Mar 22 03:57:35 2002 UTC (22 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.40: +6 -3 lines
Diff to previous 1.40 (colored) to selected 1.21 (colored)

in lfs_write(), flush and invalidate any page cache pages in the range
that we're about to modify.  this weak attempt at coherency is enough
to make some applications (eg. "tail -f") happy, so it's worth having.

Revision 1.31.4.4 / (download) - annotate - [select for diffs], Thu Jan 10 20:05:24 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.31.4.3: +115 -80 lines
Diff to previous 1.31.4.3 (colored) to branchpoint 1.31 (colored) to selected 1.21 (colored)

Sync kqueue branch with -current.

Revision 1.30.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:58 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.2.5: +7 -6 lines
Diff to previous 1.30.2.5 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Nov 30 07:05:55 2001 UTC (22 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.39: +6 -5 lines
Diff to previous 1.39 (colored) to selected 1.21 (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.39 / (download) - annotate - [select for diffs], Sat Nov 17 07:22:34 2001 UTC (22 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) to selected 1.21 (colored)

Set `flags' before being used in the WRITE() function.

Revision 1.30.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:19:02 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.2.4: +16 -9 lines
Diff to previous 1.30.2.4 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:51 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.36: +16 -9 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.21 (colored)

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

Revision 1.38 / (download) - annotate - [select for diffs], Thu Nov 8 05:24:52 2001 UTC (22 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.37: +14 -10 lines
Diff to previous 1.37 (colored) to selected 1.21 (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.37 / (download) - annotate - [select for diffs], Thu Nov 8 02:42:31 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.36: +4 -1 lines
Diff to previous 1.36 (colored) to selected 1.21 (colored)

add RCSID. (note; this file gets #included)

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Thu Oct 11 00:02:35 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.32.2.1: +4 -2 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.21 (colored)

Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.30.2.4 / (download) - annotate - [select for diffs], Mon Oct 8 20:11:54 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.2.3: +6 -10 lines
Diff to previous 1.30.2.3 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Oct 3 05:02:46 2001 UTC (22 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3
Branch point for: thorpej-mips-cache
Changes since 1.35: +4 -2 lines
Diff to previous 1.35 (colored) to selected 1.21 (colored)

don't do any flush-behind for async mounts.
this matches the traditional behaviour.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:48:34 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.32: +104 -76 lines
Diff to previous 1.32 (colored) to selected 1.21 (colored)

Catch up with -current.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Sep 30 02:50:35 2001 UTC (22 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base2
Changes since 1.34: +3 -9 lines
Diff to previous 1.34 (colored) to selected 1.21 (colored)

process one block at a time even when we're using the write fast path
that avoids zeroing pages.  this avoids a mess when we get ENOSPC and
softdeps are enabled.

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:37:09 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.2.2: +110 -76 lines
Diff to previous 1.30.2.2 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Sep 16 13:57:56 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.33: +11 -3 lines
Diff to previous 1.33 (colored) to selected 1.21 (colored)

make LFS work again.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Sep 15 20:36:44 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: post-chs-ubcperf
Changes since 1.32: +102 -76 lines
Diff to previous 1.32 (colored) to selected 1.21 (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.31.4.3 / (download) - annotate - [select for diffs], Sat Sep 8 00:40:26 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.31.4.2: +1 -3 lines
Diff to previous 1.31.4.2 (colored) to branchpoint 1.31 (colored) to selected 1.21 (colored)

Centralize the definition of VN_KNOTE().

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:13:31 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.2.1: +3 -3 lines
Diff to previous 1.30.2.1 (colored) to selected 1.21 (colored)

Catch up with -current.

Revision 1.31.4.2 / (download) - annotate - [select for diffs], Fri Aug 3 04:14:10 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.31.4.1: +3 -3 lines
Diff to previous 1.31.4.1 (colored) to branchpoint 1.31 (colored) to selected 1.21 (colored)

update to -current

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 13 20:30:26 2001 UTC (22 years, 9 months ago) by perseant
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) to selected 1.21 (colored)

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

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

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

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

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

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

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

Other changes of note include:

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

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

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Fri Jul 13 04:42:06 2001 UTC (22 years, 9 months ago) by perseant
Branch: perseant-lfsv2
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.21 (colored)

Lingering change from the block addressing changeover: reserve the correct
number of bytes according to the number of fs blocks we may need to write.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Tue Jul 10 13:55:14 2001 UTC (22 years, 9 months ago) by lukem
Branch: kqueue
Changes since 1.31: +11 -2 lines
Diff to previous 1.31 (colored) to selected 1.21 (colored)

* implement ufs_kqfilter(), filt_ufs*()
* add KNOTE(9) calls as appropriate

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:59:08 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.30: +19 -1 lines
Diff to previous 1.30 (colored) to selected 1.21 (colored)

Catch up with -current.

Revision 1.22.8.4 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:47 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.22.8.3: +19 -1 lines
Diff to previous 1.22.8.3 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Mar 26 06:47:34 2001 UTC (23 years ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, perseant-lfsv2-base
Branch point for: perseant-lfsv2, kqueue
Changes since 1.30: +19 -1 lines
Diff to previous 1.30 (colored) to selected 1.21 (colored)

work around a problem with sync writes vs. softdeps.

Revision 1.22.8.3 / (download) - annotate - [select for diffs], Mon Mar 12 13:32:08 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.22.8.2: +10 -12 lines
Diff to previous 1.22.8.2 (colored) to branchpoint 1.22 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 27 04:37:47 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored) to selected 1.21 (colored)

min() -> MIN(), max() -> MAX().
fixes more problems with file offsets > 4GB.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Feb 26 17:12:08 2001 UTC (23 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.28: +6 -8 lines
Diff to previous 1.28 (colored) to selected 1.21 (colored)

some KNF

Revision 1.22.8.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:20:17 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.22.8.1: +114 -25 lines
Diff to previous 1.22.8.1 (colored) to branchpoint 1.22 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:57 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.27: +114 -25 lines
Diff to previous 1.27 (colored) to selected 1.21 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.22.8.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:55 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.22: +25 -18 lines
Diff to previous 1.22 (colored) to selected 1.21 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Thu Sep 14 18:50:15 2000 UTC (23 years, 7 months ago) by perseant
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.26: +5 -1 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.21 (colored)

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

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

Revision 1.27 / (download) - annotate - [select for diffs], Sat Sep 9 04:49:55 2000 UTC (23 years, 7 months ago) by perseant
Branch: MAIN
Changes since 1.26: +5 -1 lines
Diff to previous 1.26 (colored) to selected 1.21 (colored)

Various bug-fixes to LFS, to wit:


Kernel:

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

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

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

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

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

lfs_cleanerd:

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

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

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

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

fsck_lfs:

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

newfs_lfs:

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

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

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

mount_lfs:

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

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


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

Revision 1.26 / (download) - annotate - [select for diffs], Sat May 27 00:19:55 2000 UTC (23 years, 10 months ago) by perseant
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.25: +8 -1 lines
Diff to previous 1.25 (colored) to selected 1.21 (colored)

Prevent dirops from getting around lfs_check and wedging the buffer cache.
All the dirop vnops now mark the inodes with a new flag, IN_ADIROP, which
is removed as soon as the dirop is done (as opposed to VDIROP which stays
until the file is written).  To address one issue raised in PR#9357.

Revision 1.25 / (download) - annotate - [select for diffs], Sat May 13 23:43:16 2000 UTC (23 years, 11 months ago) by perseant
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.21 (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.24 / (download) - annotate - [select for diffs], Thu Mar 30 12:41:15 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.23: +9 -9 lines
Diff to previous 1.23 (colored) to selected 1.21 (colored)

Remove register declarations.

Revision 1.22.14.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:42 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.22: +4 -8 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.21 (colored)

Pull up to last week's -current.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:15 1999 UTC (24 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.22: +4 -8 lines
Diff to previous 1.22 (colored) to selected 1.21 (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.22.10.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:53 1999 UTC (24 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.22: +4 -8 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.21 (colored)

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

Revision 1.22.4.7 / (download) - annotate - [select for diffs], Tue Aug 31 21:03:47 1999 UTC (24 years, 7 months ago) by perseant
Branch: chs-ubc2
Changes since 1.22.4.6: +2 -2 lines
Diff to previous 1.22.4.6 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.21 (colored)

Rudimentary support for LFS under UBC:

- LFS-specific VOP_BALLOC and VOP_PUTPAGES vnode ops.

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

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

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

Revision 1.22.4.6 / (download) - annotate - [select for diffs], Sat Jul 31 18:53:44 1999 UTC (24 years, 8 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.4.5: +5 -4 lines
Diff to previous 1.22.4.5 (colored) to branchpoint 1.22 (colored) to selected 1.21 (colored)

in WRITE(), VOP_BALLOC() no longer does what we want, so switch to using
ffs_balloc1().

Revision 1.22.4.5 / (download) - annotate - [select for diffs], Sun Jul 11 05:44:00 1999 UTC (24 years, 9 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.4.4: +1 -2 lines
Diff to previous 1.22.4.4 (colored) to branchpoint 1.22 (colored) to selected 1.21 (colored)

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

Revision 1.22.4.4 / (download) - annotate - [select for diffs], Sun Jul 4 01:55:41 1999 UTC (24 years, 9 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.4.3: +13 -24 lines
Diff to previous 1.22.4.3 (colored) to branchpoint 1.22 (colored) to selected 1.21 (colored)

use VOP_BALLOC().  remove some clutter.

Revision 1.22.4.3 / (download) - annotate - [select for diffs], Fri Jul 2 22:43:27 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.22.4.2: +6 -4 lines
Diff to previous 1.22.4.2 (colored) to branchpoint 1.22 (colored) to selected 1.21 (colored)

Take two at making a non-converted LFS work in a UBC kernel.

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Tue Jun 22 02:29:49 1999 UTC (24 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.22.4.1: +13 -3 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored) to selected 1.21 (colored)

Put back the calls to cluster_*(), but #if 0 them out.  This is mostly
for use as a reference point.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Mon Jun 7 04:25:35 1999 UTC (24 years, 10 months ago) by chs
Branch: chs-ubc2
Changes since 1.22: +79 -10 lines
Diff to previous 1.22 (colored) to selected 1.21 (colored)

merge everything from chs-ubc branch.

Revision 1.18.2.5 / (download) - annotate - [select for diffs], Sun May 30 15:16:22 1999 UTC (24 years, 10 months ago) by chs
Branch: chs-ubc
Changes since 1.18.2.4: +2 -2 lines
Diff to previous 1.18.2.4 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored) to selected 1.21 (colored)

track ffs_balloc() interface change.

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Fri Apr 30 04:32:07 1999 UTC (24 years, 11 months ago) by chs
Branch: chs-ubc
Changes since 1.18.2.3: +6 -10 lines
Diff to previous 1.18.2.3 (colored) to branchpoint 1.18 (colored) to selected 1.21 (colored)

change ubc_alloc()'s length arg to be a pointer instead of the value.
the pointed-to value is the total desired length on input,
and is updated to the length that will fit in the returned window.
this allows callers of ubc_alloc() to be ignorant of the window size.

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Thu Apr 29 05:34:15 1999 UTC (24 years, 11 months ago) by chs
Branch: chs-ubc
Changes since 1.18.2.2: +3 -13 lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored) to selected 1.21 (colored)

move updating of i_ffs_size to ffs_balloc_range().

Revision 1.22 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:31 1999 UTC (25 years, 1 month 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.21: +1 -13 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [selected], Wed Mar 10 00:00:32 1999 UTC (25 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Added flags to lfs_check call

Revision 1.20 / (download) - annotate - [select for diffs], Fri Mar 5 21:09:50 1999 UTC (25 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.19: +5 -11 lines
Diff to previous 1.19 (colored) to selected 1.21 (colored)

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

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Thu Feb 25 04:04:34 1999 UTC (25 years, 1 month ago) by chs
Branch: chs-ubc
Changes since 1.18.2.1: +22 -64 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored) to selected 1.21 (colored)

move ffs_mballoc() (now ffs_balloc_range()) to ffs_balloc.c.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Feb 10 13:14:10 1999 UTC (25 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored) to selected 1.21 (colored)

Make sure a buffer optained from bread() is always bresle()'d in case of
error. Closes PR kern/1448 from Wolfgang Solfrank.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Mon Nov 9 06:06:36 1998 UTC (25 years, 5 months ago) by chs
Branch: chs-ubc
Changes since 1.18: +140 -1 lines
Diff to previous 1.18 (colored) to selected 1.21 (colored)

initial snapshot.  lots left to do.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 2 18:57:24 1998 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base
Branch point for: chs-ubc
Changes since 1.17: +9 -3 lines
Diff to previous 1.17 (colored) to selected 1.21 (colored)

Implement support for IEEE Std 1003.1b-1993 synchronous I/O:
* in the read vnode operator, check for IO_SYNC being set in the ioflag and
  synchronously update the file's meta-data if appropriate.
* in the write vnode operator, update the appropriate checks for IO_SYNC being
  set in the ioflag to reflect that IO_DSYNC is now inclusive-or'ed into
  IO_SYNC, and require all IO_SYNC bits to be set for operations defined by
  synchronized I/O file integrity completion but not by synchronized I/O data
  integrity completion.

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

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

Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:37 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored) to selected 1.21 (colored)

Merge with Lite2 + local changes

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

Import 4.4BSD-Lite2

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

Import 4.4BSD-Lite for reference

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 10 14:10:59 1998 UTC (26 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored) to selected 1.21 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Thu Feb 5 08:00:36 1998 UTC (26 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.13: +9 -1 lines
Diff to previous 1.13 (colored) to selected 1.21 (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.13 / (download) - annotate - [select for diffs], Fri Jul 4 20:22:19 1997 UTC (26 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.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.21 (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.12 / (download) - annotate - [select for diffs], Wed Jun 11 10:10:16 1997 UTC (26 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.11: +16 -16 lines
Diff to previous 1.11 (colored) to selected 1.21 (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.11 / (download) - annotate - [select for diffs], Fri Apr 4 14:21:32 1997 UTC (27 years ago) by kleink
Branch: MAIN
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored) to selected 1.21 (colored)

Return immediately upon zero byte reads, as updating st_atime in this case
violates POSIX.1 read() semantics.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 30 09:52:26 1997 UTC (27 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.9: +3 -2 lines
Diff to previous 1.9 (colored) to selected 1.21 (colored)

add support for noatime mount flag

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 11 18:27:57 1996 UTC (27 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.8: +6 -4 lines
Diff to previous 1.8 (colored) to selected 1.21 (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.8 / (download) - annotate - [select for diffs], Fri Feb 9 22:36:11 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.7: +14 -9 lines
Diff to previous 1.7 (colored) to selected 1.21 (colored)

ufs prototype changes

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 24 21:20:53 1995 UTC (28 years, 9 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.6: +2 -8 lines
Diff to previous 1.6 (colored) to selected 1.21 (colored)

avoid unnecessary aging of buffers.  This used to make sense, when buffer
caches were much smaller, but makes little sense now, and will become more
useless as RAM (and buffer cache) sizes grow.  Suggested by Bob Baron.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 24 15:33:31 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored) to selected 1.21 (colored)

explicitly cast &time to (struct timeval *) when passing it to VOP_UPDATE.
new prototypes and picky compilers make a volatile mess.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Dec 14 13:04:02 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.21 (colored)

Sync with CSRG.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 20 04:21:23 1994 UTC (29 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.21 (colored)

update for new syscall args description mechanism, and deal safely
with wider types.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 29 06:47:32 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored) to selected 1.21 (colored)

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

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 14 22:56:33 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored) to selected 1.21 (colored)

Fix compatibility with old fastlinks.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 8 11:43:21 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Diff to selected 1.21 (colored)

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>