Up to [cvs.NetBSD.org] / src / sys / ufs / ffs
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.17.18.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:16 2013 UTC (2 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.17: +8 -5
lines
Diff to previous 1.17 (colored) next main 1.18 (colored)
resync with head
Revision 1.17.8.1 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:33 2013 UTC (3 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.17: +8 -5
lines
Diff to previous 1.17 (colored) next main 1.18 (colored)
sync with head
Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:16 2013 UTC (3 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
tls-maxphys-nbase,
tls-maxphys-base,
khorben-n900,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.18: +4 -4
lines
Diff to previous 1.18 (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 (4 months, 4 weeks ago) by hannken
Branch: MAIN
Changes since 1.17: +6 -3
lines
Diff to previous 1.17 (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 (2 years, 2 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.15: +13 -7
lines
Diff to previous 1.15 (colored) next main 1.16 (colored)
sync with head
Revision 1.17 / (download) - annotate - [select for diffs], Fri Dec 24 13:38:57 2010 UTC (2 years, 4 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,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
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)
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 (2 years, 4 months ago) by mlelstv
Branch: MAIN
Changes since 1.15: +10 -6
lines
Diff to previous 1.15 (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 (3 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.13: +55 -60
lines
Diff to previous 1.13 (colored) next main 1.14 (colored)
Sync with HEAD.
Revision 1.6.12.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:26 2010 UTC (3 years, 1 month 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)
sync to netbsd-5
Revision 1.12.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:44 2010 UTC (3 years, 2 months 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)
sync with head
Revision 1.15 / (download) - annotate - [select for diffs], Sat Feb 27 12:04:19 2010 UTC (3 years, 2 months 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)
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 (3 years, 2 months ago) by mlelstv
Branch: MAIN
Changes since 1.13: +47 -60
lines
Diff to previous 1.13 (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 (3 years, 7 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
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-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)
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 (3 years, 8 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)
sync with head
Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 13 14:13:23 2009 UTC (3 years, 8 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)
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 (4 years ago) by jym
Branch: jym-xensuspend
Changes since 1.11: +2 -11
lines
Diff to previous 1.11 (colored) next main 1.12 (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 (4 years 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)
sync with head.
Revision 1.6.6.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:34:39 2009 UTC (4 years, 2 months 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)
Sync with HEAD.
Revision 1.12.2.1, Sun Feb 22 20:28:06 2009 UTC (4 years, 2 months 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 (4 years, 2 months 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)
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 (4 years, 3 months ago) by yamt
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.10: +4 -4
lines
Diff to previous 1.10 (colored)
0 -> NULL
Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 31 09:14:15 2009 UTC (4 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.9: +3 -3
lines
Diff to previous 1.9 (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 (4 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.6: +7 -15
lines
Diff to previous 1.6 (colored)
Sync with HEAD.
Revision 1.6.4.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:42 2009 UTC (4 years, 4 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)
Sync with HEAD.
Revision 1.1.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:41 2008 UTC (4 years, 5 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)
Update haad-dm branch to haad-dm-base2.
Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 30 16:20:44 2008 UTC (4 years, 5 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)
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 (4 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.7: +4 -3
lines
Diff to previous 1.7 (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 (4 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.6: +4 -2
lines
Diff to previous 1.6 (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 (4 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.1: +899 -0
lines
Diff to previous 1.1 (colored)
Sync with HEAD.
Revision 1.6.4.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:41:06 2008 UTC (4 years, 7 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)
Sync with HEAD.
Revision 1.6.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:05 2008 UTC (4 years, 8 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)
Sync with wrstuden-revivesa-base-2.
Revision 1.6.4.1, Mon Sep 8 03:16:43 2008 UTC (4 years, 8 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 (4 years, 8 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 (4 years, 8 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)
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 (4 years, 9 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)
zu, not zd, to print size_t
Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 4 15:55:11 2008 UTC (4 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.3: +41 -2
lines
Diff to previous 1.3 (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 (4 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.2: +3 -3
lines
Diff to previous 1.2 (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 (4 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.1: +858 -0
lines
Diff to previous 1.1 (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 (4 years, 9 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)
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 (4 years, 10 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)
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 (4 years, 11 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)
License police
Revision 1.1.2.1 / (download) - annotate - [select for diffs], Tue Jun 10 14:51:23 2008 UTC (4 years, 11 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.1: +357 -0
lines
Diff to previous 1.1 (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 (4 years, 11 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.