linux/fs/ceph
Sage Weil 0e98728fa3 ceph: fix ENOENT logic in striped_read
Getting ENOENT is equivalent to reading 0 bytes.  Make that correction
before setting up the hit_stripe and was_short flags.

Fixes the following case:
 dd if=/dev/zero of=/mnt/fs_depot/dd3 bs=1 seek=1048576 count=0
 dd if=/mnt/fs_depot/dd3 of=/root/ddout1 skip=8 bs=500 count=2 iflag=direct

Reported-by: Henry C Chang <henry.cy.chang@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-07 21:34:16 -07:00
..
addr.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00
caps.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: remove debugfs debug cruft 2011-03-21 12:24:20 -07:00
dir.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00
export.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00
file.c ceph: fix ENOENT logic in striped_read 2011-06-07 21:34:16 -07:00
inode.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00
ioctl.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00
ioctl.h ceph: fix ioctl magic 2010-12-06 09:45:22 -08:00
Kconfig ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
locks.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00
Makefile ceph: Makefile: Remove unnessary code 2011-01-12 15:15:13 -08:00
mds_client.c ceph: fix cap flush race reentrancy 2011-05-24 11:52:12 -07:00
mds_client.h ceph: fix cap flush race reentrancy 2011-05-24 11:52:12 -07:00
mdsmap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
snap.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00
strings.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.c ceph: Move secret key parsing earlier. 2011-03-29 12:11:16 -07:00
super.h ceph: do not use i_wrbuffer_ref as refcount for Fb cap 2011-05-11 10:44:48 -07:00
xattr.c ceph: use ihold when we already have an inode ref 2011-06-07 21:34:11 -07:00