Lines Matching defs:str
173 const char *str;
187 str = gctl_get_ascii(req, "arg0");
188 strlcpy(md.md_name, str, sizeof(md.md_name));
198 str = gctl_get_ascii(req, "balance");
199 bal = balance_id(str);
221 str = gctl_get_ascii(req, "arg%d", i);
222 msize = g_get_mediasize(str);
223 ssize = g_get_sectorsize(str);
226 str, strerror(errno));
245 str = gctl_get_ascii(req, "arg%d", i);
246 error = g_metadata_clear(str, NULL);
248 gctl_error(req, "Can't store metadata on %s: %s.", str,
258 str = gctl_get_ascii(req, "arg%d", i);
261 md.md_provsize = g_get_mediasize(str);
266 if (strncmp(str, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
267 str += sizeof(_PATH_DEV) - 1;
268 strlcpy(md.md_provider, str, sizeof(md.md_provider));
271 error = g_metadata_store(str, sector, sizeof(sector));
274 str, strerror(error));
279 printf("Metadata value stored on %s.\n", str);