diff options
author | Roy Peled | 2008-11-28 15:57:00 +0100 |
---|---|---|
committer | Karel Zak | 2009-02-04 15:08:20 +0100 |
commit | c17e59b4b31de15ae0d90e31d09cf7ee1cc3ee89 (patch) | |
tree | 805f2737344b01fc02b6b7c61abd78c00252d628 /tests/functions.sh | |
parent | mkfs.cramfs: add endianness support to cramfs tools (diff) | |
download | kernel-qcow2-util-linux-c17e59b4b31de15ae0d90e31d09cf7ee1cc3ee89.tar.gz kernel-qcow2-util-linux-c17e59b4b31de15ae0d90e31d09cf7ee1cc3ee89.tar.xz kernel-qcow2-util-linux-c17e59b4b31de15ae0d90e31d09cf7ee1cc3ee89.zip |
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>
Diffstat (limited to 'tests/functions.sh')
0 files changed, 0 insertions, 0 deletions