" -t filesystem type\n"
" -l filesystem label\n"
" -u filesystem uuid\n"
+ " -L raw label\n"
" --skip-raid don't probe for raid\n"
" --probe-all find possibly conflicting signatures\n"
" --help\n"
PRINT_TYPE,
PRINT_LABEL,
PRINT_UUID,
+ PRINT_RAW_LABEL,
} print = PRINT_EXPORT;
struct volume_id *vid = NULL;
static char name[VOLUME_ID_LABEL_SIZE];
print = PRINT_LABEL;
} else if (strcmp(arg, "-u") == 0) {
print = PRINT_UUID;
+ } else if (strcmp(arg, "-L") == 0) {
+ print = PRINT_RAW_LABEL;
} else if (strcmp(arg, "--skip-raid") == 0) {
skip_raid = 1;
} else if (strcmp(arg, "--probe-all") == 0) {
}
printf("%s\n", vid->uuid);
break;
+ case PRINT_RAW_LABEL:
+ if (vid->label[0] == '\0' || vid->usage_id == VOLUME_ID_RAID) {
+ rc = 3;
+ goto exit;
+ }
+ printf("%s\n", vid->label);
+ break;
}
exit: