Browse Source

chapter06: Translate attr instruction

Xi Ruoyao 7 năm trước cách đây
mục cha
commit
dd2ac61bf4
1 tập tin đã thay đổi với 19 bổ sung21 xóa
  1. 19 21
      chapter06/attr.xml

+ 19 - 21
chapter06/attr.xml

@@ -23,8 +23,7 @@
   <sect2 role="package">
     <title/>
 
-    <para>The attr package contains utilities to administer the extended
-    attributes on filesystem objects.</para>
+    <para>Attr 软件包包含管理文件系统对象扩展属性的工具。</para>
 
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
@@ -41,17 +40,16 @@
   <sect2 role="installation">
     <title>安装Attr</title>
 
-    <para>Modify the documentation directory so that it is a versioned
-    directory:</para>
+    <para>修改文档的安装目录名,使其包含版本号:</para>
 
 <screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
 
-    <para>Prevent installation of manual pages that were already installed by
-    the <xref linkend="man-pages"/> package:</para>
+    <para>不要安装之前已经被 <xref linkend="man-pages"/>
+    软件包安装的手册页面:</para>
 
 <screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man[25]||g" man/Makefile</userinput></screen>
 
-    <para>Fix a problem in the test procedures caused by changes in perl-5.26:</para>
+	<para>修复由 perl-5.26 中的更新引入的测试过程问题:</para>
 
 <screen><userinput remap="pre">sed -i 's:{(:\\{(:' test/run</userinput></screen>
 
@@ -68,10 +66,9 @@
 
 <screen><userinput remap="make">make</userinput></screen>
 
-    <para>The tests need to be run on a filesystem that supports extended
-    attributes such as the ext2, ext3, or ext4 filesystems. The tests are also
-    known to fail if running multiple simultaneous tests (-j option greater than
-    1).  运行下列命令以测试编译结果:</para>
+    <para>测试套件必须在支持扩展属性的文件系统,如 ext2、ext3 或 ext4
+		上运行。另外,已知在同时运行多个测试 (指定了大于 1 的 -j 选项)
+		时测试会失败。运行下列命令以测试编译结果:</para>
 
 <screen><userinput remap="test">make -j1 tests root-tests</userinput></screen>
 
@@ -80,10 +77,11 @@
 <screen><userinput remap="install">make install install-dev install-lib
 chmod -v 755 /usr/lib/libattr.so</userinput></screen>
 
-    <para>The shared library needs to be moved to
-    <filename class="directory">/lib</filename>, and as a result the
-    <filename class="extension">.so</filename> file in
-    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
+    <para>需要将共享库移动到
+    <filename class="directory">/lib</filename> 目录,因此
+    <filename class="directory">/usr/lib</filename> 中的
+    <filename class="extension">.so</filename> 符号链接也需要重新建立:
+    </para>
 
 <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
 ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
@@ -99,9 +97,9 @@ ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput
       <segtitle>安装的目录</segtitle>
 
       <seglistitem>
-        <seg>attr, getfattr, and setattr</seg>
+        <seg>attr, getfattr, 以及 setattr</seg>
         <seg>libattr.so</seg>
-        <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
+        <seg>/usr/include/attr  /usr/share/doc/attr-&attr-version;</seg>
       </seglistitem>
     </segmentedlist>
 
@@ -113,7 +111,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput
       <varlistentry id="attr">
         <term><command>attr</command></term>
         <listitem>
-          <para>Extends attributes on filesystem objects</para>
+          <para>在文件系统对象上扩展属性</para>
           <indexterm zone="ch-system-attr attr">
             <primary sortas="b-attr">attr</primary>
           </indexterm>
@@ -123,7 +121,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput
       <varlistentry id="getfattr">
         <term><command>getfattr</command></term>
         <listitem>
-          <para>Gets the extended attributes of filesystem objects</para>
+          <para>查询文件系统对象的扩展属性</para>
           <indexterm zone="ch-system-attr getfattr">
             <primary sortas="b-getfattr">getfattr</primary>
           </indexterm>
@@ -133,7 +131,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput
       <varlistentry id="setattr">
         <term><command>setattr</command></term>
         <listitem>
-          <para>Sets the extended attributes of filesystem objects</para>
+          <para>设定文件系统对象的扩展属性</para>
           <indexterm zone="ch-system-attr setattr">
             <primary sortas="b-setattr">setattr</primary>
           </indexterm>
@@ -143,7 +141,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput
       <varlistentry id="libattr">
         <term><filename class="libraryfile">libattr</filename></term>
         <listitem>
-          <para>Contains the libbrary functions for manipulating extended attributes</para>
+          <para>包含处理扩展属性的库函数</para>
           <indexterm zone="ch-system-attr libattr">
             <primary sortas="c-libattr">libattr</primary>
           </indexterm>