@@ -1108,18 +1108,19 @@ static long ll_dir_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
ll_stats_ops_tally(ll_i2sbi(inode), LPROC_LL_IOCTL, 1);
switch (cmd) {
- case FSFILT_IOC_GETFLAGS:
- case FSFILT_IOC_SETFLAGS:
+ case FS_IOC_GETFLAGS:
+ case FS_IOC_SETFLAGS:
return ll_iocontrol(inode, file, cmd, arg);
- case FSFILT_IOC_GETVERSION_OLD:
case FSFILT_IOC_GETVERSION:
+ case FS_IOC_GETVERSION:
return put_user(inode->i_generation, (int __user *)arg);
/* We need to special case any other ioctls we want to handle,
* to send them to the MDS/OST as appropriate and to properly
* network encode the arg field.
- case FSFILT_IOC_SETVERSION_OLD:
- case FSFILT_IOC_SETVERSION:
- */
+ */
+ case FS_IOC_SETVERSION:
+ return -ENOTSUPP;
+
case LL_IOC_GET_MDTIDX: {
int mdtidx;
@@ -3055,12 +3055,19 @@ static long ll_file_set_lease(struct file *file, struct ll_ioc_lease *ioc,
case LL_IOC_LOV_GETSTRIPE:
case LL_IOC_LOV_GETSTRIPE_NEW:
return ll_file_getstripe(inode, (void __user *)arg, 0);
- case FSFILT_IOC_GETFLAGS:
- case FSFILT_IOC_SETFLAGS:
+ case FS_IOC_GETFLAGS:
+ case FS_IOC_SETFLAGS:
return ll_iocontrol(inode, file, cmd, arg);
- case FSFILT_IOC_GETVERSION_OLD:
case FSFILT_IOC_GETVERSION:
+ case FS_IOC_GETVERSION:
return put_user(inode->i_generation, (int __user *)arg);
+ /* We need to special case any other ioctls we want to handle,
+ * to send them to the MDS/OST as appropriate and to properly
+ * network encode the arg field.
+ */
+ case FS_IOC_SETVERSION:
+ return -ENOTSUPP;
+
case LL_IOC_GROUP_LOCK:
return ll_get_grouplock(inode, file, arg);
case LL_IOC_GROUP_UNLOCK:
@@ -3068,12 +3075,6 @@ static long ll_file_set_lease(struct file *file, struct ll_ioc_lease *ioc,
case IOC_OBD_STATFS:
return ll_obd_statfs(inode, (void __user *)arg);
- /* We need to special case any other ioctls we want to handle,
- * to send them to the MDS/OST as appropriate and to properly
- * network encode the arg field.
- case FSFILT_IOC_SETVERSION_OLD:
- case FSFILT_IOC_SETVERSION:
- */
case LL_IOC_FLUSHCTX:
return ll_flush_ctx(inode);
case LL_IOC_PATH2FID: {
@@ -2037,7 +2037,7 @@ int ll_iocontrol(struct inode *inode, struct file *file,
int rc, flags = 0;
switch (cmd) {
- case FSFILT_IOC_GETFLAGS: {
+ case FS_IOC_GETFLAGS: {
struct mdt_body *body;
struct md_op_data *op_data;
@@ -2065,7 +2065,7 @@ int ll_iocontrol(struct inode *inode, struct file *file,
return put_user(flags, (int __user *)arg);
}
- case FSFILT_IOC_SETFLAGS: {
+ case FS_IOC_SETFLAGS: {
struct md_op_data *op_data;
struct cl_object *obj;
struct iattr *attr;