diskimage-builder/diskimage_builder/block_device/tests
Andreas Florath fa6c731132 Move fstrim to block device layer
The call to fstrim in disk-image-create is currently useless, because
at the time this is called, the file systems were already umounted by
the block device layer.

The current implementation of the block-device mount plugin does not
call fstrim at all: resulting in larger image sizes.

This patch removes the useless fstrim call from the disk-image-create
script and moves this into the block-device mount.py.

The resulting image might be much smaller.  Example: Ubuntu Xenial
with some elements; once with and once without this patch:

-rw-r--r-- 1 dib dib 475661824 Sep 16 06:43 ubuntu-xenial-without-fstrim.qcow2
-rw-r--r-- 1 dib dib 364249088 Sep 16 09:30 ubuntu-xenial-with-fstrim.qcow2

Change-Id: I4e21ae50c5e6e26dc9f50f004ed6413132c81047
Signed-off-by: Andreas Florath <andreas@florath.net>
2017-09-28 17:48:59 +10:00
..
config Actually sort mount-point list 2017-09-19 11:30:36 +10:00
plugin Move rollback into NodeBase object 2017-06-08 17:14:20 +10:00
__init__.py Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
test_base.py Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
test_config.py Move global mount tracking into state 2017-06-08 17:13:28 +10:00
test_lvm.py LVM support for dib-block-device 2017-08-24 16:22:56 +10:00
test_mbr.py Allow users to specify partition type in the MBR PTE 2017-07-29 06:34:25 -04:00
test_mkfs.py Use global state to check for duplicate fs labels 2017-06-08 17:13:28 +10:00
test_mount_order.py Move fstrim to block device layer 2017-09-28 17:48:59 +10:00
test_state.py Move rollback into NodeBase object 2017-06-08 17:14:20 +10:00
test_utils.py Move "functional" unit tests under block-device 2017-06-05 12:22:52 +10:00