volume_id: add support for btrfs

function                                             old     new   delta
volume_id_probe_btrfs                                  -      96     +96
fs2                                                   48      52      +4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 100/0)             Total: 100 bytes

Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Vladimir Dronnikov
2009-11-01 23:05:09 +01:00
committed by Denys Vlasenko
parent e62a2463ec
commit 662e8b79d0
6 changed files with 114 additions and 1 deletions

View File

@ -44,7 +44,7 @@ get_label_uuid(int fd, char **label, char **uuid)
if (vid->label[0] != '\0' || vid->uuid[0] != '\0') {
*label = xstrndup(vid->label, sizeof(vid->label));
*uuid = xstrndup(vid->uuid, sizeof(vid->uuid));
dbg("found label '%s', uuid '%s' on %s", *label, *uuid, device);
dbg("found label '%s', uuid '%s'", *label, *uuid);
rv = 0;
}
ret: