From: Nikolay Ivanets <stenavin(a)gmail.com>
This patch adds 4096 bytes sector size for output disk.
Side notes:
While working on this patch I reveal long standing issue: virt-make-fs can fail
if source directory/archive contains certain amount of really small or empty
files or wide tree of directories. That is because of lack of available inodes
on a small file system to keep files structure. In fact, the overall size of the
source is not enought information to create minimal file system which can hold
all files and directories. And in general it is hard-to-impossible to achive
this (while keeping file system as small as possible) for all possible file
systems without relying on internal knowlage about file system organization.
We do very basic adjustments in our estimations but that is not enough.
Nevertheless the above observations are not related to provided patch itself.
Nikolay Ivanets (1):
virt-make-fs: add '--blocksize' option support
make-fs/make-fs.c | 28 ++++++++++++++++++++++++++--
make-fs/test-virt-make-fs.sh | 5 ++++-
make-fs/virt-make-fs.pod | 10 ++++++++++
3 files changed, 40 insertions(+), 3 deletions(-)
--
2.17.2