]> git.ipfire.org Git - thirdparty/systemd.git/commit
homed: always align home file systems to 4K boundaries
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Aug 2021 16:40:53 +0000 (18:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 25 Aug 2021 20:29:07 +0000 (22:29 +0200)
commit04190cf1cf93f57c2114e902f6e97fc746a11df2
treeded20c4665c692e376d3858e3524f99be181ed5f
parente447ffe4daca1d0beb57242f079125669e4e1c3c
homed: always align home file systems to 4K boundaries

Let's carefully align all home file systems to 4K sector boundaries.
It's the safest thing to do, to ensure good perfomance on 4K sector
drives, i.e. today's hardware.

Yes, this means we'll waste 3.5K when resizing home dirs, but I think we
can live with that.

This ensures both the offsets where we start and the sizes of the file
systems/partitions/disk images are multiples of 4K always, both when
creating a new image and when resizing things.

Note that previously we aligned everything to 1024, but weren't quite as
careful.
src/home/homework-luks.c