block: remove handling of name property
authorJo-Philipp Wich <jo@mein.io>
Mon, 17 Oct 2016 11:06:57 +0000 (13:06 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 17 Oct 2016 11:06:57 +0000 (13:06 +0200)
There is no concept of a "NAME" property within libblkid, the value previously
used was the name parameter of blkid_probe_set_uuid_as() which does not denote
the file system name, but the kind of UUID to store.

Since the value never makes sense, stop using it when reporting block
information.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
block.c

diff --git a/block.c b/block.c
index 9d22458c5e624c18d62a5ac7807b1df92b264ee5..9de8343dc61e7fabfb757d86db729abf5d8d9604 100644 (file)
--- a/block.c
+++ b/block.c
@@ -657,9 +657,6 @@ static int print_block_info(struct probe_info *pr)
        if (pr->label)
                printf(" LABEL=\"%s\"", pr->label);
 
-       if (pr->name)
-               printf(" NAME=\"%s\"", pr->name);
-
        if (pr->version)
                printf(" VERSION=\"%s\"", pr->version);