• Home
  • Raw
  • Download

Lines Matching refs:image_id

192 	const char	*image_id;  member
610 else if (rbd_dev->spec && rbd_dev->spec->image_id) in rbd_warn()
612 RBD_DRV_NAME, rbd_dev->spec->image_id, &vaf); in rbd_warn()
1722 rbd_dev->spec->image_id); in rbd_object_map_name()
1725 rbd_dev->spec->image_id, snap_id); in rbd_object_map_name()
5140 return sprintf(buf, "%s\n", rbd_dev->spec->image_id); in rbd_image_id_show()
5191 spec->image_id, spec->image_name ?: "(unknown)", in rbd_parent_show()
5229 static DEVICE_ATTR(image_id, 0444, rbd_image_id_show, NULL);
5308 kfree(spec->image_id); in rbd_spec_free()
5597 const char *image_id; member
5607 kfree(pii->image_id); in rbd_parent_info_cleanup()
5634 pii->image_id = ceph_extract_encoded_string(p, end, NULL, GFP_KERNEL); in decode_parent_image_spec()
5635 if (IS_ERR(pii->image_id)) { in decode_parent_image_spec()
5636 ret = PTR_ERR(pii->image_id); in decode_parent_image_spec()
5637 pii->image_id = NULL; in decode_parent_image_spec()
5682 __func__, pii->pool_id, pii->pool_ns, pii->image_id, pii->snap_id, in __get_parent_info()
5712 pii->image_id = ceph_extract_encoded_string(&p, end, NULL, GFP_KERNEL); in __get_parent_info_legacy()
5713 if (IS_ERR(pii->image_id)) { in __get_parent_info_legacy()
5714 ret = PTR_ERR(pii->image_id); in __get_parent_info_legacy()
5715 pii->image_id = NULL; in __get_parent_info_legacy()
5723 __func__, pii->pool_id, pii->pool_ns, pii->image_id, pii->snap_id, in __get_parent_info_legacy()
5795 parent_spec->image_id = pii.image_id; in rbd_dev_setup_parent()
5796 pii.image_id = NULL; in rbd_dev_setup_parent()
5872 char *image_id; in rbd_dev_image_name() local
5883 len = strlen(rbd_dev->spec->image_id); in rbd_dev_image_name()
5885 image_id = kmalloc(image_id_size, GFP_KERNEL); in rbd_dev_image_name()
5886 if (!image_id) in rbd_dev_image_name()
5889 p = image_id; in rbd_dev_image_name()
5890 end = image_id + image_id_size; in rbd_dev_image_name()
5891 ceph_encode_string(&p, end, rbd_dev->spec->image_id, (u32)len); in rbd_dev_image_name()
5900 "dir_get_name", image_id, image_id_size, in rbd_dev_image_name()
5914 kfree(image_id); in rbd_dev_image_name()
5982 rbd_assert(spec->image_id && spec->image_name); in rbd_spec_fill_snap_id()
6016 rbd_assert(spec->image_id); in rbd_spec_fill_names()
6620 char *image_id; in rbd_dev_image_id() local
6628 if (rbd_dev->spec->image_id) { in rbd_dev_image_id()
6629 rbd_dev->image_format = *rbd_dev->spec->image_id ? 2 : 1; in rbd_dev_image_id()
6660 image_id = kstrdup("", GFP_KERNEL); in rbd_dev_image_id()
6661 ret = image_id ? 0 : -ENOMEM; in rbd_dev_image_id()
6667 image_id = ceph_extract_encoded_string(&p, p + ret, in rbd_dev_image_id()
6669 ret = PTR_ERR_OR_ZERO(image_id); in rbd_dev_image_id()
6675 rbd_dev->spec->image_id = image_id; in rbd_dev_image_id()
6676 dout("image_id is %s\n", image_id); in rbd_dev_image_id()
6853 RBD_HEADER_PREFIX, spec->image_id); in rbd_dev_header_name()
6883 kfree(rbd_dev->spec->image_id); in rbd_dev_image_release()
6884 rbd_dev->spec->image_id = NULL; in rbd_dev_image_release()
6985 kfree(rbd_dev->spec->image_id); in rbd_dev_image_probe()
6986 rbd_dev->spec->image_id = NULL; in rbd_dev_image_probe()