* [PATCH] f2fs-tools: give WITH_KERNEL_VERSION to check kernel version only
@ 2018-10-19 22:43 Jaegeuk Kim
0 siblings, 0 replies; only message in thread
From: Jaegeuk Kim @ 2018-10-19 22:43 UTC (permalink / raw)
To: linux-f2fs-devel; +Cc: Jaegeuk Kim
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-19 22:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-19 22:43 [PATCH] f2fs-tools: give WITH_KERNEL_VERSION to check kernel version only Jaegeuk Kim
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).