The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.48 / (download) - annotate - [select for diffs], Sun May 22 11:27:36 2022 UTC (22 months, 4 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.30 (colored)

fix various small typos, mainly in comments.

Revision 1.47 / (download) - annotate - [select for diffs], Fri May 13 15:02:34 2022 UTC (23 months, 1 week ago) by reinoud
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) to selected 1.30 (colored)

Fix typo dallocate -> deallocate

Revision 1.41.10.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:45 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.41.10.2: +0 -4 lines
Diff to previous 1.41.10.2 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.30 (colored)

Sync with HEAD

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:14 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.45: +2 -6 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.30 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Sat Apr 11 17:43:54 2020 UTC (4 years ago) by jdolecek
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, phil-wifi-20200421, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.45: +2 -6 lines
Diff to previous 1.45 (colored) to selected 1.30 (colored)

remove noncompilable WAPBL_DEBUG_INODES

PR kern/49554 by Thomas Klausner

Revision 1.41.10.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:03 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.41.10.1: +6 -5 lines
Diff to previous 1.41.10.1 (colored) to branchpoint 1.41 (colored) to selected 1.30 (colored)

Merge changes from current as of 20200406

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:37 2020 UTC (4 years, 3 months ago) by ad
Branch: ad-namecache
Changes since 1.44: +6 -5 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.30 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jan 17 20:08:10 2020 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Branch point for: bouyer-xenpvh
Changes since 1.44: +6 -5 lines
Diff to previous 1.44 (colored) to selected 1.30 (colored)

VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode.  Matches
FreeBSD.

Revision 1.41.10.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:57 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.41: +9 -9 lines
Diff to previous 1.41 (colored) to selected 1.30 (colored)

Sync with HEAD

Revision 1.41.8.3 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:59 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.41.8.2: +3 -3 lines
Diff to previous 1.41.8.2 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.30 (colored)

