Lines Matching refs:image_id

165  * The tuple (pool_id, image_id, snap_id) is sufficient to uniquely
192 const char *image_id;
610 else if (rbd_dev->spec && rbd_dev->spec->image_id)
612 RBD_DRV_NAME, rbd_dev->spec->image_id, &vaf);
1722 rbd_dev->spec->image_id);
1725 rbd_dev->spec->image_id, snap_id);
5139 return sprintf(buf, "%s\n", rbd_dev->spec->image_id);
5184 "image_id %s\nimage_name %s\n"
5190 spec->image_id, spec->image_name ?: "(unknown)",
5228 static DEVICE_ATTR(image_id, 0444, rbd_image_id_show, NULL);
5307 kfree(spec->image_id);
5596 const char *image_id;
5606 kfree(pii->image_id);
5633 pii->image_id = ceph_extract_encoded_string(p, end, NULL, GFP_KERNEL);
5634 if (IS_ERR(pii->image_id)) {
5635 ret = PTR_ERR(pii->image_id);
5636 pii->image_id = NULL;
5680 dout("%s pool_id %llu pool_ns %s image_id %s snap_id %llu has_overlap %d overlap %llu\n",
5681 __func__, pii->pool_id, pii->pool_ns, pii->image_id, pii->snap_id,
5711 pii->image_id = ceph_extract_encoded_string(&p, end, NULL, GFP_KERNEL);
5712 if (IS_ERR(pii->image_id)) {
5713 ret = PTR_ERR(pii->image_id);
5714 pii->image_id = NULL;
5721 dout("%s pool_id %llu pool_ns %s image_id %s snap_id %llu has_overlap %d overlap %llu\n",
5722 __func__, pii->pool_id, pii->pool_ns, pii->image_id, pii->snap_id,
5794 parent_spec->image_id = pii.image_id;
5795 pii.image_id = NULL;
5871 char *image_id;
5882 len = strlen(rbd_dev->spec->image_id);
5884 image_id = kmalloc(image_id_size, GFP_KERNEL);
5885 if (!image_id)
5888 p = image_id;
5889 end = image_id + image_id_size;
5890 ceph_encode_string(&p, end, rbd_dev->spec->image_id, (u32)len);
5899 "dir_get_name", image_id, image_id_size,
5913 kfree(image_id);
5981 rbd_assert(spec->image_id && spec->image_name);
6015 rbd_assert(spec->image_id);
6608 * This function will record the given rbd_dev's image_id field if
6611 * image_id field will be unchanged (and should be NULL).
6619 char *image_id;
6627 if (rbd_dev->spec->image_id) {
6628 rbd_dev->image_format = *rbd_dev->spec->image_id ? 2 : 1;
6659 image_id = kstrdup("", GFP_KERNEL);
6660 ret = image_id ? 0 : -ENOMEM;
6666 image_id = ceph_extract_encoded_string(&p, p + ret,
6668 ret = PTR_ERR_OR_ZERO(image_id);
6674 rbd_dev->spec->image_id = image_id;
6675 dout("image_id is %s\n", image_id);
6852 RBD_HEADER_PREFIX, spec->image_id);
6882 kfree(rbd_dev->spec->image_id);
6883 rbd_dev->spec->image_id = NULL;
6902 * error, rbd_dev->spec->image_id will be filled in with
6984 kfree(rbd_dev->spec->image_id);
6985 rbd_dev->spec->image_id = NULL;