Lines Matching defs:name

104 /* This allows a single page to hold an image name sent by OSD */
138 * An RBD device name will be "rbd#", where the "rbd" comes from
169 * Each of the id's in an rbd_spec has an associated name. For a
184 * Note that code herein does not assume the image name is known (it
391 char name[DEV_NAME_LEN]; /* blkdev name, e.g. rbd3 */
579 .name = "rbd",
1768 ENTITY_NAME(lockers[0].id.name));
1772 &lockers[0].id.name);
3864 return lhs->id.name.type == rhs->id.name.type &&
3865 lhs->id.name.num == rhs->id.name.num &&
3925 __func__, rbd_dev, ENTITY_NAME(lockers[0].id.name),
3967 .gid = le64_to_cpu(watchers[i].name.num),
4031 ENTITY_NAME(locker->id.name));
4037 ENTITY_NAME(locker->id.name), ret);
4043 locker->id.cookie, &locker->id.name);
5143 * Shows the name of the currently-mapped snapshot (or
5227 static DEVICE_ATTR(name, 0444, rbd_name_show, NULL);
5267 .name = "rbd",
5410 /* get an id and fill in device name */
5417 sprintf(rbd_dev->name, RBD_DRV_NAME "%d", rbd_dev->dev_id);
5419 rbd_dev->name);
5910 dout("%s: name is %s len is %zd\n", __func__, image_name, len);
5918 static u64 rbd_v1_snap_id_by_name(struct rbd_device *rbd_dev, const char *name)
5928 if (!strcmp(name, snap_name))
5936 static u64 rbd_v2_snap_id_by_name(struct rbd_device *rbd_dev, const char *name)
5955 found = !strcmp(name, snap_name);
5962 * Assumes name is never RBD_SNAP_HEAD_NAME; returns CEPH_NOSNAP if
5963 * no snapshot by that name is found, or if an error occurs.
5965 static u64 rbd_snap_id_by_name(struct rbd_device *rbd_dev, const char *name)
5968 return rbd_v1_snap_id_by_name(rbd_dev, name);
5970 return rbd_v2_snap_id_by_name(rbd_dev, name);
6003 * can't figure out the name for an image id.
6018 /* Get the pool name; we have to make our own copy of this */
6029 /* Fetch the image name; tolerate failure here */
6033 rbd_warn(rbd_dev, "unable to get image name");
6035 /* Fetch the snapshot name */
6424 * The name of the rados pool containing the rbd image.
6426 * The name of the image in that pool to map.
6474 rbd_warn(NULL, "no pool name provided");
6482 rbd_warn(NULL, "no image name provided");
6487 * Snapshot name is optional; default is to use "-"
6601 * name given to it by the user. Internally, that identifier is
6604 * A special "rbd id" object is used to map an rbd image name to its
6606 * with the supplied name.
6623 * known (and the image name likely is not). There's no
6642 dout("rbd id object name is %s\n", oid.name);
6787 unregister_blkdev(rbd_dev->major, rbd_dev->name);
6801 ret = register_blkdev(0, rbd_dev->name);
6833 unregister_blkdev(rbd_dev->major, rbd_dev->name);
6844 /* Record the header object name for this rbd image. */
6936 * If this image is the one being mapped, we have pool name and
6937 * id, image name and id, and snap name - need to fill snap id.
6972 dout("discovered format %u image, header name is %s\n",
6973 rbd_dev->image_format, rbd_dev->header_oid.name);