Whamcloud - gitweb
LU-525 llapi_file_get_stripe() fails with ENAMETOOLONG
authorJohann Lombardi <johann@whamcloud.com>
Thu, 21 Jul 2011 14:50:09 +0000 (16:50 +0200)
committerJohann Lombardi <johann@whamcloud.com>
Thu, 21 Jul 2011 16:48:00 +0000 (12:48 -0400)
Remove bogus check on fsname in llapi_file_get_stripe().

Change-Id: I6ea7c403ce3a1994e80bc039260fae1e881b892b
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1131
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/liblustreapi.c

index b556fcf..7ada71b 100644 (file)
@@ -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) {