projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5694afd
)
blkid: show filesystem when both label and UUID are missing, but type is known
author
S-G Bergh
<sgb@systemasis.org>
Mon, 5 Nov 2012 12:16:07 +0000
(13:16 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 5 Nov 2012 12:16:07 +0000
(13:16 +0100)
Signed-off-by: S-G Bergh <sgb@systemasis.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/volume_id/get_devname.c
patch
|
blob
|
history
diff --git
a/util-linux/volume_id/get_devname.c
b/util-linux/volume_id/get_devname.c
index 230102d892d5dd5800279daac382e50b33bc517f..665cb9b6e9cf3e3181829e1d80cf9f47ae5a3264 100644
(file)
--- a/
util-linux/volume_id/get_devname.c
+++ b/
util-linux/volume_id/get_devname.c
@@
-49,7
+49,11
@@
get_label_uuid(int fd, char **label, char **uuid, const char **type)
if (volume_id_probe_all(vid, /*0,*/ size) != 0)
goto ret;
- if (vid->label[0] != '\0' || vid->uuid[0] != '\0') {
+ if (vid->label[0] != '\0' || vid->uuid[0] != '\0'
+#if ENABLE_FEATURE_BLKID_TYPE
+ || vid->type != NULL
+#endif
+ ) {
*label = xstrndup(vid->label, sizeof(vid->label));
*uuid = xstrndup(vid->uuid, sizeof(vid->uuid));
#if ENABLE_FEATURE_BLKID_TYPE