diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-11-10 11:03:15 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-11-11 13:49:50 +0100 |
commit | b262cbe8716d8c428d01aabd3de87f2052454746 (patch) | |
tree | def9a4440bca8f2be1d390861d3b850a3bee50f3 /src/partition | |
parent | repart: Allow custom root directory per copy blocks source (diff) | |
download | systemd-b262cbe8716d8c428d01aabd3de87f2052454746.tar.xz systemd-b262cbe8716d8c428d01aabd3de87f2052454746.zip |
repart: Use ULL for all size constants
Diffstat (limited to 'src/partition')
-rw-r--r-- | src/partition/repart.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c index 75a5daf836..1b24e3ff95 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -76,19 +76,19 @@ #include "utf8.h" /* If not configured otherwise use a minimal partition size of 10M */ -#define DEFAULT_MIN_SIZE (10*1024*1024) +#define DEFAULT_MIN_SIZE (10ULL*1024ULL*1024ULL) /* Hard lower limit for new partition sizes */ -#define HARD_MIN_SIZE 4096 +#define HARD_MIN_SIZE 4096ULL /* We know up front we're never going to put more than this in a verity sig partition. */ -#define VERITY_SIG_SIZE (HARD_MIN_SIZE * 4) +#define VERITY_SIG_SIZE (HARD_MIN_SIZE*4ULL) /* libfdisk takes off slightly more than 1M of the disk size when creating a GPT disk label */ -#define GPT_METADATA_SIZE (1044*1024) +#define GPT_METADATA_SIZE (1044ULL*1024ULL) /* LUKS2 takes off 16M of the partition size with its metadata by default */ -#define LUKS2_METADATA_SIZE (16*1024*1024) +#define LUKS2_METADATA_SIZE (16ULL*1024ULL*1024ULL) /* Note: When growing and placing new partitions we always align to 4K sector size. It's how newer hard disks * are designed, and if everything is aligned to that performance is best. And for older hard disks with 512B |