util-linux/disk-utils
Roy Peled c17e59b4b3 mkfs.cramfs: lower memory requirements for layouts with duplicate files
mkfs.cramfs allocates memory based on a calculated upper-bound
of required filesystem size. If there are duplicate files
or hard links, the current implementation unnecessarily increases
the upper-bound per each copy of the file, even though cramfs does
not store copies of contents of identical files.

This patch improves the calculation of fslen_ub, the upper bound
of required filesystem size, by making the upper bound aware of
duplicate files.

This is very helpful for layouts that hold a lot of hard links,
which are seen as duplicate files by mkfs.cramfs. For example,
this drastically reduces the memory requirements for creating
a standard Busybox layout.

Signed-off-by: Roy Peled <the.roy.peled@gmail.com>
2009-02-04 15:08:20 +01:00
..
.gitignore build-sys: update .gitignore files 2008-04-14 14:24:03 +02:00
Makefile.am mkfs.cramfs: add endianness support to cramfs tools 2009-02-04 14:56:54 +01:00
blockdev.8 blockdev: add --getsz to blockdev.8 2007-11-28 20:55:45 +01:00
blockdev.c blockdev: use lib/blkdev.c, fix --report 2007-11-07 20:59:28 +01:00
cramfs.h Imported from util-linux-2.11t tarball. 2006-12-07 00:25:58 +01:00
cramfs_common.c mkfs.cramfs: add endianness support to cramfs tools 2009-02-04 14:56:54 +01:00
cramfs_common.h mkfs.cramfs: add endianness support to cramfs tools 2009-02-04 14:56:54 +01:00
elvtune.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
elvtune.c elvtune: add NLS support 2008-10-03 08:22:50 +02:00
fdformat.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
fdformat.c Imported from util-linux-2.13-pre2 tarball. 2006-12-07 00:26:58 +01:00
fsck.cramfs.c mkfs.cramfs: add endianness support to cramfs tools 2009-02-04 14:56:54 +01:00
fsck.minix.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
fsck.minix.c mkfs.minix: (and fsck) rename bitops.h 2008-12-05 14:38:54 +01:00
isosize.8 Imported from util-linux-2.10s tarball. 2006-12-07 00:25:44 +01:00
isosize.c blockdev: fix: opened file leaving unclosed 2007-10-26 01:02:45 +02:00
minix.h Imported from util-linux-2.11m tarball. 2006-12-07 00:25:49 +01:00
minix_bitops.h mkfs.minix: (and fsck) rename bitops.h 2008-12-05 14:38:54 +01:00
mkfs.8 mkfs: remove nonsense from man page 2007-08-02 14:23:38 +02:00
mkfs.bfs.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
mkfs.bfs.c disk-utils: clean up code, use blkdev_* functions 2008-07-24 01:15:07 +02:00
mkfs.c Imported from util-linux-2.13-pre2 tarball. 2006-12-07 00:26:58 +01:00
mkfs.cramfs.c mkfs.cramfs: lower memory requirements for layouts with duplicate files 2009-02-04 15:08:20 +01:00
mkfs.minix.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
mkfs.minix.c mkfs.minix: (and fsck) rename bitops.h 2008-12-05 14:38:54 +01:00
mkswap.8 mkswap: set UUID for swap space (add -U option) 2008-02-15 01:31:50 +01:00
mkswap.c use getpagesize() 2008-07-30 13:26:58 +02:00
raw.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
raw.c raw: default to /dev/raw/rawctl 2008-12-26 01:13:03 +01:00