Lines Matching refs:snaps
1085 struct rbd_image_snap_ondisk *snaps; in rbd_header_from_disk() local
1112 memcpy(snap_names, &ondisk->snaps[snap_count], snap_names_len); in rbd_header_from_disk()
1113 snaps = ondisk->snaps; in rbd_header_from_disk()
1115 snapc->snaps[i] = le64_to_cpu(snaps[i].id); in rbd_header_from_disk()
1116 snap_sizes[i] = le64_to_cpu(snaps[i].image_size); in rbd_header_from_disk()
1195 found = bsearch(&snap_id, &snapc->snaps, snapc->num_snaps, in rbd_dev_snap_index()
1198 return found ? (u32)(found - &snapc->snaps[0]) : BAD_SNAP_INDEX; in rbd_dev_snap_index()
3202 ret = rbd_object_map_update(obj_req, snapc->snaps[i], in rbd_obj_copyup_object_maps()
5983 return snapc->snaps[which]; in rbd_v1_snap_id_by_name()
6000 snap_id = snapc->snaps[which]; in rbd_v2_snap_id_by_name()
6168 snapc->snaps[i] = ceph_decode_64(&p); in rbd_dev_v2_snap_context()