Go to file
AJ Jordan 593724c05b
Use dumpe2fs for filesystem size calculations
The previous approach used `df` to get usable space and then added a
fixed size to that number in order to account for filesystem
overhead. However, at some point that stopped working for me. It
appears that ext4 filesystem overhead can vary over time or because of
other factors. (Certainly now that I think about it the old code would
only work well for people with the exact same filesystem size as me.)

So the new approach is to just completely ignore what `df` tells us
and instead go directly to the source: the filesystem's internal
notion of exactly how much space it takes up. We use `dumpe2fs` to
retrieve this information and calculate the on-disk size dynamically
from that. Then we add the space that boot data takes up (unchanged),
and we add 5MB padding because when I tested this it didn't quite add
up otherwise. https://unix.stackexchange.com/a/13551/29146 suggests
that this unaccounted-for data may be e.g. additional copies of the
superblock.
2019-02-07 16:04:11 -05:00
archlinux archlinux: no longer need to mangle shebang for python scripts 2018-10-24 00:26:38 +02:00
autostart-dropins Enable gnome settings daemon xsettings plugin 2018-01-12 05:44:54 +01:00
ci tests: add run-tests script, plug it into travis 2017-05-20 13:20:08 +02:00
debian debian: make ShellCheck happy 2019-01-15 21:10:27 +01:00
doc qrexec: add qrexec-client-vm --buffer-size option 2018-03-14 01:45:14 +01:00
init Use dumpe2fs for filesystem size calculations 2019-02-07 16:04:11 -05:00
misc Fix updates notification on Fedora 29 2018-12-05 06:26:25 +01:00
network vif-route-qubes: \n -> \\n 2018-10-15 06:20:32 +02:00
patches.debian Stop anacron from starting in Debian using existing constraint on cron 2017-02-05 23:36:27 +00:00
pkgs archlinux: created build scripts 2013-04-17 01:22:32 +02:00
post-install.d Tell dom0 that VM is running Linux 2018-10-23 23:32:35 +02:00
qrexec qrexec: add startup notification 2018-12-08 12:32:56 +01:00
qubes-rpc Make shellcheck happy 2018-12-15 23:45:34 +01:00
qubesagent Make shebang explicit /usr/bin/python2 where it's still there 2018-10-24 00:24:50 +02:00
rpm_spec rpm: -networking package should depend on iproute 2019-01-13 12:27:56 +01:00
test-packages tests: add run-tests script, plug it into travis 2017-05-20 13:20:08 +02:00
vm-init.d Resize root filesystem at VM startup if needed 2017-10-18 21:02:15 +02:00
vm-systemd qrexec: add startup notification 2018-12-08 12:32:56 +01:00
.coveragerc tests: add run-tests script, plug it into travis 2017-05-20 13:20:08 +02:00
.gitignore Update gitignore and make clean target 2018-04-20 16:27:26 +02:00
.travis.yml travis: disable "Prefer explicit escaping" shellcheck warning 2018-12-15 23:21:10 +01:00
debian-quilt debian: fix shellcheck warnings in debian packaging 2017-09-30 05:05:33 +02:00
LICENSE Added LICENSE 2010-04-05 21:21:27 +02:00
Makefile Fix qubes-run-terminal.desktop permissions 2018-09-28 18:51:57 +02:00
Makefile.builder debian: don't create orig.tar.gz manually 2018-10-13 03:33:18 +02:00
run-tests Load only test_* files when looking for tests (python) 2018-04-02 23:19:02 +02:00
series-debian-vm.conf Stop anacron from starting in Debian using existing constraint on cron 2017-02-05 23:36:27 +00:00
setup.py network: rewrite qubes-firewall daemon 2016-09-12 05:22:53 +02:00
version version 4.0.41 2019-01-09 16:15:57 +01:00