{
blkid_probe pr;
struct probe_info *info = NULL;
- size_t type_len, uuid_len, label_len, name_len, version_len;
- char *dev_ptr, *type_ptr, *uuid_ptr, *label_ptr, *name_ptr, *version_ptr;
- const char *type_val, *uuid_val, *label_val, *name_val, *version_val;
+ size_t type_len, uuid_len, label_len, version_len;
+ char *dev_ptr, *type_ptr, *uuid_ptr, *label_ptr, *version_ptr;
+ const char *type_val, *uuid_val, *label_val, *version_val;
if (!load_libblkid())
return NULL;
if (libblkid.lookup(pr, "LABEL", &label_val, &label_len))
label_len = 0;
- if (libblkid.lookup(pr, "NAME", &name_val, &name_len))
- name_len = 0;
-
if (libblkid.lookup(pr, "VERSION", &version_val, &version_len))
version_len = 0;
&type_ptr, type_len,
&uuid_ptr, uuid_len,
&label_ptr, label_len,
- &name_ptr, name_len,
&version_ptr, version_len);
if (info) {
if (label_len)
info->label = strcpy(label_ptr, label_val);
- if (name_len)
- info->name = strcpy(name_ptr, name_val);
-
if (version_len)
info->version = strcpy(version_ptr, version_val);
}
{
struct probe_info *info = NULL;
struct blkid_struct_probe pr = { };
- char *type, *dev, *uuid, *label, *name, *version;
+ char *type, *dev, *uuid, *label, *version;
if (probe_block((char *)path, &pr) == 0 && pr.id && !pr.err) {
info = calloc_a(sizeof(*info),
&dev, strlen(pr.dev) + 1,
&uuid, strlen(pr.uuid) + 1,
&label, strlen(pr.label) + 1,
- &name, strlen(pr.name) + 1,
&version, strlen(pr.version) + 1);
if (info) {
if (pr.label[0])
info->label = strcpy(label, pr.label);
- if (pr.name[0])
- info->name = strcpy(name, pr.name);
-
if (pr.version[0])
info->version = strcpy(version, pr.version);
}