chiark / gitweb /
d57ecc6bf7ad0a3da7087212d4cf45403e0156fe
[elogind.git] / extras / volume_id / vol_id.8
1 .\"     Title: vol_id
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
4 .\"      Date: March 2006
5 .\"    Manual: vol_id
6 .\"    Source: volume_id
7 .\"
8 .TH "VOL_ID" "8" "March 2006" "volume_id" "vol_id"
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 vol_id \- probe filesystem type and read label and uuid
15 .SH "SYNOPSIS"
16 .HP 7
17 \fBvol_id\fR [\fB\-\-export\fR] [\fB\-t\fR] [\fB\-l\fR] [\fB\-u\fR] [\fIdevice\fR]
18 .SH "DESCRIPTION"
19 .PP
20 \fBvol_id\fR
21 is usually called from a udev rule, to provide udev with the filesystem type, the label and the uuid of a volume.
22 \fBvol_id\fR
23 supports all common filesystem formats and detects various raid setups to prevent the recognition of raid members as a volume with a filesystem.
24 .SH "OPTIONS"
25 .PP
26 \fB\-\-export\fR
27 .RS 3n
28 print all values in key/value format to import them into the environment.
29 .RE
30 .PP
31 \fB\-t\fR
32 .RS 3n
33 print the filesystem type
34 .RE
35 .PP
36 \fB\-l\fR
37 .RS 3n
38 print the label of a volume
39 .RE
40 .PP
41 \fB\-u\fR
42 .RS 3n
43 print the uuid of a volume
44 .RE
45 .SH "ENVIRONMENT"
46 .PP
47 \fBUDEV_LOG\fR
48 .RS 3n
49 Set the syslog priority.
50 .RE
51 .SH "EXIT STATUS"
52 .PP
53 \fBvol_id\fR
54 will only return successful if the value asked for is not empty. All trailing whitespace will be removed, spaces replaced by underscore and slashes ignored.
55 .SH "AUTHOR"
56 .PP
57 Written by Kay Sievers
58 <kay.sievers@vrfy.org>
59 .SH "SEE ALSO"
60 .PP
61 \fBudev\fR(7)