Whamcloud - gitweb
LU-14301 client: use EOPNOTSUPP instead of ENOTSUPP
[fs/lustre-release.git] / lustre / lov / lov_object.c
index 9e85b33..16f4bf6 100644 (file)
@@ -1984,12 +1984,12 @@ static int lov_object_fiemap(const struct lu_env *env, struct cl_object *obj,
                if (lsm->lsm_entry_count > 1 ||
                    (lsm->lsm_entry_count == 1 &&
                     lsm->lsm_entries[0]->lsme_stripe_count > 1))
-                       GOTO(out_lsm, rc = -ENOTSUPP);
+                       GOTO(out_lsm, rc = -EOPNOTSUPP);
        }
 
        /* No support for DOM layout yet. */
        if (lsme_is_dom(lsm->lsm_entries[0]))
-               GOTO(out_lsm, rc = -ENOTSUPP);
+               GOTO(out_lsm, rc = -EOPNOTSUPP);
 
        if (lsm->lsm_is_released) {
                if (fiemap->fm_start < fmkey->lfik_oa.o_size) {