aboutsummaryrefslogtreecommitdiff
path: root/util-linux/blkid.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/blkid.c')
-rw-r--r--util-linux/blkid.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/util-linux/blkid.c b/util-linux/blkid.c
index c30360c65..1bbc80311 100644
--- a/util-linux/blkid.c
+++ b/util-linux/blkid.c
@@ -8,23 +8,24 @@
8 */ 8 */
9 9
10//usage:#define blkid_trivial_usage 10//usage:#define blkid_trivial_usage
11//usage: "" 11//usage: "[BLOCKDEV]..."
12//usage:#define blkid_full_usage "\n\n" 12//usage:#define blkid_full_usage "\n\n"
13//usage: "Print UUIDs of all filesystems" 13//usage: "Print UUIDs of all filesystems"
14 14
15#include "libbb.h" 15#include "libbb.h"
16#include "volume_id.h" 16#include "volume_id.h"
17 17
18//TODO: extend to take BLOCKDEV args, and show TYPE="fstype"
19
20int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 18int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
21int blkid_main(int argc UNUSED_PARAM, char **argv) 19int blkid_main(int argc UNUSED_PARAM, char **argv)
22{ 20{
21 int scan_devices = 1;
22
23 while (*++argv) { 23 while (*++argv) {
24 /* Note: bogus device names don't cause any error messages */ 24 /* Note: bogus device names don't cause any error messages */
25 add_to_uuid_cache(*argv); 25 add_to_uuid_cache(*argv);
26 scan_devices = 0;
26 } 27 }
27 28
28 display_uuid_cache(); 29 display_uuid_cache(scan_devices);
29 return 0; 30 return 0;
30} 31}