Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 1.8.6
-
None
-
3
-
22,766
-
6578
Description
The patch from bugzilla ticket 22766 added the following code:
diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index 1e88a51..72818c8 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -1566,6 +1566,8 @@ int llapi_file_get_stripe(const char *path, struct lov_user_md *lum) int fd, rc = 0; fname = strrchr(path, '/'); + if (strlen(fname) + 1 < sizeof(struct lov_user_md)) + return ENAMETOOLONG;
This check does not make any sense and causes llapi_file_get_stripe() to fail with ENAMETOOLONG without any obvious reasons.
Attachments
Issue Links
- Trackbacks
-
Changelog 1.8 {}version 1.8.7wc1{} {}Support for networks: socklnd \any kernel supported by Lustre, qswlnd Qsnet kernel modules 5.20 and later, openiblnd IbGold 1.8.2, o2iblnd OFED 1.3, 1.4.1, 1.4.2, 1.5.1, 1.5.2, 1.5.3.1 and 1.5.3.2 gmlnd GM 2.1....