From: Jaegeuk Kim <jaegeuk@kernel.org>
To: linux-f2fs-devel@lists.sourceforge.net
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Subject: [f2fs-dev] [PATCH] f2fs-tools: relax zone size of power of 2
Date: Thu, 2 Mar 2023 11:46:05 -0800 [thread overview]
Message-ID: <20230302194605.646472-1-jaegeuk@kernel.org> (raw)
Let's relax this for Android support.
Change-Id: Ic46593ef429e23b5d85977da374a95015ee72154
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
lib/libf2fs.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index f63307a42a08..118e12592394 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -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
--
2.40.0.rc0.216.gc4246ad0f0-goog
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
reply other threads:[~2023-03-02 19:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230302194605.646472-1-jaegeuk@kernel.org \
--to=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).