Lines Matching refs:label
48 #define WLABEL_MSG ",\\n\\ \\ or [w] to write a new label on the %s"
49 #define OLABEL_MSG ",\\n\\ \\ or [o] to use the current label anyway"
71 * 0 - okay, label matches
75 * 4 - label does not match
94 getvol(char *device, char *label, int options, char *prompt)
96 return (_getvol(device, label, options, prompt, NULL));
100 _getvol(char *device, char *label, int options, char *prompt, char *norewind)
122 if (label) {
123 (void) strncpy(origfsname, label, LABELSIZ);
128 if (pt = strchr(label, ',')) {
138 n = insert(device, label, options, prompt);
159 /* check label on device */
160 if (label) {
164 /* check internal label using /etc/labelit */
165 if (ckilabel(label, override)) {
179 ckilabel(char *label, int flag)
187 (void) strncpy(fsname, label, LABELSIZ);
192 if (pt = strchr(label, ',')) {
229 /* mismatched label */
232 (void) sprintf(label, "%s,%s", pfsname, pvolname);
242 wilabel(char *label)
249 if (!label || !strlen(origfsname)) {
251 "Enter text for fsname label:"))
255 if (!label || !strlen(origvolname)) {
257 "Enter text for volume label:"))
272 (void) fprintf(stderr, "\nWrite of label to %s failed.", pname);
275 if (label)
277 (void) sprintf(label, "%s,%s", fsname, volname);
287 insert(char *device, char *label, int options, char *prompt)
334 if (label && (options & DM_ELABEL)) {
335 (void) strcat(prmpt, " The following external label ");
339 voltxt, label);
341 if (label && !(options & DM_ELABEL)) {
348 "\\n\\t%s\\n", label);
426 (void) wilabel(label);
487 "The internal label on the inserted %s is\n", volume);
489 (void) fprintf(stderr, "The internal label for %s is", pname);