[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 |
|
---|
| 70 | <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib &&
|
---|
| 71 | make</userinput></screen>
|
---|
| 72 |
|
---|
| 73 | <para>There are three sets of tests that come with this package. Issue the
|
---|
| 74 | following to execute all three:
|
---|
| 75 | <command>make tests root-tests ext-tests</command>. For meaningful results,
|
---|
| 76 | the tests need to be carried out on a file system that supports extended
|
---|
| 77 | attributes. Some failures will occur due to a missing script called
|
---|
[2e59334d] | 78 | sort-getfattr-output which is not part of the tarball.</para>
|
---|
[2ac4928] | 79 |
|
---|
| 80 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 81 |
|
---|
| 82 | <screen role="root"><userinput>make install install-dev install-lib &&
|
---|
| 83 | mv /usr/share/doc/attr /usr/share/doc/attr-&attr-version;</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="configuration">
|
---|
| 88 | <title>Configuring attr</title>
|
---|
| 89 | <sect3><title>Configuration Information</title>
|
---|
| 90 |
|
---|
| 91 | <para>There is no configuration to <application>attr</application> itself,
|
---|
| 92 | but to get any use out of <application>attr</application>, a filesystem
|
---|
| 93 | needs to support extended attributes.</para>
|
---|
| 94 |
|
---|
| 95 | <para>One way to achieve this is to add the user_xattr option to an ext3
|
---|
| 96 | filesystem in the /etc/fstab file as shown below.</para>
|
---|
| 97 |
|
---|
| 98 | <screen># file system mount-point type options dump fsck
|
---|
| 99 | # order
|
---|
| 100 |
|
---|
| 101 | /dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
---|
| 102 |
|
---|
| 103 | </sect3>
|
---|
| 104 |
|
---|
| 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="content">
|
---|
| 108 | <title>Contents</title>
|
---|
| 109 |
|
---|
| 110 | <segmentedlist>
|
---|
| 111 | <segtitle>Installed Programs</segtitle>
|
---|
| 112 | <segtitle>Installed Library</segtitle>
|
---|
| 113 | <segtitle>Installed Directories</segtitle>
|
---|
| 114 |
|
---|
| 115 | <seglistitem>
|
---|
| 116 | <seg>attr, getfattr, and setfattr</seg>
|
---|
| 117 | <seg>libattr.{so,a}</seg>
|
---|
| 118 | <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
|
---|
| 119 | </seglistitem>
|
---|
| 120 | </segmentedlist>
|
---|
| 121 |
|
---|
| 122 | <variablelist>
|
---|
| 123 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 124 | <?dbfo list-presentation="list"?>
|
---|
| 125 | <?dbhtml list-presentation="table"?>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="attr-prog">
|
---|
| 128 | <term><command>attr</command></term>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>extends attributes on filesystem objects.</para>
|
---|
| 131 | <indexterm zone="attr attr">
|
---|
| 132 | <primary sortas="b-attr">attr</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="getfattr">
|
---|
| 138 | <term><command>getfattr</command></term>
|
---|
| 139 | <listitem>
|
---|
| 140 | <para>gets the extended attributes of filesystem objects.</para>
|
---|
| 141 | <indexterm zone="attr getfattr">
|
---|
| 142 | <primary sortas="b-getfattr">getfattr</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="setfattr">
|
---|
| 148 | <term><command>setfattr</command></term>
|
---|
| 149 | <listitem>
|
---|
| 150 | <para>sets the extended attributes of filesystem objects.</para>
|
---|
| 151 | <indexterm zone="attr setfattr">
|
---|
| 152 | <primary sortas="b-setfattr">setfattr</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="libattr">
|
---|
| 158 | <term><filename class='libraryfile'>libattr.{so,a}</filename></term>
|
---|
| 159 | <listitem>
|
---|
| 160 | <para>contains the <application>attr</application> API functions.</para>
|
---|
| 161 | <indexterm zone="attr libattr">
|
---|
| 162 | <primary sortas="c-libattr">libattr.{so,a}</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | </variablelist>
|
---|
| 168 |
|
---|
| 169 | </sect2>
|
---|
| 170 |
|
---|
| 171 | </sect1>
|
---|