Up to [cvs.NetBSD.org] / src / sbin / fsck_lfs
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.52.16.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:20 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.52.16.1: +2 -3
lines
Diff to previous 1.52.16.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)
Mostly merge changes from HEAD upto 20200411
Revision 1.55 / (download) - annotate - [select for diffs], Fri Apr 3 19:36:33 2020 UTC (3 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
netbsd-10-base,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
HEAD
Changes since 1.54: +2 -2
lines
Diff to previous 1.54 (colored)
Avoid common symbols for fsck_lfs.
Revision 1.53.2.1 / (download) - annotate - [select for diffs], Fri Aug 16 19:30:41 2019 UTC (3 years, 9 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Changes since 1.53: +1 -2
lines
Diff to previous 1.53 (colored) next main 1.54 (colored)
Pull up following revision(s) (requested by kamil in ticket #73): sbin/fsck_lfs/main.c: revision 1.54 sbin/fsck_ext2fs/main.c: revision 1.40 sbin/fsck_ffs/main.c: revision 1.86 fsck: Stop defining the same variable concurrently in bss and data returntosingle was defined in multiple places: - fsck_lfs/main.c - fsck_ffs/main.c - fsck_ext2fs/main.c - fsck/fsutil.c Keep the fsutil.c definition as the only one. Detected during the build of telned with Address Sanitizer (MKSANITIZER).
Revision 1.54 / (download) - annotate - [select for diffs], Thu Aug 15 03:10:43 2019 UTC (3 years, 9 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20191119,
is-mlppp-base,
is-mlppp
Changes since 1.53: +1 -2
lines
Diff to previous 1.53 (colored)
fsck: Stop defining the same variable concurrently in bss and data returntosingle was defined in multiple places: - fsck_lfs/main.c - fsck_ffs/main.c - fsck_ext2fs/main.c - fsck/fsutil.c Keep the fsutil.c definition as the only one. Detected during the build of telned with Address Sanitizer (MKSANITIZER).
Revision 1.52.16.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:33 2019 UTC (3 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.52: +2 -1
lines
Diff to previous 1.52 (colored)
Sync with HEAD
Revision 1.53 / (download) - annotate - [select for diffs], Sun Feb 3 03:19:26 2019 UTC (4 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20190609,
netbsd-9-base
Branch point for: netbsd-9
Changes since 1.52: +2 -1
lines
Diff to previous 1.52 (colored)
- add or adjust /* FALLTHROUGH */ where appropriate - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
Revision 1.52 / (download) - annotate - [select for diffs], Tue Jul 28 05:09:34 2015 UTC (7 years, 10 months ago) by dholland
Branch: MAIN
CVS Tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
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,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
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,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.51: +3 -1
lines
Diff to previous 1.51 (colored)
Add a new lfs header file: lfs_accessors.h. This contains all the accessor functions and macros out of lfs.h. Add an include of lfs_accessors.h after all uses of lfs.h... except for code that wants to define its own struct lfs-alike that the accessors are supposed to play along with. For these, set STRUCT_LFS and include lfs_accessors.h after the necessary structure has been defined, so that lfs_accessors.h can emit functions in terms of it.
Revision 1.51 / (download) - annotate - [select for diffs], Fri Jul 24 06:59:32 2015 UTC (7 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.50: +2 -2
lines
Diff to previous 1.50 (colored)
More lfs superblock accessors. (This changes the rest of the code over; all the accessors were already added.) The difference between this commit and the previous one is arbitrary, but the previous one passed the regression tests on its own so I'm keeping it separate to help with any bisections that might be needed in the future.
Revision 1.50 / (download) - annotate - [select for diffs], Fri Jul 24 06:56:41 2015 UTC (7 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.49: +4 -4
lines
Diff to previous 1.49 (colored)
Switch to accessor functions for elements of the LFS on-disk superblock. This will allow switching between 32/64 bit forms on the fly; it will also allow handling LFS_EI reasonably tidily. (That currently doesn't work on the superblock.) It also gets rid of cpp abuse in the form of fake structure member macros. Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg inside the on-disk superblock, add extra elements to the in-memory struct lfs for this. (XXX: these should be changed to condvars, but not right now) XXX: this migrates a structure needed by the lfs code in libsa (struct salfs) into lfs.h, where it doesn't belong, but for the time being this is necessary in order to allow the accessors (and the various lfs macros and other goop that relies on them) to compile.
Revision 1.49 / (download) - annotate - [select for diffs], Tue Jun 16 23:18:55 2015 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.48: +3 -3
lines
Diff to previous 1.48 (colored)
fix error messages containing \n
Revision 1.43.8.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:25 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.43.8.1: +27 -0
lines
Diff to previous 1.43.8.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)
Rebase to HEAD as of a few days ago.
Revision 1.45.4.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:52:52 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.45: +28 -1
lines
Diff to previous 1.45 (colored) next main 1.46 (colored)
Rebase.
Revision 1.48 / (download) - annotate - [select for diffs], Sun Jul 13 02:44:21 2014 UTC (8 years, 10 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base,
tls-earlyentropy-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
Changes since 1.47: +2 -0
lines
Diff to previous 1.47 (colored)
Revert previous; it doesn't work because all the lfs tools promiscuously .PATH in each other's source files, and I haven't the time or patience to deal with it tonight.
Revision 1.47 / (download) - annotate - [select for diffs], Sat Jul 12 19:44:00 2014 UTC (8 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.46: +1 -3
lines
Diff to previous 1.46 (colored)
Remove pointless function indirection through panic_func(). It was initialized to one thing, and then set to another right at the top of main and never changed again.
Revision 1.46 / (download) - annotate - [select for diffs], Sat Jul 12 16:11:27 2014 UTC (8 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.45: +28 -1
lines
Diff to previous 1.45 (colored)
Revert version 1.111 of sysinst/disks.c, which caused sysinst to create lfs fstab entries with fsck disabled, and instead patch fsck_lfs to exit successfully without doing anything when given the -p (bootup preen) option. If you really want to do fsck_lfs -p, you can do fsck_lfs -f -p to make it go. This has been sitting in my todo queue since February 2010 and was ok'd by the committer at the time. The original commit was based on this post: http://mail-index.netbsd.org/tech-kern/2010/02/09/msg007306.html and I remain unconvinced that it's the right thing, but we can at least do it properly and not ship a sysinst with -7 that creates permanently wrong fstab files. Note that this may cause problems for anyone who's taken -p out of the bootup fsck flags; but doing that is wrong, so don't.
Revision 1.43.2.1 / (download) - annotate - [select for diffs], Thu May 22 11:37:28 2014 UTC (9 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.43: +2 -4
lines
Diff to previous 1.43 (colored) next main 1.44 (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.43.8.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:28:51 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.43: +2 -4
lines
Diff to previous 1.43 (colored)
resync from head
Revision 1.45 / (download) - annotate - [select for diffs], Sat Jun 8 02:16:03 2013 UTC (9 years, 11 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: tls-earlyentropy
Changes since 1.44: +1 -3
lines
Diff to previous 1.44 (colored)
Tidy up the LFS userland build hacks. Don't use -I${NETBSDSRCDIR}/sys; don't include files other than the exported LFS headers, which are lfs.h, lfs_inode.h, and (for now) lfs_extern.h.
Revision 1.44 / (download) - annotate - [select for diffs], Thu Jun 6 00:52:50 2013 UTC (9 years, 11 months ago) by dholland
Branch: MAIN
Changes since 1.43: +4 -4
lines
Diff to previous 1.43 (colored)
ufs -> ulfs for fsck_lfs.
Revision 1.42.4.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:18:43 2011 UTC (11 years, 11 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.42: +2 -1
lines
Diff to previous 1.42 (colored) next main 1.43 (colored)
Catchup with rmind-uvmplock merge.
Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 9 19:57:53 2011 UTC (11 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-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,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys
Changes since 1.42: +2 -1
lines
Diff to previous 1.42 (colored)
share more code.
Revision 1.42 / (download) - annotate - [select for diffs], Thu Jan 7 01:39:56 2010 UTC (13 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.41: +2 -2
lines
Diff to previous 1.41 (colored)
make this compile again.
Revision 1.41 / (download) - annotate - [select for diffs], Wed Jan 6 18:12:37 2010 UTC (13 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.40: +2 -2
lines
Diff to previous 1.40 (colored)
PR/42568: Pedro F. Giffuni: Better signal handling from OpenBSD, but simplified.
Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Mar 24 21:33:58 2009 UTC (14 years, 2 months ago) by bouyer
Branch: netbsd-4
Changes since 1.32: +7 -3
lines
Diff to previous 1.32 (colored) next main 1.33 (colored)
Pull up following revision(s) (requested by manu in ticket #1288): sbin/fsck_lfs/inode.c: revision 1.40 via patch sbin/fsck_ffs/fsck_ffs.8: revision 1.44 via patch sbin/fsck_ext2fs/fsck.h: revision 1.14 via patch sbin/fsck_ext2fs/main.c: revision 1.30 via patch sbin/fsck_ffs/inode.c: revision 1.61 via patch sbin/fsck_ffs/main.c: revision 1.71 via patch sbin/fsck_ext2fs/inode.c: revision 1.23 via patch sbin/fsck_lfs/fsck.h: revision 1.18 via patch sbin/fsck_lfs/fsck_lfs.8: revision 1.21 via patch sbin/fsck_lfs/main.c: revision 1.38 via patch sbin/fsck_ext2fs/fsck_ext2fs.8: revision 1.15 via patch sbin/fsck_ffs/fsck.h: revision 1.47 via patch Disable userid to username lookups by default. Add a -U flag to perform them. In single user mode lookups that involve the network might not work and they slow down fsck.
Revision 1.36.12.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:48:52 2009 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.36.12.1: +7 -3
lines
Diff to previous 1.36.12.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)
Sync with HEAD.
Revision 1.40 / (download) - annotate - [select for diffs], Sun Oct 12 20:49:43 2008 UTC (14 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2-base,
matt-premerge-20091211,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend
Changes since 1.39: +2 -2
lines
Diff to previous 1.39 (colored)
Don't use unicode in usage. Noted by Anon Ymous.
Revision 1.39 / (download) - annotate - [select for diffs], Thu Oct 9 18:38:25 2008 UTC (14 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.38: +2 -2
lines
Diff to previous 1.38 (colored)
Sync usage with man page.
Revision 1.38 / (download) - annotate - [select for diffs], Thu Oct 9 16:56:23 2008 UTC (14 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.37: +7 -3
lines
Diff to previous 1.37 (colored)
Disable userid to username lookups by default. Add a -U flag to perform them. In single user mode lookups that involve the network might not work and they slow down fsck.
Revision 1.36.12.1 / (download) - annotate - [select for diffs], Thu Apr 3 13:54:10 2008 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.36: +20 -21
lines
Diff to previous 1.36 (colored)
Sync with HEAD.
Revision 1.36.10.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:49 2008 UTC (15 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.36: +20 -21
lines
Diff to previous 1.36 (colored) next main 1.37 (colored)
sync with head.
Revision 1.36.4.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:44:23 2008 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.36: +20 -21
lines
Diff to previous 1.36 (colored) next main 1.37 (colored)
sync with HEAD
Revision 1.37 / (download) - annotate - [select for diffs], Sat Feb 23 21:41:48 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
matt-armv6-nbase,
keiichi-mipv6-base,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base
Changes since 1.36: +20 -21
lines
Diff to previous 1.36 (colored)
Make sure that the exit values are always sane, and use symbolic instead of magic constants. Reviewed by go@
Revision 1.36 / (download) - annotate - [select for diffs], Mon Jul 16 17:06:52 2007 UTC (15 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-devfs-base,
mjf-devfs,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: mjf-devfs2,
matt-armv6,
keiichi-mipv6
Changes since 1.35: +3 -2
lines
Diff to previous 1.35 (colored)
Make all mount(2) return value error checks against -1. Some file systems just checked != 0, breaking MNT_GETARGS. Others worked with < 0, but make them check against -1 too for consistency. And sprinkle some stylish line wrapping where appropriate.
Revision 1.35 / (download) - annotate - [select for diffs], Sat Jul 14 15:57:24 2007 UTC (15 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.34: +2 -2
lines
Diff to previous 1.34 (colored)
Add additional 'sizeof args' parameter to mount(2).
Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 8 21:36:58 2007 UTC (16 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.33: +2 -1
lines
Diff to previous 1.33 (colored)
include <signal.h> where signal(3) is used
Revision 1.33 / (download) - annotate - [select for diffs], Wed Jan 17 21:59:50 2007 UTC (16 years, 4 months ago) by hubertf
Branch: MAIN
Changes since 1.32: +1 -2
lines
Diff to previous 1.32 (colored)
Remove more duplicate #includes, from Slava Semushin <slava.semushin@gmail.com>
Revision 1.32 / (download) - annotate - [select for diffs], Fri Dec 1 06:38:39 2006 UTC (16 years, 6 months ago) by tls
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0
Branch point for: netbsd-4
Changes since 1.31: +10 -4
lines
Diff to previous 1.31 (colored)
Prompt before rolling forward, in interactive mode, so it's possible to fix the filesystem but not roll forward possibly unwanted changes.
Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 9 19:36:36 2006 UTC (16 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.30: +13 -1
lines
Diff to previous 1.30 (colored)
Fix malloc/realloc/calloc issues: always check and exit, use EEXIT instead of 8.
Revision 1.30 / (download) - annotate - [select for diffs], Fri Sep 1 19:52:48 2006 UTC (16 years, 9 months ago) by perseant
Branch: MAIN
Changes since 1.29: +2 -1
lines
Diff to previous 1.29 (colored)
Several fixes to improve the reliability of the roll-forward agent. Also, note "properly orphaned" files as distinct from corrupted files.
Revision 1.29 / (download) - annotate - [select for diffs], Tue Jul 18 23:37:13 2006 UTC (16 years, 10 months ago) by perseant
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.28: +7 -5
lines
Diff to previous 1.28 (colored)
Various improvements to fsck_lfs, to wit: * Add lfs_balloc capability to the lfs library. * Extend the Ifile if we run out of free inodes when creating lost+found. * Don't roll forward if we have allocated a lost+found, to avoid conflicts when adding new files in roll-forward. * Make some messages slightly more verbose (e.g. include inode number, and use pwarn() instead of printf() so the messages include the device name when preening). * Change superblock detection/avoidance to use the offset table in the primary superblock, rather than looking at the contents. * Be more verbose about various operations when passed the -d flag, especially roll-forward. * Be more careful about dirops during roll forward, since the cleaner can sometimes write blocks from dirop vnodes. Detect and avoid this problem. * Always check the free list, even if given -i; if we're going to write it we have to check it first. * Mark inodes dirty when blocks are found during roll forward, so the inodes are written with the new block locations. * Update size of inodes if blocks beyond EOF are found during roll forward. * Fix segment accounting for blocks and inodes found during roll forward. * Report statistics on roll forward: how many new/deleted/moved files and how many updated blocks (or "nothing new"). * Don't care if the device being checked is really a device, if we have been passed the -f flag (to facilitate automated testing). * When writing to the disk, use the current time in the segment headers rathern than time 0. * When passed the -i flag, locate the partial segment containing the Ifile inode and use that to calculate lfs_offset, lfs_curseg, lfs_nextseg. (Again for automated testing.)
Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 17 19:05:16 2006 UTC (17 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.27: +1 -2
lines
Diff to previous 1.27 (colored)
Remove the free list ordering/disordering code, since the kernel now keeps the list in order (ordering it on mount). Regularize error messages: these are now all in ALL CAPS, with all hex numbers (not reported in caps) prefixed by 0x. (The non-fsck-specific messages are an exception to this all-caps rule.)
Revision 1.27 / (download) - annotate - [select for diffs], Fri Sep 23 12:10:34 2005 UTC (17 years, 8 months ago) by jmmv
Branch: MAIN
Changes since 1.26: +1 -3
lines
Diff to previous 1.26 (colored)
Apply the NFS exports list rototill patch: - Remove all NFS related stuff from file system specific code. - Drop the vfs_checkexp hook and generalize it in the new nfs_check_export function, thus removing redundancy from all file systems. - Move all NFS export-related stuff from kern/vfs_subr.c to the new file sys/nfs/nfs_export.c. The former was becoming large and its code is always compiled, regardless of the build options. Using the latter, the code is only compiled in when NFSSERVER is enabled. While doing this, also make some functions in nfs_subs.c conditional to NFSSERVER. - Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a path and a set of export entries. At the moment it can only clear the exports list or append entries, one by one, but it is done in a way that allows setting the whole set of entries atomically in the future (see the comment in mountd_set_exports_list or in doc/TODO). - Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so that it becomes file system agnostic. In fact, all this whole thing was done to remove a 'XXX' block from this utility! - Change the mount*, newfs and fsck* userland utilities to not deal with NFS exports initialization; done internally by the kernel when initializing the NFS support for each file system. - Implement an interface for VFS (called VFS hooks) so that several kernel subsystems can run arbitrary code upon receipt of specific VFS events. At the moment, this only provides support for unmount and is used to destroy NFS exports lists from the file systems being unmounted, though it has room for extension. Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments and advice in the development of this patch.
Revision 1.26 / (download) - annotate - [select for diffs], Fri Aug 19 02:07:19 2005 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.25: +5 -4
lines
Diff to previous 1.25 (colored)
64 bit inode changes
Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 27 02:48:28 2005 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.24: +4 -4
lines
Diff to previous 1.24 (colored)
constify
Revision 1.20.2.1 / (download) - annotate - [select for diffs], Sat May 7 11:21:29 2005 UTC (18 years ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Changes since 1.20: +24 -21
lines
Diff to previous 1.20 (colored) next main 1.21 (colored)
Apply patch (requested by perseant in ticket #242): * fsck_lfs buffer cache fixes, including PR #29151 * Change fsck_lfs phase 0 message to reflect reality * fsck_lfs: check phase 5 (cleanerinfo accounting) even on roll-forward * Keep better track of the free list during roll-forward, avoiding a core dump * Improve hash table use for fsck_lfs buffer and vnode cache * Document fsck_lfs flag -f, and implement -q * Add resize_lfs, including kernel support * Add LFS to mountd's list of exportable filesystem types * Make the LFS lkm work again [christos@] * Add MP locking to the LFS kernel subsystem * Fix pager_map deadlock in lfs_putpages() * Avoid incomplete file extension that looks like "partial truncation" to fsck * Use lfs_malloc for cleaner malloc, since the cleaner often runs in low-memory conditions. * Use splay trees, not hash table, to track page allocation for write. * Fix mkdir panic on full fs * Fix page accounting leak by counting differently. * Use rightly named structure for lfs_getattr [skrll@] * Cosmetic changes for readability.
Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 23 20:21:03 2005 UTC (18 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.23: +20 -18
lines
Diff to previous 1.23 (colored)
Check parts of pass 5 even if only rolling forward. We can't check the true segment holdings against the blocks held by the inodes, but we can still check the cleanerinfo data against the segment table.
Revision 1.23 / (download) - annotate - [select for diffs], Thu Apr 14 21:30:11 2005 UTC (18 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.22: +2 -2
lines
Diff to previous 1.22 (colored)
Sync usage with man page.
Revision 1.22 / (download) - annotate - [select for diffs], Thu Apr 14 21:15:59 2005 UTC (18 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.21: +3 -2
lines
Diff to previous 1.21 (colored)
Document "-f" (force check) flag. Implement and document "-q" (quiet).
Revision 1.21 / (download) - annotate - [select for diffs], Wed Apr 6 04:32:59 2005 UTC (18 years, 1 month ago) by perseant
Branch: MAIN
Changes since 1.20: +2 -2
lines
Diff to previous 1.20 (colored)
Correct phase 0 message
Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 19 19:41:59 2005 UTC (18 years, 4 months ago) by xtraeme
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.19: +2 -4
lines
Diff to previous 1.19 (colored)
ANSIfy, WARNS=2
Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 13 15:22:35 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.18: +5 -2
lines
Diff to previous 1.18 (colored)
Add a progress meter to fsck_ffs based on the work by thorpej presented to the mailing lists last January. This is optional.
Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:33 2004 UTC (19 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.17: +4 -4
lines
Diff to previous 1.17 (colored)
Replace the statfs() family of system calls with statvfs(). Retain binary compatibility.
Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:33 2004 UTC (19 years, 4 months ago) by jmmv
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.16: +2 -2
lines
Diff to previous 1.16 (colored)
Homogenize usage messages: make the 'usage' word all lowercase, as this seems to be the most common practice in our tree.
Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 20 12:04:38 2003 UTC (19 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.15: +5 -2
lines
Diff to previous 1.15 (colored)
Add a -q (quiet) option to print nothing for clean filesystems. Support in fsck_ffs and stub in fsck_xxx. Push a few more messages through pwarn() instead of printf() to ensure disk name is shown.
Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:23 2003 UTC (19 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.14: +2 -6
lines
Diff to previous 1.14 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22308, verified by myself.
Revision 1.14 / (download) - annotate - [select for diffs], Sat Mar 29 00:09:43 2003 UTC (20 years, 2 months ago) by perseant
Branch: MAIN
Changes since 1.13: +7 -5
lines
Diff to previous 1.13 (colored)
Fix some accounting problems when preening, since preening skips phases 1-4 entirely. Make preen run phase 0, since the Ifile is so important and the test so quick.
Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 28 08:09:53 2003 UTC (20 years, 2 months ago) by perseant
Branch: MAIN
Changes since 1.12: +80 -104
lines
Diff to previous 1.12 (colored)
Add working writing ability to fsck_lfs, including roll-forward, based on a partial-segment writer ported from the kernel.
Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 28 05:17:13 2003 UTC (20 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.11: +2 -2
lines
Diff to previous 1.11 (colored)
make this build on alpha after daddr_t->64bit
Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:10 2003 UTC (20 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.10: +5 -4
lines
Diff to previous 1.10 (colored)
Bump daddr_t to 64 bits. Replace it with int32_t in all places where it was used on-disk, so that on-disk formats remain the same. Remove ufs_daddr_t and ufs_lbn_t for the time being.
Revision 1.10 / (download) - annotate - [select for diffs], Sat Aug 18 17:10:06 2001 UTC (21 years, 9 months ago) by ad
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,
fvdl_fs64_base
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored)
getopt() returns -1 on error, not EOF.
Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:19 2001 UTC (22 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: perseant-lfsv2-base,
perseant-lfsv2
Changes since 1.8: +3 -4
lines
Diff to previous 1.8 (colored)
convert to use getprogname()
Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 4 21:52:04 2001 UTC (22 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.7: +3 -3
lines
Diff to previous 1.7 (colored)
fix redundant decls
Revision 1.6.2.1 / (download) - annotate - [select for diffs], Sat Feb 3 21:44:03 2001 UTC (22 years, 4 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001
Changes since 1.6: +5 -2
lines
Diff to previous 1.6 (colored) next main 1.7 (colored)
Pull up revision 1.7 (requested by perseant): Add compatibility option "-f" to fsck_lfs (PR #11129).
Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 11 22:26:10 2000 UTC (22 years, 6 months ago) by perseant
Branch: MAIN
Changes since 1.6: +5 -2
lines
Diff to previous 1.6 (colored)
Add "-f" flag to match fsck(8) manual page. This flag currently has no effect. Fixes PR #11129.
Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 16:05:25 2000 UTC (22 years, 11 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.5: +10 -3
lines
Diff to previous 1.5 (colored) next main 1.6 (colored)
Sync w/ netbsd-1-5-base.
Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 14 18:43:58 2000 UTC (22 years, 11 months ago) by perseant
Branch: MAIN
CVS Tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.5: +10 -3
lines
Diff to previous 1.5 (colored)
Add "-i" flag to specify the location of the index file inode, to examine alternate checkpoints. Regularize usage of maxino. Remove olf debugging cruft.
Revision 1.5 / (download) - annotate - [select for diffs], Tue May 23 01:48:53 2000 UTC (23 years ago) by perseant
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.4: +43 -56
lines
Diff to previous 1.4 (colored)
Convert to NetBSD source code style
Revision 1.4 / (download) - annotate - [select for diffs], Tue May 16 04:55:59 2000 UTC (23 years ago) by perseant
Branch: MAIN
Changes since 1.3: +50 -124
lines
Diff to previous 1.3 (colored)
fsck_lfs can now write to the filesystem, allowing it to correct most (though still not all) errors in a damaged lfs. Segment byte accounting is corrected in pass 5. "fsck_lfs -p" will do a partial roll-forward, verifying the checkpoint from the newer superblock. fscknames[] is updated so that fsck knows about fsck_lfs.
Revision 1.3 / (download) - annotate - [select for diffs], Fri Apr 14 06:03:38 2000 UTC (23 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.2: +1 -3
lines
Diff to previous 1.2 (colored)
Don't declare 'extern opt*' getopt variables.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Jul 3 19:55:03 1999 UTC (23 years, 11 months ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
comdex-fall-1999-base,
comdex-fall-1999
Changes since 1.1: +1 -1
lines
Diff to previous 1.1 (colored)
RCS Id police.
Revision 1.1 / (download) - annotate - [select for diffs], Thu Mar 18 02:02:19 1999 UTC (24 years, 2 months ago) by perseant
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
Initial checkin of fsck_lfs. This version cannot do any repair (-p flag does nothing, and one of -p or -n is required) but can be useful as a diagnostic tool.