1 /* vi: set sw=4 ts=4: */
3 * Print UUIDs on all filesystems
5 * Copyright (C) 2008 Denys Vlasenko.
7 * Licensed under GPLv2, see file LICENSE in this source tree.
10 //config: bool "blkid"
12 //config: select PLATFORM_LINUX
13 //config: select VOLUMEID
15 //config: Lists labels and UUIDs of all filesystems.
17 //config: With all submodules selected, it will add ~8k to busybox.
19 //config:config FEATURE_BLKID_TYPE
20 //config: bool "Print filesystem type"
22 //config: depends on BLKID
24 //config: Show TYPE="filesystem type"
26 //applet:IF_BLKID(APPLET(blkid, BB_DIR_SBIN, BB_SUID_DROP))
28 //kbuild:lib-$(CONFIG_BLKID) += blkid.o
30 //usage:#define blkid_trivial_usage
31 //usage: "[BLOCKDEV]..."
32 //usage:#define blkid_full_usage "\n\n"
33 //usage: "Print UUIDs of all filesystems"
36 #include "volume_id.h"
38 int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
39 int blkid_main(int argc UNUSED_PARAM, char **argv)
44 /* Note: bogus device names don't cause any error messages */
45 add_to_uuid_cache(*argv);
49 display_uuid_cache(scan_devices);