blkid: optional support for TYPE="fstype"

Adapted from patch created by T4ndeta <t4ndeta@gmail.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-12-30 00:40:11 +01:00
parent 2272129a93
commit 90615a0c5c
21 changed files with 84 additions and 37 deletions

View File

@@ -13,8 +13,13 @@
//TODO: extend to take BLOCKDEV args, and show TYPE="fstype"
int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int blkid_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
int blkid_main(int argc UNUSED_PARAM, char **argv)
{
while (*++argv) {
/* Note: bogus device names don't cause any error messages */
add_to_uuid_cache(*argv);
}
display_uuid_cache();
return 0;
}