The NetBSD Project

CVS log for src/sbin/fsck_ffs/pass5.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / fsck_ffs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.58 / (download) - annotate - [select for diffs], Tue Jul 4 20:40:53 2023 UTC (7 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

fsck_ffs(8): Fix whitespace issues.

- Nix trailing whitespace.
- Omit excessive blank lines.
- Insert missing blank lines between $NetBSD$ and copyright.

No functional change intended.

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Sat May 13 11:54:17 2023 UTC (9 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.55.2.1: +16 -13 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

Pull up following revision(s) (requested by chs in ticket #161):

	sbin/fsck_ffs/setup.c: revision 1.106
	sbin/fsck_ffs/pass5.c: revision 1.57

ufs: more signed/unsigned fixes

Fix the previous signed/unsigned fixes to build on 32-bit,
including applying this commit from FreeBSD:

  commit 2d34afcd04207cf3fa3d5b7f467a890eae75da41
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Sun Oct 25 21:04:07 2020 +0000
    Use proper type (ino_t) for inode numbers to avoid improper sign extention
    in the Pass 5 checks. The manifestation was fsck_ffs exiting with this error:
      ** Phase 5 - Check Cyl groups
      fsck_ffs: inoinfo: inumber 18446744071562087424 out of range
    The error only manifests itself for filesystems bigger than about 100Tb.
    Reported by:  Nikita Grechikhin <ngrechikhin at yandex.ru>
    MFC after:    2 weeks
    Sponsored by: Netflix

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Sat May 13 11:51:14 2023 UTC (9 months, 2 weeks ago) by martin
Branch: netbsd-10
Changes since 1.55: +7 -6 lines
Diff to previous 1.55 (colored)

Pull up following revision(s) (requested by chs in ticket #160):

	usr.sbin/makefs/ffs/ffs_alloc.c: revision 1.31
	sbin/tunefs/tunefs.c: revision 1.58
	sbin/fsck_ffs/setup.c: revision 1.105
	sbin/fsck_ffs/pass5.c: revision 1.56
	usr.sbin/makefs/ffs.c: revision 1.74
	usr.sbin/makefs/ffs/mkfs.c: revision 1.42
	usr.sbin/makefs/Makefile: revision 1.40
	sys/ufs/ffs/fs.h: revision 1.71
	sbin/fsdb/fsdb.c: revision 1.54
	sbin/resize_ffs/resize_ffs.c: revision 1.58
	sbin/fsck_ffs/pass4.c: revision 1.29
	usr.sbin/makefs/ffs/ffs_extern.h: revision 1.9
	sbin/newfs/mkfs.c: revision 1.133
	sys/ufs/ffs/ffs_alloc.c: revision 1.172
	sbin/fsck_ffs/pass1b.c: revision 1.24
	usr.sbin/dumpfs/dumpfs.c: revision 1.68
	sys/ufs/ffs/ffs_extern.h: revision 1.88
	usr.sbin/quotacheck/quotacheck.c: revision 1.51
	sys/ufs/ffs/ffs_subr.c: revision 1.54
	sbin/fsck_ffs/main.c: revision 1.91
	sbin/fsck_ffs/pass1.c: revision 1.63

ufs: fixed signed/unsigned bugs affecting large file systems

Apply these commits from FreeBSD:
  commit e870d1e6f97cc73308c11c40684b775bcfa906a2
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Wed Feb 10 20:10:35 2010 +0000
    This fix corrects a problem in the file system that treats large
    inode numbers as negative rather than unsigned. For a default
    (16K block) file system, this bug began to show up at a file system
    size above about 16Tb.
    To fully handle this problem, newfs must be updated to ensure that
    it will never create a filesystem with more than 2^32 inodes. That
    patch will be forthcoming soon.
    Reported by: Scott Burns, John Kilburg, Bruce Evans
    Followup by: Jeff Roberson
    PR:          133980
    MFC after:   2 weeks

  commit 81479e688b0f643ffacd3f335b4b4bba460b769d
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Thu Feb 11 18:14:53 2010 +0000
    One last pass to get all the unsigned comparisons correct.

In additional to the changes from FreeBSD, this commit includes quite a few
related changes to appease -Wsign-compare.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jan 8 05:25:24 2023 UTC (13 months, 2 weeks ago) by chs
Branch: MAIN
Changes since 1.56: +16 -13 lines
Diff to previous 1.56 (colored)

ufs: more signed/unsigned fixes

Fix the previous signed/unsigned fixes to build on 32-bit,
including applying this commit from FreeBSD:

  commit 2d34afcd04207cf3fa3d5b7f467a890eae75da41
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Sun Oct 25 21:04:07 2020 +0000

    Use proper type (ino_t) for inode numbers to avoid improper sign extention
    in the Pass 5 checks. The manifestation was fsck_ffs exiting with this error:

      ** Phase 5 - Check Cyl groups
      fsck_ffs: inoinfo: inumber 18446744071562087424 out of range

    The error only manifests itself for filesystems bigger than about 100Tb.

    Reported by:  Nikita Grechikhin <ngrechikhin at yandex.ru>
    MFC after:    2 weeks
    Sponsored by: Netflix

Revision 1.56 / (download) - annotate - [select for diffs], Sat Jan 7 19:41:29 2023 UTC (13 months, 3 weeks ago) by chs
Branch: MAIN
Changes since 1.55: +7 -6 lines
Diff to previous 1.55 (colored)

ufs: fixed signed/unsigned bugs affecting large file systems

Apply these commits from FreeBSD:

  commit e870d1e6f97cc73308c11c40684b775bcfa906a2
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Wed Feb 10 20:10:35 2010 +0000

    This fix corrects a problem in the file system that treats large
    inode numbers as negative rather than unsigned. For a default
    (16K block) file system, this bug began to show up at a file system
    size above about 16Tb.

    To fully handle this problem, newfs must be updated to ensure that
    it will never create a filesystem with more than 2^32 inodes. That
    patch will be forthcoming soon.

    Reported by: Scott Burns, John Kilburg, Bruce Evans
    Followup by: Jeff Roberson
    PR:          133980
    MFC after:   2 weeks

  commit 81479e688b0f643ffacd3f335b4b4bba460b769d
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Thu Feb 11 18:14:53 2010 +0000

    One last pass to get all the unsigned comparisons correct.


In additional to the changes from FreeBSD, this commit includes quite a few
related changes to appease -Wsign-compare.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Nov 17 06:40:38 2022 UTC (15 months, 1 week ago) by chs
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.54: +12 -5 lines
Diff to previous 1.54 (colored)

Restore backward compatibility of UFS2 with previous NetBSD releases by
disabling support in UFS2 for extended attributes (including ACLs).
Add a new variant of UFS2 called "UFS2ea" that does support extended attributes.
Add new	fsck_ffs operations "-c	ea" and	"-c no-ea" to convert file systems
from UFS2 to UFS2ea and	vice-versa (both of which delete all existing extended
attributes in the process).

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:24 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.50.2.1: +8 -8 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.49.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:37:28 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.49.2.2: +8 -8 lines
Diff to previous 1.49.2.2 (colored) to branchpoint 1.49 (colored) next main 1.50 (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.54 / (download) - annotate - [select for diffs], Sun Jun 23 22:03:34 2013 UTC (10 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, 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-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, 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, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Sun Jun 23 07:28:36 2013 UTC (10 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (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.52 / (download) - annotate - [select for diffs], Sun Jun 23 02:06:04 2013 UTC (10 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (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.50.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:06 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.50: +5 -5 lines
Diff to previous 1.50 (colored)

resync with head

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:30 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.49.2.1: +5 -5 lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored)

sync with head

Revision 1.51 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:12 2013 UTC (11 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Changes since 1.50: +5 -5 lines
Diff to previous 1.50 (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.49.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:26 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Sun Aug 26 09:33:42 2012 UTC (11 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

stdlib.h, not malloc.h

Revision 1.49 / (download) - annotate - [select for diffs], Sun Aug 14 12:32:01 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: 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
Branch point for: yamt-pagecache
Changes since 1.48: +8 -8 lines
Diff to previous 1.48 (colored)

WARNS=4

Revision 1.47.18.1 / (download) - annotate - [select for diffs], Thu Apr 3 13:54:10 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

Revision 1.47.16.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:49 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

sync with head.

Revision 1.47.8.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:44:23 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

sync with HEAD

Revision 1.48 / (download) - annotate - [select for diffs], Sat Feb 23 21:41:48 2008 UTC (16 years 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, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, 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-premerge-20101231, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored)

Make sure that the exit values are always sane, and use symbolic instead
of magic constants. Reviewed by go@

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 21:37:29 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.45: +3 -5 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Pull up following revision(s) (requested by ghen in ticket #1590):
	sbin/fsck_ffs/pass4.c: revision 1.23
	sbin/fsck_ffs/pass5.c: revision 1.47
	sbin/fsck_ffs/pass2.c: revision 1.44
	sbin/fsck_ffs/pass1.c: revision 1.43
	sbin/fsck_ffs/pass3.c: revision 1.19
	sbin/fsck/progress.c: revision 1.3
	sbin/fsck_ffs/main.c: revision 1.61
	sbin/fsck/progress.h: revision 1.2
Improve the progress bar displayed by fsck_ffs -p -P.
The progress bar will now travel from 0 to 20% during pass 1, from 20%
to 95% during pass 2, and from 95% to 100% during passes 3, 4, and 5.
Previously, the progress bar was not displayed at all during pass 1,
slowly traveled from 0 to about 50% during pass 2, and then very rapidly
traveled from 50% to 100% during passes 3, 4, and 5.
Note that fsck_ffs is the only user of fsck/progress.{c,h}.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Nov 14 21:01:46 2006 UTC (17 years, 3 months ago) by apb
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, netbsd-4, 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.46: +3 -5 lines
Diff to previous 1.46 (colored)

Improve the progress bar displayed by fsck_ffs -p -P.

The progress bar will now travel from 0 to 20% during pass 1, from 20%
to 95% during pass 2, and from 95% to 100% during passes 3, 4, and 5.
Previously, the progress bar was not displayed at all during pass 1,
slowly traveled from 0 to about 50% during pass 2, and then very rapidly
traveled from 50% to 100% during passes 3, 4, and 5.

Note that fsck_ffs is the only user of fsck/progress.{c,h}.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 27 01:25:35 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

sprinkle const.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jan 20 15:29:40 2005 UTC (19 years, 1 month ago) by xtraeme
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Branch point for: netbsd-3
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

whitespace (pointed out by wiz@)

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jan 19 17:33:59 2005 UTC (19 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.43: +4 -6 lines
Diff to previous 1.43 (colored)

Kill __P(), ANSIfy and WARNS=2

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jan 13 19:56:02 2005 UTC (19 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.42: +6 -6 lines
Diff to previous 1.42 (colored)

Use -DPROGRESS to enable the progress bar, don't depend on SMALL.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jan 13 15:22:35 2005 UTC (19 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.41: +12 -2 lines
Diff to previous 1.41 (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.41 / (download) - annotate - [select for diffs], Sat Oct 9 20:08:44 2004 UTC (19 years, 4 months ago) by ragge
Branch: MAIN
Changes since 1.40: +10 -6 lines
Diff to previous 1.40 (colored)

Cast to (long long int) to make last change compile on amd64.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Oct 8 16:42:55 2004 UTC (19 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.39: +18 -2 lines
Diff to previous 1.39 (colored)

if debug, print found/expected block & inode counts when incorrect

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 9 19:12:31 2004 UTC (20 years, 1 month ago) by dbj
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.38: +65 -10 lines
Diff to previous 1.38 (colored)

do not upgrade superblock or set FS_FLAGS_UPDATED unless -c 4 option
is provided.
add compatibility for filesystems before FFSv2 integration
these patches are from pr port-macppc/23925 and should also
fix problems discussed in pr kern/21404 and pr kern/21283

Revision 1.38 / (download) - annotate - [select for diffs], Fri Sep 19 08:35:15 2003 UTC (20 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.37: +9 -8 lines
Diff to previous 1.37 (colored)

realloc pedant

Revision 1.37 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:21 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.36: +3 -7 lines
Diff to previous 1.36 (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.36 / (download) - annotate - [select for diffs], Fri Apr 4 15:02:40 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.35: +6 -57 lines
Diff to previous 1.35 (colored)

When fixing the cstotal structure, use the right size to copy it back.
Also, remove some accidentally committed debug code from the previous
commit.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Apr 4 13:45:21 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.34: +55 -3 lines
Diff to previous 1.34 (colored)

Initialize cg_irotor correctly in newcg, to avoid false positives
for bad cylinder groups.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:26 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.33: +72 -101 lines
Diff to previous 1.33 (colored)

Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Feb 14 16:21:47 2003 UTC (21 years ago) by grant
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

'NetBSD.org' and some mdoc fixes.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:09 2003 UTC (21 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (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.31 / (download) - annotate - [select for diffs], Sat Sep 28 20:11:06 2002 UTC (21 years, 5 months ago) by dbj
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.30: +9 -2 lines
Diff to previous 1.30 (colored)

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

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

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 30 22:57:30 2002 UTC (21 years, 8 months ago) by dbj
Branch: MAIN
Changes since 1.29: +11 -3 lines
Diff to previous 1.29 (colored)

commit fix from pr bin/15449
this fixes FS_42POSTBLFMT compatibility

Revision 1.29 / (download) - annotate - [select for diffs], Mon May 6 03:17:43 2002 UTC (21 years, 9 months ago) by lukem
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
Changes since 1.28: +9 -2 lines
Diff to previous 1.28 (colored)

If SIGINFO is received, display summary information to stderr.
Based on changes in FreeBSD, via Chuck Cranor <chuck@research.att.com>

Revision 1.28 / (download) - annotate - [select for diffs], Wed Apr 10 17:29:30 2002 UTC (21 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Some manual strength reduction.

Revision 1.23.4.3 / (download) - annotate - [select for diffs], Sun Nov 25 19:26:46 2001 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.23.4.2: +3 -4 lines
Diff to previous 1.23.4.2 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Pull up revision 1.27 (requested by lukem):
  Call ffs_sb_swap() with the correct arguments.  Fixes problems
  with using other-endian file systems.

Revision 1.23.4.2 / (download) - annotate - [select for diffs], Sat Nov 24 22:08:39 2001 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.23.4.1: +46 -12 lines
Diff to previous 1.23.4.1 (colored) to branchpoint 1.23 (colored)

Pull up revisions 1.25-1.26 (requested by lukem):
  Jumbo pullup for fsck_ffs:
   o fix incorrect error message
   o mark initialized globals with ``extern''
   o make reconnect algorithm O(n) instead of O(n^4)
   o remove dead code
   o don't swap cg_clustersum(cg)[0], it's a bitmap
   o ensure rotor values are positive
   o some code restructuring
   o fix byte swapping bug
   o pass5: check alternate superblocks for consistency with in-core master
   o fix usage message

Revision 1.27 / (download) - annotate - [select for diffs], Fri Aug 17 02:18:47 2001 UTC (22 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.26: +3 -4 lines
Diff to previous 1.26 (colored)

remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap()
determine the endianness of the `struct fs *o' superblock from o->fs_magic
and set needswap as necessary, rather than trusting the caller to get
it right.  invariably, almost every caller of ffs_sb_swap() was calling it
with ns set to the wrong value for ns anyway!
ansi KNF ffs_bswap.c declarations whilst here.

this fixes all sorts of problems when trying to use other-endian file systems,
notably the kernel trying to access memory *way* off, possibly corrupting or
panicing, and userland programs SEGVing and/or corrupting things (e.g,
"fsck_ffs -B"  to swap a file system endianness).

whilst the previous rev of ffs_bswap.c (1.10, 2000/12/23) made this problem
worse, i suspect that the problem was always there and previous versions
just happened not to trash things at the wrong time.

FFS_EI should now be a lot more stable.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jan 26 17:37:16 2001 UTC (23 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.25: +43 -9 lines
Diff to previous 1.25 (colored)

In pass 5, check alternate superblocks for consistency with
the current in-core master superblock, and fix them up if
they're incorrect.  Move the code that writes the alternate
superblocks if (cvtlevel || doswap) into pass 5 for efficiency.

Reviewd by Charles Hannum, and used by me to fix up a curdled
file system.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 9 11:20:00 2001 UTC (23 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

Make sure the rotor values are non-negative.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Thu Jul 27 02:05:13 2000 UTC (23 years, 7 months ago) by mycroft
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored)

Approved by thorpej:
Add a missing newline to message.

basesrc/sbin/fsck_ffs/pass5.c				1.23 -> 1.24

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jul 14 02:43:44 2000 UTC (23 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored)

Add a missing newline in one message.
(The fact that I got this message using softdep should probably disturb
someone...)

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:24 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.20: +57 -32 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Pull up to last week's -current.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Nov 28 20:03:17 1999 UTC (24 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

Add a missing '\n'.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Nov 15 20:31:51 1999 UTC (24 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Fix %d <-> long mismatch.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 15 19:18:25 1999 UTC (24 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.20: +56 -32 lines
Diff to previous 1.20 (colored)

Changes for softdep code.

Revision 1.20.4.3 / (download) - annotate - [select for diffs], Tue Oct 26 23:20:11 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.20.4.2: +46 -25 lines
Diff to previous 1.20.4.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Fix some merge mistakes.

Revision 1.20.4.2 / (download) - annotate - [select for diffs], Tue Oct 26 19:30:04 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.20.4.1: +3 -3 lines
Diff to previous 1.20.4.1 (colored) to branchpoint 1.20 (colored)

Remove unused variable decl. From Ethan Solomita.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Tue Oct 19 13:01:29 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.20: +13 -10 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 25 19:18:15 1998 UTC (25 years, 6 months ago) by ross
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, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, fvdl-softdep
Changes since 1.19: +8 -5 lines
Diff to previous 1.19 (colored)

from Erik Bertelsen <erik@mediator.uni-c.dk>
 { put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 18 17:01:24 1998 UTC (25 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.18: +72 -32 lines
Diff to previous 1.18 (colored)

Add support for non-native byteorder FFS, and converting byteorder.
Also, be a bit more conservative with the clean flag: don't mark the FS
clean when we know there may still be errors (user anserwed 'n' to
a question, or fsck says "you must rerun fsck").

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 16 16:45:28 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.17: +20 -17 lines
Diff to previous 1.17 (colored)

resolve conflicts from lite-2 merge.

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Tue Sep 16 15:07:02 1997 UTC (26 years, 5 months ago) by lukem
Branch: CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +41 -32 lines
Diff to previous 1.1.1.2 (colored)

imported from lite-2

Revision 1.17 / (download) - annotate - [select for diffs], Sun Sep 14 14:36:36 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.16: +9 -8 lines
Diff to previous 1.16 (colored)

* cleanup for WARNS=1
* deprecate register
* cleanup manpage
* remove unused docheck() func
* prefix hex numbers with '0x'
* getopt returns -1 not EOF

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 27 22:45:18 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

- util.h -> fsutil.h

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 23 16:18:39 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (colored)

- fixed all printf formats [there were a lot of %l? <-> %? mistakes]
- added missing prototypes, and made local functions static
- removed parallel preening code; this is part of fsck(8)
- use printing utilities from fsck(8)
- Makefile does not make links to fsck and fsck.8
- removed -l maxparallel option. It has no meaning anymore.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Mar 21 01:30:16 1995 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.13: +7 -7 lines
Diff to previous 1.13 (colored)

type sizes

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 18 14:55:57 1995 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.12: +7 -2 lines
Diff to previous 1.12 (colored)

convert to new RCS Id conventions; reduce my headache

Revision 1.12 / (download) - annotate - [select for diffs], Wed Dec 28 00:03:54 1994 UTC (29 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

Mostly sync with CSRG.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 18 15:55:41 1994 UTC (29 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.10: +8 -5 lines
Diff to previous 1.10 (colored)

light clean, and make it compile against new header files.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Dec 5 20:16:03 1994 UTC (29 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

more cleanups from Jim Jegers, passed over by me.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Oct 28 16:55:05 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

Use the S_IS*() macros, and make this compile again after Chris's changes to ufs.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 23 23:49:15 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +8 -8 lines
Diff to previous 1.7 (colored)

Remove some more uses of obsolete functions.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 23 14:27:18 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +13 -13 lines
Diff to previous 1.6 (colored)

Eliminate uses of some obsolete functions.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Jun 13 22:43:33 1994 UTC (29 years, 8 months ago) by mycroft
Branch: CSRG
Changes since 1.1.1.1: +104 -21 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4-Lite version.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 8 19:00:30 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +104 -22 lines
Diff to previous 1.5 (colored)

Update from 4.4-Lite, with local changes.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 25 18:28:57 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

need <sys/time.h>

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 1 18:27:15 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Add RCS identifiers.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 23 00:28:09 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

changed "Id" to "Header" for rcsids

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 22 08:04:00 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

added rcs ids to all files

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: CSRG
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN

Initial revision

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>