Files
wlan-ap/patches/0085-ipq53xx-increase-rootfs-size-to-500M.patch
2025-02-06 08:33:33 +01:00

43 lines
1.5 KiB
Diff
Executable File

From 78f51448bd3d09ccb6c3559bae299a8d2edde21c Mon Sep 17 00:00:00 2001
From: "wingate.chi" <wingate.chi@cybertan.com.tw>
Date: Tue, 4 Feb 2025 06:32:17 +0000
Subject: [PATCH] ipq53xx: increase rootfs size to 500M
Signed-off-by: wingate.chi <wingate.chi@cybertan.com.tw>
---
.../0001-change-rootfs-size-to-500m.patch | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch
diff --git a/package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch b/package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch
new file mode 100644
index 0000000000..3aa16258d2
--- /dev/null
+++ b/package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch
@@ -0,0 +1,22 @@
+--- a/libfstools/common.h
++++ b/libfstools/common.h
+@@ -19,7 +19,7 @@
+ #include "libfstools.h"
+ #include "volume.h"
+
+-#define F2FS_MINSIZE (100ULL * 1024ULL * 1024ULL)
++#define F2FS_MINSIZE (500ULL * 1024ULL * 1024ULL) //change rootfs size to 500M
+
+ int read_uint_from_file(char *dirname, char *filename, unsigned int *i);
+ char *read_string_from_file(const char *dirname, const char *filename, char *buf, size_t bufsz);
+--- a/libfstools/rootdisk.c
++++ b/libfstools/rootdisk.c
+@@ -16,7 +16,7 @@
+ #include <linux/loop.h>
+
+ #define ROOTDEV_OVERLAY_ALIGN (64ULL * 1024ULL)
+-#define F2FS_MINSIZE (100ULL * 1024ULL * 1024ULL)
++#define F2FS_MINSIZE (500ULL * 1024ULL * 1024ULL) //change rootfs size to 500M
+
+ struct squashfs_super_block {
+ uint32_t s_magic;
--
2.17.1