summaryrefslogtreecommitdiffstats
path: root/fs/cifs/rfc1002pdu.h
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2017-04-26 17:10:17 +0100
committerSteve French <smfrench@gmail.com>2017-04-28 07:56:33 -0500
commit7d0c234fd2e1c9ca3fa032696c0c58b1b74a9e0b (patch)
tree57841c5018bbaa79734a207f38f32b9670d4f3db /fs/cifs/rfc1002pdu.h
parentcd8c42968ee651b69e00f8661caff32b0086e82d (diff)
downloadtalos-obmc-linux-7d0c234fd2e1c9ca3fa032696c0c58b1b74a9e0b.tar.gz
talos-obmc-linux-7d0c234fd2e1c9ca3fa032696c0c58b1b74a9e0b.zip
Do not return number of bytes written for ioctl CIFS_IOC_COPYCHUNK_FILE
commit 620d8745b35d ("Introduce cifs_copy_file_range()") changes the behaviour of the cifs ioctl call CIFS_IOC_COPYCHUNK_FILE. In case of successful writes, it now returns the number of bytes written. This return value is treated as an error by the xfstest cifs/001. Depending on the errno set at that time, this may or may not result in the test failing. The patch fixes this by setting the return value to 0 in case of successful writes. Fixes: commit 620d8745b35d ("Introduce cifs_copy_file_range()") Reported-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> Acked-by: Pavel Shilovsky <pshilov@microsoft.com> Cc: stable@vger.kernel.org Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/rfc1002pdu.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud