summaryrefslogtreecommitdiff
path: root/extras/volume_id
diff options
context:
space:
mode:
Diffstat (limited to 'extras/volume_id')
-rw-r--r--extras/volume_id/vol_id.89
-rw-r--r--extras/volume_id/vol_id.xml13
2 files changed, 20 insertions, 2 deletions
diff --git a/extras/volume_id/vol_id.8 b/extras/volume_id/vol_id.8
index 1d7e1330c0..47837de7b5 100644
--- a/extras/volume_id/vol_id.8
+++ b/extras/volume_id/vol_id.8
@@ -35,13 +35,20 @@ print the filesystem type
.PP
\fB\-l\fR
.RS 4
-print the label of a volume
+print the safe version of volume label suitable for use as filename. Use
+\fB\-L\fR
+to print literal label
.RE
.PP
\fB\-u\fR
.RS 4
print the uuid of a volume
.RE
+.PP
+\fB\-L\fR
+.RS 4
+print raw volume label
+.RE
.SH "ENVIRONMENT"
.PP
\fBUDEV_LOG\fR
diff --git a/extras/volume_id/vol_id.xml b/extras/volume_id/vol_id.xml
index b9b35abaa4..2b26b3bddd 100644
--- a/extras/volume_id/vol_id.xml
+++ b/extras/volume_id/vol_id.xml
@@ -59,7 +59,10 @@
<varlistentry>
<term><option>-l</option></term>
<listitem>
- <para>print the label of a volume</para>
+ <para>
+ print the safe version of volume label suitable for
+ use as filename. Use <option>-L</option> to print literal label
+ </para>
</listitem>
</varlistentry>
<varlistentry>
@@ -68,6 +71,14 @@
<para>print the uuid of a volume</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>-L</option></term>
+ <listitem>
+ <para>
+ print raw volume label
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</refsect1>