2006-03-30 04:13:22 +04:00
<?xml version='1.0'?>
< !DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<article >
<section >
<title > vol_id</title>
<refentry >
<refentryinfo >
<title > vol_id</title>
<date > March 2006</date>
<productname > volume_id</productname>
</refentryinfo>
<refmeta >
<refentrytitle > vol_id</refentrytitle>
<manvolnum > 8</manvolnum>
2006-07-29 04:13:42 +04:00
<refmiscinfo class= "version" > </refmiscinfo>
2006-03-30 04:13:22 +04:00
</refmeta>
<refnamediv >
<refname > vol_id</refname> <refpurpose > probe filesystem type and read label and uuid</refpurpose>
</refnamediv>
<refsynopsisdiv >
<cmdsynopsis >
<command > vol_id</command>
<arg > <option > --export</option> </arg>
2007-05-03 13:00:02 +04:00
<arg > <option > --type</option> </arg>
<arg > <option > --label</option> </arg>
<arg > <option > --label-raw</option> </arg>
<arg > <option > --uuid</option> </arg>
<arg > <option > --skip-raid</option> </arg>
<arg > <option > --probe-all</option> </arg>
<arg > <option > --help</option> </arg>
2006-03-30 04:13:22 +04:00
<arg > <replaceable > device</replaceable> </arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 > <title > DESCRIPTION</title>
<para > <command > vol_id</command> is usually called from a udev rule, to
provide udev with the filesystem type, the label and the uuid of a
2007-05-03 13:00:02 +04:00
volume. It supports most of the common filesystem formats and detects
various raid setups to prevent the recognition of raid members
2006-03-30 04:13:22 +04:00
as a volume with a filesystem.</para>
</refsect1>
<refsect1 > <title > OPTIONS</title>
<variablelist >
<varlistentry >
<term > <option > --export</option> </term>
<listitem >
2007-05-03 13:00:02 +04:00
<para > Print all values in key/value format to import them into the
2006-03-30 04:13:22 +04:00
environment.</para>
</listitem>
</varlistentry>
<varlistentry >
2007-05-03 13:00:02 +04:00
<term > <option > --type</option> </term>
2006-03-30 04:13:22 +04:00
<listitem >
2007-05-03 13:00:02 +04:00
<para > Print the filesystem type.</para>
2006-03-30 04:13:22 +04:00
</listitem>
</varlistentry>
<varlistentry >
2007-05-03 13:00:02 +04:00
<term > <option > --label</option> </term>
2006-03-30 04:13:22 +04:00
<listitem >
2007-05-03 13:00:02 +04:00
<para >
Print the safe version of volume label suitable for
use as filename.
</para>
2006-03-30 04:13:22 +04:00
</listitem>
</varlistentry>
<varlistentry >
2007-05-03 13:00:02 +04:00
<term > <option > --label-raw</option> </term>
2006-03-30 04:13:22 +04:00
<listitem >
2007-05-03 13:00:02 +04:00
<para >
Print the raw volume label.
</para>
2006-03-30 04:13:22 +04:00
</listitem>
</varlistentry>
2007-01-23 00:27:16 +03:00
<varlistentry >
2007-05-03 13:00:02 +04:00
<term > <option > --uuid</option> </term>
2007-01-23 00:27:16 +03:00
<listitem >
2007-05-03 13:00:02 +04:00
<para > Print the uuid of a volume.</para>
</listitem>
</varlistentry>
<varlistentry >
<term > <option > --skip-raid</option> </term>
<listitem >
<para > Skip detection of raid metadata.</para>
</listitem>
</varlistentry>
<varlistentry >
<term > <option > --probe-all</option> </term>
<listitem >
<para > Probe for all types and print all matches.</para>
</listitem>
</varlistentry>
<varlistentry >
<term > <option > --help</option> </term>
<listitem >
<para > Print usage.</para>
2007-01-23 00:27:16 +03:00
</listitem>
</varlistentry>
2006-03-30 04:13:22 +04:00
</variablelist>
</refsect1>
<refsect1 > <title > ENVIRONMENT</title>
<variablelist >
<varlistentry >
<term > <option > UDEV_LOG</option> </term>
<listitem >
<para > Set the syslog priority.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 > <title > EXIT STATUS</title>
<para > <command > vol_id</command> 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.</para>
</refsect1>
<refsect1 > <title > AUTHOR</title>
<para > Written by Kay Sievers <email > kay.sievers@vrfy.org</email> </para>
</refsect1>
<refsect1 >
<title > SEE ALSO</title>
<para > <citerefentry >
<refentrytitle > udev</refentrytitle> <manvolnum > 7</manvolnum>
</citerefentry> </para>
</refsect1>
</refentry>
</section>
</article>