diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-03 15:09:07 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-03 15:09:07 +0100 |
commit | e8cfc3f693e8a0cbfc489564c76e00c074f63066 (patch) | |
tree | 6b89cd91d9fc4b8138b3c5ea08c7c619f1bc0017 /util-linux/blkid.c | |
parent | 97e528164183c9a9b4768b0d078b3039a1a6ae36 (diff) | |
download | busybox-w32-e8cfc3f693e8a0cbfc489564c76e00c074f63066.tar.gz busybox-w32-e8cfc3f693e8a0cbfc489564c76e00c074f63066.tar.bz2 busybox-w32-e8cfc3f693e8a0cbfc489564c76e00c074f63066.zip |
blkid: if parameters are given, do not scan /dev
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/blkid.c')
-rw-r--r-- | util-linux/blkid.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util-linux/blkid.c b/util-linux/blkid.c index a9fd9f361..1bbc80311 100644 --- a/util-linux/blkid.c +++ b/util-linux/blkid.c | |||
@@ -18,11 +18,14 @@ | |||
18 | int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 18 | int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
19 | int blkid_main(int argc UNUSED_PARAM, char **argv) | 19 | int blkid_main(int argc UNUSED_PARAM, char **argv) |
20 | { | 20 | { |
21 | int scan_devices = 1; | ||
22 | |||
21 | while (*++argv) { | 23 | while (*++argv) { |
22 | /* Note: bogus device names don't cause any error messages */ | 24 | /* Note: bogus device names don't cause any error messages */ |
23 | add_to_uuid_cache(*argv); | 25 | add_to_uuid_cache(*argv); |
26 | scan_devices = 0; | ||
24 | } | 27 | } |
25 | 28 | ||
26 | display_uuid_cache(); | 29 | display_uuid_cache(scan_devices); |
27 | return 0; | 30 | return 0; |
28 | } | 31 | } |