Lines Matching refs:snap_name
196 const char *snap_name; member
1101 const char *snap_name; in _rbd_dev_v1_snap_name() local
1107 snap_name = rbd_dev->header.snap_names; in _rbd_dev_v1_snap_name()
1109 snap_name += strlen(snap_name) + 1; in _rbd_dev_v1_snap_name()
1111 return kstrdup(snap_name, GFP_KERNEL); in _rbd_dev_v1_snap_name()
1153 const char *snap_name; in rbd_dev_v1_snap_name() local
1159 snap_name = _rbd_dev_v1_snap_name(rbd_dev, which); in rbd_dev_v1_snap_name()
1160 return snap_name ? snap_name : ERR_PTR(-ENOMEM); in rbd_dev_v1_snap_name()
5098 return sprintf(buf, "%s\n", rbd_dev->spec->snap_name); in rbd_snap_show()
5137 spec->snap_id, spec->snap_name, in rbd_parent_show()
5255 kfree(spec->snap_name); in rbd_spec_free()
5898 const char *snap_name; in rbd_v1_snap_id_by_name() local
5903 snap_name = rbd_dev->header.snap_names; in rbd_v1_snap_id_by_name()
5905 if (!strcmp(name, snap_name)) in rbd_v1_snap_id_by_name()
5907 snap_name += strlen(snap_name) + 1; in rbd_v1_snap_id_by_name()
5921 const char *snap_name; in rbd_v2_snap_id_by_name() local
5924 snap_name = rbd_dev_v2_snap_name(rbd_dev, snap_id); in rbd_v2_snap_id_by_name()
5925 if (IS_ERR(snap_name)) { in rbd_v2_snap_id_by_name()
5927 if (PTR_ERR(snap_name) == -ENOENT) in rbd_v2_snap_id_by_name()
5932 found = !strcmp(name, snap_name); in rbd_v2_snap_id_by_name()
5933 kfree(snap_name); in rbd_v2_snap_id_by_name()
5959 rbd_assert(spec->snap_name); in rbd_spec_fill_snap_id()
5961 if (strcmp(spec->snap_name, RBD_SNAP_HEAD_NAME)) { in rbd_spec_fill_snap_id()
5964 snap_id = rbd_snap_id_by_name(rbd_dev, spec->snap_name); in rbd_spec_fill_snap_id()
5988 const char *snap_name; in rbd_spec_fill_names() local
6014 snap_name = rbd_snap_name(rbd_dev, spec->snap_id); in rbd_spec_fill_names()
6015 if (IS_ERR(snap_name)) { in rbd_spec_fill_names()
6016 ret = PTR_ERR(snap_name); in rbd_spec_fill_names()
6022 spec->snap_name = snap_name; in rbd_spec_fill_names()
6113 char *snap_name; in rbd_dev_v2_snap_name() local
6126 snap_name = ERR_PTR(ret); in rbd_dev_v2_snap_name()
6132 snap_name = ceph_extract_encoded_string(&p, end, NULL, GFP_KERNEL); in rbd_dev_v2_snap_name()
6133 if (IS_ERR(snap_name)) in rbd_dev_v2_snap_name()
6137 (unsigned long long)snap_id, snap_name); in rbd_dev_v2_snap_name()
6141 return snap_name; in rbd_dev_v2_snap_name()
6415 char *snap_name; in rbd_add_parse_args() local
6472 snap_name = kmemdup(buf, len + 1, GFP_KERNEL); in rbd_add_parse_args()
6473 if (!snap_name) in rbd_add_parse_args()
6475 *(snap_name + len) = '\0'; in rbd_add_parse_args()
6476 pctx.spec->snap_name = snap_name; in rbd_add_parse_args()
6857 rbd_dev->spec->snap_name); in rbd_print_dne()
7021 strcmp(rbd_dev->spec->snap_name, RBD_SNAP_HEAD_NAME)) in do_rbd_add()