]> git.ipfire.org Git - thirdparty/util-linux.git/commit
small bug in mkfs.cramfs + patch
authorArnaud Mouiche <arnaud.mouiche@invoxia.com>
Thu, 17 Nov 2011 17:03:04 +0000 (18:03 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 23 Nov 2011 12:29:32 +0000 (13:29 +0100)
commit8b472bfa73e07e333fbb1aa4abb64ec5a2b4810b
tree0b67ba15c81f59c05f1a85ea6b3a6af8bc7a2237
parent411fd3c27aed72c50677aaf006ebfa6df39a1cfc
small bug in mkfs.cramfs + patch

mkfs.cramfs on version v2.17.2 has a small bug when dealing with very small
filesystems.  look at upstream code on git, and the issue is still here.
ex:

         $ cd /tmp
         $ mkdir content
         $ echo hello > content/a
         $ echo hello > content/b
         $ mkfs.cramfs content content.cramfs
         not enough space allocated for ROM image (4090 allocated, 4096 used)

Here is a patch for fixing (simply rounding to page size AFTER eleminating
doubles).

Signed-off-by: Arnaud Mouiche <arnaud.mouiche@invoxia.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkfs.cramfs.c