attr.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. ]>
  7. <sect1 id="ch-system-attr" role="wrap">
  8. <?dbhtml filename="attr.html"?>
  9. <sect1info condition="script">
  10. <productname>attr</productname>
  11. <productnumber>&attr-version;</productnumber>
  12. <address>&attr-url;</address>
  13. </sect1info>
  14. <title>Attr-&attr-version;</title>
  15. <indexterm zone="ch-system-attr">
  16. <primary sortas="a-Attr">Attr</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The attr package contains utilities to administer the extended
  21. attributes on filesystem objects.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&attr-ch6-sbu;</seg>
  27. <seg>&attr-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Attr</title>
  33. <para>Prepare Attr for compilation:</para>
  34. <screen revision="sysv"><userinput remap="configure">
  35. ./configure --prefix=/usr \
  36. --bindir=/bin \
  37. --disable-static \
  38. --sysconfdir=/etc \
  39. --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
  40. <screen revision="systemd"><userinput remap="configure">
  41. ./configure --prefix=/usr \
  42. --disable-static \
  43. --sysconfdir=/etc \
  44. --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
  45. <para>Compile the package:</para>
  46. <screen><userinput remap="make">make</userinput></screen>
  47. <para>The tests need to be run on a filesystem that supports extended
  48. attributes such as the ext2, ext3, or ext4 filesystems.
  49. To test the results, issue:</para>
  50. <screen><userinput remap="test">make check</userinput></screen>
  51. <para>Install the package:</para>
  52. <screen><userinput remap="install">make install</userinput></screen>
  53. <para>The shared library needs to be moved to
  54. <filename class="directory">/lib</filename>, and as a result the
  55. <filename class="extension">.so</filename> file in
  56. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  57. <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
  58. ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
  59. </sect2>
  60. <sect2 id="contents-attr" role="content">
  61. <title>Contents of Attr</title>
  62. <segmentedlist>
  63. <segtitle>Installed programs</segtitle>
  64. <segtitle>Installed library</segtitle>
  65. <segtitle>Installed directories</segtitle>
  66. <seglistitem>
  67. <seg>attr, getfattr, and setfattr</seg>
  68. <seg>libattr.so</seg>
  69. <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
  70. </seglistitem>
  71. </segmentedlist>
  72. <variablelist>
  73. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  74. <?dbfo list-presentation="list"?>
  75. <?dbhtml list-presentation="table"?>
  76. <varlistentry id="attr">
  77. <term><command>attr</command></term>
  78. <listitem>
  79. <para>Extends attributes on filesystem objects</para>
  80. <indexterm zone="ch-system-attr attr">
  81. <primary sortas="b-attr">attr</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="getfattr">
  86. <term><command>getfattr</command></term>
  87. <listitem>
  88. <para>Gets the extended attributes of filesystem objects</para>
  89. <indexterm zone="ch-system-attr getfattr">
  90. <primary sortas="b-getfattr">getfattr</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="setfattr">
  95. <term><command>setfattr</command></term>
  96. <listitem>
  97. <para>Sets the extended attributes of filesystem objects</para>
  98. <indexterm zone="ch-system-attr setfattr">
  99. <primary sortas="b-setfattr">setfattr</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="libattr">
  104. <term><filename class="libraryfile">libattr</filename></term>
  105. <listitem>
  106. <para>Contains the library functions for manipulating extended attributes</para>
  107. <indexterm zone="ch-system-attr libattr">
  108. <primary sortas="c-libattr">libattr</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. </variablelist>
  113. </sect2>
  114. </sect1>