summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMurphy Zhou <jencce.kernel@gmail.com>2020-03-14 11:38:31 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-25 08:25:54 +0100
commit0f5be2f69e89613c409f89f6429bd210efcb147b (patch)
treedba64483ac7927175cb770300668b76c9411a857 /scripts
parent48a9bc9534f380ce8f33f9ce8702fa0f4d23d36c (diff)
CIFS: fiemap: do not return EINVAL if get nothing
commit 979a2665eb6c603ddce0ab374041ab101827b2e7 upstream. If we call fiemap on a truncated file with none blocks allocated, it makes sense we get nothing from this call. No output means no blocks have been counted, but the call succeeded. It's a valid response. Simple example reproducer: xfs_io -f 'truncate 2M' -c 'fiemap -v' /cifssch/testfile xfs_io: ioctl(FS_IOC_FIEMAP) ["/cifssch/testfile"]: Invalid argument Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> CC: Stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions