The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed Jul 5 10:59:08 2023 UTC (17 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -5 lines
Revert "fsck_ffs(8): Ensure A divides S before aligned_alloc(A, S)."

C17 lifted this restriction.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Jul 4 20:40:53 2023 UTC (17 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +8 -8 lines
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.76: download - view: text, markup, annotated - select for diffs
Tue Jul 4 20:40:22 2023 UTC (17 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +5 -3 lines
fsck_ffs(8): Ensure A divides S before aligned_alloc(A, S).

Required by C11 Sec. 7.22.3.1 The aligned_alloc function, para. 2,
p. 348:

   The value of alignment shall be a valid alignment supported by the
   implementation and the value of size shall be an integral multiple
   of alignment.

XXX pullup-10

Revision 1.73.6.2: download - view: text, markup, annotated - select for diffs
Sat May 13 12:16:06 2023 UTC (19 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.73.6.1: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.6.1: +3 -3 lines
Pull up following revision(s) (requested by chs in ticket #163):

	sbin/fsck_ffs/inode.c: revision 1.75

Use %zu rather than %lu to print a size_t (should fix i386 build).

Revision 1.73.6.1: download - view: text, markup, annotated - select for diffs
Sat May 13 12:13:54 2023 UTC (19 months ago) by martin
Branches: netbsd-10
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -5 lines
Pull up following revision(s) (requested by chs in ticket #162):

	sbin/fsck_ffs/inode.c: revision 1.74
	sbin/fsck_ffs/utilities.c: revision 1.68
	sbin/fsck_ffs/fsck.h: revision 1.57
	sbin/fsck_ffs/pass4.c: revision 1.30

catch up with sign changes in the fs.h

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Jan 14 17:01:10 2023 UTC (22 months, 3 weeks ago) by kre
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3 lines

Use %zu rather than %lu to print a size_t (should fix i386 build).

But, philosophical question, shouldn't the product of two size_t
variables really be an area_t, or something like that?

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Jan 14 12:12:50 2023 UTC (22 months, 4 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -5 lines
catch up with sign changes in the fs.h

Revision 1.72.12.1: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:00 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +3 -3 lines
Sync with HEAD

Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Apr 17 09:42:27 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-20200421, netbsd-10-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-10
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3 lines
align buffers used for I/O to DEV_BSIZE so it's executed more optimally
when run for xbd(4) raw (character) device

Revision 1.71.12.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:13 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +6 -2 lines
Sync with HEAD

Revision 1.71.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:01 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +6 -2 lines
Sync with HEAD

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Feb 8 16:11:40 2017 UTC (7 years, 10 months ago) by rin
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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-9-base, netbsd-9-4-RELEASE, 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-3-RELEASE, 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, is-mlppp-base, is-mlppp, bouyer-socketcan-base1
Branch point for: phil-wifi
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -2 lines
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.64.10.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:24 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.64.10.2: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.10.2: +20 -14 lines
Rebase to HEAD as of a few days ago.

Revision 1.64.4.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:37:28 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.64.4.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.4.1: +33 -27 lines
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.71: download - view: text, markup, annotated - select for diffs
Sat Apr 5 12:32:27 2014 UTC (10 years, 8 months ago) by justin
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, 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, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +10 -4 lines
Iterate over fields of struct seperately to avoid warnings from pedantic compilers

Revision 1.64.14.1: download - view: text, markup, annotated - select for diffs
Tue Dec 17 22:34:18 2013 UTC (10 years, 11 months ago) by riz
Branches: netbsd-6-1
CVS tags: netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +3 -3 lines
Pull up following revision(s) (requested by bouyer in ticket #991):
	sbin/fsck_ffs/inode.c: revision 1.70
Fix pasto in the !ufs2 case (use dp->dp1 and not of dp->dp2).
This would be a problem only when allocating a new data block and the
indir block is already allocated, which explains why automated tests didn't
find it.
Problem reported on tech-kern@ and fix tested by manu@.

Revision 1.64.12.1: download - view: text, markup, annotated - select for diffs
Tue Dec 17 22:33:39 2013 UTC (10 years, 11 months ago) by riz
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +3 -3 lines
Pull up following revision(s) (requested by bouyer in ticket #991):
	sbin/fsck_ffs/inode.c: revision 1.70
Fix pasto in the !ufs2 case (use dp->dp1 and not of dp->dp2).
This would be a problem only when allocating a new data block and the
indir block is already allocated, which explains why automated tests didn't
find it.
Problem reported on tech-kern@ and fix tested by manu@.

Revision 1.64.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 17 22:33:01 2013 UTC (10 years, 11 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +3 -3 lines
Pull up following revision(s) (requested by bouyer in ticket #991):
	sbin/fsck_ffs/inode.c: revision 1.70
Fix pasto in the !ufs2 case (use dp->dp1 and not of dp->dp2).
This would be a problem only when allocating a new data block and the
indir block is already allocated, which explains why automated tests didn't
find it.
Problem reported on tech-kern@ and fix tested by manu@.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Dec 2 18:46:52 2013 UTC (11 years ago) by bouyer
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
Fix pasto in the !ufs2 case (use dp->dp1 and not of dp->dp2).
This would be a problem only when allocating a new data block and the
indir block is already allocated, which explains why automated tests didn't
find it.
Problem reported on tech-kern@ and fix tested by manu@.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Jun 23 22:03:34 2013 UTC (11 years, 5 months ago) by dholland
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
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.68: download - view: text, markup, annotated - select for diffs
Sun Jun 23 07:28:36 2013 UTC (11 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +10 -10 lines
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.64.10.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:28:51 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.64.10.1: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.10.1: +13 -13 lines
resync from head

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Jun 23 02:06:04 2013 UTC (11 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
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.66: download - view: text, markup, annotated - select for diffs
Wed Jun 19 17:51:25 2013 UTC (11 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +13 -13 lines
Rename ambiguous macros:
   MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE
   NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR
   INOPB -> FFS_INOPB, LFS_INOPB
   INOPF -> FFS_INOPF, LFS_INOPF
   blksize -> ffs_blksize, ext2_blksize, or lfs_blksize
   sblksize -> ffs_blksize

These are not the only ambiguously defined filesystem macros, of
course, there's a pile more. I may not have found all the ambiguous
definitions of blksize(), too, as there are a lot of other things
called 'blksize' in the system.

Revision 1.64.10.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:28:06 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +27 -27 lines
resync with head

Revision 1.64.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:05:29 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +27 -27 lines
sync with head

Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Jan 22 09:39:11 2013 UTC (11 years, 10 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +27 -27 lines
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.64: download - view: text, markup, annotated - select for diffs
Sun Mar 6 17:08:16 2011 UTC (13 years, 9 months ago) by bouyer
Branches: 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-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6-1, netbsd-6-0, netbsd-6
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +235 -9 lines
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.63.2.3: download - view: text, markup, annotated - select for diffs
Sat Feb 12 21:48:41 2011 UTC (13 years, 10 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.63.2.2: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.2.2: +8 -5 lines
Skip snapshot inodes for both block and inode quotas.

Revision 1.63.2.2: download - view: text, markup, annotated - select for diffs
Sat Feb 12 19:53:32 2011 UTC (13 years, 10 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.63.2.1: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.2.1: +7 -3 lines
Snapshot inode doesn't count for block quotas.

Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 20 14:24:53 2011 UTC (13 years, 10 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +227 -8 lines
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.63: download - view: text, markup, annotated - select for diffs
Thu Feb 4 23:55:43 2010 UTC (14 years, 10 months ago) by christos
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: bouyer-quota2
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -7 lines
Centralize time printing and deal with ctime possibly returning NULL.

Revision 1.61.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:01 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +6 -7 lines
Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Apr 11 07:32:42 2009 UTC (15 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +6 -7 lines
fix sign-compare issues

Revision 1.57.4.2: download - view: text, markup, annotated - select for diffs
Tue Mar 24 21:33:59 2009 UTC (15 years, 8 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.57.4.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.4.1: +3 -3 lines
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.58.12.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:48:52 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.58.12.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.12.2: +1 -1 lines
Sync with HEAD.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Oct 9 16:56:23 2008 UTC (16 years, 2 months ago) by christos
Branches: 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-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
Branch point for: jym-xensuspend
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
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.58.12.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 11:17:11 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.58.12.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.12.1: +3 -3 lines
Sync with HEAD.

Revision 1.59.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:28:23 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +5 -5 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.59.6.1: download - view: text, markup, annotated - select for diffs
Fri Jul 18 16:28:48 2008 UTC (16 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +5 -5 lines
Sync with head.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Jul 8 08:14:37 2008 UTC (16 years, 5 months ago) by simonb
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +5 -5 lines
Fix funny whitespace in a variable assignment.

Revision 1.58.12.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 13:54:10 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +9 -9 lines
Sync with HEAD.

Revision 1.58.10.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:14:48 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +9 -9 lines
sync with head.

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:44:23 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +9 -9 lines
sync with HEAD

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Feb 23 21:41:48 2008 UTC (16 years, 9 months ago) by christos
Branches: 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
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +9 -9 lines
Make sure that the exit values are always sane, and use symbolic instead
of magic constants. Reviewed by go@

Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 12 19:39:09 2007 UTC (17 years, 8 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +8 -6 lines
Pull up following revision(s) (requested by chs in ticket #568):
	sbin/fsck_ffs/inode.c: revision 1.58
apply revision 1.31 yet again:
"make sure that we don't try to allocate negative memory when blks == 0."
or on amd64, "make sure that we don't allocate 32 GB when blks == 0."

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Apr 12 05:19:18 2007 UTC (17 years, 8 months ago) by chs
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +8 -6 lines
apply revision 1.31 yet again:
"make sure that we don't try to allocate negative memory when blks == 0."
or on amd64, "make sure that we don't allocate 32 GB when blks == 0."

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Apr 21 15:00:49 2006 UTC (18 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: netbsd-4-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: netbsd-4
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +9 -9 lines
Don't use cast expressions as lvalues as newer versions of gcc warn.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Fri Aug 19 02:07:19 2005 UTC (19 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +13 -9 lines
64 bit inode changes

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Jun 27 01:25:35 2005 UTC (19 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +13 -5 lines
sprinkle const.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Jun 2 00:38:41 2005 UTC (19 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
appease gcc -Wuninitialized

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Sun May 1 11:07:16 2005 UTC (19 years, 7 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +3 -6 lines
Pull up revision 1.52 (requested by christos in ticket #228):
Dammit, get rid of the debugging abort() calls. It is no fun to have a broken
fsck program on a busted filesystem.

Revision 1.45.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun May 1 10:32:51 2005 UTC (19 years, 7 months ago) by tron
Branches: netbsd-2
CVS tags: 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
Diff to: previous 1.45.2.1: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.1: +3 -6 lines
Pull up revision 1.52 (requested by christos in ticket #1493):
Dammit, get rid of the debugging abort() calls. It is no fun to have a broken
fsck program on a busted filesystem.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Apr 30 20:29:56 2005 UTC (19 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
Remove stray " I" from message.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Apr 30 20:24:32 2005 UTC (19 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -6 lines
Dammit, get rid of the debugging abort() calls. It is no fun to have a broken
fsck program on a busted filesystem.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Jan 20 15:29:40 2005 UTC (19 years, 10 months ago) by xtraeme
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
whitespace (pointed out by wiz@)

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Jan 19 17:33:58 2005 UTC (19 years, 10 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +23 -49 lines
Kill __P(), ANSIfy and WARNS=2

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Oct 8 17:33:52 2004 UTC (20 years, 2 months ago) by dbj
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +24 -2 lines
when allocating inodes, such as for the lost+found directory,
extend the inostat array if needed.  Otherwise, inoinfo() will
return the static "unallocated" inode template, which was
getting improperly modified.
Before this fix, any time the lost+found directory got created,
fsck would set all of the inode/directory counts wrong since
suddenly unallocated inodes would turn into directory inodes

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Jul 20 15:05:33 2004 UTC (20 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
Reduce memory usage slightly.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue May 25 14:54:56 2004 UTC (20 years, 6 months ago) by hannken
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -4 lines
Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.

- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
    may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
    Snapshots may not be opened for writing and the attributes are read-only.
    Use the mtime as the time this snapshot was taken.
    Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
  one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
  a vnode.
- Add snapshot support to ls, fsck_ffs and dump.

Welcome to 2.0F.

Approved by: Jason R. Thorpe <thorpej@netbsd.org>

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 28 06:01:40 2004 UTC (20 years, 7 months ago) by jmc
Branches: netbsd-2-0
CVS tags: netbsd-2-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
Branch point for: netbsd-2
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +4 -3 lines
Pullup rev 1.46 (requested by dbj in ticket #202)

Fix 64bit bug in chkrange().

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Apr 26 23:46:22 2004 UTC (20 years, 7 months ago) by dbj
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -3 lines
fix 64bit bug in chkrange()
problem noticed by nathanw
fix from freebsd

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Jan 3 17:56:21 2004 UTC (20 years, 11 months ago) by dbj
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +7 -6 lines
fix logic for handling symlinks in inodes when isappleufs

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Jan 3 17:27:35 2004 UTC (20 years, 11 months ago) by dbj
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -2 lines
when doing both -c 2 and -B, swap the blocks listed in the inode
of symlinks, since the swapping happens before the symlinks
are moved into the inode.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Jan 3 10:25:06 2004 UTC (20 years, 11 months ago) by dbj
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3 lines
fix paste-o in previous commit

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Jan 3 10:11:41 2004 UTC (20 years, 11 months ago) by dbj
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -6 lines
fix bugs with unsigned comparison ofs fs_maxsymlinklen

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Sep 19 08:35:15 2003 UTC (21 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -6 lines
realloc pedant

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Aug 7 10:04:20 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Jul 13 08:16:15 2003 UTC (21 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -8 lines
use bounded string op

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Apr 8 14:59:52 2003 UTC (21 years, 8 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
Swap the right blocks in an inode in the byteswapping case.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Apr 2 10:39:25 2003 UTC (21 years, 8 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +233 -121 lines
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.36: download - view: text, markup, annotated - select for diffs
Fri Jan 24 21:55:08 2003 UTC (21 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +27 -20 lines
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.35: download - view: text, markup, annotated - select for diffs
Sat Sep 28 20:11:06 2002 UTC (22 years, 2 months ago) by dbj
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -2 lines
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.34: download - view: text, markup, annotated - select for diffs
Fri Jan 5 02:02:57 2001 UTC (23 years, 11 months ago) by lukem
Branches: 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
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3 lines
use %ll_ instead of the less standard %q_

Revision 1.31.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:30:23 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +19 -2 lines
Pull up to last week's -current.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Dec 12 23:53:26 1999 UTC (25 years ago) by christos
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +8 -5 lines
- ARGH /brick fvdl
- Put back the change from revision 1.31

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Nov 15 19:18:24 1999 UTC (25 years, 1 month ago) by fvdl
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +22 -8 lines
Changes for softdep code.

Revision 1.30.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 26 23:20:11 1999 UTC (25 years, 1 month ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.30.4.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.4.1: +8 -3 lines
Fix some merge mistakes.

Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 19 13:01:28 1999 UTC (25 years, 1 month ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +14 -2 lines
Bring in Kirk McKusick's FFS softdep code on a branch.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Sep 6 19:52:28 1999 UTC (25 years, 3 months ago) by christos
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +8 -5 lines
make sure that we don't try to allocate negative memory when blks == 0.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Oct 23 01:13:33 1998 UTC (26 years, 1 month ago) by thorpej
Branches: 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
Branch point for: fvdl-softdep
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +7 -5 lines
Use DINODE_SIZE rather than sizeof(struct dinode) and/or pointer arithmetic.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Jul 28 19:22:55 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4 lines
__AUDIT__ cleanup.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Apr 1 15:38:58 1998 UTC (26 years, 8 months ago) by kleink
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -3 lines
Need <time.h> for ctime() and time() prototypes.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Mar 18 17:01:23 1998 UTC (26 years, 9 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +93 -65 lines
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.26: download - view: text, markup, annotated - select for diffs
Tue Sep 16 16:45:01 1997 UTC (27 years, 3 months ago) by lukem
Branches: 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
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +22 -19 lines
resolve conflicts from lite-2 merge.

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Sep 16 15:06:54 1997 UTC (27 years, 3 months ago) by lukem
Branches: CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +46 -27 lines
imported from lite-2

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Sep 16 08:37:05 1997 UTC (27 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
make these compile on the alpha after WARNS=1.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Sep 14 14:36:31 1997 UTC (27 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +21 -20 lines
* cleanup for WARNS=1
* deprecate register
* cleanup manpage
* remove unused docheck() func
* prefix hex numbers with '0x'
* getopt returns -1 not EOF

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 2 20:25:32 1997 UTC (27 years, 9 months ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +60 -3 lines
Pull up changes from Kirk McKusick to check for holes in directories.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 10 01:18:38 1996 UTC (28 years ago) by mycroft
Branches: netbsd-1-2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -6 lines
From trunk:
* Redo the tree-walking algorithm to make it O(n) rather than O(n^2).
* Fix some minor type size problems.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Oct 11 20:15:47 1996 UTC (28 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +60 -3 lines
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.22: download - view: text, markup, annotated - select for diffs
Fri Sep 27 22:45:13 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3 lines
- util.h -> fsutil.h

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Sep 23 16:18:34 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +14 -14 lines
- 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.20: download - view: text, markup, annotated - select for diffs
Tue Jun 11 07:07:54 1996 UTC (28 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2 lines
Use a different tree-walking algorithm in propagate().

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat May 25 09:57:36 1996 UTC (28 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -6 lines
File sizes in FFS are u_int64_t.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue May 21 16:58:12 1996 UTC (28 years, 6 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -4 lines
Adjust the logic a bit so we `nif' can't overflow.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Dec 17 06:03:36 1995 UTC (29 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -5 lines
Squish some type bugs pointed out by Jonathan Stone.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Dec 14 22:17:26 1995 UTC (29 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -3 lines
Make this compile with -Werror.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Jun 7 17:16:10 1995 UTC (29 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4 lines
typeof(timeval.tv_sec) != time_t

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Mar 20 00:40:10 1995 UTC (29 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +7 -4 lines
Make sure to recreate the `..' entry in the root directory if missing.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Mar 18 14:55:46 1995 UTC (29 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +7 -2 lines
convert to new RCS Id conventions; reduce my headache

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Dec 5 20:15:50 1994 UTC (30 years ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +21 -3 lines
more cleanups from Jim Jegers, passed over by me.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Sep 23 14:27:12 1994 UTC (30 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -5 lines
Eliminate uses of some obsolete functions.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jun 14 22:50:40 1994 UTC (30 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Fix compatibility with old fastlinks.

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Jun 13 22:44:00 1994 UTC (30 years, 6 months ago) by mycroft
Branches: CSRG
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +35 -23 lines
Import 4.4-Lite version.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jun 8 19:00:23 1994 UTC (30 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +36 -40 lines
Update from 4.4-Lite, with local changes.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon May 2 10:18:23 1994 UTC (30 years, 7 months ago) by pk
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +16 -2 lines
Prototype some things.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Apr 25 18:28:25 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -2 lines
need <sys/time.h>

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Apr 18 06:08:27 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -1 lines
kill some code if SMALL is defined...

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:27:24 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Add RCS identifiers.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jun 13 21:09:16 1993 UTC (31 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -2 lines
Add support for fast symlinks.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Mar 23 00:27:53 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
changed "Id" to "Header" for rcsids

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Mar 22 08:04:00 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -0 lines
added rcs ids to all files

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: CSRG
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>