Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1099892 - mke2fs on i686 now fails with "Value too large for defined data type"
mke2fs on i686 now fails with "Value too large for defined data type"
Product: Fedora
Classification: Fedora
Component: e2fsprogs (Show other bugs)
i686 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Eric Sandeen
Fedora Extras Quality Assurance
Depends On:
Blocks: TRACKER-bugs-affecting-libguestfs
  Show dependency treegraph
Reported: 2014-05-21 08:22 EDT by Richard W.M. Jones
Modified: 2014-07-13 08:19 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-05-21 13:50:26 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Richard W.M. Jones 2014-05-21 08:22:06 EDT
Description of problem:

mke2fs on Rawhide (but not Fedora 20) has started to fail on i686

/usr/sbin/mke2fs -t ext2 -Fq '/tmp/tmp.8XawRF2EgH/d2.0ryxonke/root
Could not open /tmp/tmp.8XawRF2EgH/d2.0ryxonke/root: Value too large for defined data type

The size of the file is 4GB exactly.

This FAQ suggests that this error is because the utility has
been compiled incorrectly:

Note that this does not fail on x86-64, nor on Fedora 20, nor
on earlier versions of Rawhide.  The failure has started in the
last few days.

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


How reproducible:


Steps to Reproduce:
1. Create 4GB file.
2. mke2fs -t ext2 -Fq file

Additional info:

The full log is here:
Comment 1 Eric Sandeen 2014-05-21 12:04:14 EDT
Cripes, did e2fsprogs lose -D_FILE_OFFSET_BITS=64 / O_LARGEFILE stuff?  Bleah, I'll look into it.
Comment 2 Eric Sandeen 2014-05-21 13:22:20 EDT
It's a regression, this should fix it.

diff --git a/misc/util.c b/misc/util.c
index f85942e..da98d00 100644
--- a/misc/util.c
+++ b/misc/util.c
@@ -89,7 +89,7 @@ int check_plausibility(const char *device, int flags, int *ret_is_dev)
 	int fd, is_dev = 0;
 	ext2fs_struct_stat s;
-	int fl = O_RDONLY;
 	if (flags & CREATE_FILE)
 		fl |= O_CREAT;
Comment 3 Eric Sandeen 2014-05-21 13:50:26 EDT
actually, using ext2fs_open_file() is probably better.

Anyway, fix building for rawhide.

Thanks for the report!

Comment 4 Richard W.M. Jones 2014-05-21 14:46:39 EDT
I have verified this fixes the problem for me, thanks.
Comment 5 Richard W.M. Jones 2014-07-13 08:19:17 EDT
Same thing recently affected Debian:


For reference the commit that fixes this is:


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