mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
5bc8c005a8
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
31 lines
689 B
C
31 lines
689 B
C
/* vi: set sw=4 ts=4: */
|
|
/*
|
|
* Print UUIDs on all filesystems
|
|
*
|
|
* Copyright (C) 2008 Denys Vlasenko.
|
|
*
|
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
|
*/
|
|
|
|
//usage:#define blkid_trivial_usage
|
|
//usage: ""
|
|
//usage:#define blkid_full_usage "\n\n"
|
|
//usage: "Print UUIDs of all filesystems"
|
|
|
|
#include "libbb.h"
|
|
#include "volume_id.h"
|
|
|
|
//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)
|
|
{
|
|
while (*++argv) {
|
|
/* Note: bogus device names don't cause any error messages */
|
|
add_to_uuid_cache(*argv);
|
|
}
|
|
|
|
display_uuid_cache();
|
|
return 0;
|
|
}
|