Last change
on this file since 3889 was 3232, checked in by Bruno Cornec, 11 years ago |
- Update mindi-busybox to 1.21.1
|
-
Property svn:eol-style
set to
native
|
File size:
696 bytes
|
Rev | Line | |
---|
[2725] | 1 | /* vi: set sw=4 ts=4: */
|
---|
| 2 | /*
|
---|
| 3 | * Print UUIDs on all filesystems
|
---|
| 4 | *
|
---|
| 5 | * Copyright (C) 2008 Denys Vlasenko.
|
---|
| 6 | *
|
---|
| 7 | * Licensed under GPLv2, see file LICENSE in this source tree.
|
---|
| 8 | */
|
---|
| 9 |
|
---|
[3232] | 10 | //usage:#define blkid_trivial_usage
|
---|
| 11 | //usage: "[BLOCKDEV]..."
|
---|
| 12 | //usage:#define blkid_full_usage "\n\n"
|
---|
| 13 | //usage: "Print UUIDs of all filesystems"
|
---|
| 14 |
|
---|
[2725] | 15 | #include "libbb.h"
|
---|
| 16 | #include "volume_id.h"
|
---|
| 17 |
|
---|
| 18 | int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
---|
[3232] | 19 | int blkid_main(int argc UNUSED_PARAM, char **argv)
|
---|
[2725] | 20 | {
|
---|
[3232] | 21 | int scan_devices = 1;
|
---|
| 22 |
|
---|
| 23 | while (*++argv) {
|
---|
| 24 | /* Note: bogus device names don't cause any error messages */
|
---|
| 25 | add_to_uuid_cache(*argv);
|
---|
| 26 | scan_devices = 0;
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | display_uuid_cache(scan_devices);
|
---|
[2725] | 30 | return 0;
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.