The NetBSD Project

CVS log for src/sbin/newfs_ext2fs/newfs_ext2fs.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Sat Apr 16 18:15:21 2022 UTC (9 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

fix various typos in comments and log messages.

Revision 1.9.26.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:35 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 6 05:11:13 2019 UTC (3 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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.9: +3 -3 lines
Diff to previous 1.9 (colored)

make ext2fs rev1 the default.  this enables LARGEFILES support.

Revision 1.8.12.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:26 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.8: +3 -4 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.8.6.1 / (download) - annotate - [select for diffs], Thu May 22 11:37:30 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.8: +3 -4 lines
Diff to previous 1.8 (colored) next main 1.9 (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.9 / (download) - annotate - [select for diffs], Sat Oct 19 01:09:59 2013 UTC (9 years, 3 months ago) by christos
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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.8: +3 -4 lines
Diff to previous 1.8 (colored)

fix unused variable warnings.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sun Jan 16 12:38:27 2011 UTC (12 years ago) by bouyer
Branch: netbsd-5
CVS Tags: 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
Changes since 1.4: +20 -11 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1486):
	sbin/fsck_ext2fs/setup.c: revision 1.26
	sbin/newfs_ext2fs/mke2fs.c: revision 1.10
	sbin/newfs_ext2fs/mke2fs.c: revision 1.11
	sbin/newfs_ext2fs/mke2fs.c: revision 1.12
	sbin/fsck_ext2fs/inode.c: revision 1.24
	sys/lib/libsa/ext2fs.c: revision 1.6
	sbin/newfs_ext2fs/extern.h: revision 1.3
	sbin/fsck_ext2fs/inode.c: revision 1.25
	sys/lib/libsa/ext2fs.c: revision 1.7
	sbin/fsck_ext2fs/inode.c: revision 1.26
	sys/ufs/ext2fs/ext2fs_inode.c: revision 1.68
	sbin/fsck_ext2fs/inode.c: revision 1.27
	sbin/fsck_ext2fs/inode.c: revision 1.28
	sys/ufs/ext2fs/ext2fs_dinode.h: revision 1.18
	sys/ufs/ext2fs/ext2fs_dinode.h: revision 1.19
	sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.5
	sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.2
	sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.6
	sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.3
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.142
	sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.7
	sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.4
	sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.8
PR/40936: Frederik Sausmikat: ext2fs: add support for inodes > 128 bytes
Support variable inode sizes.
catch up with variable inode size.
Don't use e2fs_inode_size in superblock on E2FS_REV0 file system.
- accept only EXT2_REV0_DINODE_SIZE inodesize on -O 0
- use inodesize to get offset of inode, not struct ext2fs_dinode array
Replace a magic number with a new EXT2_REV0_DINODE_SIZE macro.
Use EXT2_DINODE_SIZE() to get offset of inode, not struct ext2fs_dinode array.
Fix botched logic in inodesize check.
Use inodesize to get offset of inode in one more place.
- add a sanity check for e2fs_inode_size in readsb()
- use EXT2_DINODE_SIZE() rather than sizeof(struct ext2fs_dinode) or
  struct ext2fs_dinode array/pointer to see e2fs_ipb and inode offsets
Sort options.
New sentence, new line.
Sort options in usage.
- unsigned -> unsigned int
- remove unnecessary casts from malloc(3) and free(3)
- fix a bogus indent
Use "size > INT32_MAX" rather than "size >= 0x80000000U" to check 2GB limit.
Add missed byteswap ops against ext2fs_dinode members.
Handle 32 bit uid field on E2FS_REV1.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:04 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.4: +20 -11 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

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

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 2 10:38:13 2009 UTC (13 years, 11 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Fix botched logic in inodesize check.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 2 10:16:49 2009 UTC (13 years, 11 months ago) by tsutsui
Branch: MAIN
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

Replace a magic number with a new EXT2_REV0_DINODE_SIZE macro.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 1 21:54:31 2009 UTC (13 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.5: +10 -10 lines
Diff to previous 1.5 (colored)

Sort options in usage.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 1 19:21:09 2009 UTC (13 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.4: +11 -3 lines
Diff to previous 1.4 (colored)

Support variable inode sizes.

Revision 1.3.6.1 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:14 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.3.10.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:28:28 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 20 01:20:23 2008 UTC (14 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, 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, 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: netbsd-5, jym-xensuspend
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

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

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:38:15 2008 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.3.2.1: +477 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with HEAD

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Thu Dec 27 00:47:04 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.3.2.1, Sat Dec 15 19:44:47 2007 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.3: +0 -477 lines
FILE REMOVED

file newfs_ext2fs.c was added on branch matt-armv6 on 2008-01-09 01:38:15 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 15 19:44:47 2007 UTC (15 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: wrstuden-revivesa, mjf-devfs2, matt-armv6
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

convert __attribute__s to applicable cdefs.h macros

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 14 13:19:35 2007 UTC (15 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

Don't allow blocksize larger than 4096 bytes as our kernel, fsck_ext2fs(8),
and Linux e2fsprogs.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Nov 17 16:50:26 2007 UTC (15 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Branch point for: mjf-devfs

Add a dumb but BSD-licensed newfs_ext2fs(8) command.
This is based on the newfs(8) command for ffs, but
most ext2fs specific part is written from scratch.

Tested on alpha, cobalt, i386 and sgimips with some disks and vnd(4),
and at least cobalt's firmware can load boot files from an ext2fs
E2FS_REV0 partition created by this native newfs_ext2fs(8) command.

Closes PR bin/16175.

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>