Lines Matching refs:dname
64 static int build_usage_string(char *dname, char *by, char *data, char **use,
854 char *dname = NULL; in dm_inuse() local
866 dname = getfullblkname(dev_name); in dm_inuse()
871 if (dname == NULL || *dname == '\0') { in dm_inuse()
881 if (ANY_ZPOOL_USE(who) && (err = dm_inuse_swap(dname, errp))) { in dm_inuse()
885 free(dname); in dm_inuse()
890 (void) build_usage_string(dname, DM_USE_MOUNT, "swap", msg, in dm_inuse()
896 free(dname); in dm_inuse()
900 dm_get_slice_stats(dname, &dev_stats, errp); in dm_inuse()
910 free(dname); in dm_inuse()
954 if (build_usage_string(dname, in dm_inuse()
978 if (build_usage_string(dname, in dm_inuse()
996 if (build_usage_string(dname, in dm_inuse()
1008 if (build_usage_string(dname, in dm_inuse()
1022 if (build_usage_string(dname, in dm_inuse()
1031 if (build_usage_string(dname, by, in dm_inuse()
1048 if (dname != NULL) in dm_inuse()
1049 free(dname); in dm_inuse()
1248 build_usage_string(char *dname, char *by, char *data, char **msg, in build_usage_string() argument
1268 len1 = snprintf(NULL, 0, use, dname, data); in build_usage_string()
1284 (void) snprintf(*msg + len0, len1 + 1, use, dname, data); in build_usage_string()