diff options
author | Theodore Ts'o <tytso@mit.edu> | 2005-05-07 17:06:27 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2005-05-07 17:06:27 -0400 |
commit | ed6acfa337ca74912079b85196cf1263f6daf1a2 (patch) | |
tree | 4aeae5bd667c95cfb58abc19915fe7bcc1d34d17 /misc/blkid.8.in | |
parent | 12b3c8ec1d314b8775fc7d9cefd6bfff551f1de0 (diff) | |
download | e2fsprogs-ed6acfa337ca74912079b85196cf1263f6daf1a2.tar.gz |
Add a new option to the blkid program, -l, which will more efficiently search
for a single device.
Add a new function to the blkid library, blkid_probe_all_new().
Optimize blkid_find_dev_with_tag() so that extraneous device validation are
skipped. (Makes a difference for system with a large number of disks).
Diffstat (limited to 'misc/blkid.8.in')
-rw-r--r-- | misc/blkid.8.in | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/misc/blkid.8.in b/misc/blkid.8.in index 0f6f7c80..f1effe1a 100644 --- a/misc/blkid.8.in +++ b/misc/blkid.8.in @@ -11,7 +11,7 @@ blkid \- command\-line utility to locate/print block device attributes .SH SYNOPSIS .B blkid [ -.B \-hv +.B \-hlv ] [ [ @@ -63,6 +63,32 @@ scanned but not necessarily available at this time), specify .B \-h Display a usage message and exit. .TP +.B \-l +Lookup the device that matches the search parameter specified using +the +.B \-t +option, assuming that there is only one matching the search parameter. +For a system with a large number of disks, this will be more +efficient by avoiding the need to revalidate devices unless absolutely +necessary. If this option is not specified, +.B blkid +will use a less efficient approach, which allows +.B blkid +to print all of the devices that match the search parameter. +.IP +This option is best used for tag searches such as +.I LABEL=data_vol +or +.IR UUID=e280469a-d06f-4c0b-b068-44f3b576029e . +If you want +.B blkid +to print all of the ext3 filesystems using a search parameter +such as +.IR TYPE=ext3 , +then this option should +.I not +be used. +.TP .B \-o Display .BR blkid 's @@ -117,7 +143,7 @@ instead of writing it to the default cache file If you don't want to save the cache to the default file, specify .IR /dev/null. If not specified it will be the same file as that given by the -.B -c +.B \-c option. .TP .I <device> |