@@ -1232,7 +1232,7 @@ int quotactl_ioctl(struct super_block *sb, struct if_quotactl *qctl)
default:
CERROR("%s: unsupported quotactl op: %#x: rc = %d\n",
sbi->ll_fsname, cmd, -EOPNOTSUPP);
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
}
if (valid != QC_GENERAL) {
@@ -1670,7 +1670,7 @@ static long ll_dir_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
case LOV_USER_MAGIC_V1:
break;
default:
- rc = -ENOTSUPP;
+ rc = -EOPNOTSUPP;
goto out;
}
@@ -140,7 +140,7 @@ int cl_get_grouplock(struct cl_object *obj, unsigned long gid, int nonblock,
cl_env_put(env, &refcheck);
/* Does not make sense to take GL for released layout */
if (rc > 0)
- rc = -ENOTSUPP;
+ rc = -EOPNOTSUPP;
return rc;
}
@@ -1087,7 +1087,7 @@ static ssize_t xattr_cache_store(struct kobject *kobj,
return rc;
if (val && !test_bit(LL_SBI_XATTR_CACHE, sbi->ll_flags))
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
sbi->ll_xattr_cache_enabled = val;
sbi->ll_xattr_cache_set = 1;
@@ -1980,14 +1980,14 @@ 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)) {
- rc = -ENOTSUPP;
+ rc = -EOPNOTSUPP;
goto out_lsm;
}
}
/* No support for DOM layout yet. */
if (lsme_is_dom(lsm->lsm_entries[0])) {
- rc = -ENOTSUPP;
+ rc = -EOPNOTSUPP;
goto out_lsm;
}
@@ -140,7 +140,7 @@ static ssize_t mdc_checksum_type_seq_write(struct file *file,
obd->u.cli.cl_cksum_type = BIT(i);
rc = count;
} else {
- rc = -ENOTSUPP;
+ rc = -EOPNOTSUPP;
}
break;
}
@@ -1294,7 +1294,7 @@ static void mdc_io_data_version_end(const struct lu_env *env,
slice->cis_io->ci_result = 0;
if (!(oio->oi_oa.o_valid &
(OBD_MD_LAYOUT_VERSION | OBD_MD_FLDATAVERSION)))
- slice->cis_io->ci_result = -ENOTSUPP;
+ slice->cis_io->ci_result = -EOPNOTSUPP;
if (oio->oi_oa.o_valid & OBD_MD_LAYOUT_VERSION)
dv->dv_layout_version = oio->oi_oa.o_layout_version;
@@ -102,7 +102,7 @@ static int mdc_get_root(struct obd_export *exp, const char *fileset,
int rc;
if (fileset && !(exp_connect_flags(exp) & OBD_CONNECT_SUBTREE))
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
req = ptlrpc_request_alloc(class_exp2cliimp(exp),
&RQF_MDS_GET_ROOT);
@@ -438,7 +438,7 @@ static ssize_t osc_checksum_type_seq_write(struct file *file,
obd->u.cli.cl_cksum_type = BIT(i);
rc = count;
} else {
- rc = -ENOTSUPP;
+ rc = -EOPNOTSUPP;
}
break;
}
@@ -850,7 +850,7 @@ static void osc_io_data_version_end(const struct lu_env *env,
slice->cis_io->ci_result = 0;
if (!(oa->o_valid &
(OBD_MD_LAYOUT_VERSION | OBD_MD_FLDATAVERSION)))
- slice->cis_io->ci_result = -ENOTSUPP;
+ slice->cis_io->ci_result = -EOPNOTSUPP;
if (oa->o_valid & OBD_MD_LAYOUT_VERSION)
dv->dv_layout_version = oa->o_layout_version;