ostree/tests/kolainst
Jonathan Lebon 4982306e67 lib/deploy: Round to block size in early prune space check
When we estimate how much space a new bootcsum dir will use, we
weren't accounting for the space overhead from files not using the
last filesystem block completely. This doesn't matter much if counting
a few files, but e.g. on FCOS aarch64, we include lots of small
devicetree blobs in the bootfs. That loss can add up to enough for the
`fallocate()` check to pass but copying still hitting `ENOSPC` later on.

I think a better fix here is to change approach entirely and instead
refactor `install_deployment_kernel()` so that we can call just the
copying bits of it as part of the early prune logic. We'll get a more
accurate assessment and it's not lost work since we won't need to
recopy later on. Also this would not require having to keep in sync the
estimator and the install bits.

That said, this is blocking FCOS releases, so I went with a more tactical
fix for now.

Fixes: https://github.com/coreos/fedora-coreos-tracker/issues/1637
2024-01-04 12:57:43 -05:00
..
data-shared Support overlayfs whiteouts on checkout 2022-09-28 12:26:31 +02:00
destructive lib/deploy: Round to block size in early prune space check 2024-01-04 12:57:43 -05:00
nondestructive tests: Drop bare-user on tmpfs negative test 2023-12-03 09:32:36 -05:00
.gitignore tests/inst: Add destructive test framework 2020-08-17 14:34:04 +00:00
destructive-stamp.ign tests/inst: Add destructive test framework 2020-08-17 14:34:04 +00:00
install-wrappers.sh tests/inst: Add destructive test framework 2020-08-17 14:34:04 +00:00
Makefile tests/kolainst: Add make localinstall 2023-04-14 15:19:17 -04:00
README.md tests/kola: Move to tests/kolainst 2020-05-27 15:16:50 +00:00