Skip to content
Commit 62d3ab49 authored by Zach Brown's avatar Zach Brown Committed by Nicholas Bellinger
Browse files

target/file: fix inclusive vfs_fsync_range() end



Both of the file target's calls to vfs_fsync_range() got the end offset
off by one.  The range is inclusive, not exclusive.  It would sync a bit
more data than was required.

The sync path already tested the length of the range and fell back to
LLONG_MAX so I copied that pattern in the rw path.

This is untested. I found the errors by inspection while following other
code.

Signed-off-by: default avatarZach Brown <zab@zabbo.net>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 0d0f660d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment