Skip to contentSkip to conversation

docs/zh_CN: align translation paths and update guides

PATCH Applied Dongliang Mu 2 participants 11 messages Nov 28 – Nov 29

Subsystems (3)
lore
Share & tools
lore

Dongliang Mu

author maintainer
#0 lore raw

v4 cover docs/zh_CN: align translation paths and update guides

Several Chinese translations are no longer at the same relative paths as their English originals, and some Original fields are stale. This series moves the translations to matching paths, adjusts their indexes, and removes stale Original fields. It also updates selected translations to newer English commits.

v3->v4:
- Rebase onto docs-next and retain the translated process/changes.rst in the reorganized process index.
- Add Yanteng Si's Reviewed-by tag to all nine patches.

v2->v3:
- Remove unused top-level labels from the translated V4L driver index, process index, and magic-number guide.
- Update the zh_TW admin-guide README reference to the relocated zh_CN GDB debugging guide.

v1->v2:
- Drop the unused top-level readme_zh label from the translated admin-guide README.

Dongliang Mu (9):
docs/zh_CN: update admin-guide/index.rst translation docs/zh_CN: update admin-guide/README.rst translation docs/zh_CN: add media administrator guide translations docs/zh_CN: reorganize process debugging guides docs/zh_CN: update magic-number to match upstream docs/zh_CN: reorganize media driver API translations docs/zh_CN: move GFS2 translations into filesystems/gfs2 docs/zh_CN: update networking/xfrm/xfrm_proc.rst translation docs/zh_CN: remove stale Original fields from SCSI and IPE
translations

 .../translations/zh_CN/admin-guide/README.rst |  87 +-
 .../translations/zh_CN/admin-guide/index.rst  |  12 +-
 .../zh_CN/admin-guide/media/index.rst         |  54 +
 .../zh_CN/admin-guide/media/omap3isp.rst      |  95 ++
 .../zh_CN/admin-guide/media/v4l-drivers.rst   |  42 +
 .../translations/zh_CN/dev-tools/index.rst    |  37 +-
 .../translations/zh_CN/driver-api/index.rst   | 232 +++--
 .../zh_CN/driver-api/media/index.rst          |  52 +
 .../zh_CN/driver-api/media/v4l2-core.rst      |  36 +
 .../zh_CN/driver-api/media/v4l2-dev.rst       | 286 ++++++
 .../zh_CN/driver-api/media/v4l2-device.rst    | 127 +++
 .../zh_CN/driver-api/media/v4l2-event.rst     | 124 +++
 .../zh_CN/driver-api/media/v4l2-fh.rst        | 123 +++
 .../zh_CN/driver-api/media/v4l2-intro.rst     |  75 ++
 .../zh_CN/driver-api/media/v4l2-subdev.rst    | 491 +++++++++
 .../{gfs2-glocks.rst => gfs2/glocks.rst}      |   4 +-
 .../filesystems/{gfs2.rst => gfs2/index.rst}  |  18 +-
 .../{gfs2-uevents.rst => gfs2/uevents.rst}    |   4 +-
 .../translations/zh_CN/filesystems/index.rst  | 112 +-
 .../translations/zh_CN/networking/index.rst   | 238 +++--
 .../zh_CN/networking/xfrm/index.rst           |  20 +
 .../zh_CN/networking/{ => xfrm}/xfrm_proc.rst |   4 +-
 .../zh_CN/process/applying-patches.rst        |   2 +
 .../debugging}/gdb-kernel-debugging.rst       |  15 +-
 .../zh_CN/process/debugging/index.rst         |  62 ++
 .../translations/zh_CN/process/index.rst      | 109 +-
 .../translations/zh_CN/scsi/wd719x.rst        |   2 -
 .../translations/zh_CN/security/ipe.rst       |   2 -
 .../translations/zh_CN/staging/index.rst      |   6 +-
 .../{process => staging}/magic-number.rst     |  33 +-
 .../zh_CN/video4linux/omap3isp.txt            | 277 -----
 .../zh_CN/video4linux/v4l2-framework.txt      | 958 ------------------
 .../translations/zh_TW/admin-guide/README.rst |   2 +-
 33 files changed, 2127 insertions(+), 1614 deletions(-)
 create mode 100644 Documentation/translations/zh_CN/admin-guide/media/index.rst
 create mode 100644 Documentation/translations/zh_CN/admin-guide/media/omap3isp.rst
 create mode 100644 Documentation/translations/zh_CN/admin-guide/media/v4l-drivers.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/index.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-core.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-dev.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-device.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-event.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-fh.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-intro.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-subdev.rst
 rename Documentation/translations/zh_CN/filesystems/{gfs2-glocks.rst => gfs2/glocks.rst} (99%)
 rename Documentation/translations/zh_CN/filesystems/{gfs2.rst => gfs2/index.rst} (93%)
 rename Documentation/translations/zh_CN/filesystems/{gfs2-uevents.rst => gfs2/uevents.rst} (97%)
 create mode 100644 Documentation/translations/zh_CN/networking/xfrm/index.rst
 rename Documentation/translations/zh_CN/networking/{ => xfrm}/xfrm_proc.rst (96%)
 rename Documentation/translations/zh_CN/{dev-tools => process/debugging}/gdb-kernel-debugging.rst (93%)
 create mode 100644 Documentation/translations/zh_CN/process/debugging/index.rst
 rename Documentation/translations/zh_CN/{process => staging}/magic-number.rst (58%)
 delete mode 100644 Documentation/translations/zh_CN/video4linux/omap3isp.txt
 delete mode 100644 Documentation/translations/zh_CN/video4linux/v4l2-framework.txt
Signature · 1 line
2.51.0
author maintainer
#1 lore raw

PATCH v4 1/9 docs/zh_CN: update admin-guide/index.rst translation

update Documentation/admin-guide/index.rst Chinese translation

Move the already translated tainted-kernels, media, and unicode entries from the Todolist into their respective sections.

Update the translation through commit f0efd29aa60c ("doc: Add CPU Isolation documentation")

---
 .../translations/zh_CN/admin-guide/index.rst         | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
Documentation/translations/zh_CN/admin-guide/index.rst +7 -5
index bd01cf6474c8..23443eb66124 100644
@@ -1,7 +1,6 @@
 .. SPDX-License-Identifier: GPL-2.0
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/admin-guide/index.rst
 
 :翻译:
 
@@ -10,6 +9,7 @@
  朱岩 Yan Zhu <[email protected]>
 
 
+==========================
 Linux 内核用户和管理员指南
 ==========================
 
@@ -86,6 +86,7 @@ Todolist:
    reporting-regressions
    bug-hunting
    bug-bisect
+   tainted-kernels
    init
    clearing-warn-once
    lockup-watchdogs
@@ -95,7 +96,6 @@ Todolist:
 
 *   quickly-build-trimmed-linux
 *   verify-bugs-and-bisect-regressions
-*   tainted-kernels
 *   ramoops
 *   dynamic-debug-howto
 *   kdump/index
@@ -122,6 +122,7 @@ Todolist:
 
 *   cgroup-v2
 *   cgroup-v1/index
+*   cpu-isolation
 *   namespaces/index
 *   pm/index
 *   syscall-user-dispatch
@@ -170,6 +171,8 @@ Todolist:
 .. toctree::
    :maxdepth: 1
 
+   media/index
+
 Todolist:
 
 *   acpi/index
@@ -183,7 +186,6 @@ Todolist:
 *   hw_random
 *   laptops/index
 *   lcd-panel-cgram
-*   media/index
 *   nvme-multipath
 *   parport
 *   pnp
@@ -220,11 +222,11 @@ Todolist:
 .. toctree::
    :maxdepth: 1
 
+   unicode
+
 Todolist:
 
-*   highuid
 *   ldm
-*   unicode
 
 .. only::  subproject and html
 
