summaryrefslogtreecommitdiff
path: root/fs/mbcache.c
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2017-05-02 12:15:10 -0400
committerMike Marshall <hubcap@omnibond.com>2017-05-04 14:38:10 -0400
commitbf15ba7c1f9ad000d062968f931e80234db84a24 (patch)
tree9f5c413977e91c7fe6df153bc625833ad2ae78eb /fs/mbcache.c
parent907bfcd8d8a616ca794ba187f6bf1b0e12b3a8dd (diff)
orangefs: skip forward to the next directory entry if seek is short
If userspace seeks to a position in the stream which is not correct, it would have returned EIO because the data in the buffer at that offset would be incorrect. This and the userspace daemon returning a corrupt directory are indistinguishable. Now if the data does not look right, skip forward to the next chunk and try again. The motivation is that if the directory changes, an application may seek to a position that was valid and no longer is valid. It is not yet possible for a directory to change. Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/mbcache.c')
0 files changed, 0 insertions, 0 deletions