mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 18:02:12 +08:00
20e6cade6a
Update to rsync-3.0.9. Remove rsync-client and move rsync to network programs. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8918 af4574ff-66df-0310-9fd7-8a98e5e911e0
203 lines
6.7 KiB
XML
203 lines
6.7 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-http "http://mirrors.zerg.biz/nongnu/attr/attr-&attr-version;.src.tar.gz"> -->
|
|
<!ENTITY attr-download-http " ">
|
|
<!ENTITY attr-download-ftp "ftp://oss.sgi.com/projects/xfs/cmd_tars-oct_09/attr-&attr-version;.src.tar.gz">
|
|
<!ENTITY attr-md5sum "adeefe65c5ad1febe46da185c5bfd5d4">
|
|
<!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>
|
|
|
|
&lfs70_checked;
|
|
|
|
<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>cat > test/sort-getfattr-output << "EOF" &&
|
|
#! /usr/bin/perl -w
|
|
undef $/;
|
|
print join("\n\n", sort split(/\n\n/, <>)), "\n\n";
|
|
EOF
|
|
|
|
chmod 755 test/sort-getfattr-output &&
|
|
sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \
|
|
-e 's|@prefix|$(DESTDIR)&|' \
|
|
-e 's|@libexec|$(DESTDIR)&|' \
|
|
include/builddefs.in &&
|
|
|
|
./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.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install install-dev install-lib &&
|
|
chmod -v 755 /usr/lib/libattr.{so.1.1.0,la} &&
|
|
chown -v root.root /usr/lib/libattr.{a,la,so.1.1.0} &&
|
|
chown -v root.root /usr/share/man/man*/*attr*</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><command>cat > test/sort-getfattr-output ... EOF</command>: This
|
|
command creates a missing test script.</para>
|
|
|
|
<para><command>sed ... include/builddefs.in</command>: This command
|
|
modifies the documentation directory so that it is a versioned
|
|
directory and also adds support for a DESTDIR installation.</para>
|
|
|
|
<para><command>chmod ...</command>: This command modifies the permissions
|
|
of installed library files to standards.</para>
|
|
|
|
</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 <filename>/etc/fstab</filename> 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>
|