Subject: toolchain/33925: feature request: makefs(8) should output blocks used by each file
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <tg@mirbsd.org>
List: netbsd-bugs
Date: 07/06/2006 00:20:03
>Number:         33925
>Category:       toolchain
>Synopsis:       feature request: makefs(8) should output blocks used by each file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 06 00:20:03 +0000 2006
>Originator:     Thorsten Glaser
>Release:        code from cvs -rHEAD
>Organization:
MirOS Project
>Environment:
MirBSD odem.66h.42h.de 9 Kv#9s81-stable-20060701 GENERIC#923 i386
>Description:
When not specifying file system size,
writes are failing due to lack of space.

IMHO makefs always ought to build the
filesystem as small as possible, that's
why I don't want to "fix" it with a
simple "numblocks+=1;" somewhere in
the code.
>How-To-Repeat:
tg@odem:~ $ rm -rf testdir x;mkdir testdir; dd if=/dev/arandom of=testdir/test count=32; makefs x testdir
32+0 records in
32+0 records out
16384 bytes transferred in 0.001 secs (10291457 bytes/sec)
Calculated size of : 49152 bytes, 3 inodes
Extent size set to 8192
x: 0.0MB (96 sectors) block size 8192, fragment size 1024
        using 1 cylinder groups of 0.05MB, 6 blks, 64 inodes.
super-block backups (for fsck -b #) at:
 32,
Populating 
makefs: Writing inode 3 (testdir/test), bytes 0 + 8192: No space left on device
>Fix: