Home | History | Annotate | Download | only in blkid

Lines Matching full:value

56  * Locate a device name from a token (NAME=value string), or (name, value)
57 * pair. In the case of a token, value is ignored. If the "token" is not
58 * of the form "NAME=value" and there is no value given, then it is assumed
62 const char *value)
78 printf("looking for %s%s%s %s\n", token, value ? "=" : "",
79 value ? value : "", cache ? "in cache" : "from disk"));
81 if (!value) {
90 value = v;
93 dev = blkid_find_dev_with_tag(c, token, value);
113 char *value;
118 fprintf(stderr, "Usage:\t%s tagname=value\n"
121 "Find what the value of a tag is in a device\n",
131 value = blkid_get_tag_value(cache, argv[1], argv[2]);
133 value ? value : "<missing>");
135 value = blkid_get_devname(cache, argv[1], NULL);
136 printf("%s has tag %s\n", value ? value : "<none>", argv[1]);
139 return value ? 0 : 1;