[2ac4928] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[16dd5d9] | 7 | <!-- <!ENTITY attr-download-http "http://mirror.dknss.com/nongnu/attr/attr-&attr-version;.src.tar.gz">
|
---|
| 8 | <!ENTITY attr-download-http "http://mirrors.zerg.biz/nongnu/attr/attr-&attr-version;.src.tar.gz"> -->
|
---|
| 9 | <!ENTITY attr-download-http " ">
|
---|
[42ad0e6c] | 10 | <!ENTITY attr-download-ftp "ftp://oss.sgi.com/projects/xfs/cmd_tars-oct_09/attr-&attr-version;.src.tar.gz">
|
---|
| 11 | <!ENTITY attr-md5sum "adeefe65c5ad1febe46da185c5bfd5d4">
|
---|
[2ac4928] | 12 | <!ENTITY attr-size "309 KB">
|
---|
| 13 | <!ENTITY attr-buildsize "3 MB">
|
---|
| 14 | <!ENTITY attr-time "0.1 SBU">
|
---|
| 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="attr" xreflabel="attr-&attr-version;">
|
---|
| 18 | <?dbhtml filename="attr.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>attr-&attr-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="attr">
|
---|
| 28 | <primary sortas="a-attr">attr</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to attr</title>
|
---|
| 33 |
|
---|
| 34 | <para>The <application>attr</application> package contains utilities to
|
---|
| 35 | administer the extended attributes on filesystem objects.</para>
|
---|
| 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&attr-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&attr-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &attr-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &attr-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &attr-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &attr-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 59 | <para condition="html" role="usernotes">User Notes:
|
---|
| 60 | <ulink url="&blfs-wiki;/attr"/></para>
|
---|
| 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2 role="installation">
|
---|
| 65 | <title>Installation of attr</title>
|
---|
| 66 |
|
---|
| 67 | <para>Install <application>attr</application> by running the following
|
---|
| 68 | commands:</para>
|
---|
| 69 |
|
---|
[2be957e] | 70 | <screen><userinput>sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \
|
---|
| 71 | -e 's|@prefix|$(DESTDIR)&|' \
|
---|
| 72 | -e 's|@libexec|$(DESTDIR)&|' \
|
---|
[cd42a255] | 73 | include/builddefs.in &&
|
---|
[9247790] | 74 |
|
---|
| 75 | ./configure --prefix=/usr --libexecdir=/usr/lib &&
|
---|
[2ac4928] | 76 | make</userinput></screen>
|
---|
| 77 |
|
---|
| 78 | <para>There are three sets of tests that come with this package. Issue the
|
---|
| 79 | following to execute all three:
|
---|
| 80 | <command>make tests root-tests ext-tests</command>. For meaningful results,
|
---|
| 81 | the tests need to be carried out on a file system that supports extended
|
---|
| 82 | attributes. Some failures will occur due to a missing script called
|
---|
[2be957e] | 83 | <filename>sort-getfattr-output</filename> which is not part of the
|
---|
| 84 | tarball.</para>
|
---|
[2ac4928] | 85 |
|
---|
| 86 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 87 |
|
---|
| 88 | <screen role="root"><userinput>make install install-dev install-lib &&
|
---|
[9247790] | 89 | chmod -v 755 /usr/lib/libattr.{la,so.1.1.0}</userinput></screen>
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="commands">
|
---|
| 94 | <title>Command Explanations</title>
|
---|
| 95 |
|
---|
| 96 | <para><command>sed ... include/builddefs.in</command>: This command
|
---|
| 97 | modifies the documentation directory so that it is a versioned
|
---|
| 98 | directory and also adds support for a DESTDIR installation.</para>
|
---|
| 99 |
|
---|
| 100 | <para><command>chmod ...</command>: This command modifies the permissions
|
---|
| 101 | of installed library files to standards.</para>
|
---|
[2ac4928] | 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="configuration">
|
---|
| 106 | <title>Configuring attr</title>
|
---|
| 107 | <sect3><title>Configuration Information</title>
|
---|
| 108 |
|
---|
| 109 | <para>There is no configuration to <application>attr</application> itself,
|
---|
| 110 | but to get any use out of <application>attr</application>, a filesystem
|
---|
| 111 | needs to support extended attributes.</para>
|
---|
| 112 |
|
---|
| 113 | <para>One way to achieve this is to add the user_xattr option to an ext3
|
---|
[2be957e] | 114 | filesystem in the <filename>/etc/fstab</filename> file as shown
|
---|
| 115 | below:</para>
|
---|
[2ac4928] | 116 |
|
---|
| 117 | <screen># file system mount-point type options dump fsck
|
---|
| 118 | # order
|
---|
| 119 |
|
---|
| 120 | /dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
---|
| 121 |
|
---|
| 122 | </sect3>
|
---|
| 123 |
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="content">
|
---|
| 127 | <title>Contents</title>
|
---|
| 128 |
|
---|
| 129 | <segmentedlist>
|
---|
| 130 | <segtitle>Installed Programs</segtitle>
|
---|
| 131 | <segtitle>Installed Library</segtitle>
|
---|
| 132 | <segtitle>Installed Directories</segtitle>
|
---|
| 133 |
|
---|
| 134 | <seglistitem>
|
---|
| 135 | <seg>attr, getfattr, and setfattr</seg>
|
---|
| 136 | <seg>libattr.{so,a}</seg>
|
---|
| 137 | <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
|
---|
| 138 | </seglistitem>
|
---|
| 139 | </segmentedlist>
|
---|
| 140 |
|
---|
| 141 | <variablelist>
|
---|
| 142 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 143 | <?dbfo list-presentation="list"?>
|
---|
| 144 | <?dbhtml list-presentation="table"?>
|
---|
| 145 |
|
---|
| 146 | <varlistentry id="attr-prog">
|
---|
| 147 | <term><command>attr</command></term>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>extends attributes on filesystem objects.</para>
|
---|
| 150 | <indexterm zone="attr attr">
|
---|
| 151 | <primary sortas="b-attr">attr</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="getfattr">
|
---|
| 157 | <term><command>getfattr</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>gets the extended attributes of filesystem objects.</para>
|
---|
| 160 | <indexterm zone="attr getfattr">
|
---|
| 161 | <primary sortas="b-getfattr">getfattr</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="setfattr">
|
---|
| 167 | <term><command>setfattr</command></term>
|
---|
| 168 | <listitem>
|
---|
| 169 | <para>sets the extended attributes of filesystem objects.</para>
|
---|
| 170 | <indexterm zone="attr setfattr">
|
---|
| 171 | <primary sortas="b-setfattr">setfattr</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="libattr">
|
---|
| 177 | <term><filename class='libraryfile'>libattr.{so,a}</filename></term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para>contains the <application>attr</application> API functions.</para>
|
---|
| 180 | <indexterm zone="attr libattr">
|
---|
| 181 | <primary sortas="c-libattr">libattr.{so,a}</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | </variablelist>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | </sect1>
|
---|