From: Jaegeuk Kim <jaegeuk@kernel.org>
To: linux-f2fs-devel@lists.sourceforge.net
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Subject: [PATCH] f2fs-tools: give WITH_KERNEL_VERSION to check kernel version only
Date: Fri, 19 Oct 2018 15:43:57 -0700 [thread overview]
Message-ID: <20181019224357.11121-1-jaegeuk@kernel.org> (raw)
This patch adds a build option to relax kernel version and release string to
trigger full scan.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
lib/libf2fs.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index fd3e006..bf2830d 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -744,8 +744,13 @@ void get_kernel_uname_version(__u8 *version)
if (uname(&buf))
return;
+#if !defined(WITH_KERNEL_VERSION)
snprintf((char *)version,
VERSION_LEN, "%s %s", buf.release, buf.version);
+#else
+ snprintf((char *)version,
+ VERSION_LEN, "%s", buf.release);
+#endif
#else
memset(version, 0, VERSION_LEN);
#endif
--
2.19.0.605.g01d371f741-goog
reply other threads:[~2018-10-19 22:44 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=20181019224357.11121-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).