]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kclient: check EOF on sync read to do short result when appropriate
authorSage Weil <sage@newdream.net>
Thu, 13 Aug 2009 20:38:04 +0000 (13:38 -0700)
committerSage Weil <sage@newdream.net>
Thu, 13 Aug 2009 20:38:04 +0000 (13:38 -0700)
commit8f95ec304bf7518072587f0354c06a219b2b14cd
treefea00b07b313be9295cbd945693a2b0f6538fa68
parent6a78671cd383a4c8e3eb24bbfd916fc7331240b5
kclient: check EOF on sync read to do short result when appropriate

We only want to return a short read if we read the end of file.
Otherwise, a short object read means we hit a hole and need to
zero-fill.
src/kernel/file.c