Signature · 1 line
2.51.0
author maintainer
#2 lore raw

PATCH v4 2/9 docs/zh_CN: update admin-guide/README.rst translation

In reply to Dongliang Mu

update Documentation/admin-guide/README.rst Chinese translation

Refresh the kernel installation guidance and correct the defconfig and LSMOD descriptions. Add a label to the translated applying-patches guide so the README can link to it.

Update the translation through commit 8913632998fc ("Documentation: Fix typos and grammatical errors")

---
 .../translations/zh_CN/admin-guide/README.rst | 87 +++++++++++--------
 .../zh_CN/process/applying-patches.rst        |  2 +
 2 files changed, 51 insertions(+), 38 deletions(-)
Documentation/translations/zh_CN/admin-guide/README.rst +49 -38
index ee6dd3782f4a..06d0172b2ee3 100644
@@ -1,6 +1,5 @@
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/admin-guide/README.rst
 
 :译者:
 
@@ -30,7 +29,7 @@ Linux内核6.x版本 <http://kernel.org/>
 
   虽然Linux最初是为32位的x86 PC机(386或更高版本)开发的,但今天它也能运行在
   (至少)Compaq Alpha AXP、Sun SPARC与UltraSPARC、Motorola 68000、PowerPC、
-  PowerPC64、ARM、Hitachi SuperH、Cell、IBM S/390、MIPS、HP PA-RISC、Intel 
+  PowerPC64、ARM、Hitachi SuperH、Cell、IBM S/390、MIPS、HP PA-RISC、Intel
   IA-64、DEC VAX、AMD x86-64 Xtensa和ARC架构上。
 
   Linux很容易移植到大多数通用的32位或64位体系架构,只要它们有一个分页内存管理
@@ -42,15 +41,12 @@ Linux内核6.x版本 <http://kernel.org/>
 
 文档
 -----
-因特网上和书籍上都有大量的电子文档,既有Linux专属文档,也有与一般UNIX问题相关
-的文档。我建议在任何Linux FTP站点上查找LDP(Linux文档项目)书籍的文档子目录。
-本自述文件并不是关于系统的文档:有更好的可用资源。
 
- - 因特网上和书籍上都有大量的(电子)文档,既有Linux专属文档,也有与普通
-   UNIX问题相关的文档。我建议在任何有LDP(Linux文档项目)书籍的Linux FTP
-   站点上查找文档子目录。本自述文件并不是关于系统的文档:有更好的可用资源。
+ - 因特网上有大量电子文档,书籍中也有丰富资料,既包括 Linux 专属内容,也包括
+   一般 UNIX 问题。在任何 Linux FTP 站点的文档子目录中,都可以查找
+   LDP(Linux 文档项目)的书籍。本 README 并非系统使用手册;另有更好的资料。
 
- - 文档/子目录中有各种自述文件:例如,这些文件通常包含一些特定驱动程序的
+ - ``Documentation/`` 子目录中有各种 README 文件:它们通常包含特定驱动程序的
    内核安装说明。请阅读
    :ref:`Documentation/process/changes.rst <changes>` 文件,它包含了升级内核
    可能会导致的问题的相关信息。
@@ -82,8 +78,8 @@ Linux内核6.x版本 <http://kernel.org/>
    直接应用于基本的6.x内核。例如,如果您的基本内核是6.0,并且希望应用6.0.3
    补丁,则不应先应用6.0.1和6.0.2的补丁。类似地,如果您运行的是6.0.2内核,
    并且希望跳转到6.0.3,那么在应用6.0.3补丁之前,必须首先撤销6.0.2补丁
-   (即patch -R)。更多关于这方面的内容,请阅读
-   Documentation/translations/zh_CN/process/applying-patches.rst 。
+   (即 ``patch -R``)。有关这方面的更多内容,请参阅
+   :ref:`Documentation/translations/zh_CN/process/applying-patches.rst <zh_applying_patches>`。
 
    或者,脚本 patch-kernel 可以用来自动化这个过程。它能确定当前内核版本并
    应用找到的所有补丁::
@@ -154,13 +150,14 @@ Linux内核6.x版本 <http://kernel.org/>
      "make olddefconfig"
                         类似上一个,但不询问直接将新选项设置为默认值。
 
-     "make defconfig"   根据体系架构,使用arch/$arch/defconfig或
-                        arch/$arch/configs/${PLATFORM}_defconfig中的
-                        默认选项值创建./.config文件。
+     "make defconfig"   根据体系架构,使用
+                        arch/$ARCH/configs/defconfig 或
+                        arch/$ARCH/configs/${PLATFORM}_defconfig 中的
+                        默认选项值创建 ./.config 文件。
 
      "make ${PLATFORM}_defconfig"
-                        使用arch/$arch/configs/${PLATFORM}_defconfig中
-                        的默认选项值创建一个./.config文件。
+                        使用 arch/$ARCH/configs/${PLATFORM}_defconfig 中
+                        的默认选项值创建一个 ./.config 文件。
                         用“make help”来获取您体系架构中所有可用平台的列表。
 
      "make allyesconfig"
@@ -180,7 +177,7 @@ Linux内核6.x版本 <http://kernel.org/>
                            已加载的模块不需要的任何模块选项。
 
                            要为另一台计算机创建localmodconfig,请将该计算机
-                           的lsmod存储到一个文件中,并将其作为lsmod参数传入。
+                           的 lsmod 输出存储到文件中,并通过 LSMOD 参数传入。
 
                            此外,通过在参数LMC_KEEP中指定模块的路径,可以将
                            模块保留在某些文件夹或kconfig文件中。
@@ -216,10 +213,10 @@ Linux内核6.x版本 <http://kernel.org/>
       这种情况下,数学仿真永远不会被使用。内核会稍微大一点,但不管
       是否有数学协处理器,都可以在不同的机器上工作。
 
-    - “kernel hacking”配置细节通常会导致更大或更慢的内核(或两者
-      兼而有之),甚至可以通过配置一些例程来主动尝试破坏坏代码以发现
-      内核问题,从而降低内核的稳定性(kmalloc())。因此,您可能应该
-      用于研究“开发”、“实验”或“调试”特性相关问题。
+    - “kernel hacking”配置选项细节通常会使内核体积更大、运行更慢,或者
+      两者兼有。某些选项还会让例程主动触发有问题的代码,以发现内核问题
+      (例如 ``kmalloc()``),从而降低内核的稳定性。因此,对于“开发”、
+      “实验”或“调试”功能,通常应回答 ``n``。
 
 编译内核
 ---------
@@ -227,8 +224,9 @@ Linux内核6.x版本 <http://kernel.org/>
  - 确保您至少有gcc 8.1可用。
    有关更多信息,请参阅 :ref:`Documentation/process/changes.rst <changes>` 。
 
- - 执行 ``make`` 来创建压缩内核映像。如果您安装了lilo以适配内核makefile,
-   那么也可以进行 ``make install`` ,但是您可能需要先检查特定的lilo设置。
+ - 执行 ``make`` 来创建压缩内核映像。如果安装了 LILO,或发行版提供了内核
+   安装程序可以识别的安装脚本,也可以执行 ``make install``。多数常见发行版
+   都提供这样的脚本;请先检查发行版的安装方式。
 
    实际安装必须以root身份执行,但任何正常构建都不需要。
    无须徒然使用root身份。
@@ -244,7 +242,8 @@ Linux内核6.x版本 <http://kernel.org/>
 
      make V=1 all
 
-   如需构建系统也给出内个目标重建的愿意,请使用 ``V=2`` 。默认为 ``V=0`` 。
+   若还需要构建系统说明每个目标重新构建的原因,请使用 ``V=2``。
+   默认值为 ``V=0``。
 
  - 准备一个备份内核以防出错。对于开发版本尤其如此,因为每个新版本都包含
    尚未调试的新代码。也要确保保留与该内核对应的模块的备份。如果要安装
@@ -257,23 +256,35 @@ Linux内核6.x版本 <http://kernel.org/>
  - 为了引导新内核,您需要将内核映像(例如编译后的
    .../linux/arch/x86/boot/bzImage)复制到常规可引导内核的位置。
 
- - 不再支持在没有LILO等启动装载程序帮助的情况下直接从软盘引导内核。
+ - 在 BIOS(非 EFI)系统上,已不再支持不借助 LILO 或 GRUB 等引导加载程序,
+   直接从存储设备启动内核。在 UEFI/EFI 系统上,可以使用 EFISTUB,让主板
+   直接启动内核。不过,对于现代工作站和台式机,通常建议使用引导加载程序,
+   因为安装多个内核或启用安全启动时可能遇到困难。有关 EFISTUB 的详情,
+   请参阅 ``Documentation/admin-guide/efi-stub.rst``。
 
-   如果从硬盘引导Linux,很可能使用LILO,它使用/etc/lilo.conf文件中
-   指定的内核映像文件。内核映像文件通常是/vmlinuz、/boot/vmlinuz、
-   /bzImage或/boot/bzImage。使用新内核前,请保存旧映像的副本,并复制
-   新映像覆盖旧映像。然后您【必须重新运行LILO】来更新加载映射!否则,
-   将无法启动新的内核映像。
+ - 请注意,LILO(LInux LOader)自 2016 年起就不再积极开发。它曾经非常流行,
+   因此仍常见于文档。常见的替代方案包括 GRUB2、rEFInd、Syslinux、
+   systemd-boot 和 EFISTUB。由于多种原因,不建议使用已经停止积极开发的软件。
 
-   重新安装LILO通常需要运行/sbin/LILO。您可能希望编辑/etc/lilo.conf
-   文件为旧内核映像指定一个条目(例如/vmlinux.old)防止新的不能正常
-   工作。有关更多信息,请参阅LILO文档。
+ - 您的发行版很可能提供了安装脚本,这时运行 ``make install`` 就足够了。
+   如果没有,则需要确认所用的引导加载程序并查阅其文档,或配置 EFI。
 
-   重新安装LILO之后,您应该就已经准备好了。关闭系统,重新启动,尽情
-   享受吧!
+旧版 LILO 操作说明
+------------------
 
-   如果需要更改内核映像中的默认根设备、视频模式等,请在适当的地方使用
-   启动装载程序的引导选项。无需重新编译内核即可更改这些参数。
+ - 如果使用 LILO,内核映像在 ``/etc/lilo.conf`` 中指定。映像文件通常是
+   ``/vmlinuz``、``/boot/vmlinuz``、``/bzImage`` 或 ``/boot/bzImage``。
+   要使用新内核,请先保存旧映像的副本,再用新映像覆盖旧映像。然后
+   **必须重新运行 LILO** 来更新加载映射!否则将无法启动新内核映像。
+
+ - 重新安装 LILO 通常只需运行 ``/sbin/lilo``。可以编辑 ``/etc/lilo.conf``,
+   为旧内核映像(例如 ``/vmlinux.old``)保留一个条目,以防新内核无法工作。
+   更多信息请参阅 LILO 文档。
+
+ - 重新安装 LILO 后就可以关闭系统、重新启动并使用新内核了。
+
+ - 如果需要更改内核映像中的默认根设备、视频模式等,请在适当情况下使用
+   引导加载程序的启动选项。无须为更改这些参数而重新编译内核。
 
  - 使用新内核重新启动并享受它吧。
 
@@ -287,5 +298,5 @@ Documentation/translations/zh_CN/admin-guide/reporting-issues.rst 。
 Documentation/translations/zh_CN/admin-guide/bug-hunting.rst 。
 
 更多用GDB调试内核的信息,请参阅:
-Documentation/translations/zh_CN/dev-tools/gdb-kernel-debugging.rst
+Documentation/translations/zh_CN/process/debugging/gdb-kernel-debugging.rst
 和 Documentation/process/debugging/kgdb.rst 。
Documentation/translations/zh_CN/process/applying-patches.rst +2 -0
index c056b241b0cd..fb76a0b69f5c 100644
@@ -8,6 +8,8 @@
 
  袁维杰 Weijie Yuan <[email protected]>
 
+.. _zh_applying_patches:
+
 将补丁应用到 Linux 内核
 +++++++++++++++++++++++
 
Signature · 1 line
2.51.0
author maintainer
#3 lore raw

PATCH v4 3/9 docs/zh_CN: add media administrator guide translations

In reply to Dongliang Mu

Translate the media administrator guide and V4L driver index. Move the OMAP3 ISP translation from video4linux to its current location and update it for the English source.

Update the translation through commit 3cd9b7011519 ("Documentation: add documentation of AMD isp 4 driver")

---
 .../zh_CN/admin-guide/media/index.rst         |  54 ++++
 .../zh_CN/admin-guide/media/omap3isp.rst      |  95 ++++++
 .../zh_CN/admin-guide/media/v4l-drivers.rst   |  42 +++
 .../zh_CN/video4linux/omap3isp.txt            | 277 ------------------
 4 files changed, 191 insertions(+), 277 deletions(-)
 create mode 100644 Documentation/translations/zh_CN/admin-guide/media/index.rst
 create mode 100644 Documentation/translations/zh_CN/admin-guide/media/omap3isp.rst
 create mode 100644 Documentation/translations/zh_CN/admin-guide/media/v4l-drivers.rst
 delete mode 100644 Documentation/translations/zh_CN/video4linux/omap3isp.txt
Documentation/translations/zh_CN/admin-guide/media/index.rst new file +54 -0
new file mode 100644
index 000000000000..80bd1fec7ceb
@@ -0,0 +1,54 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../../disclaimer-zh_CN.rst
+.. include:: <isonum.txt>
+
+
+========================
+媒体子系统管理和用户指南
+========================
+
+本节介绍媒体子系统及其支持的驱动程序的使用方法。
+
+另请参阅:
+
+``Documentation/userspace-api/media/index.rst``
+
+  - 介绍媒体设备使用的用户空间 API。
+
+``Documentation/driver-api/media/index.rst``
+
+  - 介绍媒体设备使用的驱动开发信息及内核 API。
+
+``Documentation/process/debugging/media_specific_debugging_guide.rst``
+
+  - 介绍调试媒体子系统驱动程序所需的基本工具和方法。
+
+.. toctree::
+   :caption: 目录
+   :maxdepth: 2
+   :numbered:
+
+   v4l-drivers
+
+Todolist:
+
+* intro
+* building
+* remote-controller
+* cec
+* dvb
+* cardlist
+* dvb-drivers
+
+**Copyright** |copy| 1999-2020 : LinuxTV Developers
+
+::
+
+  本文档是自由软件;您可以按照自由软件基金会发布的 GNU 通用公共许可证
+  第 2 版,或(由您选择)任何后续版本的条款重新分发和/或修改本文档。
+
+  发布本文档是希望它能够发挥作用,但不提供任何担保;甚至不提供有关
+  适销性或特定用途适用性的默示担保。详情请参阅 GNU 通用公共许可证。
+
+  更多详情请参阅源代码目录中的 COPYING 文件。
Documentation/translations/zh_CN/admin-guide/media/omap3isp.rst new file +95 -0

95 lines not on this page · raw message

Documentation/translations/zh_CN/admin-guide/media/v4l-drivers.rst new file +42 -0

42 lines not on this page · raw message

Documentation/translations/zh_CN/video4linux/omap3isp.txt deleted +0 -277

277 lines not on this page · raw message

Signature · 1 line
2.51.0
author maintainer
#4 lore raw

PATCH v4 4/9 docs/zh_CN: reorganize process debugging guides

In reply to Dongliang Mu

Move the GDB debugging translation into process/debugging. Update the process and development tools indexes to match the current English structure.

Update the zh_TW admin-guide README reference to the moved zh_CN GDB guide.

Synchronize the process index with upstream revision a03ef333fbd6.

---
 .../translations/zh_CN/dev-tools/index.rst    |  37 +++---
 .../debugging}/gdb-kernel-debugging.rst       |  15 ++-
 .../zh_CN/process/debugging/index.rst         |  62 ++++++++++
 .../translations/zh_CN/process/index.rst      | 109 +++++++++++-------
 .../translations/zh_TW/admin-guide/README.rst |   2 +-
 5 files changed, 159 insertions(+), 66 deletions(-)
 rename Documentation/translations/zh_CN/{dev-tools => process/debugging}/gdb-kernel-debugging.rst (93%)
 create mode 100644 Documentation/translations/zh_CN/process/debugging/index.rst
Documentation/translations/zh_CN/dev-tools/index.rst +20 -17
index 7b37194217b0..f5cf2621b6e3 100644
@@ -1,18 +1,16 @@
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/dev-tools/index.rst
 :Translator: 赵军奎 Bernard Zhao <[email protected]>
 
 ============
 内核开发工具
 ============
 
-本文档是有关内核开发工具文档的合集。
-目前这些文档已经整理在一起,不需要再花费额外的精力。
-欢迎任何补丁。
+本文档收集了用于内核开发的工具文档。目前这些文档只是汇集在一起,尚未充分整理成一份连贯的指南;欢迎提交补丁!
 
-有关测试专用工具的简要概述,参见
-Documentation/translations/zh_CN/dev-tools/testing-overview.rst
+测试工具的简要概述见 ``Documentation/dev-tools/testing-overview.rst``。
+
+调试专用工具见 ``Documentation/process/debugging/index.rst``。
 
 .. toctree::
    :caption: 目录
@@ -21,21 +19,26 @@ Documentation/translations/zh_CN/dev-tools/testing-overview.rst
    testing-overview
    sparse
    kcov
-   kcsan
-   kmsan
    gcov
    kasan
+   kmsan
    ubsan
    kmemleak
-   gdb-kernel-debugging
+   kcsan
 
 Todolist:
 
- - checkpatch
- - coccinelle
- - kfence
- - kgdb
- - kselftest
- - kunit/index
- - ktap
- - checkuapi
+* checkpatch
+* clang-format
+* coccinelle
+* context-analysis
+* lkmm/index
+* kfence
+* kselftest
+* kunit/index
+* ktap
+* checkuapi
+* gpio-sloppy-logic-analyzer
+* autofdo
+* propeller
+* container
Documentation/translations/zh_CN/process/debugging/gdb-kernel-debugging.rst renamed from Documentation/translations/zh_CN/dev-tools/gdb-kernel-debugging.rst +11 -4
similarity index 93%
rename from Documentation/translations/zh_CN/dev-tools/gdb-kernel-debugging.rst
rename to Documentation/translations/zh_CN/process/debugging/gdb-kernel-debugging.rst
index 0b382a32b3fe..f5010c144dcb 100644
@@ -1,8 +1,7 @@
 .. highlight:: none
 
-.. include:: ../disclaimer-zh_CN.rst
+.. include:: ../../disclaimer-zh_CN.rst
 
-:Original: Documentation/process/debugging/gdb-kernel-debugging.rst
 :Translator: 高超 gao chao <[email protected]>
 
 通过gdb调试内核和模块
@@ -34,7 +33,7 @@ Kgdb内核调试器、QEMU等虚拟机管理程序或基于JTAG的硬件接口
   但这通常仅在不依赖内核模块时才有效。有关此模式的更多详细信息,请参阅QEMU文档。
   在这种情况下,如果架构支持KASLR,应该在禁用CONFIG_RANDOMIZE_BASE的情况下构建内核。
 
-- 构建gdb脚本(适用于内核v5.1版本及以上)
+- 构建gdb脚本(内核 v5.1 及以上版本需要此步骤)::
 
     make scripts_gdb
 
@@ -78,7 +77,7 @@ Kgdb内核调试器、QEMU等虚拟机管理程序或基于JTAG的硬件接口
     ...
     loading @0xffffffffa0000000: /home/user/linux/build/drivers/ata/ata_generic.ko
 
-- 对一些尚未加载的模块中的函数函数设置断点,例如::
+- 对尚未加载的模块中的函数设置断点,例如::
 
     (gdb) b btrfs_init_sysfs
     Function "btrfs_init_sysfs" not defined.
@@ -165,3 +164,11 @@ Kgdb内核调试器、QEMU等虚拟机管理程序或基于JTAG的硬件接口
 
 可以通过“help <command-name>”或“help function <function-name>”命令
 获取指定命令或指定调试功能的更多详细信息。
+
+调试 GDB 脚本
+-------------
+
+GDB 默认不会显示完整的 Python 回溯,这会使调试 GDB 脚本比必要的更困难。
+使用以下命令可输出 Python 环境的完整回溯::
+
+ (gdb) set python print-stack full
Documentation/translations/zh_CN/process/debugging/index.rst new file +62 -0

62 lines not on this page · raw message

Documentation/translations/zh_CN/process/index.rst +65 -44

157 lines not on this page · raw message

Documentation/translations/zh_TW/admin-guide/README.rst +1 -1
index 5b513d5fd97a..a3ca0cc3b09d 100644
@@ -286,6 +286,6 @@ Documentation/translations/zh_CN/admin-guide/reporting-issues.rst 。
 Documentation/translations/zh_CN/admin-guide/bug-hunting.rst 。
 
 更多用GDB調試內核的信息,請參閱:
-Documentation/translations/zh_CN/dev-tools/gdb-kernel-debugging.rst
+Documentation/translations/zh_CN/process/debugging/gdb-kernel-debugging.rst
 和 Documentation/process/debugging/kgdb.rst 。
 
Signature · 1 line
2.51.0
author maintainer
#5 lore raw

PATCH v4 5/9 docs/zh_CN: update magic-number to match upstream

In reply to Dongliang Mu

Update the Chinese magic-number guide to match its English source. Move it from process to staging and update the staging index.

Synchronize the translation with upstream revision dd8d4bc28ad7.

---
 .../translations/zh_CN/staging/index.rst      |  6 ++--
 .../{process => staging}/magic-number.rst     | 33 +++++++++----------
 2 files changed, 17 insertions(+), 22 deletions(-)
 rename Documentation/translations/zh_CN/{process => staging}/magic-number.rst (58%)
Documentation/translations/zh_CN/staging/index.rst +2 -4
index 6d68fabce175..896734ade5eb 100644
@@ -1,8 +1,6 @@
 .. SPDX-License-Identifier: GPL-2.0
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/staging/index.rst
-
 :翻译:
 
  李睿 Rui Li <[email protected]>
@@ -13,14 +11,14 @@
 .. toctree::
    :maxdepth: 2
 
+   magic-number
    speculation
    xz
 
-TODOList:
+Todolist:
 
 * crc32
 * lzo
 * remoteproc
 * rpmsg
 * static-keys
-* tee
Documentation/translations/zh_CN/staging/magic-number.rst renamed from Documentation/translations/zh_CN/process/magic-number.rst +15 -18
similarity index 58%
rename from Documentation/translations/zh_CN/process/magic-number.rst
rename to Documentation/translations/zh_CN/staging/magic-number.rst
index 05ee75cf4346..e8fdf9a7fbdd 100644
@@ -1,7 +1,5 @@
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/staging/magic-number.rst
-
 :翻译:
 
  贾威威 Jia Wei Wei <[email protected]>
@@ -13,13 +11,13 @@
 Linux 魔术数
 ============
 
