The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.158 / (download) - annotate - [select for diffs], Thu Aug 10 20:49:20 2023 UTC (8 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.157: +4 -4 lines
Diff to previous 1.157 (colored) to selected 1.21 (colored)

don't assign struct pointers to smaller then structure regions of memory.

in all cases here, the later parts of the structure are not actually
accessed, so there are no existing bugs here beyond general UB.  for the
ufs ones, this also removes some casts.

found by GCC 12.

Revision 1.157 / (download) - annotate - [select for diffs], Wed Feb 22 21:49:45 2023 UTC (13 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.156: +4 -4 lines
Diff to previous 1.156 (colored) to selected 1.21 (colored)

ufs: Nix trailing whitespace and tidy up some other minor KNF.

Revision 1.156 / (download) - annotate - [select for diffs], Sat Aug 6 18:26:42 2022 UTC (20 months, 1 week ago) by andvar
Branch: MAIN
CVS Tags: 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
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored) to selected 1.21 (colored)

s/blity/bility/ in various words, mainly in comments.

Revision 1.155 / (download) - annotate - [select for diffs], Sat Sep 5 02:55:39 2020 UTC (3 years, 7 months ago) by riastradh
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
Changes since 1.154: +2 -4 lines
Diff to previous 1.154 (colored) to selected 1.21 (colored)

Revert "ufs: Prevent mkdir from choking on deleted directories."

This change made no sense and should not have been committed.

Revision 1.154 / (download) - annotate - [select for diffs], Sat Sep 5 02:47:48 2020 UTC (3 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.153: +4 -2 lines
Diff to previous 1.153 (colored) to selected 1.21 (colored)

ufs: Prevent mkdir from choking on deleted directories.

Fix some missing uvm_vnp_setsize in screw cases while here.

Revision 1.153 / (download) - annotate - [select for diffs], Sat May 16 18:31:54 2020 UTC (3 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.152: +44 -5 lines
Diff to previous 1.152 (colored) to selected 1.21 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.148.4.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.148.4.1: +18 -12 lines
Diff to previous 1.148.4.1 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored) to selected 1.21 (colored)

Merge changes from current as of 20200406

Revision 1.152 / (download) - annotate - [select for diffs], Sat Apr 4 20:49:31 2020 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.151: +16 -10 lines
Diff to previous 1.151 (colored) to selected 1.21 (colored)

Merge the remaining changes from the ad-namecache branch, affecting namei()
and getcwd():

- push vnode locking back as far as possible.
- do most lookups directly in the namecache, avoiding vnode locks & refs.
- don't block new refs to vnodes across VOP_INACTIVE().
- get shared locks for VOP_LOOKUP() if the file system supports it.
- correct lock types for VOP_ACCESS() / VOP_GETATTR() in a few places.

Possible future enhancements:

- make the lookups lockless.
- support dotdot lookups by being lockless and inferring absence of chroot.
- maybe make it work for layered file systems.
- avoid vnode references at the root & cwd.

Revision 1.151 / (download) - annotate - [select for diffs], Sat Mar 14 18:08:40 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.150: +4 -4 lines
Diff to previous 1.150 (colored) to selected 1.21 (colored)

- Hide the details of SPCF_SHOULDYIELD and related behind a couple of small
  functions: preempt_point() and preempt_needed().

- preempt(): if the LWP has exceeded its timeslice in kernel, strip it of
  any priority boost gained earlier from blocking.

Revision 1.146.6.1 / (download) - annotate - [select for diffs], Mon Mar 2 08:07:22 2020 UTC (4 years, 1 month ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.146: +10 -5 lines
Diff to previous 1.146 (colored) next main 1.147 (colored) to selected 1.21 (colored)

Additionally pull up the following revisions, to fix build fallout from
ticket #1511:

	src/sys/ufs/ufs/dir.h			1.26
	sys/ufs/ufs/ufs_lookup.c		1.149

Zero out all the dirent padding not just one byte, to avoid kernel memory
disclosure (from https://svnweb.freebsd.org/base?view=revision&revision=347066)

Revision 1.150.4.1 / (download) - annotate - [select for diffs], Sun Jan 19 21:21:55 2020 UTC (4 years, 3 months ago) by ad
Branch: ad-namecache
Changes since 1.150: +16 -10 lines
Diff to previous 1.150 (colored) next main 1.151 (colored) to selected 1.21 (colored)

Set IMNT_SHRLOOKUP and use it for the in-cache case.  Need to check what
more can be done with tmpfs though, it can probably do the whole lookup.

Revision 1.148.4.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.148: +10 -5 lines
Diff to previous 1.148 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.150 / (download) - annotate - [select for diffs], Sun May 5 15:07:12 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, 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, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored) to selected 1.21 (colored)

Add more comments to explain what we are doing.

Revision 1.149 / (download) - annotate - [select for diffs], Sun May 5 01:48:53 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.148: +10 -5 lines
Diff to previous 1.148 (colored) to selected 1.21 (colored)

Zero out all the dirent padding not just one byte, to avoid kernel memory
disclosure (from https://svnweb.freebsd.org/base?view=revision&revision=347066)

Revision 1.117.2.5 / (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.117.2.4: +489 -424 lines
Diff to previous 1.117.2.4 (colored) next main 1.118 (colored) to selected 1.21 (colored)

update from HEAD

Revision 1.148 / (download) - annotate - [select for diffs], Fri Oct 27 12:25:15 2017 UTC (6 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, 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, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.147: +1 -1 lines
Diff to previous 1.147 (colored) to selected 1.21 (colored)

Revert printf return value change.

Revision 1.147 / (download) - annotate - [select for diffs], Fri Oct 27 09:59:17 2017 UTC (6 years, 5 months ago) by utkarsh009
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored) to selected 1.21 (colored)

[syzkaller] Cast all the printf's to (void *)
> as a result of new printf(9) declaration.

Revision 1.132.4.5 / (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.132.4.4: +2 -6 lines
Diff to previous 1.132.4.4 (colored) to branchpoint 1.132 (colored) next main 1.133 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.145.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:32 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.145: +2 -6 lines
Diff to previous 1.145 (colored) next main 1.146 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.145.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.145: +2 -6 lines
Diff to previous 1.145 (colored) next main 1.146 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.146 / (download) - annotate - [select for diffs], Thu Mar 30 09:11:45 2017 UTC (7 years ago) by hannken
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.145: +2 -6 lines
Diff to previous 1.145 (colored) to selected 1.21 (colored)

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

Revision 1.132.4.4 / (download) - annotate - [select for diffs], Sun May 29 08:44:40 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.132.4.3: +127 -100 lines
Diff to previous 1.132.4.3 (colored) to branchpoint 1.132 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.145 / (download) - annotate - [select for diffs], Fri Apr 29 02:38:19 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170320, 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, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.144: +3 -3 lines
Diff to previous 1.144 (colored) to selected 1.21 (colored)

mention the PR

Revision 1.144 / (download) - annotate - [select for diffs], Fri Apr 29 02:16:53 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.143: +127 -100 lines
Diff to previous 1.143 (colored) to selected 1.21 (colored)

Split ufs_direnter futher and turn off tree-vrp for the broken function.

Revision 1.132.4.3 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:19 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.132.4.2: +368 -326 lines
Diff to previous 1.132.4.2 (colored) to branchpoint 1.132 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.143 / (download) - annotate - [select for diffs], Thu Apr 14 03:25:28 2016 UTC (8 years ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored) to selected 1.21 (colored)

missing ,

Revision 1.142 / (download) - annotate - [select for diffs], Thu Apr 14 03:23:22 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.141: +20 -18 lines
Diff to previous 1.141 (colored) to selected 1.21 (colored)

- match endianness logic more to the original code
- fix namlen type
- use bool more
- eat \n's from panic strings

Revision 1.141 / (download) - annotate - [select for diffs], Wed Apr 13 00:09:26 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.140: +77 -66 lines
Diff to previous 1.140 (colored) to selected 1.21 (colored)

more deduplication.

Revision 1.140 / (download) - annotate - [select for diffs], Tue Apr 12 16:12:22 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.139: +3 -5 lines
Diff to previous 1.139 (colored) to selected 1.21 (colored)

Remove gcc hack, it does not help.
Add more const.

Revision 1.139 / (download) - annotate - [select for diffs], Tue Apr 12 15:56:05 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.138: +35 -16 lines
Diff to previous 1.138 (colored) to selected 1.21 (colored)

- fix build with UFS_DIRHASH
- hide extra diagnostic info
- try to elide gcc bug

Revision 1.138 / (download) - annotate - [select for diffs], Tue Apr 12 14:40:16 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.137: +187 -159 lines
Diff to previous 1.137 (colored) to selected 1.21 (colored)

- Collect the slot-related variables in their own structure and extract
  some of the slot finding and updating code into their own function.
- Add a new label "next" in the main search loop to avoid nesting and
  code duplication.
- Cache some reclen and ino variables for better readability and efficiency.

Revision 1.137 / (download) - annotate - [select for diffs], Tue Apr 12 00:36:29 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.136: +26 -27 lines
Diff to previous 1.136 (colored) to selected 1.21 (colored)

Provide reason to be printed in panic string.

Revision 1.136 / (download) - annotate - [select for diffs], Mon Apr 11 23:41:15 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.135: +91 -106 lines
Diff to previous 1.135 (colored) to selected 1.21 (colored)

misc cleanups, no functional change

Revision 1.132.4.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:17 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.132.4.1: +3 -3 lines
Diff to previous 1.132.4.1 (colored) to branchpoint 1.132 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.135 / (download) - annotate - [select for diffs], Sat Jul 11 11:04:48 2015 UTC (8 years, 9 months ago) by mlelstv
Branch: MAIN
CVS Tags: nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored) to selected 1.21 (colored)

mp->mnt_stat.f_flag is never set. Use the mnt_flag directly.
This will now actually prevent the 'bad dir' panic if the filesystem
is read-only.

Revision 1.132.4.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.132: +5 -5 lines
Diff to previous 1.132 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.134 / (download) - annotate - [select for diffs], Sat Mar 28 17:23:42 2015 UTC (9 years ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored) to selected 1.21 (colored)

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

ok hannken@

Revision 1.133 / (download) - annotate - [select for diffs], Fri Mar 27 17:27:56 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.132: +4 -4 lines
Diff to previous 1.132 (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.117.2.4 / (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.117.2.3: +14 -256 lines
Diff to previous 1.117.2.3 (colored) to selected 1.21 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.129.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:58 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.129: +14 -254 lines
Diff to previous 1.129 (colored) next main 1.130 (colored) to selected 1.21 (colored)

Rebase.

Revision 1.132 / (download) - annotate - [select for diffs], Tue Jun 3 19:30:30 2014 UTC (9 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, 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.131: +4 -4 lines
Diff to previous 1.131 (colored) to selected 1.21 (colored)

Introduce two helper functions to centralise the namecache statistics
in vfs_cache.c. Use consistent locking around the per-cpu data.

Revision 1.131 / (download) - annotate - [select for diffs], Sun May 25 13:48:40 2014 UTC (9 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.130: +2 -200 lines
Diff to previous 1.130 (colored) to selected 1.21 (colored)

Remove ufs_checkpath() and ufs_readdotdot().  These are relics
from the pre-genfs_rename era.

Revision 1.111.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.111.2.5: +26 -70 lines
Diff to previous 1.111.2.5 (colored) to branchpoint 1.111 (colored) next main 1.112 (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.124.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:22 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.124: +15 -59 lines
Diff to previous 1.124 (colored) next main 1.125 (colored) to selected 1.21 (colored)

sync with head

Revision 1.130 / (download) - annotate - [select for diffs], Thu May 8 08:21:53 2014 UTC (9 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.129: +12 -54 lines
Diff to previous 1.129 (colored) to selected 1.21 (colored)

Add a global vnode cache:

- vcache_get() retrieves a referenced and initialised vnode / fs node pair.
- vcache_remove() removes a vnode / fs node pair from the cache.

On cache miss vcache_get() calls new vfs operation vfs_loadvnode() to
initialise a vnode / fs node pair.  This call is guaranteed exclusive,
no other thread will try to load this vnode / fs node pair.

Convert ufs/ext2fs, ufs/ffs and ufs/mfs to use this interface.

Remove now unused ufs/ufs_ihash

Discussed on tech-kern.

Welcome to 6.99.41

Revision 1.129 / (download) - annotate - [select for diffs], Fri Feb 7 15:29:23 2014 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.128: +5 -3 lines
Diff to previous 1.128 (colored) to selected 1.21 (colored)

Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31

Revision 1.128 / (download) - annotate - [select for diffs], Mon Nov 4 19:58:02 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored) to selected 1.21 (colored)

Add 2 XXX: gcc initializations

Revision 1.127 / (download) - annotate - [select for diffs], Fri Oct 25 16:34:20 2013 UTC (10 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.126: +3 -3 lines
Diff to previous 1.126 (colored) to selected 1.21 (colored)

Mark a diagnostic-only variable

Revision 1.126 / (download) - annotate - [select for diffs], Sun Oct 20 00:29:10 2013 UTC (10 years, 6 months ago) by htodd
Branch: MAIN
Changes since 1.125: +2 -4 lines
Diff to previous 1.125 (colored) to selected 1.21 (colored)

Definining needswap where needed.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Sep 15 15:08:09 2013 UTC (10 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.124: +2 -4 lines
Diff to previous 1.124 (colored) to selected 1.21 (colored)

Remove unused variable

Revision 1.117.2.3 / (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.117.2.2: +13 -13 lines
Diff to previous 1.117.2.2 (colored) to selected 1.21 (colored)

resync from head

Revision 1.124 / (download) - annotate - [select for diffs], Sun Jun 16 13:33:30 2013 UTC (10 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored) to selected 1.21 (colored)

Add an UFS_SNAPGONE() ufs op replacing the calls
to ffs_snapgone() in ufs_lookup.c.

Ok: David Holland <dholland@netbsd.org>

Welcome to 6.99.22

Revision 1.123 / (download) - annotate - [select for diffs], Sun Jun 9 17:57:09 2013 UTC (10 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.122: +11 -11 lines
Diff to previous 1.122 (colored) to selected 1.21 (colored)

Stick UFS_ in front of these symbols:
   DIRBLKSIZ
   DIRECTSIZ
   DIRSIZ
   OLDDIRFMT
   NEWDIRFMT

Part of PR 47909.

Revision 1.117.2.2 / (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.117.2.1: +9 -10 lines
Diff to previous 1.117.2.1 (colored) to selected 1.21 (colored)

resync with head

Revision 1.111.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.111.2.4: +9 -10 lines
Diff to previous 1.111.2.4 (colored) to branchpoint 1.111 (colored) to selected 1.21 (colored)

sync with head

Revision 1.122 / (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.121: +9 -9 lines
Diff to previous 1.121 (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.111.2.4 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:56 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.111.2.3: +25 -6 lines
Diff to previous 1.111.2.3 (colored) to branchpoint 1.111 (colored) to selected 1.21 (colored)

sync with (a bit old) head

Revision 1.121 / (download) - annotate - [select for diffs], Thu Dec 20 08:03:45 2012 UTC (11 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.120: +2 -3 lines
Diff to previous 1.120 (colored) to selected 1.21 (colored)

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

Welcome to 6.99.16

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

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:53 2012 UTC (11 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.117: +32 -6 lines
Diff to previous 1.117 (colored) to selected 1.21 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.120 / (download) - annotate - [select for diffs], Mon Nov 5 17:27:40 2012 UTC (11 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.119: +7 -5 lines
Diff to previous 1.119 (colored) to selected 1.21 (colored)

Excise struct componentname from the namecache.

This uglifies the interface, because several operations need to be
passed the namei flags and cache_lookup also needs for the time being
to be passed cnp->cn_nameiop. Nonetheless, it's a net benefit.

The glop should be able to go away eventually but requires structural
cleanup elsewhere first.

This change requires a kernel bump.

Revision 1.119 / (download) - annotate - [select for diffs], Mon Nov 5 17:24:12 2012 UTC (11 years, 5 months ago) by dholland
Branch: MAIN
Changes since 1.118: +21 -4 lines
Diff to previous 1.118 (colored) to selected 1.21 (colored)

Disentangle the namecache from the internals of namei.

 - Move the namecache's hash computation to inside the namecache code,
instead of being spread out all over the place. Remove cn_hash from
struct componentname and delete all uses of it.

 - It is no longer necessary (if it ever was) for cache_lookup and
cache_lookup_raw to clear MAKEENTRY from cnp->cn_flags for the cases
that cache_enter already checks for.

 - Rearrange the interface of cache_lookup (and cache_lookup_raw) to
make it somewhat simpler, to exclude certain nonexistent error
conditions, and (most importantly) to make it not require write access
to cnp->cn_flags.

This change requires a kernel bump.

Revision 1.111.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:23:00 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.111.2.2: +16 -16 lines
Diff to previous 1.111.2.2 (colored) to branchpoint 1.111 (colored) to selected 1.21 (colored)

sync with head

Revision 1.118 / (download) - annotate - [select for diffs], Sun Oct 14 23:57:32 2012 UTC (11 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.117: +9 -2 lines
Diff to previous 1.117 (colored) to selected 1.21 (colored)

Add an XXX comment about a broken error case in ufs_dirremove.
(this was in one of my old rename patches)

Revision 1.111.8.1 / (download) - annotate - [select for diffs], Sun Aug 12 12:59:47 2012 UTC (11 years, 8 months ago) by martin
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.111: +5 -5 lines
Diff to previous 1.111 (colored) next main 1.112 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by manu in ticket #484):
	sys/fs/nilfs/nilfs_vnops.c: revision 1.18
	sys/ufs/ufs/ufs_lookup.c: revision 1.117
	sys/nfs/nfs_vnops.c: revision 1.295
	sys/ufs/chfs/chfs_vnops.c: revision 1.8
	sys/ufs/ext2fs/ext2fs_lookup.c: revision 1.70
	sys/fs/unionfs/unionfs_vnops.c: revision 1.6
	sys/kern/vfs_cache.c: revision 1.89
	sys/fs/efs/efs_vnops.c: revision 1.26
	sys/fs/hfs/hfs_vnops.c: revision 1.26
	sys/fs/adosfs/adlookup.c: revision 1.16
	sys/fs/puffs/puffs_vnops.c: revision 1.168
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.98
	sys/fs/ntfs/ntfs_vnops.c: revision 1.52
	sys/fs/cd9660/cd9660_lookup.c: revision 1.20
	sys/fs/msdosfs/msdosfs_lookup.c: revision 1.24
	sys/fs/smbfs/smbfs_vnops.c: revision 1.80
	sys/fs/udf/udf_vnops.c: revision 1.72
	sys/fs/filecorefs/filecore_lookup.c: revision 1.14
	sys/fs/puffs/puffs_node.c: revision 1.25
Move some the test for MAKEENTRY into the cache_enter(9).  Make some
variables in vfs_cache.c static, __read_mostly, etc.
No objection on tech-kern@.

Revision 1.117 / (download) - annotate - [select for diffs], Sun Jul 22 00:53:22 2012 UTC (11 years, 9 months ago) by rmind
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.116: +5 -5 lines
Diff to previous 1.116 (colored) to selected 1.21 (colored)

Move some the test for MAKEENTRY into the cache_enter(9).  Make some
variables in vfs_cache.c static, __read_mostly, etc.

No objection on tech-kern@.

Revision 1.116 / (download) - annotate - [select for diffs], Mon Jun 4 16:46:45 2012 UTC (11 years, 10 months ago) by riastradh
Branch: MAIN
Changes since 1.115: +6 -13 lines
Diff to previous 1.115 (colored) to selected 1.21 (colored)

Tidy up some typos and vestiges in comments after the ulr changes.

Revision 1.111.6.2 / (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.111.6.1: +34 -24 lines
Diff to previous 1.111.6.1 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored) to selected 1.21 (colored)

sync to latest -current.

Revision 1.111.2.2 / (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.111.2.1: +36 -26 lines
Diff to previous 1.111.2.1 (colored) to branchpoint 1.111 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.99.4.2 / (download) - annotate - [select for diffs], Sat May 19 17:28:29 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-5
CVS Tags: 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
Changes since 1.99.4.1: +315 -108 lines
Diff to previous 1.99.4.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.21 (colored)

Apply patch (requested by buhrow in ticket #1759):


sys/ufs/lfs/lfs_vnops.c				patch
sys/ufs/ufs/inode.h 				patch
sys/ufs/ufs/ufs_extern.h			patch
sys/ufs/ufs/ufs_lookup.c			patch
sys/ufs/ufs/ufs_vnops.c				patch
sys/ufs/ufs/ufs_wapbl.c				patch

	Port dholland's ufs_rename locking changes to netbsd-5.
	[buhrow, ticket #1759]

        Hello.  More testing has revealed a minor misunderstanding between the
vnode API in -current and 5.x.  The below patch, against NetBSD-5.1
sources, rolls all the accumulated patches into one patch set.  With this
patch, I believe you can now run with WAPBL, softdep or traditional ufs
semantics with heavy file loads and avoid panics due to resource exhaustion
and/or tstile deadlocks.  Testing has been done on I386, both uniprocessor
and multiprocessor, and on Sparc  machines in uniprocessor mode, though I
think multiprocessor Sparc would be fine as well.  Since these changes are
machine independent, I don't anticipate any issues on any platform.  It is
my hope that modulo any final issues that come up in the final round of
testing I'm currently performing, these patches will be ready to be pulled
up into the NetBSD-5 branch.
        Finally, I'd like to thank mouse@ and hannken@ for their help and
patience in helping me track down and test the final versions of these
patches.  With their assistance, I'm confident these patches make NetBSD-5
a much more stable and robust operating environment in a variety of
setings.

Revision 1.115 / (download) - annotate - [select for diffs], Wed May 9 00:21:18 2012 UTC (11 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.114: +2 -4 lines
Diff to previous 1.114 (colored) to selected 1.21 (colored)

Adapt ffs, lfs, and ext2fs to use genfs_rename.

ok dholland, rmind

Revision 1.114 / (download) - annotate - [select for diffs], Sat May 5 04:08:53 2012 UTC (11 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.113: +36 -24 lines
Diff to previous 1.113 (colored) to selected 1.21 (colored)

comments and cosmetics.  no functional changes.

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:57 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.111: +35 -25 lines
Diff to previous 1.111 (colored) to selected 1.21 (colored)

sync with head

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

sync to latest -current.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Mar 16 08:39:54 2012 UTC (12 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8
Changes since 1.112: +22 -17 lines
Diff to previous 1.112 (colored) to selected 1.21 (colored)

Fix last commit that broke lookup for dot with op DELETE.

Reviewed by: David Holland <dholland@netbsd.org>

Revision 1.112 / (download) - annotate - [select for diffs], Tue Mar 13 18:41:14 2012 UTC (12 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.111: +26 -21 lines
Diff to previous 1.111 (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.111 / (download) - annotate - [select for diffs], Sun Jul 17 22:07:59 2011 UTC (12 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.110: +125 -2 lines
Diff to previous 1.110 (colored) to selected 1.21 (colored)

Provide correct locking for ufs_wapbl_rename. Note that this does not
fix the non-wapbl rename; that will be coming soon. This patch also
leaves a lot of the older locking-related code around in #if 0 blocks,
and there's a lot of leftover redundant logic. All that will be going
away later.

Relates to at least these PRs:

  PR kern/24887
  PR kern/41417
  PR kern/42093
  PR kern/43626

and possibly others.

Revision 1.110 / (download) - annotate - [select for diffs], Thu Jul 14 16:27:11 2011 UTC (12 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.109: +79 -25 lines
Diff to previous 1.109 (colored) to selected 1.21 (colored)

Update comments on functions that take ufs_lookup_results.

Revision 1.109 / (download) - annotate - [select for diffs], Tue Jul 12 16:59:49 2011 UTC (12 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.108: +12 -17 lines
Diff to previous 1.108 (colored) to selected 1.21 (colored)

Pass the ufs_lookup_results pointer around instead of fetching it from
the inode in the guts of ufs. Now, in VOPs where i_crap is used it is
used (directly) only immediately on entry to the VOP call and then
passed around by reference.

Except for rename, which needs explicit sorting out. The code in
ufs_wapbl_rename is unchanged in behavior but I'm increasingly
inclined to think it's wrong.

Revision 1.108 / (download) - annotate - [select for diffs], Tue Jul 12 02:22:13 2011 UTC (12 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.107: +111 -82 lines
Diff to previous 1.107 (colored) to selected 1.21 (colored)

Currently, ufs_lookup produces five auxiliary results that are left in
the vnode when lookup returns and fished out again later.

1. Create struct ufs_lookup_results to hold these.

2. Call the ufs_lookup_results instance in struct inode "i_crap" to be
clear about exactly what's going on, and to distinguish the lookup
results from respectable members of struct inode.

3. Update references to these members in the directory access
subroutines.

4. Include preliminary infrastructure for checking that the i_crap
being used is still valid when it's used. This doesn't actually do
anything yet.

5. Update the way ufs_wapbl_rename manipulates these elements to use
the new data structures. I have not changed the manipulation; it may
or may not be correct but I continue to suspect that it is not.

The word of the day is "stigmergy".

Revision 1.107 / (download) - annotate - [select for diffs], Mon Jul 11 08:27:41 2011 UTC (12 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.106: +6 -6 lines
Diff to previous 1.106 (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.104.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:56:34 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.104.2.1: +2 -10 lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored) to selected 1.21 (colored)

sync with head

Revision 1.106 / (download) - annotate - [select for diffs], Tue Nov 30 10:43:06 2010 UTC (13 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.105: +2 -10 lines
Diff to previous 1.105 (colored) to selected 1.21 (colored)

Abolish the SAVENAME and HASBUF flags. There is now always a buffer,
so the path in a struct componentname is now always valid during VOP
calls.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:48:13 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.103.2.1: +4 -4 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.96.16.3 / (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.96.16.2: +6 -6 lines
Diff to previous 1.96.16.2 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:20:05 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.104: +6 -6 lines
Diff to previous 1.104 (colored) to selected 1.21 (colored)

sync with head

Revision 1.105 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:20 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.104: +6 -6 lines
Diff to previous 1.104 (colored) to selected 1.21 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.103.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.103: +2 -7 lines
Diff to previous 1.103 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.99.8.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:26 2010 UTC (14 years ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.99: +7 -5 lines
Diff to previous 1.99 (colored) next main 1.100 (colored) to selected 1.21 (colored)

sync to netbsd-5

Revision 1.96.16.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:46 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.96.16.1: +9 -12 lines
Diff to previous 1.96.16.1 (colored) to branchpoint 1.96 (colored) to selected 1.21 (colored)

sync with head

Revision 1.104 / (download) - annotate - [select for diffs], Tue Mar 2 15:18:22 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.103: +2 -7 lines
Diff to previous 1.103 (colored) to selected 1.21 (colored)

Remove last #ifdef FFS.  Do this by making lfs include ffs.
Could use UFS_OPS, but:

  1) the lfs kernel module depends on full ffs already anway
  2) lfs is being split from ufs, so this will automatically
     go away soon
  3) chances of anyone wanting an lfs-only kernel are pretty slim
  4) i'm too lazy to figure out how to test ffs_snapgone() is
     still called properly if I change the call ;)

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Sun Feb 14 13:55:29 2010 UTC (14 years, 2 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.99: +7 -5 lines
Diff to previous 1.99 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by dholland in ticket #1300):
	sys/ufs/ufs/ufs_lookup.c: revision 1.102
Avoid nasal demons. Code of the form
   vput(vp);
   error = VFS_VGET(vp->v_mount, ...);
just isn't right. Because of vnode caching this *probably* never bit
anyone, except maybe under very heavy load, but still.

Revision 1.103 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:12 2010 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored) to selected 1.21 (colored)

The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live
years ago when the kernel was modified to not alter ABI based on
DIAGNOSTIC, and now just call the respective function interfaces
(in lowercase).  Plenty of mix'n match upper/lowercase has creeped
into the tree since then.  Nuke the macros and convert all callsites
to lowercase.

no functional change

Revision 1.102 / (download) - annotate - [select for diffs], Mon Sep 28 00:39:03 2009 UTC (14 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.101: +7 -5 lines
Diff to previous 1.101 (colored) to selected 1.21 (colored)

Avoid nasal demons. Code of the form

   vput(vp);
   error = VFS_VGET(vp->v_mount, ...);

just isn't right. Because of vnode caching this *probably* never bit
anyone, except maybe under very heavy load, but still.

Revision 1.100.4.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.100: +21 -100 lines
Diff to previous 1.100 (colored) next main 1.101 (colored) to selected 1.21 (colored)

Sync with HEAD.

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

Revision 1.96.16.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.96: +54 -117 lines
Diff to previous 1.96 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.99.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.99.2.1: +21 -100 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.101 / (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-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.100: +21 -100 lines
Diff to previous 1.100 (colored) 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.99.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.99: +3 -4 lines
Diff to previous 1.99 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.96.12.4 / (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.96.12.3: +1 -2 lines
Diff to previous 1.96.12.3 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.98.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.98.4.1: +3 -4 lines
Diff to previous 1.98.4.1 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored) to selected 1.21 (colored)

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

Revision 1.100 / (download) - annotate - [select for diffs], Thu Nov 13 10:48:52 2008 UTC (15 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.99: +3 -4 lines
Diff to previous 1.99 (colored) to selected 1.21 (colored)

_KERNEL_OPT

Revision 1.98.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.98: +24 -10 lines
Diff to previous 1.98 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.96.12.3 / (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.96.12.2: +22 -8 lines
Diff to previous 1.96.12.2 (colored) to branchpoint 1.96 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.96.18.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.96.18.1: +24 -10 lines
Diff to previous 1.96.18.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.21 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:06 2008 UTC (15 years, 8 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.98: +24 -10 lines
Diff to previous 1.98 (colored) 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.98.2.6 / (download) - annotate - [select for diffs], Fri Jun 27 13:14:12 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.98.2.5: +3 -3 lines
Diff to previous 1.98.2.5 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored) to selected 1.21 (colored)

Add a comma to printf format string missing in previous.

Revision 1.98.2.5 / (download) - annotate - [select for diffs], Fri Jun 27 04:20:05 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.98.2.4: +6 -6 lines
Diff to previous 1.98.2.4 (colored) to branchpoint 1.98 (colored) to selected 1.21 (colored)

Fix some white-space nits.

Revision 1.98.2.4 / (download) - annotate - [select for diffs], Fri Jun 27 04:19:17 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.98.2.3: +3 -3 lines
Diff to previous 1.98.2.3 (colored) to branchpoint 1.98 (colored) to selected 1.21 (colored)

Do the UFS_WAPBL_UPDATE() after the call to UFS_TRUNCATE(), not before.

From Greg Oster.

Revision 1.98.2.3 / (download) - annotate - [select for diffs], Fri Jun 27 04:08:23 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.98.2.2: +4 -4 lines
Diff to previous 1.98.2.2 (colored) to branchpoint 1.98 (colored) to selected 1.21 (colored)

Use "%#x" to print hex values instead of "%x" - this made it really hard
to tell hex from decimal values especially when no observed values had
any a-f digits.

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Fri Jun 27 04:06:09 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.98.2.1: +3 -3 lines
Diff to previous 1.98.2.1 (colored) to branchpoint 1.98 (colored) to selected 1.21 (colored)

Use local "nameiop" variable instead of cnp->cn_nameiop as the rest of
this function already does.

Revision 1.96.18.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.96: +14 -11 lines
Diff to previous 1.96 (colored) to selected 1.21 (colored)

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

Revision 1.96.14.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:17 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.96.14.1: +4 -3 lines
Diff to previous 1.96.14.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.98.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.98: +17 -3 lines
Diff to previous 1.98 (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.96.12.2 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:37 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.96.12.1: +2 -1 lines
Diff to previous 1.96.12.1 (colored) to branchpoint 1.96 (colored) to selected 1.21 (colored)

Sync with HEAD.

Also fix build.

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

ufs_blkatoff: Update comment.

Revision 1.96.12.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.96: +12 -10 lines
Diff to previous 1.96 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.96.14.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.96: +12 -10 lines
Diff to previous 1.96 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.97 / (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-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Changes since 1.96: +12 -10 lines
Diff to previous 1.96 (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.63.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:48:16 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.2.6: +4 -4 lines
Diff to previous 1.63.2.6 (colored) next main 1.64 (colored) to selected 1.21 (colored)

sync with head

Revision 1.91.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:35 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.91.6.1: +9 -9 lines
Diff to previous 1.91.6.1 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored) to selected 1.21 (colored)

sync with HEAD

Revision 1.94.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:52 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.94.4.1: +4 -4 lines
Diff to previous 1.94.4.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:58:02 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.91.4.4 / (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.91.4.3: +4 -4 lines
Diff to previous 1.91.4.3 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:56 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa, mjf-devfs2
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored) 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.94.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:43 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.94: +7 -7 lines
Diff to previous 1.94 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.63.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:35:24 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.63.2.5: +7 -7 lines
Diff to previous 1.63.2.5 (colored) to selected 1.21 (colored)

sync with head

Revision 1.91.4.3 / (download) - annotate - [select for diffs], Tue Nov 27 19:39:30 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.91.4.2: +7 -7 lines
Diff to previous 1.91.4.2 (colored) to branchpoint 1.91 (colored) to selected 1.21 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:34 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.94: +7 -7 lines
Diff to previous 1.94 (colored) to selected 1.21 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

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

sync with HEAD

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

sync with head.

Revision 1.91.4.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:38 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.91.4.1: +7 -7 lines
Diff to previous 1.91.4.1 (colored) to branchpoint 1.91 (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.91.8.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:49:22 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.91.8.1: +7 -7 lines
Diff to previous 1.91.8.1 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.94 / (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, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) 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.88.2.5 / (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.88.2.4: +15 -8 lines
Diff to previous 1.88.2.4 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.93 / (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.92: +6 -6 lines
Diff to previous 1.92 (colored) to selected 1.21 (colored)

Merge ffs locking & brelse changes from the vmlocking branch.

Revision 1.91.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.91: +15 -8 lines
Diff to previous 1.91 (colored) to selected 1.21 (colored)

sync with head.

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

Sync with HEAD.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Sep 25 15:13:14 2007 UTC (16 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.91: +15 -8 lines
Diff to previous 1.91 (colored) to selected 1.21 (colored)

avoid variable size stack allocations

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

sync with head.

Revision 1.88.2.4 / (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.88.2.3: +4 -4 lines
Diff to previous 1.88.2.3 (colored) to branchpoint 1.88 (colored) to selected 1.21 (colored)

Sync with HEAD.

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

Sync with HEAD.

Revision 1.91.10.2 / (download) - annotate - [select for diffs], Mon Jul 23 14:58:05 2007 UTC (16 years, 9 months ago) by pooka
Branch: matt-mips64
Changes since 1.91.10.1: +1366 -0 lines
Diff to previous 1.91.10.1 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored) to selected 1.21 (colored)

comment police: DIRBLKSIZE would be too chatty and therefore the
macro is known as DIRBLKSIZ

Revision 1.91.10.1, Mon Jul 23 14:58:04 2007 UTC (16 years, 9 months ago) by pooka
Branch: matt-mips64
Changes since 1.91: +0 -1366 lines
FILE REMOVED

file ufs_lookup.c was added on branch matt-mips64 on 2007-07-23 14:58:05 +0000

Revision 1.91 / (download) - annotate - [select for diffs], Mon Jul 23 14:58:04 2007 UTC (16 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored) to selected 1.21 (colored)

comment police: DIRBLKSIZE would be too chatty and therefore the
macro is known as DIRBLKSIZ

Revision 1.90 / (download) - annotate - [select for diffs], Sat Jul 21 19:06:22 2007 UTC (16 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.89: +3 -2 lines
Diff to previous 1.89 (colored) to selected 1.21 (colored)

Don't depend on uvm_extern.h pulling in proc.h.

Revision 1.88.4.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.88: +3 -4 lines
Diff to previous 1.88 (colored) next main 1.89 (colored) to selected 1.21 (colored)

Sync with head.

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

Sync with head.

Revision 1.87.2.2 / (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.87.2.1: +3 -4 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.89 / (download) - annotate - [select for diffs], Thu May 17 07:26:22 2007 UTC (16 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.88: +3 -4 lines
Diff to previous 1.88 (colored) to selected 1.21 (colored)

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

Revision 1.88.2.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.88.2.1: +6 -6 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (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.88.2.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:57:54 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.88: +3 -2 lines
Diff to previous 1.88 (colored) to selected 1.21 (colored)

Compile fixes.

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 06:01:11 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.87: +10 -11 lines
Diff to previous 1.87 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.88 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:47 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.87: +10 -11 lines
Diff to previous 1.87 (colored) to selected 1.21 (colored)

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

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

sync with head.

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Sat Feb 17 23:27:53 2007 UTC (17 years, 2 months ago) by tron
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.80.2.1: +8 -39 lines
Diff to previous 1.80.2.1 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored) to selected 1.21 (colored)

Apply patch (requested by chs in ticket #422):
- Fix various deadlock problems with nullfs and unionfs.
- Speed up path lookups by upto 25%.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Fri Feb 16 20:05:36 2007 UTC (17 years, 2 months ago) by riz
Branch: netbsd-4
Changes since 1.80: +5 -5 lines
Diff to previous 1.80 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by chs in ticket #419):
	sys/ufs/ufs/ufs_lookup.c: revision 1.85-1.86
in ufs_dirremove swap ep->d_reclen before use if needed (affect UFS_DIRHASH
only).
While there remove an unneeded swap before compare against 0 in ufs_direnter().
Both pointed out by Pawel Jakub Dawidek on tech-kern@, thanks !
Add missing ')'. Noted by Paul Goyette.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:42 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored) to selected 1.21 (colored)

Merge newlock2 to head.

Revision 1.79.4.5 / (download) - annotate - [select for diffs], Fri Feb 9 21:03:54 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.79.4.4: +5 -5 lines
Diff to previous 1.79.4.4 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Feb 7 05:54:42 2007 UTC (17 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.21 (colored)

Add missing ')'. Noted by Paul Goyette.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Feb 6 20:49:20 2007 UTC (17 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.84: +5 -5 lines
Diff to previous 1.84 (colored) to selected 1.21 (colored)

in ufs_dirremove swap ep->d_reclen before use if needed (affect UFS_DIRHASH
only).
While there remove an unneeded swap before compare against 0 in ufs_direnter().
Both pointed out by Pawel Jakub Dawidek on tech-kern@, thanks !

Revision 1.79.4.4 / (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.79.4.3: +36 -20 lines
Diff to previous 1.79.4.3 (colored) to branchpoint 1.79 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.79.4.3 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:43 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.79.4.2: +3 -3 lines
Diff to previous 1.79.4.2 (colored) to branchpoint 1.79 (colored) to selected 1.21 (colored)

Remove support for SA. Ok core@.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Jan 29 15:42:50 2007 UTC (17 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored) to selected 1.21 (colored)

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

From Antti Kantee <pooka@netbsd.org>

Revision 1.83 / (download) - annotate - [select for diffs], Fri Jan 19 14:49:13 2007 UTC (17 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.82: +36 -20 lines
Diff to previous 1.82 (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.79.4.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.79.4.1: +10 -40 lines
Diff to previous 1.79.4.1 (colored) to branchpoint 1.79 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.82 / (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.81: +4 -3 lines
Diff to previous 1.81 (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: +17 -42 lines
Diff to previous 1.63.2.1 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.79.6.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:33 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.79: +14 -39 lines
Diff to previous 1.79 (colored) next main 1.80 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:52 2006 UTC (17 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.80: +8 -39 lines
Diff to previous 1.80 (colored) to selected 1.21 (colored)

a smorgasbord of improvements to vnode locking and path lookup:
 - LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP().
   these now always return the parent vnode locked.  namei() works as before.
   lookup() and various other paths no longer acquire vnode locks in the
   wrong order via vrele().  fixes PR 32535.
   as a nice side effect, path lookup is also up to 25% faster.
 - the above allows us to get rid of PDIRUNLOCK.
 - also get rid of WANTPARENT (just use LOCKPARENT and unlock it).
 - remove an assumption in layer_node_find() that all file systems implement
   a recursive VOP_LOCK() (unionfs doesn't).
 - require that all file systems supply vfs_vptofh and vfs_fhtovp routines.
   fill in eopnotsupp() for file systems that don't support being exported
   and remove the checks for NULL.  (layerfs calls these without checking.)
 - in union_lookup1(), don't change refcounts in the ISDOTDOT case, just
   adjust which vnode is locked.  fixes PR 33374.
 - apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().

Revision 1.79.4.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.79: +8 -2 lines
Diff to previous 1.79 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Nov 16 22:29:03 2006 UTC (17 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.79: +8 -2 lines
Diff to previous 1.79 (colored) to selected 1.21 (colored)

LFS will never set SF_SNAPSHOT and doesn't support ffs_snapgone anyway.
So conditionally the calls to that function on the inclusion of FFS and
allow a LFS-only kernel to link.

Revision 1.73.2.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.73: +15 -13 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.21 (colored)

sync with head

Revision 1.73.6.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:47:37 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.73.6.3: +3 -3 lines
Diff to previous 1.73.6.3 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.21 (colored)

sync with head

Revision 1.79 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:15 2006 UTC (17 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored) to selected 1.21 (colored)

Use the LWP cached credentials where sane.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:50:13 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.21 (colored)

Merge from HEAD.

Revision 1.73.6.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:54:50 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.73.6.2: +4 -4 lines
Diff to previous 1.73.6.2 (colored) to branchpoint 1.73 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Jun 23 14:13:02 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) to selected 1.21 (colored)

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

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

XXX check other filesystems.

Revision 1.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: +140 -79 lines
Diff to previous 1.63 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:11:44 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.21 (colored)

Sync with head.

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

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

Revision 1.73.4.3 / (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.73.4.2: +11 -10 lines
Diff to previous 1.73.4.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.73.10.2 / (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.73.10.1: +10 -8 lines
Diff to previous 1.73.10.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.21 (colored)

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

Revision 1.73.6.2 / (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.73.6.1: +12 -10 lines
Diff to previous 1.73.6.1 (colored) to branchpoint 1.73 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.76 / (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-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.75: +11 -10 lines
Diff to previous 1.75 (colored) to selected 1.21 (colored)

integrate kauth.

Revision 1.73.8.3 / (download) - annotate - [select for diffs], Sat May 6 23:32:58 2006 UTC (17 years, 11 months ago) by christos
Branch: elad-kernelauth
Changes since 1.73.8.2: +3 -2 lines
Diff to previous 1.73.8.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.21 (colored)

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

Approved by core.

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

Sync with head.

Revision 1.73.8.2 / (download) - annotate - [select for diffs], Wed Apr 19 03:54:14 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.73.8.1: +4 -3 lines
Diff to previous 1.73.8.1 (colored) to branchpoint 1.73 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Apr 15 05:32:29 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored) to selected 1.21 (colored)

Coverity CID 1166: Add KASSERT before deref.

Revision 1.73.6.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:57 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.73.10.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:30 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.73: +1 -1 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

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

Revision 1.74 / (download) - annotate - [select for diffs], Thu Mar 30 12:40:06 2006 UTC (18 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.73: +1 -1 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

some cleanups after the introduction of GOP_SIZE_MEM flag.
- remove GOP_SIZE_READ/GOP_SIZE_WRITE flags.
  they have not been used since the change.
- ufs_balloc_range: remove code which has been no-op since the change.
  thanks Konrad Schroder for explaining the original intention of the code.
- ffs_gop_size: don't extend past eof, in the case of GOP_SIZE_MEM.
  otherwise genfs_getpages end up to allocate pages past eof unnecessarily.

Revision 1.73.8.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.73: +10 -10 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

Adapt to kernel authorization KPI.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:12:50 2006 UTC (18 years, 2 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

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

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:03:05 2006 UTC (18 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.70: +99 -19 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Jan 14 17:41:18 2006 UTC (18 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.72: +66 -6 lines
Diff to previous 1.72 (colored) to selected 1.21 (colored)

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

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jan 14 09:09:02 2006 UTC (18 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.71: +30 -10 lines
Diff to previous 1.71 (colored) to selected 1.21 (colored)

pull freebsd's ufs_lookup.c rev.1.53 and 1.54.  PR/31873.

> ----------------------------
> revision 1.54
> date: 2001/08/26 01:25:12;  author: iedowse;  state: Exp;  lines: +30 -12
> When compacting directories, ufs_direnter() always trusted DIRSIZ()
> to supply the number of bytes to be bcopy()'d to move an entry. If
> d_ino == 0 however, DIRSIZ() is not guaranteed to return a sensible
> length, so ufs_direnter could end up corrupting a directory during
> compaction. In practice I believe this can only happen after fsck_ffs
> has fixed a previously-corrupted directory.
>
> We now deal with any mid-block unused entries specially to avoid
> using DIRSIZ() or bcopy() on such entries. We also ensure that the
> variables 'dsize' and 'spacefree' contain meaningful values at all
> times. Add a few comments to describe better this intricate piece
> of code.
>
> The special handling of mid-block unused entries makes the dirhash-
> specific bugfix in the previous revision (1.53) now uncecessary,
> so this change removes it.
>
> Reviewed by:  mckusick
> ----------------------------
> revision 1.53
> date: 2001/08/22 01:35:17;  author: iedowse;  state: Exp;  lines: +2 -2
> When compressing directory blocks, the dirhash code didn't check
> that the directory entry was in use before attempting to find it
> in the hash structures to change its offset. Normally, unused
> entries do not need to be moved, but fsck can leave behind some
> unused entries that do. A dirhash sanity panic resulted when the
> entry to be moved was not found. Add a check that stops entries
> with d_ino == 0 from being passed to ufsdirhash_move().

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jan 13 00:50:58 2006 UTC (18 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.21 (colored)

FSFMT: whitespace.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:28 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.69: +10 -10 lines
Diff to previous 1.69 (colored) to selected 1.21 (colored)

merge ktrace-lwp.

Revision 1.47.2.10 / (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.47.2.9: +35 -56 lines
Diff to previous 1.47.2.9 (colored) next main 1.48 (colored) to selected 1.21 (colored)

Sync with HEAD. Here we go again...

Revision 1.69 / (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-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.68: +12 -12 lines
Diff to previous 1.68 (colored) 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.68.2.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.68: +12 -12 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.21 (colored)

adapt ufs.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Sep 26 13:52:20 2005 UTC (18 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored) to selected 1.21 (colored)

always use nanotime rather than time.
it's bad to mix nanotime and time because it sometimes
make timestamps go backwards.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 23 08:05:13 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) to selected 1.21 (colored)

Don't overload MAXNAMLEN, use a separate constant for each filesystem type.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Aug 19 02:04:09 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.65: +5 -4 lines
Diff to previous 1.65 (colored) to selected 1.21 (colored)

64 bit inode changes.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jul 10 01:08:52 2005 UTC (18 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +6 -2 lines
Diff to previous 1.64 (colored) to selected 1.21 (colored)

Defflag UFS_DIRHASH.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jul 10 00:18:52 2005 UTC (18 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +14 -40 lines
Diff to previous 1.63 (colored) to selected 1.21 (colored)

- Use ANSI function decls.
- Sprinkle some static.

Revision 1.63 / (download) - annotate - [select for diffs], Sun May 29 21:25:24 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.21 (colored)

- sprinkle const
- avoid shadow variables.

Revision 1.60.4.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: +99 -3 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.21 (colored)

sync with -current

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

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

Revision 1.47.2.9 / (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.47.2.8: +3 -3 lines
Diff to previous 1.47.2.8 (colored) to selected 1.21 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.62 / (download) - annotate - [select for diffs], Sat Feb 26 22:32:20 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.21 (colored)

nuke trailing whitespace

Revision 1.47.2.8 / (download) - annotate - [select for diffs], Mon Jan 24 08:36:05 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.7: +98 -2 lines
Diff to previous 1.47.2.7 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jan 23 19:37:05 2005 UTC (19 years, 2 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km
Changes since 1.60: +98 -2 lines
Diff to previous 1.60 (colored) to selected 1.21 (colored)

Bring in Ian Dowse's Dirhash from FreeBSD. Hash tables of
directories are created on the fly and used to increase
performance by circumventing ufs_lookup's linear search.

Dirhash is enabled by the UFS_DIRHASH option, but not
by default.

Revision 1.47.2.7 / (download) - annotate - [select for diffs], Wed Oct 27 06:24:01 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.6: +3 -4 lines
Diff to previous 1.47.2.6 (colored) to selected 1.21 (colored)

Remove the struct lwp * arguments from qsync and ufs_checkpath that are
no longer (read: were never) required.

Revision 1.47.2.6 / (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.47.2.5: +12 -11 lines
Diff to previous 1.47.2.5 (colored) to selected 1.21 (colored)

Fix the sync with head I botched.

Revision 1.47.2.5 / (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.47.2.4: +13 -14 lines
Diff to previous 1.47.2.4 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 17 14:11:27 2004 UTC (19 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.59: +4 -4 lines
Diff to previous 1.59 (colored) to selected 1.21 (colored)

There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).

OK'd by Jason Thorpe

Revision 1.47.2.4 / (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.47.2.3: +49 -69 lines
Diff to previous 1.47.2.3 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:56 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.2: +7 -7 lines
Diff to previous 1.47.2.2 (colored) to selected 1.21 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

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

Repair some FFS_EI code for ufsmount changes.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Aug 15 07:19:58 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +45 -63 lines
Diff to previous 1.57 (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.47.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.47.2.1: +41 -23 lines
Diff to previous 1.47.2.1 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.57 / (download) - annotate - [select for diffs], Tue May 25 14:55:46 2004 UTC (19 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.56: +17 -2 lines
Diff to previous 1.56 (colored) to selected 1.21 (colored)

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

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

Welcome to 2.0F.

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

Revision 1.56 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:46 2004 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.21 (colored)

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

Revision 1.55 / (download) - annotate - [select for diffs], Sat Mar 6 06:54:12 2004 UTC (20 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.54: +7 -23 lines
Diff to previous 1.54 (colored) to selected 1.21 (colored)

revert ufs_lookup.c rev.1.53 (MNT_ASYNC changes)
it was redundant because our bwrite() knows about MNT_ASYNC.

ok'ed by Jaromir Dolecek and Chuck Silvers.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Nov 8 06:36:13 2003 UTC (20 years, 5 months ago) by dbj
Branch: MAIN
Changes since 1.53: +8 -5 lines
Diff to previous 1.53 (colored) to selected 1.21 (colored)

comment out unnecessary IN_CHANGE|IN_UPDATE in lookup
move softdep specific lock release/regrab inside if DOINGSOFTDEP

Revision 1.53 / (download) - annotate - [select for diffs], Sat Sep 20 21:05:53 2003 UTC (20 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.52: +23 -7 lines
Diff to previous 1.52 (colored) to selected 1.21 (colored)

if mounted ASYNC, use delayed writes for metadata, which improves performance
of these operations significantly
based on FreeBSD ufs_lookup.c rev. 1.8, by John Dyson

Revision 1.52 / (download) - annotate - [select for diffs], Mon Sep 15 15:08:09 2003 UTC (20 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.51: +11 -11 lines
Diff to previous 1.51 (colored) to selected 1.21 (colored)

indent.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Sep 11 17:33:43 2003 UTC (20 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.50: +4 -3 lines
Diff to previous 1.50 (colored) to selected 1.21 (colored)

PR/15397: Jason Thorpe: directory operations on pathnames that refer to
directories and have trailing slashes should succeed. Ok'd by kjk.
Fix provided by enami.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:45 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.49: +3 -7 lines
Diff to previous 1.49 (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.49 / (download) - annotate - [select for diffs], Tue Aug 5 15:45:48 2003 UTC (20 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.48: +5 -4 lines
Diff to previous 1.48 (colored) to selected 1.21 (colored)

Pass the inode flags to set as an argument to ufs_dirrewrite().
Use it to restore the behaviour of not updating the modified time of a
directory that moves to a new parent.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Jul 23 13:56:53 2003 UTC (20 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.47: +4 -2 lines
Diff to previous 1.47 (colored) to selected 1.21 (colored)

yield cpu in directory entry search loop in ufs_lookup().
this loop can take a bit long time with large buffer cache.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:27 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.47: +19 -18 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:47 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.46: +13 -14 lines
Diff to previous 1.46 (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.46 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:48 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +7 -7 lines
Diff to previous 1.45 (colored) to selected 1.21 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:29 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.44: +19 -18 lines
Diff to previous 1.44 (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.44 / (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.43: +7 -7 lines
Diff to previous 1.43 (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.43 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:44 2003 UTC (21 years ago) by fvdl
Branch: MAIN
Changes since 1.42: +26 -22 lines
Diff to previous 1.42 (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.33.2.5 / (download) - annotate - [select for diffs], Wed Dec 11 06:51:48 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.33.2.4: +12 -11 lines
Diff to previous 1.33.2.4 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Nov 26 01:23:31 2002 UTC (21 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.41: +11 -10 lines
Diff to previous 1.41 (colored) to selected 1.21 (colored)

eliminate i_ino from in-core inode
and use local variable instead.

ok'ed by Frank van der Linden.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Nov 25 01:55:21 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (colored) to selected 1.21 (colored)

Avoid strict-alias warnings.

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Fri Oct 18 02:45:57 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.3: +32 -20 lines
Diff to previous 1.33.2.3 (colored) to branchpoint 1.33 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.33.6.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:45:00 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.33.6.2: +32 -20 lines
Diff to previous 1.33.6.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.21 (colored)

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

Revision 1.40 / (download) - annotate - [select for diffs], Sat Sep 28 20:11:09 2002 UTC (21 years, 6 months ago) by dbj
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.39: +32 -20 lines
Diff to previous 1.39 (colored) to selected 1.21 (colored)

Add support for the Apple UFS variation on ffs
This is the bulk of PR #17345

The general approach is to use a run time deteriminable value
for DIRBLKSIZ.  Additional allowances are included for using
MAXSYMLINKLEN with FS_42INODEFMT and a shift in the cylinder group
cluster summary count array.  Support is added for managing
the Apple UFS volume label.

Revision 1.33.6.2 / (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.33.6.1: +2 -3 lines
Diff to previous 1.33.6.1 (colored) to branchpoint 1.33 (colored) to selected 1.21 (colored)

catch up with -current on kqueue branch

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Thu Jun 20 03:50:36 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.2: +2 -3 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Sun May 12 23:06:30 2002 UTC (21 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, gehenna-devsw-base, gehenna-devsw
Changes since 1.38: +2 -3 lines
Diff to previous 1.38 (colored) to selected 1.21 (colored)

Eliminate commons.

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:05:23 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.33: +43 -19 lines
Diff to previous 1.33 (colored) to selected 1.21 (colored)

Sync kqueue branch with -current.

Revision 1.33.2.2 / (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.33.2.1: +41 -19 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Dec 18 10:57:23 2001 UTC (22 years, 4 months ago) by fvdl
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.37: +28 -6 lines
Diff to previous 1.37 (colored) to selected 1.21 (colored)

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

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

Revision 1.37 / (download) - annotate - [select for diffs], Mon Nov 19 11:56:50 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.36: +4 -2 lines
Diff to previous 1.36 (colored) to selected 1.21 (colored)

fix compile error noted by itojun in [kern/14638]

Revision 1.36 / (download) - annotate - [select for diffs], Mon Nov 19 07:00:21 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.35: +13 -15 lines
Diff to previous 1.35 (colored) to selected 1.21 (colored)

be consistent and cache UFS_*NEEDSWAP results in more functions

Revision 1.33.2.1 / (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.33: +4 -2 lines
Diff to previous 1.33 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.33.10.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:50 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.33: +4 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.21 (colored)

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

Revision 1.35 / (download) - annotate - [select for diffs], Thu Nov 8 02:39:16 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored) to selected 1.21 (colored)

add RCSID

Revision 1.34 / (download) - annotate - [select for diffs], Fri Oct 26 05:56:10 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.33: +1 -2 lines
Diff to previous 1.33 (colored) to selected 1.21 (colored)

remove #include <ufs/ufs/quota.h> where it was just to appease
<ufs/ufs/inode.h>, since the latter now includes the former.  leave the former
in source that obviously uses specific bits of it (for completeness.)

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 13:32:07 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.1: +5 -5 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Feb 26 20:25:11 2001 UTC (23 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, perseant-lfsv2-base, perseant-lfsv2
Branch point for: thorpej-mips-cache, nathanw_sa, kqueue
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored) to selected 1.21 (colored)

Some bugfixes from rev 1.33 and 1.34 of this file in FreeBSD (some
in effect cosmetic). Original FreeBSD commit messages:

==
date: 2000/03/15 07:18:15;  author: mckusick;  state: Exp;  lines: +4 -4
Bug fixes for currently harmless bugs that could rise to bite
the unwary if the code were called in slightly different ways.

[...]

2) In ufs_lookup() there is an off-by-one error in the test that checks
if dp->i_diroff is outside the range of the the current directory size.
This is completely harmless, since the following while-loop condition
'dp->i_offset < endsearch' is never met, so the code immediately
does a second pass starting at dp->i_offset = 0.

3) Again in ufs_lookup(), the condition in a sanity check is wrong
for directories that are longer than one block. This bug means that
the sanity check is only effective for small directories.

Submitted by:   Ian Dowse <iedowse@maths.tcd.ie>

==

date: 2000/03/09 18:54:59;  author: dillon;  state: Exp;  lines: +2 -2
    In the 'found' case for ufs_lookup() the underlying bp's data was
    being accessed after the bp had been releaed.  A simple move of the
    brelse() solves the problem.

Approved by: jkh
Submitted by:  Ian Dowse <iedowse@maths.tcd.ie>

==

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

Update thorpej_scsipi to -current as of a month ago

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 28 14:16:43 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.31: +1 -4 lines
Diff to previous 1.31 (colored) to selected 1.21 (colored)

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

Revision 1.31 / (download) - annotate - [select for diffs], Sat May 13 23:43:16 2000 UTC (23 years, 11 months ago) by perseant
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) 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.30 / (download) - annotate - [select for diffs], Thu Mar 30 12:41:14 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.29: +9 -9 lines
Diff to previous 1.29 (colored) to selected 1.21 (colored)

Remove register declarations.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 20 06:34:46 2000 UTC (24 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.28: +1 -3 lines
Diff to previous 1.28 (colored) to selected 1.21 (colored)

remove obsoleted #if defined(UVM)

Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 14 22:00:23 2000 UTC (24 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.27: +19 -8 lines
Diff to previous 1.27 (colored) to selected 1.21 (colored)

Fixes to the softdep code from Ethan Solomita <ethan@geocast.com>.
* Fix buffer ordering when it has dependencies.
* Alleviate memory problems.
* Deal with some recursive vnode locks (sigh).
* Fix other bugs.

Revision 1.26.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:41 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.26: +192 -119 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.21 (colored)

Pull up to last week's -current.

Revision 1.27 / (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.26: +192 -119 lines
Diff to previous 1.26 (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.26.4.2 / (download) - annotate - [select for diffs], Tue Oct 26 19:15:20 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.26.4.1: +2 -2 lines
Diff to previous 1.26.4.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.21 (colored)

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

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

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:50 1999 UTC (24 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.26: +191 -118 lines
Diff to previous 1.26 (colored) to selected 1.21 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Sun Sep 5 14:26:33 1999 UTC (24 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.25: +3 -54 lines
Diff to previous 1.25 (colored) to selected 1.21 (colored)

Adapt to cache_lookup() changes.

Tested by: jdolecek
Rewieved by: wrstuden

Revision 1.25 / (download) - annotate - [select for diffs], Wed Aug 4 18:40:06 1999 UTC (24 years, 8 months ago) by wrstuden
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored) to selected 1.21 (colored)

Make the compiler happy..

Revision 1.24 / (download) - annotate - [select for diffs], Wed Aug 4 18:14:59 1999 UTC (24 years, 8 months ago) by wrstuden
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.21 (colored)

Fix tyop in previous.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Aug 4 18:07:39 1999 UTC (24 years, 8 months ago) by wrstuden
Branch: MAIN
Changes since 1.22: +7 -6 lines
Diff to previous 1.22 (colored) to selected 1.21 (colored)

Modify ISDOTDOT case so that we only clear PDIRUNLOCK if we really
re-lock the parent vnode.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:58:22 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.20: +34 -11 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Update from trunk.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 30 01:55:38 1999 UTC (24 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Make one code path a bit clearer.

Revision 1.21 / (download) - annotate - [selected], Thu Jul 8 01:06:07 1999 UTC (24 years, 9 months ago) by wrstuden
Branch: MAIN
Changes since 1.20: +33 -10 lines
Diff to previous 1.20 (colored)

Modify file systems to deal with struct lock in struct vnode. All leaf
fs's other than nfs use genfs_lock() for locking.

Modify lookup routines to set PDIRUNLOCK when they unlock the parrent.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 12 01:39:43 1999 UTC (25 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.21 (colored)

Fix printf format problems on Alpha.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 8 08:37:12 1998 UTC (25 years, 7 months ago) by fvdl
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) to selected 1.21 (colored)

Fix some maxsymlinklen comparisons for old filesystems that were
wrong after the byteswap changes.

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

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

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 28 18:37:48 1998 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.16: +4 -3 lines
Diff to previous 1.16 (colored) to selected 1.21 (colored)

Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,
to match the new uio_resid type.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jun 13 16:26:23 1998 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.15: +65 -60 lines
Diff to previous 1.15 (colored) to selected 1.21 (colored)

KNF, mostly of FFS_EI changes.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 18 15:57:29 1998 UTC (26 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.14: +112 -52 lines
Diff to previous 1.14 (colored) to selected 1.21 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:37 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.13: +20 -23 lines
Diff to previous 1.13 (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:07 1998 UTC (26 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +103 -43 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:51 1998 UTC (26 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1: +4 -17 lines
Diff to previous 1.1 (colored) to selected 1.21 (colored)

Import 4.4BSD-Lite for reference

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 11 10:10:13 1997 UTC (26 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.12: +17 -17 lines
Diff to previous 1.12 (colored) 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.12 / (download) - annotate - [select for diffs], Mon May 12 19:04:16 1997 UTC (26 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.11: +7 -1 lines
Diff to previous 1.11 (colored) to selected 1.21 (colored)

When doing a CREATE, RENAME or DELETE w/ DOWHITEOUT and ISWHITEOUT lookup on a
non-existent file and the end of the pathname is reached, and this `current'
directory resides on a read-only mounted file system, don't update/prepare
its inode for the actual operation but return EROFS.

Revision 1.11 / (download) - annotate - [select for diffs], Thu May 8 16:20:44 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +2 -4 lines
Diff to previous 1.10 (colored) to selected 1.21 (colored)

Pass the vnode type to vaccess(), and use it when checking VEXEC.  Make sure
that the mode bits passed to vaccess() and returned by foo_getattr() contain
only permission bits.

Revision 1.10 / (download) - annotate - [select for diffs], Thu May 8 10:57:47 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.21 (colored)

VEXEC -> VLOOKUP, as appropriate.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 12 21:58:56 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored) to selected 1.21 (colored)

revert previous kprintf changes

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 10 17:21:33 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored) to selected 1.21 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.7 / (download) - annotate - [select for diffs], Fri Feb 9 22:36:06 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.6: +43 -26 lines
Diff to previous 1.6 (colored) to selected 1.21 (colored)

ufs prototype changes

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 30 11:41:38 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.5: +20 -3 lines
Diff to previous 1.5 (colored) to selected 1.21 (colored)

Fix thinko in previous commit.  Do this as suggested by John Kohl.

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 30 10:44:49 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +3 -4 lines
Diff to previous 1.4 (colored) to selected 1.21 (colored)

When replacing a whiteout, set i_endoff to 0, so the directory cannot be
shrunk.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Dec 30 22:45:55 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored) to selected 1.21 (colored)

Don't look at d_type for old format file systems.

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

Sync with CSRG.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 29 06:47:29 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.1: +3 -2 lines
Diff to previous 1.1 (colored) to selected 1.21 (colored)

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

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