projects
/
platform
/
upstream
/
f2fs-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e599deb
)
f2fs-tools: give WITH_KERNEL_VERSION to check kernel version only
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 19 Oct 2018 22:42:40 +0000
(15:42 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 21 Nov 2018 19:38:23 +0000
(11:38 -0800)
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
patch
|
blob
|
history
diff --git
a/lib/libf2fs.c
b/lib/libf2fs.c
index
fd3e006
..
bf2830d
100644
(file)
--- a/
lib/libf2fs.c
+++ b/
lib/libf2fs.c
@@
-744,9
+744,14
@@
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
}