summaryrefslogtreecommitdiff
path: root/libfstools/rootdisk.c
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-03-26 23:50:47 +0100
committerPetr Štetiar <ynezz@true.cz>2019-03-28 12:43:47 +0100
commitff1ded63c51e84e239fb422ac8b9d15251d1221f (patch)
tree9e5b2458ed4d2e2034086d6a0413d04015c4bdce /libfstools/rootdisk.c
parentbc2c876104a6e2dcfc798c9dd09ac1f95784cdeb (diff)
downloadfstools-ff1ded63c51e84e239fb422ac8b9d15251d1221f.tar.gz
libfstools: Fix overflow of F2FS_MINSIZE constant
I wasn't able to to use f2fs on armvirt/32 platform and I've found out that it was due to F2FS_MINSIZE constant overflow leading to value of 13 exabytes instead of 100 megabytes. Acked-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'libfstools/rootdisk.c')
-rw-r--r--libfstools/rootdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfstools/rootdisk.c b/libfstools/rootdisk.c
index 68a6296..5a6dcb9 100644
--- a/libfstools/rootdisk.c
+++ b/libfstools/rootdisk.c
@@ -11,7 +11,6 @@
* GNU General Public License for more details.
*/
-#define F2FS_MINSIZE (100 * 1024 * 1024)
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
@@ -31,6 +30,7 @@
#include <linux/loop.h>
#define ROOTDEV_OVERLAY_ALIGN (64ULL * 1024ULL)
+#define F2FS_MINSIZE (100ULL * 1024ULL * 1024ULL)
struct squashfs_super_block {
uint32_t s_magic;