blkid: optional support for TYPE="fstype"
[platform/upstream/busybox.git] / util-linux / blkid.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * Print UUIDs on all filesystems
4  *
5  * Copyright (C) 2008 Denys Vlasenko.
6  *
7  * Licensed under GPLv2, see file LICENSE in this source tree.
8  */
9
10 #include "libbb.h"
11 #include "volume_id.h"
12
13 //TODO: extend to take BLOCKDEV args, and show TYPE="fstype"
14
15 int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16 int blkid_main(int argc UNUSED_PARAM, char **argv)
17 {
18         while (*++argv) {
19                 /* Note: bogus device names don't cause any error messages */
20                 add_to_uuid_cache(*argv);
21         }
22
23         display_uuid_cache();
24         return 0;
25 }