Lines Matching defs:dname
64 static int build_usage_string(char *dname, char *by, char *data, char **use,
855 char *dname = NULL;
867 dname = getfullblkname(dev_name);
872 if (dname == NULL || *dname == '\0') {
882 if (ANY_ZPOOL_USE(who) && (err = dm_inuse_swap(dname, errp))) {
886 free(dname);
891 (void) build_usage_string(dname, DM_USE_MOUNT, "swap", msg,
897 free(dname);
901 dm_get_slice_stats(dname, &dev_stats, errp);
911 free(dname);
955 if (build_usage_string(dname,
979 if (build_usage_string(dname,
997 if (build_usage_string(dname,
1009 if (build_usage_string(dname,
1023 if (build_usage_string(dname,
1032 if (build_usage_string(dname, by,
1049 if (dname != NULL)
1050 free(dname);
1249 build_usage_string(char *dname, char *by, char *data, char **msg,
1269 len1 = snprintf(NULL, 0, use, dname, data);
1285 (void) snprintf(*msg + len0, len1 + 1, use, dname, data);