Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 2929] New: genext2fs: couldn't allocate a block (no free space)
@ 2010-12-10  9:28 bugzilla at busybox.net
  2010-12-30 22:35 ` [Buildroot] [Bug 2929] " bugzilla at busybox.net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2010-12-10  9:28 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=2929

           Summary: genext2fs: couldn't allocate a block (no free space)
           Product: buildroot
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: andyg1001 at hotmail.co.uk
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


fs/ext2/genext2fs.sh is incorrectly calculating the size required to create an
ext2 image file, and it seems to happen when the size of the image exceeds
500Mb (but I haven't done precise testing to determine this).

This is the command genext2fs.sh is using:

genext2fs -d /home/test/buildroot-2010.11/target -U
/home/test/buildroot-2010.11/images/rootfs.ext2 -b 525096 -N 5242

du on the target directory returns 508712
find | wc -l in the target directory returns 4842

Modifying the call to genext2fs with -b 529712 (i.e. 508712+21000) makes an
image without errors and e2fsck rootfs.ext2 tells me "4440/5720 files,
529506/529712 blocks", so it should be possible to create the image with 529506
blocks, but 21000 seems a good enough "guess".

Does this information help?  If you need further information or testing, let me
know.

Thanks
Andy

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [Bug 2929] genext2fs: couldn't allocate a block (no free space)
  2010-12-10  9:28 [Buildroot] [Bug 2929] New: genext2fs: couldn't allocate a block (no free space) bugzilla at busybox.net
@ 2010-12-30 22:35 ` bugzilla at busybox.net
  2012-07-07  3:36 ` bugzilla at busybox.net
  2013-05-26 14:22 ` bugzilla at busybox.net
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2010-12-30 22:35 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=2929

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Peter Korsgaard <jacmet@uclibc.org>  ---
Hi,

I've implemented better ext2 size estimation in git (eeea3ea6a88a8) - Could you
give it a try?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [Bug 2929] genext2fs: couldn't allocate a block (no free space)
  2010-12-10  9:28 [Buildroot] [Bug 2929] New: genext2fs: couldn't allocate a block (no free space) bugzilla at busybox.net
  2010-12-30 22:35 ` [Buildroot] [Bug 2929] " bugzilla at busybox.net
@ 2012-07-07  3:36 ` bugzilla at busybox.net
  2013-05-26 14:22 ` bugzilla at busybox.net
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2012-07-07  3:36 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=2929

Sean Mathews <mathewss@nutech.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |mathewss at nutech.com
         Resolution|FIXED                       |

--- Comment #2 from Sean Mathews <mathewss@nutech.com> 2012-07-07 03:36:58 UTC ---
 genext2fs presumes block sizes are 1024 but genext2fs.sh looks at the total
blocks on the local file system where the block size may be different. In my
case it was 4096 so this error shows up still in this case.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [Bug 2929] genext2fs: couldn't allocate a block (no free space)
  2010-12-10  9:28 [Buildroot] [Bug 2929] New: genext2fs: couldn't allocate a block (no free space) bugzilla at busybox.net
  2010-12-30 22:35 ` [Buildroot] [Bug 2929] " bugzilla at busybox.net
  2012-07-07  3:36 ` bugzilla at busybox.net
@ 2013-05-26 14:22 ` bugzilla at busybox.net
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2013-05-26 14:22 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=2929

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |yann.morin.1998 at free.fr
         Resolution|                            |INVALID

--- Comment #3 from Yann E. MORIN <yann.morin.1998@free.fr> 2013-05-26 14:21:11 UTC ---
Sean,

Estimating the number of blocks is done with a call to: 'du -k' where '-k'
means 'assume 1KiB blocks' (see: man du). So your issue is probably /slightly/
different.

If you manage to reproduce this issue, please reopen this bug and report back
with a bit more information: buildroot's .config file, host file system...

Regards,
Yann E. MORIN.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-26 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-10  9:28 [Buildroot] [Bug 2929] New: genext2fs: couldn't allocate a block (no free space) bugzilla at busybox.net
2010-12-30 22:35 ` [Buildroot] [Bug 2929] " bugzilla at busybox.net
2012-07-07  3:36 ` bugzilla at busybox.net
2013-05-26 14:22 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox