Lines Matching defs:str
140 const char *data, *journal, *str;
146 str = NULL; /* gcc */
167 str = gctl_get_ascii(req, "arg%d", i);
168 if (g_get_mediasize(str) == 0) {
169 gctl_error(req, "Invalid provider %s.", str);
242 str = gctl_get_ascii(req, "arg%d", i);
243 error = g_metadata_clear(str, NULL);
245 gctl_error(req, "Cannot clear metadata on %s: %s.", str,
257 str = data;
263 str = journal;
267 md.md_provsize = g_get_mediasize(str);
272 if (strncmp(str, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
273 str += sizeof(_PATH_DEV) - 1;
274 strlcpy(md.md_provider, str, sizeof(md.md_provider));
277 error = g_metadata_store(str, sector, sizeof(sector));
280 str, strerror(error));
285 printf("Metadata value stored on %s.\n", str);