Synch with HEAD

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jan 1 10:06:55 2019 UTC (5 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, 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, isaki-audio2-base, isaki-audio2, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.30 (colored)

Add "void *extra" argument to vcache_new() so a file system may
pass more information about the file to create.

Welcome to 8.99.30

Revision 1.41.8.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:08 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.41.8.1: +3 -3 lines
Diff to previous 1.41.8.1 (colored) to branchpoint 1.41 (colored) to selected 1.30 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.43 / (download) - annotate - [select for diffs], Mon Dec 10 19:29:41 2018 UTC (5 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-1226
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.30 (colored)

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

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

Revision 1.41.8.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:47 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.41: +7 -7 lines
Diff to previous 1.41 (colored) to selected 1.30 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.42 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:37 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.41: +7 -7 lines
Diff to previous 1.41 (colored) to selected 1.30 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.17.18.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:21 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.17.18.2: +100 -61 lines
Diff to previous 1.17.18.2 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.30 (colored)

update from HEAD

Revision 1.28.4.4 / (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.28.4.3: +17 -6 lines
Diff to previous 1.28.4.3 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored) to selected 1.30 (colored)

Sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Sun May 28 16:37:55 2017 UTC (6 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.40: +4 -6 lines
Diff to previous 1.40 (colored) to selected 1.30 (colored)

No need to call vgone() on the just created in file system log vnode,
vput() is sufficient.

Revision 1.30.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:31 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.30.2.3: +7 -7 lines
Diff to previous 1.30.2.3 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored) to selected 1.30 (colored)

Sync with HEAD

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

Sync with HEAD

Revision 1.40 / (download) - annotate - [select for diffs], Wed Mar 22 21:30:59 2017 UTC (7 years ago) by jdolecek
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Changes since 1.39: +7 -7 lines
Diff to previous 1.39 (colored) to selected 1.30 (colored)

move the ffs_sync() after wapbl_log_position() call, since that can still
create delayed writes with MNT_ASYNC when log is created

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

Sync with HEAD

Revision 1.39 / (download) - annotate - [select for diffs], Thu Mar 16 22:09:19 2017 UTC (7 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.38: +10 -4 lines
Diff to previous 1.38 (colored) to selected 1.30 (colored)

need to turn off async during ffs_sync(), otherwise its bwrite() calls are
themselves turned to bdwrite(), creating dirty delayed writes

fixes panic for 'mount -o log,async ...' reported by Masanobu SAITOH
on current-users; fix help by hannken@, thank you

Revision 1.38 / (download) - annotate - [select for diffs], Fri Mar 10 22:43:03 2017 UTC (7 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.37: +9 -2 lines
Diff to previous 1.37 (colored) to selected 1.30 (colored)

sync any delayed writes when updating filesystem to log

Adresses PR kern/52056 by Martin Husemann, fix helped by Juergen Hannken, thanks

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:53 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.30.2.1: +21 -4 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored) to selected 1.30 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.28.4.3 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:30 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.28.4.2: +21 -4 lines
Diff to previous 1.28.4.2 (colored) to branchpoint 1.28 (colored) to selected 1.30 (colored)

Sync with HEAD

Revision 1.37 / (download) - annotate - [select for diffs], Thu Nov 10 22:19:23 2016 UTC (7 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.36: +19 -2 lines
Diff to previous 1.36 (colored) to selected 1.30 (colored)

disable discard when log is enabled to preserve log consistency promise

PR kern/50725

Revision 1.36 / (download) - annotate - [select for diffs], Thu Nov 10 20:56:32 2016 UTC (7 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) to selected 1.30 (colored)

during truncate with wapbl, register deallocation for upper indirect block
before recursing into lower blocks, to make sure that it will be removed after
all its referenced blocks are removed

fixes 'ffs_blkfree_common: freeing free block' panic triggered by
ufs_truncate_retry() when just the upper indirect block registration failed,
code tried to free the lower blocks again after wapbl flush

problem found by hannken@, thank you

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:22 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.30: +54 -46 lines
Diff to previous 1.30 (colored)

Sync with HEAD

Revision 1.28.4.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:12 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.28.4.1: +56 -48 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored) to selected 1.30 (colored)

Sync with HEAD

Revision 1.35 / (download) - annotate - [select for diffs], Sun Oct 2 19:02:57 2016 UTC (7 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004
Changes since 1.34: +35 -31 lines
Diff to previous 1.34 (colored) to selected 1.30 (colored)

use __func__ and print the filesystem we are printing the message for.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Oct 1 13:15:45 2016 UTC (7 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.33: +12 -13 lines
Diff to previous 1.33 (colored) to selected 1.30 (colored)

allocate wapbl dealloc registration structures via pool, so that there is more
flexibility with limit handling

Revision 1.33 / (download) - annotate - [select for diffs], Sat Oct 1 13:06:20 2016 UTC (7 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored) to selected 1.30 (colored)

wapbl_remove_log(): add missing break; harmless, fallthrough just printed
extra debug message

Revision 1.32 / (download) - annotate - [select for diffs], Sat Sep 24 21:00:54 2016 UTC (7 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) to selected 1.30 (colored)

fix swapped KASSERT()

Revision 1.31 / (download) - annotate - [select for diffs], Sat Sep 24 20:59:51 2016 UTC (7 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.30: +10 -6 lines
Diff to previous 1.30 (colored)

i/o optimization for wapbl flush - only sync superblock and cgs when
they were actually changed

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:32 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.28: +18 -15 lines
Diff to previous 1.28 (colored) to selected 1.30 (colored)

Sync with HEAD

Revision 1.30 / (download) - annotate - [selected], Sat Mar 28 19:24:04 2015 UTC (9 years ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

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

ok hannken@

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 17 09:39:29 2015 UTC (9 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.28: +17 -14 lines
Diff to previous 1.28 (colored) to selected 1.30 (colored)

Change ffs to use vcache_new:
- Change ffs_valloc to return an inode number.
- Remove now obsolete UFS operations UFS_VALLOC and UFS_VFREE.
- Make ufs_makeinode private to ufs_vnops.c and pass vattr instead of mode.

Revision 1.17.18.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:44 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.17.18.1: +34 -28 lines
Diff to previous 1.17.18.1 (colored) to branchpoint 1.17 (colored) to selected 1.30 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.25.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.25: +20 -12 lines
Diff to previous 1.25 (colored) next main 1.26 (colored) to selected 1.30 (colored)

Rebase.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jul 11 16:17:29 2014 UTC (9 years, 9 months ago) by christos
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.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.30 (colored)

move the flag setting higher to avoid KASSERT (dholland)

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 10 15:15:54 2014 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.26: +10 -9 lines
Diff to previous 1.26 (colored) to selected 1.30 (colored)

CID 975226: hande error from UFS_WAPBL_BEGIN

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jul 10 06:27:15 2014 UTC (9 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.25: +12 -5 lines
Diff to previous 1.25 (colored) to selected 1.30 (colored)

Fix unchecked UFS_WAPBL_BEGIN. Coverity 975226.
Unfortunately it looks like all we can do on error here is printf.

Revision 1.17.8.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:18 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.17.8.1: +16 -18 lines
Diff to previous 1.17.8.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.30 (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.22.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:21 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.22: +3 -5 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.30 (colored)

sync with head

Revision 1.25 / (download) - annotate - [select for diffs], Fri Oct 25 11:35:55 2013 UTC (10 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.30 (colored)

Turn a few __unused into __diagused

Revision 1.24 / (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.23: +2 -4 lines
Diff to previous 1.23 (colored) to selected 1.30 (colored)

Definining needswap where needed.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Oct 19 19:29:59 2013 UTC (10 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.30 (colored)

Mark a potentially unused variable

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 23 22:03:34 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored) to selected 1.30 (colored)

Stick ffs_ in front of the following macros:
   fragstoblks()
   blkstofrags()
   fragnum()
   blknum()

to finish the job of distinguishing them from the lfs versions, which
Christos renamed the other day.

I believe this is the last of the overtly ambiguous exported symbols
from ffs... or at least, the last of the ones that conflicted with lfs.
ffs still pollutes the C namespace very broadly (as does ufs) and this
needs quite a bit more cleanup.

XXX: boo on macros with lowercase names. But I'm not tackling that just yet.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jun 23 07:28:37 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.20: +7 -7 lines
Diff to previous 1.20 (colored) to selected 1.30 (colored)

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

   lblkno
   lblktosize
   lfragtosize
   numfrags
   blkroundup
   fragroundup

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 23 02:06:05 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.19: +7 -7 lines
Diff to previous 1.19 (colored) to selected 1.30 (colored)

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

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

Revision 1.17.18.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:16 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.17: +8 -5 lines
Diff to previous 1.17 (colored) to selected 1.30 (colored)

resync with head

Revision 1.17.8.1 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:33 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.17: +8 -5 lines
Diff to previous 1.17 (colored) to selected 1.30 (colored)

sync with head

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:16 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.18: +4 -4 lines
Diff to previous 1.18 (colored) to selected 1.30 (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.18 / (download) - annotate - [select for diffs], Thu Dec 20 08:03:44 2012 UTC (11 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored) to selected 1.30 (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.15.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:56:32 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.15: +13 -7 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.30 (colored)

sync with head

Revision 1.17 / (download) - annotate - [select for diffs], Fri Dec 24 13:38:57 2010 UTC (13 years, 3 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-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, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.16: +8 -6 lines
Diff to previous 1.16 (colored) to selected 1.30 (colored)

For update mounts the root vnode is already in use and we must not
free it. Since the mount persists even when the update fails,
this is not a problem either.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 23 14:43:37 2010 UTC (13 years, 3 months ago) by mlelstv
Branch: MAIN
Changes since 1.15: +10 -6 lines
Diff to previous 1.15 (colored) to selected 1.30 (colored)

mount(2) doesn't remove vnodes from the freelist in the error path,
so that they get reused with a invalid pointer to a mount structure.

As a workaround, free the vnodes used to create the in-filesystem journal
immediately.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:35 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.13: +55 -60 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.30 (colored)

Sync with HEAD.

Revision 1.6.12.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.6: +3 -3 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.30 (colored)

sync to netbsd-5

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:44 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.12.2.3: +55 -60 lines
Diff to previous 1.12.2.3 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.30 (colored)

sync with head

Revision 1.15 / (download) - annotate - [select for diffs], Sat Feb 27 12:04:19 2010 UTC (14 years, 1 month ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.14: +10 -2 lines
Diff to previous 1.14 (colored) to selected 1.30 (colored)

Store physical block numbers in superblock that point to the journal.
Calculate position of both commit headers correctly for disks with
large sectors.
Correct calculation of circular buffer size.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 23 20:41:41 2010 UTC (14 years, 1 month ago) by mlelstv
Branch: MAIN
Changes since 1.13: +47 -60 lines
Diff to previous 1.13 (colored) to selected 1.30 (colored)

Replace individual queries for partition information with
new helper function.
Use this information to query physical sector sizes for WAPBL
instead of hardcoded defaults.
No longer limits physical sector sizes to 512 bytes.

Revision 1.6.8.1 / (download) - annotate - [select for diffs], Sat Oct 3 22:49:43 2009 UTC (14 years, 6 months ago) by snj
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, 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.6: +3 -3 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.30 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1036):
	sbin/fsck_ffs/extern.h: revision 1.25 via patch
	sbin/fsck_ffs/setup.c: revision 1.88 via patch
	sbin/fsck_ffs/wapbl.c: revision 1.4 via patch
	sbin/tunefs/tunefs.c: revision 1.41 via patch
	sys/ufs/ffs/ffs_vfsops.c: revision 1.252 via patch
	sys/ufs/ffs/ffs_wapbl.c: revision 1.13 via patch
Allow tunefs to clear any type of WAPBL log, not only in-filesystem
ones. Discussed in
http://mail-index.netbsd.org/tech-kern/2009/08/17/msg005896.html
and followups.
--
Do some basic checks of the WAPBL journal, to abort the boot before the
kernel refuse to mount a filesystem read-write (booting a system
multiuser with critical filesystems read-only is bad):
Add a check_wapbl() which will check some WAPBL values in the superblock,
and try to read the journal via wapbl_replay_start() if there is one.
pfatal() if one of these fail (abort boot if in preen mode,
as "CONTINUE" otherwise). In non-preen mode the bogus journal will
be cleared.
check_wapbl() is always called if the superblock supports WAPBL.
Even if FS_DOWAPBL is not there, there could be flags asking the
kernel to clear or create a log with bogus values which would cause the
kernel refuse to mount the filesystem.
Discussed in
http://mail-index.netbsd.org/tech-kern/2009/08/17/msg005896.html
and followups.
--
If the WAPBL journal can't be read (ffs_wapbl_replay_start() fails),
mount the filesystem anyway if MNT_FORCE is present.
This allows to still boot single-user a system with a corrupted
WAPBL on /, and so get a chance to run fsck to fix it.
http://mail-index.netbsd.org/tech-kern/2009/08/17/msg005896.html
and followups.

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:07 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.12.2.2: +3 -3 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored) to selected 1.30 (colored)

sync with head

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 13 14:13:23 2009 UTC (14 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.30 (colored)

Allow tunefs to clear any type of WAPBL log, not only in-filesystem
ones. Discussed in
http://mail-index.netbsd.org/tech-kern/2009/08/17/msg005896.html
and followups.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:23:07 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.11: +2 -11 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.30 (colored)

Sync with HEAD.

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

Revision 1.12.2.2 / (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.12.2.1: +882 -0 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) to selected 1.30 (colored)

sync with head.

Revision 1.6.6.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:34:39 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.6.6.1: +5 -14 lines
Diff to previous 1.6.6.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored) to selected 1.30 (colored)

Sync with HEAD.

Revision 1.12.2.1, Sun Feb 22 20:28:06 2009 UTC (15 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.12: +0 -882 lines
FILE REMOVED

file ffs_wapbl.c was added on branch yamt-nfs-mp on 2009-05-04 08:14:38 +0000

Revision 1.12 / (download) - annotate - [select for diffs], Sun Feb 22 20:28:06 2009 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: 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
Branch point for: yamt-nfs-mp
Changes since 1.11: +2 -11 lines
Diff to previous 1.11 (colored) to selected 1.30 (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.11 / (download) - annotate - [select for diffs], Sat Jan 31 09:22:08 2009 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored) to selected 1.30 (colored)

0 -> NULL

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 31 09:14:15 2009 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.30 (colored)

wapbl_log_position: 1 -> MNT_WAIT

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:32 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.6: +7 -15 lines
Diff to previous 1.6 (colored) to selected 1.30 (colored)

Sync with HEAD.

Revision 1.6.4.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:42 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.6.4.2: +5 -13 lines
Diff to previous 1.6.4.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored) to selected 1.30 (colored)

Sync with HEAD.

Revision 1.1.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.1.4.1: +7 -15 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.30 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 30 16:20:44 2008 UTC (15 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.8: +3 -14 lines
Diff to previous 1.8 (colored) to selected 1.30 (colored)

Split ffs_blkalloc into a frontend that does inode based consistency
checks and a backend that just asserts them. Use the backend in
ffs_wapbl_abort_sync_metadata instead of faking an inode.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 11 21:02:54 2008 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored) to selected 1.30 (colored)

wapbl_replay_free needs the reply to have been stopped, so make sure
that the changes happen in the right order. Reported by veego@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 10 20:12:13 2008 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored) to selected 1.30 (colored)

Reduce internals of WAPBL exposed to the rest of the system.

Revision 1.1.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.1: +899 -0 lines
Diff to previous 1.1 (colored) to selected 1.30 (colored)

Sync with HEAD.

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:41:06 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.6.4.1: +899 -0 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored) to selected 1.30 (colored)

Sync with HEAD.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:05 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.6.2.1: +899 -0 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored) to selected 1.30 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.6.4.1, Mon Sep 8 03:16:43 2008 UTC (15 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.6: +0 -899 lines
FILE REMOVED

file ffs_wapbl.c was added on branch mjf-devfs2 on 2008-09-28 10:41:06 +0000

Revision 1.6.2.1, Mon Sep 8 03:16:43 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.6: +0 -899 lines
FILE REMOVED

file ffs_wapbl.c was added on branch wrstuden-revivesa on 2008-09-18 04:37:05 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 8 03:16:43 2008 UTC (15 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, 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: wrstuden-revivesa, nick-hppapmap, netbsd-5, mjf-devfs2, matt-nb5-mips64
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored) to selected 1.30 (colored)

Move successful removal of unreferenced inodes under WAPBL_DEBUG to not
spam the console.

OK simon@

Revision 1.5 / (download) - annotate - [select for diffs], Tue Aug 5 13:39:29 2008 UTC (15 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.4: +7 -7 lines
Diff to previous 1.4 (colored) to selected 1.30 (colored)

zu, not zd, to print size_t

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 4 15:55:11 2008 UTC (15 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.3: +41 -2 lines
Diff to previous 1.3 (colored) to selected 1.30 (colored)

Only allow WAPBL to operate with UFS2 style superblocks.

Problem reported by Takeshi Nakayama.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 2 02:23:51 2008 UTC (15 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored) to selected 1.30 (colored)

When checking if there's enough space at the end of a partition,
compare bytes vs bytes, not sectors vs bytes.

Problem discovered and fix tested by Michael Hitch.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:06 2008 UTC (15 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.1: +858 -0 lines
Diff to previous 1.1 (colored) to selected 1.30 (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.1.2.4 / (download) - annotate - [select for diffs], Mon Jul 28 12:40:06 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.1.2.3: +547 -83 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.30 (colored)

Add support for creating a WAPBL log in the filesystem.  Will
create an in-filesystem log on first "mount -o log" if one doesn't
exist, and will then continue to use same log in the future.  See
(soon to be added) wapbl(4) for more info.

Adds a new B_CONTIG low-level allocation flag that uses hints in
"struct ffs_inode_ext" to lay out an ffs file's data contiguously.

Thanks to Greg Oster for helping with the design of this and to
Antti Kantee for code review and suggestions.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Thu Jul 3 16:40:26 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.1.2.2: +46 -2 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) to selected 1.30 (colored)

Store the location of the journal in the superblock.  Currently
nothing really uses this, other than replay checking that what is
in the superblock matches what it expects.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu Jun 12 08:39:22 2008 UTC (15 years, 10 months ago) by martin
Branch: simonb-wapbl
Changes since 1.1.2.1: +2 -9 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) to selected 1.30 (colored)

License police

Revision 1.1.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.1: +357 -0 lines
Diff to previous 1.1 (colored) to selected 1.30 (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.1, Tue Jun 10 14:51:23 2008 UTC (15 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-pf42-base4, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: simonb-wapbl, haad-dm
FILE REMOVED

file ffs_wapbl.c was initially added on branch simonb-wapbl.

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>