From 4512bbc4567d9082a01db5d6a2e651054e086260 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") Lustre-change: https://review.whamcloud.com/41427 Lustre-commit: c6f65d8af116476d4fa62604a90b2e0d657b29b2 Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I20f5a7adb60a30fce27e49827bd46229e2ce7057 Reviewed-on: https://review.whamcloud.com/43103 Tested-by: jenkins Tested-by: Maloo --- 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 b6138e1..6fe3c2f 100644 --- a/lustre/lov/lov_pack.c +++ b/lustre/lov/lov_pack.c @@ -364,7 +364,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