-这个文件是有关当前使用的魔术值注册表。当你给一个结构体添加了一个魔术值,你也
-应该把这个魔术值添加到这个文件,因为我们最好把用于各种结构体的魔术值统一起来。
+本文档登记当前使用的魔术数。给结构体添加魔术数时,也应将其登记在这里,
+因为不同结构体使用的魔术数最好互不相同。
 
-使用魔术值来保护内核数据结构是一个 **非常好的主意** 。这就允许你在运行时检
-查一个结构体(a)是否已经被攻击,或者(b)你已经给一个例程传递了一个错误的结构
-体。最后一种情况特别地有用---特别是当你通过一个空指针指向结构体的时候。例如,
-tty源码经常通过特定驱动使用这种方法用来反复地排列特定方面的结构体。
+用魔术数保护内核数据结构是一个 **非常好的主意**。这样可以在运行时检查:
+(a)结构体是否被意外覆盖,或(b)是否向函数传入了错误的结构体。后一种情况
+尤其常见于通过 ``void *`` 指针传递结构体指针时。例如,tty 代码经常这样
+在驱动专用结构体和线路规程专用结构体之间传递指针。
 
 使用魔术值的方法是在结构体的开头声明它们,如下::
 
@@ -28,30 +26,29 @@ tty源码经常通过特定驱动使用这种方法用来反复地排列特定
         	...
         };
 
-当你以后给内核添加增强功能的时候,请遵守这条规则!这样就会节省数不清的调试
-时间,特别是一些古怪的情况,例如,数组超出范围并且覆盖写了超出部分。利用这
-个规则,这些情况可以被快速地,安全地检测到这些案例。
+今后扩展内核时,请遵循这一做法!它能节省大量调试时间,尤其是在数组越界并
+覆盖后续结构体等难以排查的情况下。使用魔术数可以快速、安全地发现这些问题。
 
 变更日志::
 
 					Theodore Ts'o
 					31 Mar 94
 
-  给当前的Linux 2.1.55添加魔术表。
+  此魔术数表已更新至 Linux 2.1.55。
 
 					Michael Chastain
 					<mailto:[email protected]>
 					22 Sep 1997
 
-  现在应该最新的Linux 2.1.112.因为在特性冻结期间,不能在2.2.x前改变任
-  何东西。这些条目被数域所排序。
+  此表现在应已更新至 Linux 2.1.112。由于目前处于功能冻结期,在 2.2.x
+  发布前不太可能再发生变化。条目按数值字段排序。
 
 					Krzysztof G.Baranowski
 					<mailto: [email protected]>
 					29 Jul 1998
 
-  更新魔术表到Linux 2.5.45。刚好越过特性冻结,但是有可能还会有一些新的魔
-  术值在2.6.x之前融入到内核中。
+  将魔术数表更新至 Linux 2.5.45。虽然刚进入功能冻结期,2.6.x 发布前
+  仍可能有新的魔术数进入内核。
 
 					Petr Baudis
 					<[email protected]>
@@ -66,10 +63,10 @@ tty源码经常通过特定驱动使用这种方法用来反复地排列特定
 ===================== ================ ======================== ==========================================
 魔术数名              数字             结构                     文件
 ===================== ================ ======================== ==========================================
-PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/pg.h``
+PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/uapi/linux/pg.h``
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
-SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
+SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip/slip.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
 CODA_MAGIC            0xC0DAC0DA       coda_file_info           ``fs/coda/coda_fs_i.h``
 CCB_MAGIC             0xf2691ad2       ccb                      ``drivers/scsi/ncr53c8xx.c``
Signature · 1 line
2.51.0
author maintainer
#6 lore raw

PATCH v4 6/9 docs/zh_CN: reorganize media driver API translations

In reply to Dongliang Mu

Split the legacy V4L2 framework translation into the current media driver API pages and update the driver API index to link them.

---
 .../translations/zh_CN/driver-api/index.rst   | 232 +++--
 .../zh_CN/driver-api/media/index.rst          |  52 +
 .../zh_CN/driver-api/media/v4l2-core.rst      |  36 +
 .../zh_CN/driver-api/media/v4l2-dev.rst       | 286 ++++++
 .../zh_CN/driver-api/media/v4l2-device.rst    | 127 +++
 .../zh_CN/driver-api/media/v4l2-event.rst     | 124 +++
 .../zh_CN/driver-api/media/v4l2-fh.rst        | 123 +++
 .../zh_CN/driver-api/media/v4l2-intro.rst     |  75 ++
 .../zh_CN/driver-api/media/v4l2-subdev.rst    | 491 +++++++++
 .../zh_CN/video4linux/v4l2-framework.txt      | 958 ------------------
 10 files changed, 1448 insertions(+), 1056 deletions(-)
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/index.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-core.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-dev.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-device.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-event.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-fh.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-intro.rst
 create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-subdev.rst
 delete mode 100644 Documentation/translations/zh_CN/video4linux/v4l2-framework.txt
Documentation/translations/zh_CN/driver-api/index.rst +134 -98
index 4050a2fb51c6..ed25f0a11b01 100644
@@ -2,8 +2,6 @@
 
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/driver-api/index.rst
-
 :翻译:
 
  司延腾 Yanteng Si <[email protected]>
@@ -17,109 +15,147 @@ Linux驱动实现者的API指南
 内核提供了各种各样的接口来支持设备驱动的开发。这份文档只是对其中一些接口进行了
 一定程度的整理——希望随着时间的推移,它能变得更好!可用的小节可以在下面看到。
 
+驱动程序作者的一般信息
+======================
+
+本节收录的文档,在设备驱动开发过程中大多会有用处。
+
+Todolist:
+
+* basics
+* driver-model/index
+* device_link
+* infrastructure
+* ioctl
+* pm/index
+
+实用的支持库
+============
+
+本节收录的文档,在设备驱动开发过程中大多会有用处。
+
 .. toctree::
-   :caption: 目录列表
-   :maxdepth: 2
+   :maxdepth: 1
 
-   gpio/index
    io_ordering
+
+Todolist:
+
+* early-userspace/index
+* connector
+* device-io
+* devfreq
+* dma-buf
+* component
+* io-mapping
+* uio-howto
+* vfio-mediated-device
+* vfio
+* vfio-pci-device-specific-driver-acceptance
+
+总线级文档
+==========
+
+Todolist:
+
+* auxiliary_bus
+* cxl/index
+* eisa
+* firewire
+* i3c/index
+* isa
+* men-chameleon-bus
+* pci/index
+* rapidio/index
+* slimbus
+* usb/index
+* virtio/index
+* vme
+* w1
+* xillybus
+
+特定子系统的 API
+================
+
+.. toctree::
+   :maxdepth: 1
+
+   gpio/index
+   media/index
    phy/index
 
 Todolist:
 
-*   driver-model/index
-*   basics
-*   infrastructure
-*   ioctl
-*   early-userspace/index
-*   pm/index
-*   clk
-*   device-io
-*   dma-buf
-*   device_link
-*   component
-*   message-based
-*   infiniband
-*   aperture
-*   frame-buffer
-*   regulator
-*   reset
-*   iio/index
-*   input
-*   usb/index
-*   firewire
-*   pci/index
-*   cxl/index
-*   spi
-*   i2c
-*   ipmb
-*   ipmi
-*   i3c/index
-*   interconnect
-*   devfreq
-*   hsi
-*   edac
-*   scsi
-*   libata
-*   target
-*   mailbox
-*   mtdnand
-*   miscellaneous
-*   mei/index
-*   mtd/index
-*   mmc/index
-*   nvdimm/index
-*   w1
-*   rapidio/index
-*   s390-drivers
-*   vme
-*   80211/index
-*   uio-howto
-*   firmware/index
-*   pin-control
-*   md/index
-*   media/index
-*   misc_devices
-*   nfc/index
-*   dmaengine/index
-*   slimbus
-*   soundwire/index
-*   thermal/index
-*   fpga/index
-*   acpi/index
-*   auxiliary_bus
-*   backlight/lp855x-driver.rst
-*   connector
-*   console
-*   dcdbas
-*   eisa
-*   isa
-*   isapnp
-*   io-mapping
-*   generic-counter
-*   memory-devices/index
-*   men-chameleon-bus
-*   ntb
-*   nvmem
-*   parport-lowlevel
-*   pps
-*   ptp
-*   pwm
-*   pldmfw/index
-*   rfkill
-*   serial/index
-*   sm501
-*   surface_aggregator/index
-*   switchtec
-*   sync_file
-*   tty/index
-*   vfio-mediated-device
-*   vfio
-*   vfio-pci-device-specific-driver-acceptance
-*   xilinx/index
-*   xillybus
-*   zorro
-*   hte/index
+* 80211/index
+* acpi/index
+* backlight/lp855x-driver.rst
+* clk
+* coco/index
+* console
+* crypto/index
+* dmaengine/index
+* dpll
+* edac
+* extcon
+* firmware/index
+* fpga/index
+* frame-buffer
+* aperture
+* generic-counter
+* generic_pt
+* hsi
+* hte/index
+* hw-recoverable-errors
+* i2c
+* iio/index
+* infiniband
+* input
+* interconnect
+* ipmb
+* ipmi
+* issei/index
+* libata
+* mailbox
+* md/index
+* mei/index
+* memory-devices/index
+* message-based
+* misc_devices
+* miscellaneous
+* mmc/index
+* mtd/index
+* mtdnand
+* nfc/index
+* ntb
+* nvdimm/index
+* nvmem
+* parport-lowlevel
+* pin-control
+* pldmfw/index
+* pps
+* ptp
+* pwm
+* pwrseq
+* regulator
+* reset
+* rfkill
+* s390-drivers
+* scsi
+* serial/index
+* sm501
+* soundwire/index
+* spi
+* surface_aggregator/index
+* switchtec
+* sync_file
+* target
+* tee
+* thermal/index
+* tty/index
+* wbrf
+* wmi
+* xilinx/index
+* zorro
 
 .. only::  subproject and html
 
Documentation/translations/zh_CN/driver-api/media/index.rst new file +52 -0

52 lines not on this page · raw message

Documentation/translations/zh_CN/driver-api/media/v4l2-core.rst new file +36 -0
new file mode 100644
index 000000000000..9e7414a51dd5
@@ -0,0 +1,36 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../../disclaimer-zh_CN.rst
+
+
+Video4Linux 设备
+----------------
+
+.. toctree::
+   :maxdepth: 1
+
+   v4l2-intro
+   v4l2-dev
+   v4l2-device
+   v4l2-fh
+   v4l2-subdev
+   v4l2-event
+
+Todolist:
+
+* v4l2-controls
+* v4l2-videobuf2
+* v4l2-dv-timings
+* v4l2-flash-led-class
+* v4l2-mc
+* v4l2-mediabus
+* v4l2-mem2mem
+* v4l2-async
+* v4l2-fwnode
+* v4l2-cci
+* v4l2-rect
+* v4l2-tuner
+* v4l2-common
+* v4l2-tveeprom
+* v4l2-jpeg
+* v4l2-isp
Documentation/translations/zh_CN/driver-api/media/v4l2-dev.rst new file +286 -0

286 lines not on this page · raw message

Documentation/translations/zh_CN/driver-api/media/v4l2-device.rst new file +127 -0

127 lines not on this page · raw message

Documentation/translations/zh_CN/driver-api/media/v4l2-event.rst new file +124 -0

124 lines not on this page · raw message

Documentation/translations/zh_CN/driver-api/media/v4l2-fh.rst new file +123 -0

123 lines not on this page · raw message

Documentation/translations/zh_CN/driver-api/media/v4l2-intro.rst new file +75 -0

75 lines not on this page · raw message

Documentation/translations/zh_CN/driver-api/media/v4l2-subdev.rst new file +491 -0

491 lines not on this page · raw message

Documentation/translations/zh_CN/video4linux/v4l2-framework.txt deleted +0 -958

958 lines not on this page · raw message

Signature · 1 line
2.51.0
author maintainer
#7 lore raw

PATCH v4 7/9 docs/zh_CN: move GFS2 translations into filesystems/gfs2

In reply to Dongliang Mu

Move the GFS2 overview, glock, and uevent translations into the GFS2 directory. Update the filesystem index and add the GFS2 chapter index.

---
 .../{gfs2-glocks.rst => gfs2/glocks.rst}      |   4 +-
 .../filesystems/{gfs2.rst => gfs2/index.rst}  |  18 ++-
 .../{gfs2-uevents.rst => gfs2/uevents.rst}    |   4 +-
 .../translations/zh_CN/filesystems/index.rst  | 112 ++++++++++++++++--
 4 files changed, 116 insertions(+), 22 deletions(-)
 rename Documentation/translations/zh_CN/filesystems/{gfs2-glocks.rst => gfs2/glocks.rst} (99%)
 rename Documentation/translations/zh_CN/filesystems/{gfs2.rst => gfs2/index.rst} (93%)
 rename Documentation/translations/zh_CN/filesystems/{gfs2-uevents.rst => gfs2/uevents.rst} (97%)
Documentation/translations/zh_CN/filesystems/gfs2/glocks.rst renamed from Documentation/translations/zh_CN/filesystems/gfs2-glocks.rst +1 -3
similarity index 99%
rename from Documentation/translations/zh_CN/filesystems/gfs2-glocks.rst
rename to Documentation/translations/zh_CN/filesystems/gfs2/glocks.rst
index abfd2f2f94e9..a73444759a27 100644
@@ -1,8 +1,6 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. include:: ../disclaimer-zh_CN.rst
-
-:Original: Documentation/filesystems/gfs2-glocks.rst
+.. include:: ../../disclaimer-zh_CN.rst
 
 :翻译:
 
Documentation/translations/zh_CN/filesystems/gfs2/index.rst renamed from Documentation/translations/zh_CN/filesystems/gfs2.rst +14 -4
similarity index 93%
rename from Documentation/translations/zh_CN/filesystems/gfs2.rst
rename to Documentation/translations/zh_CN/filesystems/gfs2/index.rst
index ffa62b12b019..af6c10af2fca 100644
@@ -1,8 +1,6 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. include:: ../disclaimer-zh_CN.rst
-
-:Original: Documentation/filesystems/gfs2.rst
+.. include:: ../../disclaimer-zh_CN.rst
 
 :翻译:
 
@@ -16,6 +14,9 @@
 全局文件系统 2 (Global File System 2)
 =====================================
 
+概述
+====
+
 GFS2 是一个集群文件系统。它允许一组计算机同时使用在它们之间共享的块设备(通
 过 FC、iSCSI、NBD 等)。GFS2 像本地文件系统一样读写块设备,但也使用一个锁
 模块来让计算机协调它们的 I/O 操作,从而维护文件系统的一致性。GFS2 的出色特
@@ -33,7 +34,7 @@ GFS2 使用可互换的节点间锁定机制,当前支持的机制有:
 
 lock_dlm 依赖于在上述 URL 中找到的用户空间集群管理系统。
 
-若要将 GFS2 用作本地文件系统,则不需要外部集群系统,只需::
+若要将 GFS2 用作本地文件系统,则不需要外部集群系统,只需::
 
   $ mkfs -t gfs2 -p lock_nolock -j 1 /dev/block_device
   $ mount -t gfs2 /dev/block_device /dir
@@ -55,3 +56,12 @@ GFS2 在磁盘格式上与早期版本的 GFS 不兼容,但它已相当接近
   gfs2_convert		用于将 gfs 文件系统原地转换为 GFS2
   mkfs.gfs2		用于创建文件系统
   ============          =============================================
