Skip to contentSkip to conversation

f2fs-tools: relax zone size of power of 2

PATCH New Jaegeuk Kim 1 participant 1 message Mar 2, 2023 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs-tools: relax zone size of power of 2

Let's relax this for Android support.

Change-Id Ic46593ef429e23b5d85977da374a95015ee72154
---
 lib/libf2fs.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
lib/libf2fs.c +2 -5
index f63307a42a08..118e12592394 100644
@@ -1045,12 +1045,9 @@ int get_device_info(int i)
 			return -1;
 		}
 
-		if (!is_power_of_2(dev->zone_size)) {
-			MSG(0, "\tError: zoned: illegal zone size %" PRIu64 "u (not a power of 2)\n",
+		if (!is_power_of_2(dev->zone_size))
+			MSG(0, "\tInfo: zoned: zone size %" PRIu64 "u (not a power of 2)\n",
 					dev->zone_size);
-			free(stat_buf);
-			return -1;
-		}
 
 		/*
 		 * Check zone configuration: for the first disk of a
Signature · 8 lines
2.40.0.rc0.216.gc4246ad0f0-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel