Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discard on zvols should not exceed the length of a block
37f9dac replaced the end-start calculation with a cached value, but neglected to update it on discard operations. This can cause us to discard data not requested, causing data loss on zvols. Reported-by: Richard Connon <[email protected]> Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #3798
- Loading branch information