Recovery wants to use this helper, so add it back. Signed-off-by: Christoph Hellwig <hch at lst.de> --- sheep/group.c | 9 +++++++++ 1 file changed, 9 insertions(+) Index: sheepdog/sheep/group.c =================================================================== --- sheepdog.orig/sheep/group.c 2012-05-28 14:40:41.660683365 +0200 +++ sheepdog/sheep/group.c 2012-05-28 14:41:57.716685315 +0200 @@ -193,6 +193,15 @@ void put_vnode_info(struct vnode_info *v } } +struct sd_vnode *oid_to_vnode(struct vnode_info *vnode_info, uint64_t oid, + int copy_idx) +{ + int idx = obj_to_sheep(vnode_info->entries, vnode_info->nr_vnodes, + oid, copy_idx); + + return &vnode_info->entries[idx]; +} + void oid_to_vnodes(struct vnode_info *vnode_info, uint64_t oid, int nr_copies, struct sd_vnode **vnodes) { |