blob: fe88fb31de685b5fe0785bd5a91c5bfec0ae9943 [file] [log] [blame]
Denis Vlasenkobff06fe2008-10-19 17:47:31 +00001/* vi: set sw=4 ts=4: */
2/*
3 * Print UUIDs on all filesystems
4 *
5 * Copyright (C) 2008 Denys Vlasenko.
6 *
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02007 * Licensed under GPLv2, see file LICENSE in this source tree.
Denis Vlasenkobff06fe2008-10-19 17:47:31 +00008 */
9
10#include "libbb.h"
11#include "volume_id.h"
12
Denys Vlasenkob271ad42010-11-25 07:59:17 +010013//TODO: extend to take BLOCKDEV args, and show TYPE="fstype"
14
Denis Vlasenkobff06fe2008-10-19 17:47:31 +000015int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
Denys Vlasenko90615a02010-12-30 00:40:11 +010016int blkid_main(int argc UNUSED_PARAM, char **argv)
Denis Vlasenkobff06fe2008-10-19 17:47:31 +000017{
Denys Vlasenko90615a02010-12-30 00:40:11 +010018 while (*++argv) {
19 /* Note: bogus device names don't cause any error messages */
20 add_to_uuid_cache(*argv);
21 }
22
Denis Vlasenkobff06fe2008-10-19 17:47:31 +000023 display_uuid_cache();
24 return 0;
25}