diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-12-30 00:40:11 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-12-30 00:40:11 +0100 |
commit | 90615a0c5c326fa3cf78fc719f7b16207f47395a (patch) | |
tree | bdfee5d8916cc60e9e171b15b7adcc1f5460769a /util-linux/volume_id/ext.c | |
parent | 2272129a93d9492a42ef43987f829940d26dc862 (diff) | |
download | busybox-w32-90615a0c5c326fa3cf78fc719f7b16207f47395a.tar.gz busybox-w32-90615a0c5c326fa3cf78fc719f7b16207f47395a.tar.bz2 busybox-w32-90615a0c5c326fa3cf78fc719f7b16207f47395a.zip |
blkid: optional support for TYPE="fstype"
Adapted from patch created by T4ndeta <t4ndeta@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/volume_id/ext.c')
-rw-r--r-- | util-linux/volume_id/ext.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/util-linux/volume_id/ext.c b/util-linux/volume_id/ext.c index 80c217f98..b5194a7b5 100644 --- a/util-linux/volume_id/ext.c +++ b/util-linux/volume_id/ext.c | |||
@@ -65,10 +65,12 @@ int FAST_FUNC volume_id_probe_ext(struct volume_id *id /*,uint64_t off*/) | |||
65 | volume_id_set_uuid(id, es->uuid, UUID_DCE); | 65 | volume_id_set_uuid(id, es->uuid, UUID_DCE); |
66 | dbg("ext: label '%s' uuid '%s'", id->label, id->uuid); | 66 | dbg("ext: label '%s' uuid '%s'", id->label, id->uuid); |
67 | 67 | ||
68 | // if ((le32_to_cpu(es->feature_compat) & EXT3_FEATURE_COMPAT_HAS_JOURNAL) != 0) | 68 | #if ENABLE_FEATURE_BLKID_TYPE |
69 | // id->type = "ext3"; | 69 | if ((le32_to_cpu(es->feature_compat) & EXT3_FEATURE_COMPAT_HAS_JOURNAL) != 0) |
70 | // else | 70 | id->type = "ext3"; |
71 | // id->type = "ext2"; | 71 | else |
72 | id->type = "ext2"; | ||
73 | #endif | ||
72 | 74 | ||
73 | return 0; | 75 | return 0; |
74 | } | 76 | } |