2008-10-19 23:17:31 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
|
|
|
* Print UUIDs on all filesystems
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Denys Vlasenko.
|
|
|
|
*
|
2010-08-16 23:44:46 +05:30
|
|
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
2008-10-19 23:17:31 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
#include "libbb.h"
|
|
|
|
#include "volume_id.h"
|
|
|
|
|
2010-11-25 12:29:17 +05:30
|
|
|
//TODO: extend to take BLOCKDEV args, and show TYPE="fstype"
|
|
|
|
|
2008-10-19 23:17:31 +05:30
|
|
|
int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
2010-12-30 05:10:11 +05:30
|
|
|
int blkid_main(int argc UNUSED_PARAM, char **argv)
|
2008-10-19 23:17:31 +05:30
|
|
|
{
|
2010-12-30 05:10:11 +05:30
|
|
|
while (*++argv) {
|
|
|
|
/* Note: bogus device names don't cause any error messages */
|
|
|
|
add_to_uuid_cache(*argv);
|
|
|
|
}
|
|
|
|
|
2008-10-19 23:17:31 +05:30
|
|
|
display_uuid_cache();
|
|
|
|
return 0;
|
|
|
|
}
|