]> Pileus Git - ~andy/linux/commitdiff
ceph: fix LSSNAP regression
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 21 Feb 2013 05:43:55 +0000 (13:43 +0800)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:14:30 +0000 (21:14 -0700)
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>
fs/ceph/mds_client.c

index 5c17705f88b1dfeb2999e7ce459e53371df8135d..6e67a350167359ab84fd7192681b797438a80ee2 100644 (file)
@@ -265,7 +265,8 @@ static int parse_reply_info_extra(void **p, void *end,
 {
        if (info->head->op == CEPH_MDS_OP_GETFILELOCK)
                return parse_reply_info_filelock(p, end, info, features);
-       else if (info->head->op == CEPH_MDS_OP_READDIR)
+       else if (info->head->op == CEPH_MDS_OP_READDIR ||
+                info->head->op == CEPH_MDS_OP_LSSNAP)
                return parse_reply_info_dir(p, end, info, features);
        else if (info->head->op == CEPH_MDS_OP_CREATE)
                return parse_reply_info_create(p, end, info, features);