From 53055e6db10db7df839ce5a4ed888a6b2e2e701d Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Thu, 2 Mar 2023 11:45:09 -0800 Subject: [PATCH] f2fs-tools: relax zone size of power of 2 Let's relax this for Android support. Signed-off-by: Jaegeuk Kim --- lib/libf2fs.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/libf2fs.c b/lib/libf2fs.c index e2c13d4..beb6427 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -1047,12 +1047,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