ceph: return EIO on invalid layout on GET_DATALOC ioctl
commit457712a0bc5389b75d2c93840a684fd77df2aabb
authorSage Weil <sage@inktank.com>
Tue, 25 Sep 2012 04:04:57 +0000 (24 21:04 -0700)
committerAlex Elder <elder@inktank.com>
Wed, 3 Oct 2012 15:51:17 +0000 (3 10:51 -0500)
tree465703170a567b747a1e642a6a80332e0bdbf1f1
parent6cae3717cddaf8e5e96e304733dca66e40d56f89
ceph: return EIO on invalid layout on GET_DATALOC ioctl

If the user calls GET_DATALOC on a file with an invalid (e.g.,
zeroed) layout, return EIO to userland.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
fs/ceph/ioctl.c