summaryrefslogtreecommitdiff
path: root/extras/volume_id/vol_id.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-08-20 18:23:48 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-20 18:23:48 +0200
commit708cb3594139f28f7d99b4ea1cf91b4ccd032273 (patch)
tree306af0e5814287be3d2a19d00d868e1604e309ee /extras/volume_id/vol_id.c
parent04cc3a81d02af4d131b9c92defd7538f22089774 (diff)
volume_id: add suspend partition detection
Based on a patch from: Scott James Remnant <scott@ubuntu.com>
Diffstat (limited to 'extras/volume_id/vol_id.c')
-rw-r--r--extras/volume_id/vol_id.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/extras/volume_id/vol_id.c b/extras/volume_id/vol_id.c
index 96ccaf3637..7bdfda17e7 100644
--- a/extras/volume_id/vol_id.c
+++ b/extras/volume_id/vol_id.c
@@ -291,15 +291,14 @@ int main(int argc, char *argv[])
printf("%s\n", vid->type);
break;
case PRINT_LABEL:
- if (name[0] == '\0' ||
- (vid->usage_id != VOLUME_ID_FILESYSTEM && vid->usage_id != VOLUME_ID_DISKLABEL)) {
+ if (name[0] == '\0' || vid->usage_id == VOLUME_ID_RAID) {
rc = 3;
goto exit;
}
printf("%s\n", name);
break;
case PRINT_UUID:
- if (vid->uuid[0] == '\0' || vid->usage_id != VOLUME_ID_FILESYSTEM) {
+ if (vid->uuid[0] == '\0' || vid->usage_id == VOLUME_ID_RAID) {
rc = 4;
goto exit;
}