The NetBSD Project

CVS log for src/usr.sbin/makefs/ffs.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.75 / (download) - annotate - [select for diffs], Thu Dec 28 12:13:55 2023 UTC (3 months, 2 weeks ago) by tsutsui
Branch: MAIN
CVS Tags: HEAD
Changes since 1.74: +16 -14 lines
Diff to previous 1.74 (colored) to selected 1.66.2.1 (colored)

Use EXIT_SUCCESS and EXIT_FAILURE where appropriate per style guide.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Sat May 13 11:51:14 2023 UTC (11 months ago) by martin
Branch: 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
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.66.2.1 (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.74 / (download) - annotate - [select for diffs], Sat Jan 7 19:41:30 2023 UTC (15 months, 1 week ago) by chs
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.66.2.1 (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.73 / (download) - annotate - [select for diffs], Thu Nov 17 06:40:41 2022 UTC (16 months, 4 weeks ago) by chs
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.72: +5 -2 lines
Diff to previous 1.72 (colored) to selected 1.66.2.1 (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.72 / (download) - annotate - [select for diffs], Sat Apr 9 10:05:35 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.71: +6 -6 lines
Diff to previous 1.71 (colored) to selected 1.66.2.1 (colored)

makefs(8): Nix trailing whitespace.

Computed by machine, eyeballed by hand, so to speak.

Revision 1.71 / (download) - annotate - [select for diffs], Wed Apr 6 13:44:25 2022 UTC (2 years ago) by wiz
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.66.2.1 (colored)

makefs: fix some typos

Revision 1.63.6.1.2.1 / (download) - annotate - [select for diffs], Thu Jun 14 19:40:38 2018 UTC (5 years, 10 months ago) by martin
Branch: netbsd-7-0
Changes since 1.63.6.1: +3 -3 lines
Diff to previous 1.63.6.1 (colored) next main 1.63.6.2 (colored) to selected 1.66.2.1 (colored)

Pull up following revision(s) (requested by maya in ticket #1615):

	usr.sbin/makefs/ffs.c: revision 1.70

PR/52828: Mark Johnston: makefs UFS2 lazy inode initialization is buggy
makefs(8) emulates UFS2 in performing lazy initialization of inode
blocks when allocating and writing inodes. However, it only ever
initializes one inode block at a time, which may be insufficient.

If so, a later initialization may clobber an inode, resulting in
an inconsistent filesystem.

I committed a minimal fix for the problem to FreeBSD:
https://svnweb.freebsd.org/changeset/base/326912

Revision 1.63.6.1.6.1 / (download) - annotate - [select for diffs], Thu Jun 14 19:40:07 2018 UTC (5 years, 10 months ago) by martin
Branch: netbsd-7-1
Changes since 1.63.6.1: +3 -3 lines
Diff to previous 1.63.6.1 (colored) next main 1.63.6.2 (colored) to selected 1.66.2.1 (colored)

Pull up following revision(s) (requested by maya in ticket #1615):

	usr.sbin/makefs/ffs.c: revision 1.70

PR/52828: Mark Johnston: makefs UFS2 lazy inode initialization is buggy
makefs(8) emulates UFS2 in performing lazy initialization of inode
blocks when allocating and writing inodes. However, it only ever
initializes one inode block at a time, which may be insufficient.

If so, a later initialization may clobber an inode, resulting in
an inconsistent filesystem.

I committed a minimal fix for the problem to FreeBSD:
https://svnweb.freebsd.org/changeset/base/326912

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Sat Jun 9 14:35:21 2018 UTC (5 years, 10 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.66.2.1 (colored)

Pull up following revision(s) (requested by maya in ticket #858):

	usr.sbin/makefs/ffs.c: revision 1.70

PR/52828: Mark Johnston: makefs UFS2 lazy inode initialization is buggy
makefs(8) emulates UFS2 in performing lazy initialization of inode
blocks when allocating and writing inodes. However, it only ever
initializes one inode block at a time, which may be insufficient.

If so, a later initialization may clobber an inode, resulting in
an inconsistent filesystem.

I committed a minimal fix for the problem to FreeBSD:
https://svnweb.freebsd.org/changeset/base/326912

Revision 1.63.6.2 / (download) - annotate - [select for diffs], Wed Jun 6 15:49:02 2018 UTC (5 years, 10 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.63.6.1: +3 -3 lines
Diff to previous 1.63.6.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.66.2.1 (colored)

Pull up following revision(s) (requested by maya in ticket #1615):

	usr.sbin/makefs/ffs.c: revision 1.70

PR/52828: Mark Johnston: makefs UFS2 lazy inode initialization is buggy
makefs(8) emulates UFS2 in performing lazy initialization of inode
blocks when allocating and writing inodes. However, it only ever
initializes one inode block at a time, which may be insufficient.

If so, a later initialization may clobber an inode, resulting in
an inconsistent filesystem.

I committed a minimal fix for the problem to FreeBSD:
https://svnweb.freebsd.org/changeset/base/326912

Revision 1.70 / (download) - annotate - [select for diffs], Sat Dec 16 23:08:40 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, 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, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.66.2.1 (colored)

PR/52828: Mark Johnston: makefs UFS2 lazy inode initialization is buggy

makefs(8) emulates UFS2 in performing lazy initialization of inode
blocks when allocating and writing inodes. However, it only ever
initializes one inode block at a time, which may be insufficient.
If so, a later initialization may clobber an inode, resulting in
an inconsistent filesystem.

I committed a minimal fix for the problem to FreeBSD:
https://svnweb.freebsd.org/changeset/base/326912

Revision 1.66.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:17 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.66: +5 -5 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.66.2.1 (colored)

Sync with HEAD

Revision 1.66.2.1 / (download) - annotate - [selected], Mon Mar 20 06:58:07 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.66: +5 -5 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

Sync with HEAD

Revision 1.69 / (download) - annotate - [select for diffs], Wed Feb 8 21:27:26 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.68: +5 -5 lines
Diff to previous 1.68 (colored) to selected 1.66.2.1 (colored)

stampst.st_ion consistent treatment (non-zero vs zero instead of testing == 1)

Revision 1.68 / (download) - annotate - [select for diffs], Wed Feb 8 02:23:45 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.67: +2 -3 lines
Diff to previous 1.67 (colored) to selected 1.66.2.1 (colored)

no, this is wrong.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Feb 8 02:20:35 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored) to selected 1.66.2.1 (colored)

zero out the superblock so that it does not contain random stuff in the
spare fields.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Dec 21 00:58:08 2015 UTC (8 years, 3 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.65: +12 -4 lines
Diff to previous 1.65 (colored) to selected 1.66.2.1 (colored)

more deterministic ffs for reproducible builds.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Dec 20 22:54:44 2015 UTC (8 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.64: +26 -22 lines
Diff to previous 1.64 (colored) to selected 1.66.2.1 (colored)

Add timestamp support to the ffs image creation; needed for in kernel memory
images MKREPRO.

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Tue Apr 14 05:08:09 2015 UTC (9 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, 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
Branch point for: netbsd-7-1, netbsd-7-0
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.66.2.1 (colored)

Pull up following revision(s) (requested by christos in ticket #684):
	usr.sbin/makefs/ffs.c: revision 1.64
PR/49559: Christian Brueffer: Fix typo maxbpf instead of maxbpg.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Jan 12 19:50:25 2015 UTC (9 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.66.2.1 (colored)

PR/49559: Christian Brueffer: Fix typo maxbpf instead of maxbpg.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:09 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.48.2.2: +4 -4 lines
Diff to previous 1.48.2.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored) to selected 1.66.2.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.45.2.5 / (download) - annotate - [select for diffs], Thu May 22 11:43:05 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.45.2.4: +90 -98 lines
Diff to previous 1.45.2.4 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.66.2.1 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:05 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.48.2.1: +16 -16 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored) to selected 1.66.2.1 (colored)

resync from head

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jun 23 02:06:06 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.62: +6 -6 lines
Diff to previous 1.62 (colored) to selected 1.66.2.1 (colored)

fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 19 17:51:27 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.61: +5 -5 lines
Diff to previous 1.61 (colored) to selected 1.66.2.1 (colored)

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.61 / (download) - annotate - [select for diffs], Sun Jun 9 17:57:09 2013 UTC (10 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.60: +13 -13 lines
Diff to previous 1.60 (colored) to selected 1.66.2.1 (colored)

Stick UFS_ in front of these symbols:
   DIRBLKSIZ
   DIRECTSIZ
   DIRSIZ
   OLDDIRFMT
   NEWDIRFMT

Part of PR 47909.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:44 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.48: +81 -89 lines
Diff to previous 1.48 (colored) to selected 1.66.2.1 (colored)

resync with head

Revision 1.60 / (download) - annotate - [select for diffs], Sun Feb 3 03:21:21 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.59: +12 -4 lines
Diff to previous 1.59 (colored) to selected 1.66.2.1 (colored)

- more changes to make -O work
- fix err* calls.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jan 30 19:19:19 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.58: +4 -3 lines
Diff to previous 1.58 (colored) to selected 1.66.2.1 (colored)

- don't abuse vp->fs to mean struct fs for ffs and struct msdos_opts;
  make it always fsinfo_t and change void * to that.
- kill unused structure members.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Jan 30 17:29:25 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.57: +2 -7 lines
Diff to previous 1.57 (colored) to selected 1.66.2.1 (colored)

gc global sectorsize.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jan 29 15:52:25 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.56: +14 -11 lines
Diff to previous 1.56 (colored) to selected 1.66.2.1 (colored)

make everything use the generic options parser.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jan 28 21:03:27 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.55: +45 -51 lines
Diff to previous 1.55 (colored) to selected 1.66.2.1 (colored)

- use emalloc and friends
- kill a bunch of global variables, more work to be done here
- homogenize option parsing. more work for cd9660
- use the new options parsing code to print an fs-specific usage

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jan 27 20:05:46 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.54: +2 -3 lines
Diff to previous 1.54 (colored) to selected 1.66.2.1 (colored)

This works well enough to populate plain files in the root dir. creating
directories fails.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jan 26 00:19:39 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) to selected 1.66.2.1 (colored)

make the buffer functions look exactly like the kernel ones and add other
cruft to make the kernel files compile.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Jan 24 01:10:47 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.52: +7 -10 lines
Diff to previous 1.52 (colored) to selected 1.66.2.1 (colored)

- Fix single letter option parsing.
- Instead of returning 1 << index and 0 on error,
  return just index and -1 on error for the set_option*() routines.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Jan 23 21:42:22 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.51: +5 -2 lines
Diff to previous 1.51 (colored) to selected 1.66.2.1 (colored)

return the bit of the option set, so that others can act on it.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jan 23 21:32:32 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.50: +21 -29 lines
Diff to previous 1.50 (colored) to selected 1.66.2.1 (colored)

remove duplicated code, and try to cleanup parsing by using the shared code.
cd9660 needs a lot of work.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jan 23 20:46:39 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.49: +23 -23 lines
Diff to previous 1.49 (colored) to selected 1.66.2.1 (colored)

- add support for parsing different types; not just int.
- add beginning of msdos support.

Revision 1.45.2.4 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:42 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.45.2.3: +10 -10 lines
Diff to previous 1.45.2.3 (colored) to branchpoint 1.45 (colored) to selected 1.66.2.1 (colored)

sync with head

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:19 2013 UTC (11 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.48: +10 -10 lines
Diff to previous 1.48 (colored) to selected 1.66.2.1 (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.45.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:37 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.45.2.2: +17 -5 lines
Diff to previous 1.45.2.2 (colored) to branchpoint 1.45 (colored) to selected 1.66.2.1 (colored)

sync with head

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jun 22 06:15:18 2012 UTC (11 years, 9 months ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.47: +17 -5 lines
Diff to previous 1.47 (colored) to selected 1.66.2.1 (colored)

Add -Z to enable sparse files - for ffs at least.
Based on a patch from shesha at juniper.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:28 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.45.2.1: +11 -10 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) to selected 1.66.2.1 (colored)

sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Apr 19 17:28:25 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.46: +11 -10 lines
Diff to previous 1.46 (colored) to selected 1.66.2.1 (colored)

WARNS=5

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:49 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored) to selected 1.66.2.1 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jan 28 02:35:46 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base4, 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
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored) to selected 1.66.2.1 (colored)

Patch from Jung-uk Kim (jkim at FreeBSD dot org) to allow contents of multiple
directories to be merged to the current image.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Oct 9 21:33:43 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.44: +5 -2 lines
Diff to previous 1.44 (colored) to selected 1.66.2.1 (colored)

add support for setting the ufs label. (Nathan Whitehorn)

Revision 1.42.20.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:28 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.42: +16 -8 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.66.2.1 (colored)

Sync with HEAD.

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

Revision 1.44 / (download) - annotate - [select for diffs], Tue Apr 28 22:49:26 2009 UTC (14 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.66.2.1 (colored)

Create images with 0666 - umask, not 0777 - umask (e.g. without x bits).

Revision 1.43 / (download) - annotate - [select for diffs], Thu Apr 16 18:54:16 2009 UTC (15 years ago) by dyoung
Branch: MAIN
Changes since 1.42: +15 -7 lines
Diff to previous 1.42 (colored) to selected 1.66.2.1 (colored)

Distinguish read(2) failure due to a short read from other causes, and
suggest in the error message a possible cause: the size= attribute in
the metalog (if one is given) may be different from the source file's
actual size.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Dec 18 21:03:29 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, 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, mjf-devfs2, 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, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: jym-xensuspend
Changes since 1.41: +2 -3 lines
Diff to previous 1.41 (colored) to selected 1.66.2.1 (colored)

from Anon Ymous: compile with -Wextra

Revision 1.41 / (download) - annotate - [select for diffs], Sun Oct 22 21:11:56 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) to selected 1.66.2.1 (colored)

use c99 initializers

Revision 1.40 / (download) - annotate - [select for diffs], Tue Oct 10 01:55:45 2006 UTC (17 years, 6 months ago) by dbj
Branch: MAIN
Changes since 1.39: +2 -10 lines
Diff to previous 1.39 (colored) to selected 1.66.2.1 (colored)

implement -x by pruning fsnodes tree before building filesystem rather
than by skipping nodes while building filesystem

Revision 1.39 / (download) - annotate - [select for diffs], Sat Apr 22 17:40:49 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) to selected 1.66.2.1 (colored)

Coverity CID 174: Add extra NULL test to appease coverity.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Mar 18 12:35:41 2006 UTC (18 years, 1 month ago) by rtr
Branch: MAIN
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (colored) to selected 1.66.2.1 (colored)

free buf on error path
coverity 190 / run 5

Revision 1.37 / (download) - annotate - [select for diffs], Sun Oct 23 16:12:02 2005 UTC (18 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored) to selected 1.66.2.1 (colored)

Use the real field name (d_fileno instead of d_ino).

Revision 1.36 / (download) - annotate - [select for diffs], Sat Aug 20 15:00:27 2005 UTC (18 years, 8 months ago) by kent
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.66.2.1 (colored)

fix compilatio problems on LP64

Revision 1.35 / (download) - annotate - [select for diffs], Sat Aug 13 01:49:35 2005 UTC (18 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored) to selected 1.66.2.1 (colored)

Fix a sign warning for WARNS=3.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 2 05:58:24 2005 UTC (18 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored) to selected 1.66.2.1 (colored)

appease gcc -Wuninitialized

Revision 1.33 / (download) - annotate - [select for diffs], Mon Dec 20 20:51:42 2004 UTC (19 years, 3 months ago) by jmc
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, netbsd-3
Changes since 1.32: +107 -59 lines
Diff to previous 1.32 (colored) to selected 1.66.2.1 (colored)

Refactor the filesystem specific portions out of makefs.c/makefs.h completely.
Instead of extending fsinfo_t it now holds a void * to file system specific
data. This is then setup/cleaned up by the additional of 2 additional
callbacks. Makes adding new filesystems simpler as almost no code has
to be updated in the generic makefs code now.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Oct 12 03:28:30 2004 UTC (19 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.31: +6 -6 lines
Diff to previous 1.31 (colored) to selected 1.66.2.1 (colored)

Check for fstatvfs and provide/use it only if the host system has it.
Fixes PR#27221

Revision 1.31 / (download) - annotate - [select for diffs], Sat Jul 24 16:30:50 2004 UTC (19 years, 8 months ago) by dbj
Branch: MAIN
Changes since 1.30: +6 -2 lines
Diff to previous 1.30 (colored) to selected 1.66.2.1 (colored)

include <sys/statvfs.h> if HAVE_STRUCT_STATVFS_F_IOSIZE
addresses part of PR toolchain/26415

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Fri Jun 25 02:34:44 2004 UTC (19 years, 9 months ago) by jmc
Branch: netbsd-2-0
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-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
Changes since 1.25.2.2: +4 -4 lines
Diff to previous 1.25.2.2 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored) to selected 1.66.2.1 (colored)

Pullup rev 1.30 (requested by lukem in ticket #549)

Define FFS_MAXBSIZE to 65536 and use instead of MAXBSIZE.
Deprecate unused MAXINOPB. PR#25603 fixed.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jun 24 22:30:13 2004 UTC (19 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored) to selected 1.66.2.1 (colored)

Define FFS_MAXBSIZE to 65536 and use instead of MAXBSIZE.
Deprecate unused MAXINOPB.
Should fix PR [toolchain/25603].

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Tue Jun 22 07:28:36 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-2-0
Changes since 1.25.2.1: +9 -2 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored) to selected 1.66.2.1 (colored)

Pull up revision 1.29 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:17 2004 UTC (19 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.28: +9 -2 lines
Diff to previous 1.28 (colored) to selected 1.66.2.1 (colored)

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Wed Apr 28 06:00:41 2004 UTC (19 years, 11 months ago) by jmc
Branch: netbsd-2-0
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored) to selected 1.66.2.1 (colored)

Pullup rev 1.28 (requested by dsl in ticket #200)

Allow for ROOTINO when deciding whether their are enough inodes in the
created filesystem.  Otherwise this fails when asked for 63 inodes for
i386 ramdisk-big.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 26 21:06:55 2004 UTC (19 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored) to selected 1.66.2.1 (colored)

Allow for ROOTINO when deciding whether their are enough inodes in the
created filesystem.  Otherwise this fails when asked for 63 inodes for
i386 ramdisk-big.
This code really needs to use the current version of newfs/mkfs.c where
the actual inode count can be passed in (instead of the density).
Fixes a build problem when I add /mountroot to mtree.common for sysinst.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:48 2004 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.26: +8 -8 lines
Diff to previous 1.26 (colored) to selected 1.66.2.1 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Fri Apr 2 11:27:56 2004 UTC (20 years ago) by lukem
Branch: MAIN
Changes since 1.25: +12 -5 lines
Diff to previous 1.25 (colored) to selected 1.66.2.1 (colored)

After populating the file system, update superblock->fs_old_cstotal from
superblock->fs_cstotal.  Fixes inconsistencies found by FreeBSD's fsck.
Problem noted by Luigi Rizzo <luigi@FreeBSD.org> via Colin Percival.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Oct 26 10:32:35 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.66.2.1 (colored)

Mention that we should be adding space for bitmaps.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 26 10:31:44 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored) to selected 1.66.2.1 (colored)

Remove a strange multiplication which appears to be incorrect.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Sep 19 06:11:35 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.22: +7 -5 lines
Diff to previous 1.22 (colored) to selected 1.66.2.1 (colored)

realloc pedant

Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 7 14:24:08 2003 UTC (20 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored) to selected 1.66.2.1 (colored)

Revert arc4random usage. makefs is only used for install images,
filehandle randomization is not an issue there, and using arc4random
broke building makefs as a host tool.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 6 12:42:00 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.20: +3 -4 lines
Diff to previous 1.20 (colored) to selected 1.66.2.1 (colored)

use arc4random

Revision 1.20 / (download) - annotate - [select for diffs], Thu Aug 7 11:25:32 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.19: +3 -7 lines
Diff to previous 1.19 (colored) to selected 1.66.2.1 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:48 2003 UTC (21 years ago) by fvdl
Branch: MAIN
Changes since 1.18: +225 -121 lines
Diff to previous 1.18 (colored) to selected 1.66.2.1 (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.18 / (download) - annotate - [select for diffs], Sun Mar 30 00:05:07 2003 UTC (21 years ago) by lukem
Branch: MAIN
Changes since 1.17: +6 -6 lines
Diff to previous 1.17 (colored) to selected 1.66.2.1 (colored)

Tweak Jason's -x support to pass its state around as part of fsinf_t,
just like all the other "global" options.
Update the usage for -x.
Crank date on man page.

(Thanks to Jason for adding -x; I've been meaning to add that
functionality for a while :-)

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 29 00:12:12 2003 UTC (21 years ago) by thorpej
Branch: MAIN
Changes since 1.16: +10 -2 lines
Diff to previous 1.16 (colored) to selected 1.66.2.1 (colored)

Add a -x option which causes makefs(8) to exclude any file system node
not explicitly listed in the specfile.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 24 21:55:32 2003 UTC (21 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored) to selected 1.66.2.1 (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.14.2.1 / (download) - annotate - [select for diffs], Thu May 30 21:09:38 2002 UTC (21 years, 10 months ago) by tv
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.14: +2 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.66.2.1 (colored)

Pull up revision 1.15 (requested by thorpej in ticket #87):
d_namlen is a uint8_t, and thus will always be < MAXMANLEN + 1 (256),
so there is no need to assert it.

Revision 1.15 / (download) - annotate - [select for diffs], Thu May 30 18:16:41 2002 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.14: +2 -3 lines
Diff to previous 1.14 (colored) to selected 1.66.2.1 (colored)

d_namlen is a uint8_t, and thus will always be < MAXMANLEN + 1 (256),
so there is no need to assert it.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 15 04:04:57 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.13: +7 -2 lines
Diff to previous 1.13 (colored) to selected 1.66.2.1 (colored)

- Clear fs_fmod in superblock before final write.  Noted by Erik Anggard.
- Explicitly close the image file descriptor at the end of ffs_makefs().

Revision 1.13 / (download) - annotate - [select for diffs], Wed Feb 6 02:17:14 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.12: +12 -10 lines
Diff to previous 1.12 (colored) to selected 1.66.2.1 (colored)

- clean up some debugging and verbose output
- use fs_cstotal.cs_nifree rather than fs->fs_ncg * fs->fs_ipg to
  determine the number of free inodes available in the file system
- don't count '.' (the root node for a level) in inode sizing, since
  the parent has already been counted
- some more todo items

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jan 31 22:44:02 2002 UTC (22 years, 2 months ago) by tv
Branch: MAIN
Changes since 1.11: +17 -6 lines
Diff to previous 1.11 (colored) to selected 1.66.2.1 (colored)

Roll in fixes to permit cross-compiling from non-NetBSD hosts.  This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jan 26 13:27:53 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.10: +6 -4 lines
Diff to previous 1.10 (colored) to selected 1.66.2.1 (colored)

be a little bit more verbose

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 26 13:22:16 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.9: +22 -7 lines
Diff to previous 1.9 (colored) to selected 1.66.2.1 (colored)

- crank default cpg from 16 to 65536, and let the auto-sizing code in
  mkfs() do its job
- pass cpgflg=1 to mkfs() if the user provided cpg, =0 otherwise
- improve error reporting in ffs_write_file()
- only add superblock & block map slop for one cylinder group.
  trying to calculate the number of required cylinder groups caused
  too many problems when tweaking parameters for small file systems.
  rely upon slop from minfree, and upon ffs_write_file() to complain
  if the user is too aggressive about tweaking the parameters

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 18 08:39:23 2002 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.8: +18 -18 lines
Diff to previous 1.8 (colored) to selected 1.66.2.1 (colored)

use -1 instead of 0 as the value to indicate if a numeric parameter
hasn't been set and thus needs a default override.
allows minfree and rotdelay to take a value of 0.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 7 16:56:26 2002 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.66.2.1 (colored)

add "ffs/ufs_inode.h" with a minimal struct inode, to replace
<ufs/ufs/inode.h>, since the latter has a lot of cruft we don't need
and it #include's way more stuff in <sys/*> (etc) than is needed here.
yet another nail in the "let's make makefs a proper host tool" coffin.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 7 16:27:22 2002 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.6: +7 -7 lines
Diff to previous 1.6 (colored) to selected 1.66.2.1 (colored)

- pull in <ufs/ufs/dinode.h> before <ufs/ffs/fs.h>
- #include <ufs/[uf]fs/*.h> instead of "ufs/[uf]fs/*.h", and don't bother
  with -I../../sys; we'll solve the hostprog problem another way and
  unconditionally pulling in NetBSD-current's usr/src/sys on a host system
  could be a Bad Thing.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 7 05:07:50 2002 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored) to selected 1.66.2.1 (colored)

fix bugs reported by matt green:
- when calculating file size, round up to frag size not block size
- #define FFS_EI in makefs.h, and include that before [uf]fs/*.h

other stuff:
- round up final size to next block (instead of next sector)
- protect makefs.h from multiple inclusion

Revision 1.5 / (download) - annotate - [select for diffs], Wed Dec 5 11:08:53 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.4: +41 -38 lines
Diff to previous 1.4 (colored) to selected 1.66.2.1 (colored)

rework `fsnode' into two components; `fsnode' contains the name and tree
information and a link to the appropriate fsinode, and `fsinode' contains
the inode information and a reference count. multiple fsnodes may point
to the same fsinode.  this replaces the 'dup' pointer in the previous code.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 22 02:47:26 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.3: +7 -7 lines
Diff to previous 1.3 (colored) to selected 1.66.2.1 (colored)

reference the ufs/[uf]fs headers in ../../sys rather than using those
in /usr/include. this should make it easier to make this a host tool

Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 2 03:12:48 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored) to selected 1.66.2.1 (colored)

tweak copyright

Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 28 13:14:05 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored) to selected 1.66.2.1 (colored)

add __RCSID()

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Oct 26 06:19:00 2001 UTC (22 years, 5 months ago) by lukem
Branch: WASABI
CVS Tags: makefs-20011026
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.66.2.1 (colored)

makefs - create a file system image from a directory tree.
It doesn't need any special privileges or kernel devices.

Only ffs image creation is supported at this time, although makefs has been
designed to allow the addition of other file system formats by writing new
back-ends.

This program was designed & implemented by Luke Mewburn of Wasabi Systems.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 26 06:19:00 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Diff to selected 1.66.2.1 (colored)

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>