Home | History | Annotate | Download | only in newfs_ext2fs
History log of /src/sbin/newfs_ext2fs/newfs_ext2fs.c
RevisionDateAuthorComments
 1.11  16-Apr-2022  andvar fix various typos in comments and log messages.
 1.10  06-Mar-2019  mrg make ext2fs rev1 the default. this enables LARGEFILES support.
 1.9  19-Oct-2013  christos branches: 1.9.26;
fix unused variable warnings.
 1.8  02-Mar-2009  tsutsui branches: 1.8.6; 1.8.12;
Fix botched logic in inodesize check.
 1.7  02-Mar-2009  tsutsui Replace a magic number with a new EXT2_REV0_DINODE_SIZE macro.
 1.6  01-Mar-2009  wiz Sort options in usage.
 1.5  01-Mar-2009  christos Support variable inode sizes.
 1.4  20-Jul-2008  lukem branches: 1.4.2; 1.4.4;
Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
 1.3  15-Dec-2007  perry branches: 1.3.2; 1.3.6; 1.3.10;
convert __attribute__s to applicable cdefs.h macros
 1.2  14-Dec-2007  tsutsui Don't allow blocksize larger than 4096 bytes as our kernel, fsck_ext2fs(8),
and Linux e2fsprogs.
 1.1  17-Nov-2007  tsutsui branches: 1.1.2;
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.
 1.1.2.1  27-Dec-2007  mjf Sync with HEAD.
 1.3.10.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.3.6.1  28-Sep-2008  mjf Sync with HEAD.
 1.3.2.2  09-Jan-2008  matt sync with HEAD
 1.3.2.1  15-Dec-2007  matt file newfs_ext2fs.c was added on branch matt-armv6 on 2008-01-09 01:38:15 +0000
 1.4.4.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.4.2.1  16-Jan-2011  bouyer 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.
 1.8.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.6.1  22-May-2014  yamt 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")
 1.9.26.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed