From: Johann Lombardi Date: Thu, 21 Jul 2011 14:50:09 +0000 (+0200) Subject: LU-525 llapi_file_get_stripe() fails with ENAMETOOLONG X-Git-Tag: v1_8_6_81~21 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ad42deebdd27991cb3dc58f0656921b39133bf46;p=fs%2Flustre-release.git LU-525 llapi_file_get_stripe() fails with ENAMETOOLONG Remove bogus check on fsname in llapi_file_get_stripe(). Change-Id: I6ea7c403ce3a1994e80bc039260fae1e881b892b Signed-off-by: Johann Lombardi Reviewed-on: http://review.whamcloud.com/1131 Tested-by: Hudson Reviewed-by: Bobi Jam Reviewed-by: Andreas Dilger --- diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index b556fcf..7ada71b 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -1602,8 +1602,6 @@ 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; /* It should be a file (or other non-directory) */ if (fname == NULL) {