Whamcloud - gitweb
LU-14301 client: use EOPNOTSUPP instead of ENOTSUPP
[fs/lustre-release.git] / lustre / llite / dir.c
index 9289bf8..3ec2dde 100644 (file)
@@ -1271,8 +1271,8 @@ int quotactl_ioctl(struct super_block *sb, struct if_quotactl *qctl)
                break;
        default:
                CERROR("%s: unsupported quotactl op: %#x: rc = %d\n",
-                      sbi->ll_fsname, cmd, -ENOTSUPP);
-               RETURN(-ENOTSUPP);
+                      sbi->ll_fsname, cmd, -EOPNOTSUPP);
+               RETURN(-EOPNOTSUPP);
        }
 
        if (valid != QC_GENERAL) {
@@ -1691,7 +1691,7 @@ lmv_out_free:
                case LOV_USER_MAGIC_V1:
                        break;
                default:
-                       GOTO(out, rc = -ENOTSUPP);
+                       GOTO(out, rc = -EOPNOTSUPP);
                }
 
                /* in v1 and v3 cases lumv1 points to data */
@@ -1844,7 +1844,7 @@ finish_req:
                 * on 2.4, we use OBD_CONNECT_LVB_TYPE to detect whether the
                 * server will support REINT_RMENTRY XXX*/
                if (!(exp_connect_flags(sbi->ll_md_exp) & OBD_CONNECT_LVB_TYPE))
-                       RETURN(-ENOTSUPP);
+                       RETURN(-EOPNOTSUPP);
 
                filename = ll_getname(uarg);
                if (IS_ERR(filename))