+
+实现说明
+========
+
+.. toctree::
+   :maxdepth: 1
+
+   glocks
+   uevents
Documentation/translations/zh_CN/filesystems/gfs2/uevents.rst renamed from Documentation/translations/zh_CN/filesystems/gfs2-uevents.rst +1 -3
similarity index 97%
rename from Documentation/translations/zh_CN/filesystems/gfs2-uevents.rst
rename to Documentation/translations/zh_CN/filesystems/gfs2/uevents.rst
index 3975c4544118..a60f9fdae6bc 100644
@@ -1,8 +1,6 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. include:: ../disclaimer-zh_CN.rst
-
-:Original: Documentation/filesystems/gfs2-uevents.rst
+.. include:: ../../disclaimer-zh_CN.rst
 
 :翻译:
 
Documentation/translations/zh_CN/filesystems/index.rst +100 -12

141 lines not on this page · raw message

Signature · 1 line
2.51.0
author maintainer
#8 lore raw

PATCH v4 8/9 docs/zh_CN: update networking/xfrm/xfrm_proc.rst translation

In reply to Dongliang Mu

Move the XFRM proc translation to its current upstream location and adjust the disclaimer include. Add an XFRM chapter index and update the networking index to follow the English layout.

Track the English xfrm_proc.rst through commit 03e23b18c720 ("net: Move XFRM documentation into its own subdirectory").

---
 .../translations/zh_CN/networking/index.rst   | 238 +++++++++---------
 .../zh_CN/networking/xfrm/index.rst           |  20 ++
 .../zh_CN/networking/{ => xfrm}/xfrm_proc.rst |   4 +-
 3 files changed, 138 insertions(+), 124 deletions(-)
 create mode 100644 Documentation/translations/zh_CN/networking/xfrm/index.rst
 rename Documentation/translations/zh_CN/networking/{ => xfrm}/xfrm_proc.rst (96%)
Documentation/translations/zh_CN/networking/index.rst +117 -121
index bf22d22b64db..9f28240d6b14 100644
@@ -2,8 +2,6 @@
 
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/networking/index.rst
-
 :翻译:
 
  王亚鑫 Wang Yaxin <[email protected]>
@@ -13,142 +11,140 @@
 网络
 ====
 
-有关网络设备(netdev)开发过程的详细指南,请参考::ref:`netdev-FAQ`
+有关网络设备(netdev)开发流程的具体指南,请参阅 :ref:`netdev-FAQ`。
 
 目录:
 
 .. toctree::
-   :maxdepth: 1
+   :maxdepth: 2
 
    msg_zerocopy
+   alias
    driver
+   generic-hdlc
    ipv6
+   mptcp-sysctl
    napi
-   secid
-   vxlan
    netif-msg
-   xfrm_proc
    netmem
-   alias
-   mptcp-sysctl
-   generic-hdlc
+   secid
    sriov
    team
    timestamping
+   vxlan
+   xfrm/index
 
 Todolist:
 
-*   af_xdp
-*   bareudp
-*   batman-adv
-*   can
-*   can_ucan_protocol
-*   device_drivers/index
-*   diagnostic/index
-*   dsa/index
-*   devlink/index
-*   ethtool-netlink
-*   ieee802154
-*   iso15765-2
-*   j1939
-*   kapi
-*   failover
-*   net_dim
-*   net_failover
-*   page_pool
-*   phy
-*   sfp-phylink
-*   bridge
-*   snmp_counter
-*   checksum-offloads
-*   segmentation-offloads
-*   scaling
-*   tls
-*   tls-offload
-*   tls-handshake
-*   nfc
-*   6lowpan
-*   6pack
-*   arcnet-hardware
-*   arcnet
-*   atm
-*   ax25
-*   bonding
-*   cdc_mbim
-*   dccp
-*   dctcp
-*   devmem
-*   dns_resolver
-*   eql
-*   fib_trie
-*   filter
-*   generic_netlink
-*   netlink_spec/index
-*   gen_stats
-*   gtp
-*   ila
-*   ioam6-sysctl
-*   ip_dynaddr
-*   ipsec
-*   ip-sysctl
-*   ipvlan
-*   ipvs-sysctl
-*   kcm
-*   l2tp
-*   lapb-module
-*   mac80211-injection
-*   mctp
-*   mpls-sysctl
-*   mptcp
-*   multiqueue
-*   multi-pf-netdev
-*   net_cachelines/index
-*   netconsole
-*   netdev-features
-*   netdevices
-*   netfilter-sysctl
-*   nexthop-group-resilient
-*   nf_conntrack-sysctl
-*   nf_flowtable
-*   oa-tc6-framework
-*   openvswitch
-*   operstates
-*   packet_mmap
-*   phonet
-*   phy-link-topology
-*   pktgen
-*   plip
-*   ppp_generic
-*   proc_net_tcp
-*   pse-pd/index
-*   radiotap-headers
-*   rds
-*   regulatory
-*   representors
-*   rxrpc
-*   sctp
-*   seg6-sysctl
-*   smc-sysctl
-*   statistics
-*   strparser
-*   switchdev
-*   sysfs-tagging
-*   tc-actions-env-rules
-*   tc-queue-filters
-*   tcp_ao
-*   tcp-thin
-*   tipc
-*   tproxy
-*   tuntap
-*   udplite
-*   vrf
-*   x25
-*   x25-iface
-*   xfrm_device
-*   xfrm_sync
-*   xfrm_sysctl
-*   xdp-rx-metadata
-*   xsk-tx-metadata
+* af_xdp
+* bareudp
+* batman-adv
+* can
+* can_ucan_protocol
+* device_drivers/index
+* diagnostic/index
+* dsa/index
+* devlink/index
+* ethtool-netlink
+* ieee802154
+* iso15765-2
+* j1939
+* kapi
+* failover
+* net_dim
+* net_failover
+* page_pool
+* phy
+* sfp-phylink
+* bridge
+* snmp_counter
+* checksum-offloads
+* segmentation-offloads
+* scaling
+* tls
+* tls-offload
+* tls-handshake
+* nfc
+* 6lowpan
+* arcnet-hardware
+* arcnet
+* atm
+* bonding
+* cdc_mbim
+* dctcp
+* devmem
+* dns_resolver
+* eql
+* fib_trie
+* filter
+* generic_netlink
+* ../netlink/specs/index
+* gen_stats
+* gtp
+* ila
+* ioam6-sysctl
+* iou-zcrx
+* ip_dynaddr
+* ipsec
+* ip-sysctl
+* ipvlan
+* ipvs-sysctl
+* kcm
+* l2tp
+* lapb-module
+* mac80211-injection
+* mctp
+* mpls-sysctl
+* mptcp
+* multiqueue
+* multi-pf-netdev
+* net_cachelines/index
+* netconsole
+* netdev-features
+* netdevices
+* netfilter-sysctl
+* nexthop-group-resilient
+* nf_conntrack-sysctl
+* nf_flowtable
+* oa-tc6-framework
+* openvswitch
+* operstates
+* packet_mmap
+* phonet
+* phy-link-topology
+* phy-port
+* pktgen
+* plip
+* ppp_generic
+* proc_net_tcp
+* pse-pd/index
+* psp
+* radiotap-headers
+* rds
+* regulatory
+* representors
+* rxrpc
+* sctp
+* seg6-sysctl
+* skbuff
+* smc-sysctl
+* statistics
+* strparser
+* switchdev
+* sysfs-tagging
+* tc-actions-env-rules
+* tc-queue-filters
+* tcp_ao
+* tcp-thin
+* tipc
+* tproxy
+* tuntap
+* udplite
+* vrf
+* x25
+* x25-iface
+* xdp-rx-metadata
+* xsk-tx-metadata
 
 .. only::  subproject and html
 
