commit | 921b81a8cd5a4acc2a009778d13eedd377362c4c | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Thu Aug 21 11:09:29 2014 -0500 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Wed Sep 10 12:47:02 2014 -0700 |
tree | 8efd8cfe55fa1e62de0a557c6d3579e99dc240b9 | |
parent | be98fd0ac3dd45c1aa404b101caa37f9b317ab57 [diff] |
pnfs/blocklayout: correctly decrement extent length When we do non-page sized reads we can underflow the extent_length variable and read incorrect data. Fix the extent_length calculation and change to defensive <= checks for the extent length in the read and write path. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>