Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…on the same file

Copychunk allows source and target to be on the same file.
For details on restrictions see MS-SMB2 3.3.5.15.6

Signed-off-by: Kovtunenko Oleksandr <alexander198961@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
Kovtunenko Oleksandr authored and Steve French committed May 16, 2019
1 parent 2c87d6a commit 9ab70ca
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,11 +1070,6 @@ ssize_t cifs_file_copychunk_range(unsigned int xid,

cifs_dbg(FYI, "copychunk range\n");

if (src_inode == target_inode) {
rc = -EINVAL;
goto out;
}

if (!src_file->private_data || !dst_file->private_data) {
rc = -EBADF;
cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
Expand Down

0 comments on commit 9ab70ca

Please sign in to comment.