If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help. Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.
Chinese maintainer: 沈芳丽 <fairyshen@163.com>
---------------------------------------------------------------------
Documentation/filesystems/adfs.txt的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者:沈芳丽 <fairyshen@163.com>
中文版翻译者:沈芳丽 <fairyshen@163.com>
中文版校译者:沈芳丽 <fairyshen@163.com>
以下为正文
Mount options for ADFS
ADFS挂载选项
----------------------
uid=nnn All files in the partition will be owned by
user id nnn. Default 0 (root).
用户ID= nnn ID为 NNN的用户将拥有所有分区中的文件。默认根为0。
gid=nnn All files in the partition will be in group
nnn. Default 0 (root).
组ID=nnn 所有分区中的文件都将分配在组NNN。默认根为0。
ownmask=nnn The permission mask for ADFS 'owner' permission
will be nnn. Default 0700.
所有者权限掩码=nnn ADFS的'所有者'权限的权限掩码将为NNN。默认值
为0700。
othmask=nnn The permission mask for ADFS 'other' permissions will be nnn.
Default 0077.
其他权限掩码=nnn ADFS其它权限的权限掩码为将为NNN。默认值为0077。
ftsuffix=n When ftsuffix=0, no file type suffix will be applied. When ftsuffix=1,
a hexadecimal suffix corresponding to the RISC OS file type will be added. Default 0.
ftsuffix=n 当ftsuffix= 0,无后缀的文件类型将被应用。当ftsuffix = 1,一个十六
进制对应的RISC OS文件类型的后缀将被添加。默认为0。
Mapping of ADFS permissions to Linux permissions
------------------------------------------------
ADFS权限到Linux权限的映射
ADFS permissions consist of the following:
ADFS的权限包括以下内容:
Owner read
Owner write
Other read
Other write
所有者阅读权限
所有者写权限
其他读权限
其他写权限
(In older versions, an 'execute' permission did exist, but this
does not hold the same meaning as the Linux 'execute' permission
and is now obsolete).
(在旧版本中, '执行'权限确实存在,但并没有跟Linux的执行许可一样的含义,
而且现在已经过时)
The mapping is performed as follows:
映射的执行如下所示:
Owner read -> -r--r--r--
Owner write -> --w--w---w
Owner read and filetype UnixExec -> ---x--x--x
These are then masked by ownmask, eg 700 -> -rwx------
Possible owner mode permissions -> -rwx------
所有者阅读权限 -> -r--r--r--
所有者写权限 -> --w--w---w
所有者读权限和UnixExec文件格式 -> ---x--x—x
这些之后会被所有者权限掩盖,如700 -> -rwx------
其他可能权限模式 -> -rwx------
可能的所有者权限模式 -> -rwx------
Other read -> -r--r--r--
Other write -> --w--w--w-
Other read and filetype UnixExec -> ---x--x--x
These are then masked by othmask, eg 077 -> ----rwxrwx
Possible other mode permissions -> ----rwxrwx
其他读权限 -> -r--r--r--
其他写权限 -> --w--w--w-
其他读权限和UnixExec文件格式 -> ---x--x--x
这些之后会被其他权限掩盖,如077 -> ----rwxrwx
其他可能权限模式 -> ----rwxrwx
Hence, with the default masks, if a file is owner read/write, and
not a UnixExec filetype, then the permissions will be:
因此,默认权限下,如果一个文件是所有者读/写,并不是UnixExec文件类型,那么权限是:
-rw-------
However, if the masks were ownmask=0770,othmask=0007, then this would be
modified to:
但是,如果掩码为所有者掩码=0770,其他掩码=0007,那么将被修改为:
-rw-rw----
There is no restriction on what you can do with these masks. You may wish that
either read bits give read access to the file for all, but
keep the default write protection (ownmask=0755,othmask=0577):
对于这些掩码你做什么没有任何限制。您可能希望对所有文件无论是读位还是读访问,
但保持默认的写保护(ownmask=0755,othmask=0577):
-rw-r--r--
You can therefore tailor the permission translation to whatever you
desire the permissions should be under Linux.
因此,不管您希望的权限是什么,您可以在Linux下的翻译下量身定制。
RISC OS file type suffix
RISC OS文件后缀类型
------------------------
RISC OS file types are stored in bits 19..8 of the file load address.
RISC OS文件类型存储在文件加载地址位为19 ..8。
To enable non-RISC OS systems to be used to store files without losing file type
information, a file naming convention was devised (initially
for use with NFS) such that a hexadecimal suffix of the form ,xyz
denoted the file type: e.g. BasicFile,ffb is a BASIC (0xffb) file. This naming convention
is now also used by RISC OS emulators such as RPCEmu.
为了使非RISC OS系统可以用来存储文件而不丢失文件类型信息,文件命名约定设计
(最初使用NFS)这样一个十六进制的后缀形式,XYZ表示文件类型,例如:BasicFile,
FFB是一个基本(0xffb)的文件。这个命名约定,现在也用于像RPCEmu的RISC OS模拟器。
Mounting an ADFS disc with option ftsuffix=1 will cause appropriate file type suffixes to
be appended to file names read from a directory. If the ftsuffix option is zero or omitted,
no file type suffixes will be added.
当ftsuffix= 1时安装ADFS光盘将导致相应的文件类型被追加从目录中读取到的文件名后缀。
如果的ftsuffix选为零或省略,不会有文件类型的后缀被添加。