Lines Matching refs:snaps
1041 struct rbd_image_snap_ondisk *snaps; in rbd_header_from_disk() local
1068 memcpy(snap_names, &ondisk->snaps[snap_count], snap_names_len); in rbd_header_from_disk()
1069 snaps = ondisk->snaps; in rbd_header_from_disk()
1071 snapc->snaps[i] = le64_to_cpu(snaps[i].id); in rbd_header_from_disk()
1072 snap_sizes[i] = le64_to_cpu(snaps[i].image_size); in rbd_header_from_disk()
1146 found = bsearch(&snap_id, &snapc->snaps, snapc->num_snaps, in rbd_dev_snap_index()
1149 return found ? (u32)(found - &snapc->snaps[0]) : BAD_SNAP_INDEX; in rbd_dev_snap_index()
3155 ret = rbd_object_map_update(obj_req, snapc->snaps[i], in rbd_obj_copyup_object_maps()
5929 return snapc->snaps[which]; in rbd_v1_snap_id_by_name()
5946 snap_id = snapc->snaps[which]; in rbd_v2_snap_id_by_name()
6115 snapc->snaps[i] = ceph_decode_64(&p); in rbd_dev_v2_snap_context()