aboutsummaryrefslogtreecommitdiff
path: root/util-linux/blkid.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-12-30 00:40:11 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-12-30 00:40:11 +0100
commit90615a0c5c326fa3cf78fc719f7b16207f47395a (patch)
treebdfee5d8916cc60e9e171b15b7adcc1f5460769a /util-linux/blkid.c
parent2272129a93d9492a42ef43987f829940d26dc862 (diff)
downloadbusybox-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/blkid.c')
-rw-r--r--util-linux/blkid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util-linux/blkid.c b/util-linux/blkid.c
index 53f13a99c..fe88fb31d 100644
--- a/util-linux/blkid.c
+++ b/util-linux/blkid.c
@@ -13,8 +13,13 @@
13//TODO: extend to take BLOCKDEV args, and show TYPE="fstype" 13//TODO: extend to take BLOCKDEV args, and show TYPE="fstype"
14 14
15int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 15int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16int blkid_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) 16int blkid_main(int argc UNUSED_PARAM, char **argv)
17{ 17{
18 while (*++argv) {
19 /* Note: bogus device names don't cause any error messages */
20 add_to_uuid_cache(*argv);
21 }
22
18 display_uuid_cache(); 23 display_uuid_cache();
19 return 0; 24 return 0;
20} 25}