f2fs-tools: relax zone size of power of 2

Let's relax this for Android support.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2023-03-02 11:45:09 -08:00 committed by sunshenshen
parent ca912d6446
commit 53055e6db1

View File

@ -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