Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-11736 utils: don't set max_sectors_kb on MDT/MGT
[fs/lustre-release.git]
/
lustre
/
utils
/
liblustreapi_util.c
diff --git
a/lustre/utils/liblustreapi_util.c
b/lustre/utils/liblustreapi_util.c
index
fbc7542
..
f0f1991
100644
(file)
--- a/
lustre/utils/liblustreapi_util.c
+++ b/
lustre/utils/liblustreapi_util.c
@@
-41,7
+41,6
@@
#include <sys/stat.h>
#include <sys/syscall.h>
#include <lustre/lustreapi.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <lustre/lustreapi.h>
-#include <libcfs/util/string.h> /* only needed for compat strlcpy() */
#include <linux/lustre/lustre_ver.h> /* only until LUSTRE_VERSION_CODE is gone */
#include "lustreapi_internal.h"
#include <linux/lustre/lustre_ver.h> /* only until LUSTRE_VERSION_CODE is gone */
#include "lustreapi_internal.h"
@@
-137,7
+136,7
@@
int llapi_get_version_string(char *version, unsigned int version_size)
return -1;
}
return -1;
}
- if (s
trlcpy(version, ptr, version_size
) >= version_size) {
+ if (s
nprintf(version, version_size, "%s", ptr
) >= version_size) {
errno = EOVERFLOW;
return -1;
}
errno = EOVERFLOW;
return -1;
}