From c6f65d8af116476d4fa62604a90b2e0d657b29b2 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Fri, 5 Feb 2021 13:13:10 -0700 Subject: [PATCH] LU-14316 llite: quiet spurious ioctl warning Calling "lfs setstripe" prints a suprious warning about using the old ioctl(LL_IOC_LOV_GETSTRIPE) when that is not actually the case. Remove the ioctl warning for now and deal with related issues later. Fixes: 364ec95f3688 ("LU-9367 llite: restore ll_file_getstripe in ll_lov_setstripe") Signed-off-by: Andreas Dilger Change-Id: I20f5a7adb60a30fce27e49827bd46229e2ce7057 Reviewed-on: https://review.whamcloud.com/41427 Reviewed-by: John L. Hammond Tested-by: jenkins Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/lov/lov_pack.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lustre/lov/lov_pack.c b/lustre/lov/lov_pack.c index 528f067..c0d5745 100644 --- a/lustre/lov/lov_pack.c +++ b/lustre/lov/lov_pack.c @@ -363,7 +363,6 @@ int lov_getstripe(const struct lu_env *env, struct lov_object *obj, struct lov_user_md_v1 lum; size_t lmmk_size, lum_size = 0; ssize_t lmm_size; - static bool printed; int rc = 0; ENTRY; @@ -376,14 +375,6 @@ int lov_getstripe(const struct lu_env *env, struct lov_object *obj, GOTO(out, rc = -EIO); } - if (!printed) { - LCONSOLE_WARN("%s: using old ioctl(LL_IOC_LOV_GETSTRIPE) on " - DFID", use llapi_layout_get_by_path()\n", - current->comm, - PFID(&obj->lo_cl.co_lu.lo_header->loh_fid)); - printed = true; - } - lmmk_size = lov_comp_md_size(lsm); OBD_ALLOC_LARGE(lmmk, lmmk_size); -- 1.8.3.1