Commit Graph

31 Commits

Author SHA1 Message Date
tsutsui b01393af8c Add a URL of Linux Documentation "The Second Extended Filesystem." 2010-09-10 15:51:20 +00:00
tsutsui 5b900f2697 Avoid line break in `Linux Ext2' strings. 2010-02-25 13:09:17 +00:00
wiz dcced1277c Fix string, noted by tsutsui. 2010-02-21 13:23:15 +00:00
wiz 380455a930 Fix pasto noted by tsutsui. 2010-02-18 13:49:19 +00:00
wiz 841db612d9 Various fixes from Jason McIntyre <jmc@kerhand.co.uk>. 2010-02-17 21:39:14 +00:00
pooka 3cf07ff872 Remove vinum-removal sentence fragment, similarly to newfs(8). 2009-12-01 08:47:25 +00:00
joerg 65828ca533 Use .%U. 2009-10-25 18:34:04 +00:00
snj 550147bd6a Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
bouyer 6d07b400dc Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !
2009-10-19 18:41:07 +00:00
haad f5b48500f1 Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@.
2009-06-05 21:52:31 +00:00
wiz a8df896a15 Sort option descriptions. 2009-05-18 12:17:54 +00:00
lukem ef685eeea9 Enable WARNS=4 by default except for:
dump  dump_lfs  fsck_ffs  fsck_lfs  fsdb  mount_smbfs
	newfs_ext2fs  newfs_lfs  resize_lfs  setkey
2009-04-11 07:58:11 +00:00
tsutsui 14c85750c6 Use inodesize to get offset of inode in one more place. 2009-03-02 10:57:03 +00:00
tsutsui 48c2d0ee71 Fix botched logic in inodesize check. 2009-03-02 10:38:13 +00:00
tsutsui 1b5cd43c66 Replace a magic number with a new EXT2_REV0_DINODE_SIZE macro. 2009-03-02 10:16:49 +00:00
tsutsui 8676336f2d - accept only EXT2_REV0_DINODE_SIZE inodesize on -O 0
- use inodesize to get offset of inode, not struct ext2fs_dinode array
2009-03-02 10:15:59 +00:00
wiz dcc33b5c39 Sort options in usage. 2009-03-01 21:54:31 +00:00
wiz 9ea4262fa9 New sentence, new line. 2009-03-01 21:52:59 +00:00
wiz 5d45b7ee8a Sort options. 2009-03-01 21:52:37 +00:00
christos 29055c6385 Support variable inode sizes. 2009-03-01 19:21:09 +00:00
tsutsui 00c798e9e3 Fix some spelling. 2008-08-28 16:29:24 +00:00
lukem 6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
tsutsui b87210fa51 Normalize my licenses. 2008-05-14 13:29:27 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
tsutsui ea9dd22af6 Don't allow blocksize larger than 4096 bytes as our kernel, fsck_ext2fs(8),
and Linux e2fsprogs.
2007-12-14 13:19:35 +00:00
tsutsui 3c4a86f736 Fix typo. 2007-12-09 17:39:51 +00:00
tsutsui 58babb9c75 Roundup e2fs_ipg to make it use whole inode table blocks since
it's still reasonable and some kernel code seems to assume it
(otherwise some inode numbers of directories could be corrupted).

XXX: not sure if odd e2fs_ipg is valid or not in ext2fs spec.
2007-11-21 13:14:06 +00:00
tsutsui ddd9ad0a5e Fix e2fs_itpg calculation. 2007-11-20 16:34:37 +00:00
tsutsui e2cf99a49a - fix a possible integer overflow
- initialize inode generation numbers with random numbers for NFS
  like newfs(8) as man page said
  XXX: sys/ufs/ext2fs/ext2fs_alloc.c:ext2fs_valloc() seems to override
       these generated numbers.
2007-11-19 15:11:50 +00:00
tsutsui 67c9d310f8 Several minor fixes:
- replace a magic number with a macro
- fix several printf format
- fix possble block sizes for zap_old_sblock()
- use err(3) rather than errx(3) + strerror(errno)
- fix a typo
- misc cosmetics
2007-11-18 07:11:39 +00:00
tsutsui f8b02b9cdf 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.
2007-11-17 16:50:25 +00:00