Documentation/translations/zh_CN/networking/xfrm/index.rst new file +20 -0
new file mode 100644
index 000000000000..b366c908eb25
@@ -0,0 +1,20 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../../disclaimer-zh_CN.rst
+
+
+=========
+XFRM 框架
+=========
+
+.. toctree::
+   :maxdepth: 2
+
+   xfrm_proc
+
+Todolist:
+
+* xfrm_device
+* xfrm_migrate_state
+* xfrm_sync
+* xfrm_sysctl
Documentation/translations/zh_CN/networking/xfrm/xfrm_proc.rst renamed from Documentation/translations/zh_CN/networking/xfrm_proc.rst +1 -3
similarity index 96%
rename from Documentation/translations/zh_CN/networking/xfrm_proc.rst
rename to Documentation/translations/zh_CN/networking/xfrm/xfrm_proc.rst
index a2ae86c44707..eb4ece66df49 100644
@@ -1,8 +1,6 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. include:: ../disclaimer-zh_CN.rst
-
-:Original: Documentation/networking/xfrm_proc.rst
+.. include:: ../../disclaimer-zh_CN.rst
 
 :翻译:
 
Signature · 1 line
2.51.0
author maintainer
#9 lore raw

PATCH v4 9/9 docs/zh_CN: remove stale Original fields from SCSI and IPE translations

In reply to Dongliang Mu

Remove the stale Original fields from the WD719x and IPE translations. Both English sources use the same relative paths under Documentation.

---
 Documentation/translations/zh_CN/scsi/wd719x.rst  | 2 --
 Documentation/translations/zh_CN/security/ipe.rst | 2 --
 2 files changed, 4 deletions(-)
Documentation/translations/zh_CN/scsi/wd719x.rst +0 -2
index 79757c42032b..f56eef04fd00 100644
@@ -1,8 +1,6 @@
 .. SPDX-License-Identifier: GPL-2.0
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/scsi/libsas.rst
-
 :翻译:
 
  张钰杰 Yujie Zhang <[email protected]>
Documentation/translations/zh_CN/security/ipe.rst +0 -2
index 55968f0c7ae3..51065bbc53a1 100644
@@ -1,8 +1,6 @@
 .. SPDX-License-Identifier: GPL-2.0
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: Documentation/security/sak.rst
-
 :翻译:
  赵硕 Shuo Zhao <[email protected]>
 
Signature · 1 line
2.51.0
Applied
#10 lore raw
In reply to Dongliang Mu

Applied, thanks!

Quoted 89 lines · Dongliang Mu

Several Chinese translations are no longer at the same relative paths as their English originals, and some Original fields are stale. This series moves the translations to matching paths, adjusts their indexes, and removes stale Original fields. It also updates selected translations to newer English commits.

v3->v4:
- Rebase onto docs-next and retain the translated process/changes.rst in the reorganized process index.
- Add Yanteng Si's Reviewed-by tag to all nine patches.

v2->v3:
- Remove unused top-level labels from the translated V4L driver index, process index, and magic-number guide.
- Update the zh_TW admin-guide README reference to the relocated zh_CN GDB debugging guide.

v1->v2:
- Drop the unused top-level readme_zh label from the translated admin-guide README.

Dongliang Mu (9):
docs/zh_CN: update admin-guide/index.rst translation docs/zh_CN: update admin-guide/README.rst translation docs/zh_CN: add media administrator guide translations docs/zh_CN: reorganize process debugging guides docs/zh_CN: update magic-number to match upstream docs/zh_CN: reorganize media driver API translations docs/zh_CN: move GFS2 translations into filesystems/gfs2 docs/zh_CN: update networking/xfrm/xfrm_proc.rst translation docs/zh_CN: remove stale Original fields from SCSI and IPE
translations

  .../translations/zh_CN/admin-guide/README.rst |  87 +-
  .../translations/zh_CN/admin-guide/index.rst  |  12 +-
  .../zh_CN/admin-guide/media/index.rst         |  54 +
  .../zh_CN/admin-guide/media/omap3isp.rst      |  95 ++
  .../zh_CN/admin-guide/media/v4l-drivers.rst   |  42 +
  .../translations/zh_CN/dev-tools/index.rst    |  37 +-
  .../translations/zh_CN/driver-api/index.rst   | 232 +++--
  .../zh_CN/driver-api/media/index.rst          |  52 +
  .../zh_CN/driver-api/media/v4l2-core.rst      |  36 +
  .../zh_CN/driver-api/media/v4l2-dev.rst       | 286 ++++++
  .../zh_CN/driver-api/media/v4l2-device.rst    | 127 +++
  .../zh_CN/driver-api/media/v4l2-event.rst     | 124 +++
  .../zh_CN/driver-api/media/v4l2-fh.rst        | 123 +++
  .../zh_CN/driver-api/media/v4l2-intro.rst     |  75 ++
  .../zh_CN/driver-api/media/v4l2-subdev.rst    | 491 +++++++++
  .../{gfs2-glocks.rst => gfs2/glocks.rst}      |   4 +-
  .../filesystems/{gfs2.rst => gfs2/index.rst}  |  18 +-
  .../{gfs2-uevents.rst => gfs2/uevents.rst}    |   4 +-
  .../translations/zh_CN/filesystems/index.rst  | 112 +-
  .../translations/zh_CN/networking/index.rst   | 238 +++--
  .../zh_CN/networking/xfrm/index.rst           |  20 +
  .../zh_CN/networking/{ => xfrm}/xfrm_proc.rst |   4 +-
  .../zh_CN/process/applying-patches.rst        |   2 +
  .../debugging}/gdb-kernel-debugging.rst       |  15 +-
  .../zh_CN/process/debugging/index.rst         |  62 ++
  .../translations/zh_CN/process/index.rst      | 109 +-
  .../translations/zh_CN/scsi/wd719x.rst        |   2 -
  .../translations/zh_CN/security/ipe.rst       |   2 -
  .../translations/zh_CN/staging/index.rst      |   6 +-
  .../{process => staging}/magic-number.rst     |  33 +-
  .../zh_CN/video4linux/omap3isp.txt            | 277 -----
  .../zh_CN/video4linux/v4l2-framework.txt      | 958 ------------------
  .../translations/zh_TW/admin-guide/README.rst |   2 +-
  33 files changed, 2127 insertions(+), 1614 deletions(-)

create mode 100644 Documentation/translations/zh_CN/admin-guide/media/index.rst
create mode 100644 Documentation/translations/zh_CN/admin-guide/media/omap3isp.rst create mode 100644 Documentation/translations/zh_CN/admin-guide/media/v4l-drivers.rst create mode 100644 Documentation/translations/zh_CN/driver-api/media/index.rst
create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-core.rst create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-dev.rst create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-device.rst create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-event.rst create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-fh.rst create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-intro.rst create mode 100644 Documentation/translations/zh_CN/driver-api/media/v4l2-subdev.rst rename Documentation/translations/zh_CN/filesystems/{gfs2-glocks.rst => gfs2/glocks.rst} (99%) rename Documentation/translations/zh_CN/filesystems/{gfs2.rst => gfs2/index.rst} (93%) rename Documentation/translations/zh_CN/filesystems/{gfs2-uevents.rst => gfs2/uevents.rst} (97%) create mode 100644 Documentation/translations/zh_CN/networking/xfrm/index.rst
rename Documentation/translations/zh_CN/networking/{ => xfrm}/xfrm_proc.rst (96%) rename Documentation/translations/zh_CN/{dev-tools => process/debugging}/gdb-kernel-debugging.rst (93%) create mode 100644 Documentation/translations/zh_CN/process/debugging/index.rst
rename Documentation/translations/zh_CN/{process => staging}/magic-number.rst (58%) delete mode 100644 Documentation/translations/zh_CN/video4linux/omap3isp.txt
delete mode 100644 Documentation/translations/zh_CN/video4linux/v4l2-framework.txt