diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-02-21 00:43:55 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:14:30 -0400 |
commit | 8a034497005491dc91ed7bfd660b04923d35d0e6 (patch) | |
tree | 170b3748ae060a787fd4352186f80d69b778d8d3 /fs/ceph | |
parent | f51a822c315e9d4c4c67247bea10e4b8eb795af1 (diff) |
ceph: fix LSSNAP regression
commit 6e8575faa8 makes parse_reply_info_extra() return -EIO for LSSNAP
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/mds_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 5c17705f88b1..6e67a3501673 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c | |||
@@ -265,7 +265,8 @@ static int parse_reply_info_extra(void **p, void *end, | |||
265 | { | 265 | { |
266 | if (info->head->op == CEPH_MDS_OP_GETFILELOCK) | 266 | if (info->head->op == CEPH_MDS_OP_GETFILELOCK) |
267 | return parse_reply_info_filelock(p, end, info, features); | 267 | return parse_reply_info_filelock(p, end, info, features); |
268 | else if (info->head->op == CEPH_MDS_OP_READDIR) | 268 | else if (info->head->op == CEPH_MDS_OP_READDIR || |
269 | info->head->op == CEPH_MDS_OP_LSSNAP) | ||
269 | return parse_reply_info_dir(p, end, info, features); | 270 | return parse_reply_info_dir(p, end, info, features); |
270 | else if (info->head->op == CEPH_MDS_OP_CREATE) | 271 | else if (info->head->op == CEPH_MDS_OP_CREATE) |
271 | return parse_reply_info_create(p, end, info, features); | 272 | return parse_reply_info_create(p, end, info, features); |