Lines Matching defs:str
146 const char *str;
164 str = gctl_get_ascii(req, "arg0");
165 strlcpy(md.md_name, str, sizeof(md.md_name));
196 str = gctl_get_ascii(req, "arg%d", i);
197 msize = g_get_mediasize(str);
198 ssize = g_get_sectorsize(str);
201 str, strerror(errno));
225 str = gctl_get_ascii(req, "arg%d", i);
226 error = g_metadata_clear(str, NULL);
228 gctl_error(req, "Can't store metadata on %s: %s.", str,
238 str = gctl_get_ascii(req, "arg%d", i);
239 msize = g_get_mediasize(str);
240 ssize = g_get_sectorsize(str);
244 str, (intmax_t)mediasize, (intmax_t)(msize - ssize));
252 if (strncmp(str, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
253 str += sizeof(_PATH_DEV) - 1;
254 strlcpy(md.md_provider, str, sizeof(md.md_provider));
264 error = g_metadata_store(str, sector, sizeof(sector));
267 str, strerror(error));
272 printf("Metadata value stored on %s.\n", str);