Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d79bdd52 authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Al Viro
Browse files

vfs: wire up compat ioctl for CLONE/CLONE_RANGE

parent 8c36e9df
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1580,6 +1580,10 @@ COMPAT_SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd,
		goto out_fput;
#endif

	case FICLONE:
	case FICLONERANGE:
		goto do_ioctl;

	case FIBMAP:
	case FIGETBSZ:
	case FIONREAD:
+1 −1
Original line number Diff line number Diff line
@@ -1489,7 +1489,7 @@ int vfs_clone_file_range(struct file *file_in, loff_t pos_in,
	if (S_ISDIR(inode_in->i_mode) || S_ISDIR(inode_out->i_mode))
		return -EISDIR;
	if (!S_ISREG(inode_in->i_mode) || !S_ISREG(inode_out->i_mode))
		return -EOPNOTSUPP;
		return -EINVAL;

	if (!(file_in->f_mode & FMODE_READ) ||
	    !(file_out->f_mode & FMODE_WRITE) ||