The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.92 / (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.91: +3 -4 lines
Diff to previous 1.91 (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.90.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
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.90: +3 -3 lines
Diff to previous 1.90 (colored) next main 1.91 (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.91 / (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.90: +3 -3 lines
Diff to previous 1.90 (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.90 / (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.89: +14 -3 lines
Diff to previous 1.89 (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.84.12.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:20 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.84.12.2: +0 -1 lines
Diff to previous 1.84.12.2 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.84.12.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:18 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.84.12.1: +68 -2 lines
Diff to previous 1.84.12.1 (colored) to branchpoint 1.84 (colored)

Merge changes from current as of 20200406

Revision 1.89 / (download) - annotate - [select for diffs], Mon Apr 6 09:54:24 2020 UTC (3 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.88: +5 -3 lines
Diff to previous 1.88 (colored)

Sync "common" declarations with ifdefs in header.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Apr 6 06:41:34 2020 UTC (3 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.87: +4 -2 lines
Diff to previous 1.87 (colored)

dion't define endian as well as try to declare it as a variable.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Apr 5 15:25:40 2020 UTC (3 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.86: +64 -2 lines
Diff to previous 1.86 (colored)

Fix depenency on common symbols in sbin.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Fri Aug 16 19:30:42 2019 UTC (4 years, 6 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.85: +2 -3 lines
Diff to previous 1.85 (colored) next main 1.86 (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.86 / (download) - annotate - [select for diffs], Thu Aug 15 03:10:42 2019 UTC (4 years, 6 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.85: +2 -3 lines
Diff to previous 1.85 (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.84.12.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:33 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.84: +13 -7 lines
Diff to previous 1.84 (colored)

Sync with HEAD

Revision 1.85 / (download) - annotate - [select for diffs], Sun May 5 14:59:06 2019 UTC (4 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.84: +13 -7 lines
Diff to previous 1.84 (colored)

Add a -z flag to zero out the up to 4 bytes of padding in directory entry
names (including the terminating NUL), as well as directory entries with
extra free space (d->d_reclen > UFS_DIRSIZ(d)).

Inspired from FreeBSD:
    https://svnweb.freebsd.org/base?view=revision&revision=347066

While the kernel has been fixed to deal with the padding bytes (new
kernels will correctly zero out all the padding after the name), it
appears that there is still an issue with directory entries with extra
free space, since a newly created and populated filesystem gets modified
with "fsck_ffs -z".

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:13 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.83: +21 -5 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

Sync with HEAD

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:01 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.83: +21 -5 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

Sync with HEAD

Revision 1.84 / (download) - annotate - [select for diffs], Wed Feb 8 16:11:40 2017 UTC (7 years ago) by rin
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, 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, bouyer-socketcan-base1
Branch point for: phil-wifi
Changes since 1.83: +21 -5 lines
Diff to previous 1.83 (colored)

Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where
support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1
and APPLE_UFS=1 are added to CRUNCHENV, respectively.

This reduces the size of ramdisk image for atari by over 15KB.

Thanks tsutsui and christos for their useful comments.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Jun 16 23:58:30 2015 UTC (8 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

a few more \n's in errors

Revision 1.82 / (download) - annotate - [select for diffs], Tue Jun 16 23:18:55 2015 UTC (8 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

fix error messages containing \n

Revision 1.80.8.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.80: +3 -3 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

resync with head

Revision 1.80.2.1 / (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.80: +3 -3 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

sync with head

Revision 1.81 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:11 2013 UTC (11 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, 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, 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, agc-symver-base, agc-symver
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (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.80 / (download) - annotate - [select for diffs], Mon Aug 29 14:34:59 2011 UTC (12 years, 6 months ago) by joerg
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, 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, tls-maxphys
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

Use __dead

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:18:42 2011 UTC (12 years, 8 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.78: +7 -5 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jun 9 19:57:52 2011 UTC (12 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.78: +7 -5 lines
Diff to previous 1.78 (colored)

share more code.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:16 2011 UTC (12 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.77: +7 -2 lines
Diff to previous 1.77 (colored)

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:05 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.76.2.1: +8 -3 lines
Diff to previous 1.76.2.1 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored)

Sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Sun Feb 6 12:02:59 2011 UTC (13 years ago) by njoly
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.76: +8 -3 lines
Diff to previous 1.76 (colored)

Do Skip device checks, which ends up parsing fstab, when working on a
filesystem image with -F option set.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:24:53 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.76: +7 -2 lines
Diff to previous 1.76 (colored)

Snapshot of work in progress on a modernised disk quota system:
- new quotactl syscall (versionned for backward compat), which takes
  as parameter a path to a mount point, and a prop_dictionary
  (in plistref format) describing commands and arguments.
  For each command, status and data are returned as a prop_dictionary.
  quota commands features will be added to take advantage of this,
  exporting quota data or getting quota commands as plists.

- new on disk-format storage (all 64bit wide), integrated to metadata for
  ffs (and playing nicely with wapbl).
  Quotas are enabled on a ffs filesystem via superblock flags.
  tunefs(8) can enable or disable quotas.
  On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid
  block and inode usages, and will check and update quotas in Pass 6.
  quota usage and limits are stored in unliked files (one for users,
  one for groups)l fsck_ffs(8) will create the files if needed, or
  free them if needed. This means that after enabling or disabling
  quotas on a filesystem; a fsck_ffs(8) run is required.
  quotacheck(8) is not needed any more, on a unclean shutdown
  fsck or journal replay will take care of fixing quotas.
  newfs(8) can create a ready-to-mount quota-enabled filesystem
  (superblock flags are set and quota inodes are created).
  Other new features or semantic changes:
  - default quota datas, applied to users or groups which don't already
    have a quota entry
  - per-user/group grace time (instead of a filesystem global one)
  - 0 really means "nothing allowed at all", not "no limit".
    If you want "no limit", set the limit to UQUAD_MAX (tools will
    understand "unlimited" and "-")

  A quota file is structured as follow:
  it starts with a header, containing a few per-filesystem values,
  and the default quota limits.
  Quota entries are linked together as a simple list, each entry has a
  pointer (as an offset withing the file) to the next.
  The header has a pointer to a list of free quota entries, and
  a hash table of in-use entries. The size of the hash table depends
  on the filesystem block size (header+hash table should fit in the
  first block). The file is not sparse and is a multiple of
  filesystem block size (when the free quota entry list is empty a new
  filesystem block is allocated). quota entries to not cross
  filesystem block boundaries.

  In memory, the kernel keeps a cache of recently used quota entries
  as a reference to the block number, and offset withing the block.
  The quota entry itself is keept in the buf cache.

fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with
related atf tests :)
The kernel can update disk usage and report it via quotactl(2).

Todo: enforce quotas limits (limits are not checked by kernel yet)
      update repquota, edquota and rpc.rquotad to the new world
      implement compat_50_quotactl ioctl.
      update quotactl(2) man page

fsck_ffs required fixes so that allocating new blocks or inodes will
properly update the superblock and cg sumaries. This was not an issue up
to now because superblock and cg sumaries check happened last, but now
allocations or frees can happen in pass 6.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Apr 11 08:23:51 2010 UTC (13 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.75: +4 -65 lines
Diff to previous 1.75 (colored)

Add -x option which allows to run `fsck_msdos -n' on a snapshot of
a live file system.

While here modify snap_open() to accept a character device as its
first arg and remove now unneeded get_snap_device().

Reviewed by: Manuel Bouyer <bouyer@netbsd.org>

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jan 7 01:39:56 2010 UTC (14 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

make this compile again.

Revision 1.74 / (download) - annotate - [select for diffs], Wed Jan 6 18:12:37 2010 UTC (14 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

PR/42568: Pedro F. Giffuni: Better signal handling from OpenBSD, but simplified.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Tue Mar 24 21:33:59 2009 UTC (14 years, 11 months ago) by bouyer
Branch: netbsd-4
Changes since 1.62: +8 -3 lines
Diff to previous 1.62 (colored) next main 1.63 (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.66.12.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:48:52 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.66.12.2: +9 -3 lines
Diff to previous 1.66.12.2 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Sync with HEAD.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Oct 12 20:49:43 2008 UTC (15 years, 4 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.72: +5 -5 lines
Diff to previous 1.72 (colored)

Don't use unicode in usage.
Noted by Anon Ymous.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Oct 9 18:38:24 2008 UTC (15 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.71: +5 -4 lines
Diff to previous 1.71 (colored)

Sync usage with man page.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Oct 9 16:56:23 2008 UTC (15 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.70: +8 -3 lines
Diff to previous 1.70 (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.66.12.2 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:11 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.66.12.1: +108 -12 lines
Diff to previous 1.66.12.1 (colored) to branchpoint 1.66 (colored)

Sync with HEAD.

Revision 1.67.4.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:28:23 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.67: +110 -14 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Aug 30 14:07:32 2008 UTC (15 years, 6 months ago) by dogcow
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored)

Make it compile. (HI BOUYER!)

Revision 1.69 / (download) - annotate - [select for diffs], Sat Aug 30 10:46:16 2008 UTC (15 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.68: +107 -12 lines
Diff to previous 1.68 (colored)

Add fss(4) snapshot support to fsck_ffs(8) (via -x or -X options, like
dump(8)). This allows fsck_ffs -n to work on a snapshot of a R/W mounted
filesystem, and avoid errors related to filesystem activity.

Revision 1.67.6.1 / (download) - annotate - [select for diffs], Mon Jul 28 14:30:37 2008 UTC (15 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Jul 20 01:20:22 2008 UTC (15 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)

Revision 1.66.12.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.66: +25 -23 lines
Diff to previous 1.66 (colored)

Sync with HEAD.

Revision 1.66.10.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:48 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.66: +25 -23 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

sync with head.

Revision 1.66.4.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.66: +25 -23 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

sync with HEAD

Revision 1.67 / (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-1, wrstuden-revivesa-base, matt-armv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.66: +25 -23 lines
Diff to previous 1.66 (colored)

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

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jul 16 17:06:52 2007 UTC (16 years, 7 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.65: +4 -3 lines
Diff to previous 1.65 (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.65 / (download) - annotate - [select for diffs], Sat Jul 14 15:57:24 2007 UTC (16 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Add additional 'sizeof args' parameter to mount(2).

Revision 1.64 / (download) - annotate - [select for diffs], Thu Feb 8 21:36:58 2007 UTC (17 years ago) by drochner
Branch: MAIN
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored)

include <signal.h> where signal(3) is used

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jan 17 21:59:49 2007 UTC (17 years, 1 month ago) by hubertf
Branch: MAIN
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored)

Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 21:38:19 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.57.2.1: +3 -3 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Pull up following revision(s) (requested by ghen in ticket #1590):
	sbin/fsck_ffs/main.c: revision 1.62
Fix error in previous.  Pass 1 needs to use progress_setrange(),
not progress_sethighlim().

Revision 1.57.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.57: +36 -22 lines
Diff to previous 1.57 (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.62 / (download) - annotate - [select for diffs], Tue Nov 14 22:51:11 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
Branch point for: netbsd-4
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Fix error in previous.  Pass 1 needs to use progress_setrange(),
not progress_sethighlim().

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 14 21:01:46 2006 UTC (17 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.60: +36 -22 lines
Diff to previous 1.60 (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.60 / (download) - annotate - [select for diffs], Fri Sep 23 12:10:34 2005 UTC (18 years, 5 months ago) by jmmv
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.59: +2 -4 lines
Diff to previous 1.59 (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.59 / (download) - annotate - [select for diffs], Fri Aug 19 02:07:19 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.58: +7 -6 lines
Diff to previous 1.58 (colored)

64 bit inode changes

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

sprinkle const.

Revision 1.57 / (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.56: +5 -5 lines
Diff to previous 1.56 (colored)

whitespace (pointed out by wiz@)

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 19 17:33:58 2005 UTC (19 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.55: +9 -20 lines
Diff to previous 1.55 (colored)

Kill __P(), ANSIfy and WARNS=2

Revision 1.55 / (download) - annotate - [select for diffs], Wed Jan 19 16:42:14 2005 UTC (19 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Add -P to usage.

Revision 1.54 / (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.53: +10 -10 lines
Diff to previous 1.53 (colored)

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

Revision 1.53 / (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.52: +45 -3 lines
Diff to previous 1.52 (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.52 / (download) - annotate - [select for diffs], Mon Oct 11 15:24:09 2004 UTC (19 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.51: +6 -2 lines
Diff to previous 1.51 (colored)

always print warning and return non-zero exit when there are unresolved inconsistencies.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jun 25 14:50:15 2004 UTC (19 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Add -a to usage. Closes PR 25916 by Kouichirou Hiratsuka.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:33 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.49: +8 -8 lines
Diff to previous 1.49 (colored)

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

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jan 17 22:17:07 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.48: +6 -2 lines
Diff to previous 1.48 (colored)

print warning if the user specifies a conversion level greater than implemented

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:33 2004 UTC (20 years, 1 month ago) by jmmv
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Oct 20 12:04:38 2003 UTC (20 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.46: +19 -15 lines
Diff to previous 1.46 (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.46 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:20 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.45: +3 -7 lines
Diff to previous 1.45 (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.45 / (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.44: +19 -10 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Tue Jan 28 05:17:12 2003 UTC (21 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.43: +6 -6 lines
Diff to previous 1.43 (colored)

make this build on alpha after daddr_t->64bit

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:08 2003 UTC (21 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.42: +13 -10 lines
Diff to previous 1.42 (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.42 / (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.41: +8 -3 lines
Diff to previous 1.41 (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.41 / (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.40: +3 -2 lines
Diff to previous 1.40 (colored)

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

Revision 1.34.4.2 / (download) - annotate - [select for diffs], Sun Nov 25 19:19:49 2001 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.34.4.1: +5 -3 lines
Diff to previous 1.34.4.1 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

Pull up revision 1.39 (requested by lukem):
  Use int32_t for on-disk time_t representation.
  Convert %q_ to %ll_ in print formats.

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Sat Nov 24 22:07:46 2001 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.34: +8 -17 lines
Diff to previous 1.34 (colored)

Pull up revisions 1.35-1.37 (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.40 / (download) - annotate - [select for diffs], Wed Aug 15 03:54:53 2001 UTC (22 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.39: +10 -5 lines
Diff to previous 1.39 (colored)

- implement -F; treat provided filesystems as images in regular files
- replace "filesystem" with "file system" as appropriate
- grammar fixes

Revision 1.39 / (download) - annotate - [select for diffs], Fri Feb 23 07:51:41 2001 UTC (23 years ago) by christos
Branch: MAIN
Changes since 1.38: +5 -3 lines
Diff to previous 1.38 (colored)

fix compile errors.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:19 2001 UTC (23 years ago) by cgd
Branch: MAIN
Changes since 1.37: +4 -5 lines
Diff to previous 1.37 (colored)

convert to use getprogname()

Revision 1.37 / (download) - annotate - [select for diffs], Sun Feb 4 21:25:54 2001 UTC (23 years ago) by christos
Branch: MAIN
Changes since 1.36: +3 -4 lines
Diff to previous 1.36 (colored)

remove redundant declarations

Revision 1.36 / (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.35: +3 -13 lines
Diff to previous 1.35 (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.35 / (download) - annotate - [select for diffs], Wed Dec 13 03:04:51 2000 UTC (23 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.34: +6 -4 lines
Diff to previous 1.34 (colored)

Fix an annoyingly incorrect message.

Revision 1.33.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.33: +10 -3 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Pull up to last week's -current.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Nov 15 19:18:25 1999 UTC (24 years, 3 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.33: +10 -3 lines
Diff to previous 1.33 (colored)

Changes for softdep code.

Revision 1.33.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.33: +10 -3 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

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

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 26 20:32:43 1998 UTC (25 years, 7 months ago) by mycroft
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.32: +5 -4 lines
Diff to previous 1.32 (colored)

const poisoning.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Apr 1 15:55:43 1998 UTC (25 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

Need <time.h> for time() prototype.

Revision 1.31 / (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.30: +38 -24 lines
Diff to previous 1.30 (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.30 / (download) - annotate - [select for diffs], Sun Mar 1 02:20:37 1998 UTC (26 years ago) by fvdl
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

Merge with Lite2 + local changes

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Sun Nov 2 20:29:31 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: 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
Changes since 1.28: +8 -2 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Pull rev 1.29 up from trunk (mjacob)

Revision 1.29 / (download) - annotate - [select for diffs], Sun Nov 2 01:42:44 1997 UTC (26 years, 4 months ago) by mjacob
Branch: MAIN
Changes since 1.28: +8 -2 lines
Diff to previous 1.28 (colored)

Hmmm..fsck_ffs has to really be able to alwasy work, and if you've got
a *huge* (like 600GB) filesystem, you need to not be limited by resource
limits.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 1 02:17:06 1997 UTC (26 years, 5 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.27: +2 -4 lines
Diff to previous 1.27 (colored)

Don't declare optind and optarg.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Sep 24 09:24:21 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.26: +10 -2 lines
Diff to previous 1.26 (colored)

for now, #ifdef out a couple of chunks that were added in the lite2 merge

Revision 1.26 / (download) - annotate - [select for diffs], Sat Sep 20 06:16:27 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

- don't indiscriminately include <stdlib.h> and <unistd.h> in "fsck.h"
- explicitly pull in <stdio.h>, <stdlib.h> and <unistd.h> in *.c as necessary

Revision 1.25 / (download) - annotate - [select for diffs], Tue Sep 16 16:45:05 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.24: +25 -9 lines
Diff to previous 1.24 (colored)

resolve conflicts from lite-2 merge.

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

imported from lite-2

Revision 1.24 / (download) - annotate - [select for diffs], Sun Sep 14 14:36:32 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.23: +6 -24 lines
Diff to previous 1.23 (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.19.4.1 / (download) - annotate - [select for diffs], Sun Mar 2 20:25:33 1997 UTC (27 years ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.19: +4 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Pull up changes from Kirk McKusick to check for holes in directories.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 22 16:35:04 1996 UTC (27 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.22: +37 -19 lines
Diff to previous 1.22 (colored)

- sort and remove unused options.
- If no filesystem is specified or an incorrect option, print usage information

Revision 1.22 / (download) - annotate - [select for diffs], Fri Oct 11 20:15:48 1996 UTC (27 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored)

Bug fix from Kirk McKusick <mckusick@McKusick.COM>:

Fix a bug in fsck_ffs where if a directory somehow develops a hole
(that is a block pointer that has a value of zero), fsck would give the
filesystem a clean bill of health, but the kernel would panic when
accessing the directory with the hole. Fsck now checks for holes
in directories.  If found in preen mode, fsck fails.  In manual
mode, it can be directed to shorten the directory to the beginning of
the hole. A  more complete solution would be to allocate a block to fill
the hole. However, this is a lot more work for a `cannot happen' error,
so the extra effort seems unwarranted.

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

- util.h -> fsutil.h

Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 23 16:18:35 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.19: +23 -26 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Tue Nov 28 05:25:28 1995 UTC (28 years, 3 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

merge in changes from 1.1 release branch

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed Nov 1 00:06:18 1995 UTC (28 years, 4 months ago) by jtc
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

complete ufs -> ffs change (From John Kohl; PR #1403)

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 12 03:39:53 1995 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

recognize 'ffs' and 'ufs' as meaning the same thing.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 12 01:49:21 1995 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.16: +7 -3 lines
Diff to previous 1.16 (colored)

implement a 'force check' flag, '-f'.  I used the SunOS name, but the Digital
semantics.  now:
	(1) dirty file systems will always be checked; nothing new there.
	(2) if not '-f' clean file systems will _NEVER_ be checked,
		i.e. they won't be checked even if -p isn't specified.  This
		allows one to 'fsck -p ; fsck' to preen, then clean up
		anything that 'fsck -p' barfs on, without waiting for the
		clean file systems to be checked again.
	(3) if '-f' clean file systems will ALWAYS be checked.  This
		allows people to put 'fsck -fp' into /etc/rc on systems
		where they're leery of the FS clean flag state, need
		the extra reliability, and can afford time 'wasted'
		in checks.
The assumption made here is that if a file system is marked clean, it
_IS CLEAN_, really, and shouldn't be checked unless fsck is explicitly
told to (with -f).  This should be a valid assumption, but may not be in
the presence of file system bugs.  Documentation updated to note '-f'.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 12 21:24:10 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +9 -4 lines
Diff to previous 1.15 (colored)

Set the clean flag if necessary.  If preening, don't check `clean' file
systems.

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

convert to new RCS Id conventions; reduce my headache

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 5 20:15:52 1994 UTC (29 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.13: +12 -2 lines
Diff to previous 1.13 (colored)

more cleanups from Jim Jegers, passed over by me.

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

Import 4.4-Lite version.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 8 19:00:24 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +93 -86 lines
Diff to previous 1.12 (colored)

Update from 4.4-Lite, with local changes.

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

need <sys/time.h>

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 6 00:08:58 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

kill the evil U word! from Mike Long <mike.long@analog.com>

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 15 15:15:25 1993 UTC (30 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

try again to keep it from rebooting endlessly

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 6 00:52:07 1993 UTC (30 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

set the 'clean' flag sometimes, but ignore it when deciding to clean
or not.  this allows you to use this fsck and... reboot your system;
otherwise it would inf-loop rebooting and marking the FS clean,
which would then mark the fs modified, cause a reboot, etc.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 3 03:54:38 1993 UTC (30 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +5 -1 lines
Diff to previous 1.7 (colored)

#if 0 the fs_clean check for now.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 1 02:25:19 1993 UTC (30 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Don't set clean flag if -n.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 1 01:48:01 1993 UTC (30 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Initial count for fs_state is `FS_CLEANFREQ'.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 1 01:45:30 1993 UTC (30 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +61 -43 lines
Diff to previous 1.4 (colored)

Skip check if filesystem is marked clean and isn't too dusty, only with -p.
Set clean flag after checking a filesystem.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 1 18:27:23 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:27:55 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>