mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 18:02:12 +08:00
2e59334df3
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8280 af4574ff-66df-0310-9fd7-8a98e5e911e0
170 lines
5.5 KiB
XML
170 lines
5.5 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY attr-download-http "http://mirror.dknss.com/nongnu/attr/attr-&attr-version;.src.tar.gz">
|
|
<!ENTITY attr-download-ftp " ">
|
|
<!ENTITY attr-md5sum "d132c119831c27350e10b9f885711adc">
|
|
<!ENTITY attr-size "309 KB">
|
|
<!ENTITY attr-buildsize "3 MB">
|
|
<!ENTITY attr-time "0.1 SBU">
|
|
]>
|
|
|
|
<sect1 id="attr" xreflabel="attr-&attr-version;">
|
|
<?dbhtml filename="attr.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>attr-&attr-version;</title>
|
|
|
|
<indexterm zone="attr">
|
|
<primary sortas="a-attr">attr</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to attr</title>
|
|
|
|
<para>The <application>attr</application> package contains utilities to
|
|
administer the extended attributes on filesystem objects.</para>
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&attr-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&attr-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &attr-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &attr-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: &attr-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: &attr-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/attr"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of attr</title>
|
|
|
|
<para>Install <application>attr</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib &&
|
|
make</userinput></screen>
|
|
|
|
<para>There are three sets of tests that come with this package. Issue the
|
|
following to execute all three:
|
|
<command>make tests root-tests ext-tests</command>. For meaningful results,
|
|
the tests need to be carried out on a file system that supports extended
|
|
attributes. Some failures will occur due to a missing script called
|
|
sort-getfattr-output which is not part of the tarball.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install install-dev install-lib &&
|
|
mv /usr/share/doc/attr /usr/share/doc/attr-&attr-version;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring attr</title>
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<para>There is no configuration to <application>attr</application> itself,
|
|
but to get any use out of <application>attr</application>, a filesystem
|
|
needs to support extended attributes.</para>
|
|
|
|
<para>One way to achieve this is to add the user_xattr option to an ext3
|
|
filesystem in the /etc/fstab file as shown below.</para>
|
|
|
|
<screen># file system mount-point type options dump fsck
|
|
# order
|
|
|
|
/dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>attr, getfattr, and setfattr</seg>
|
|
<seg>libattr.{so,a}</seg>
|
|
<seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="attr-prog">
|
|
<term><command>attr</command></term>
|
|
<listitem>
|
|
<para>extends attributes on filesystem objects.</para>
|
|
<indexterm zone="attr attr">
|
|
<primary sortas="b-attr">attr</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="getfattr">
|
|
<term><command>getfattr</command></term>
|
|
<listitem>
|
|
<para>gets the extended attributes of filesystem objects.</para>
|
|
<indexterm zone="attr getfattr">
|
|
<primary sortas="b-getfattr">getfattr</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="setfattr">
|
|
<term><command>setfattr</command></term>
|
|
<listitem>
|
|
<para>sets the extended attributes of filesystem objects.</para>
|
|
<indexterm zone="attr setfattr">
|
|
<primary sortas="b-setfattr">setfattr</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libattr">
|
|
<term><filename class='libraryfile'>libattr.{so,a}</filename></term>
|
|
<listitem>
|
|
<para>contains the <application>attr</application> API functions.</para>
|
|
<indexterm zone="attr libattr">
|
|
<primary sortas="c-libattr">libattr.{so,a}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|