Bug 67894 - mke2fs fails when specifying inodes and size
Summary: mke2fs fails when specifying inodes and size
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: e2fsprogs
Version: 7.1
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-03 21:13 UTC by Bruce
Modified: 2007-04-18 16:43 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-04-08 13:46:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Bruce 2002-07-03 21:13:47 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

Description of problem:
mke2fs allocates an incorrect number of inodes and size for some partition 
sizes and requested number of inodes

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Make a mount partition: mkdir /mnt_rd
2.Create the device of the required size: dd if=/dev/zero of=/root/initrd 
bs=<size> count=1
3.Create the file:mke2fs -N 20000 -F -m0 /root/initrd
4.Mount the file:mount -t ext2 -o loop initrd /mnt_rd
5.Observe device status:e2fsck /dev/loop0
6. Unmount the file:unmount /mnt_rd

This sequence fails for <size> of 16000k and 17000k but works for 18000k.
	

Actual Results:  For 16000k, e2fsck shows incorrect inodes (16384 files) and 
correct size (16000 blocks).
For 17000k, e2fsck shows incorrect inodes (16384 files) and incorrect size 
(16385 blocks).
For 18000k, e2fsck shows almost correct inodes (20016 files) and correct size 
(18000 blocks).

Expected Results:  I expected to see for bs=16000: 20000 files and 16000 blocks.
For bs=17000: 20000 files and 17000 blocks.
For bs=18000: 20000 files and 18000 blocks.

Additional info:

Comment 1 Thomas Woerner 2004-04-08 13:46:32 UTC
Fixed in rawhide in rpm e2fsprogs-1.35-7 or nerwer.


Note You need to log in before you can comment on or make changes to this bug.