📄 中英对照文件系统.htm
字号:
<HR style="MARGIN-TOP: -5px; COLOR: #cccccc" align=center width="100%"
noShade SIZE=1>
<DIV id=cont_right style="WIDTH: 495px">A file is an abstract data type
defined and implemented by the operating system.A file is a sequence of
logical records.A logical record may be a byte,a line(fixed or variable
length),or a more complex data item.The operating system may specifically
support various record types or may leave that to the application
program.<BR><BR>The major problem for the operating system is to map the
logical file concept onto physical storage devices such as magnetic tape
or disk.Since the physical record size of the devices may not be the same
as the logical record size,it may be necessary to block logical records
into physical records.Again,this task may be supported by the operating
system or left for the application program.<BR><BR>Tape-based file systems
are quite constrained;most file systems are disk based.Tapes are commonly
used for data transport between machines,or for backup or archival
storage.<BR><BR>On a disk system,files may be either sequential access or
direct access.Files can be allocated space on the disk in three
ways:contiguous,linked,or indexed.Contiguous allocation can suffer from
external fragmentation.Direct access files cannot be supported with linked
allocation.Indexed allocation may require substantial overhead for its
index block.<BR><BR>Each device in a file system keeps a volume table of
contents or device directory listing the location of the files on the
device.In addition,it is useful to create directories to allow files to be
organized.A single-level directory causes naming problems,since each file
must have unique name.A two-level directory solves the problem by creating
a separate directory for each user.Users have their own directory
containing their own files.<BR><BR>The natural generalization of a
two-level directory is a tree-structured directory.A tree-structured
directory allows users to create subdirectories to organize their
files.Acyclic graph directory structures allow subdirectories and files to
be shared,but complicate searching and deletion.A general graph structure
allows complete flexibility in the sharing of files and directories,but
sometimes requires garbage[1] collection to recover unused disk
space.<BR><BR>Since files are the main information storage mechanism in
most computer systems,file protection is needed.Access to files can be
controlled separately for each type of
access:read,write,execute,append,list directory,and so on[2].File
protection can be provided by passwords,access lists,or special ad hoc[3]
techniques.<BR><BR>File systems are often implemented in a layered or
modular structure.The lower levels deal with the physical properties of
storage devices.Upper levels deal with symbolic file names and logical
properties of file.Intermediate levels map the logical file concepts into
physical device
properties.<BR><BR>文件是操作系统定义和实现的抽象数据类型。文件是逻辑记录的序列。逻辑记录可以是一个字节、一行字符(固定长或变长),或者一个更复杂的数据项。操作系统可以具体地支持各种记录类型或者交给应用程序支持。<BR><BR>操作系统的主要任务是将逻辑文件概念映射到诸如磁带或磁盘一类的物理存储器设备上。由于存储设备的物理记录大小与逻辑记录大小可能不一样,所以,有可能需要将逻辑记录按物理记录大小分块。同样,这个任务又可由操作系统或者交给应用程序支持。<BR><BR>基于磁带的文件系统相当受限,大多数文件系统是基于磁盘的。磁带通常用于机器间的数据传送、用做备份或档案存储。<BR><BR>在磁盘系统中,文件可以顺序存取或直接存取。文件在磁盘上分配空间有3种方式:邻接的、链接的或索引的方式。邻接分配能承受外部碎片;直接访问文件不能为链接分配所支持;索引式分配又可能因其索引块而需要大量额外开销。<BR><BR>文件系统中的每个设备都保留一个卷目录表或设备目录,以列出设备上文件的位置。另外,建立目录对文件的组织非常有用,因为每个文件都必须具有惟一的名称,所以单级目录会引起命名问题。二级目录通过为每个用户建立一个单独的目录解决了这个问题。用户各有包含自己文件的目录。<BR><BR>两级目录的自然推广是树结构式目录。树结构式目录允许用户建立子目录以组织他们的文件。非循环图目录结构允许共享子目录和文件,但这使得搜索和删除复杂化。一般的图形结构具有文件和目录共享的全部灵活性,但有时需要回收“垃圾”单元以恢复未使用的磁盘空间。<BR><BR>由于文件是大多数计算机系统主要的信息存储机构,所以需要保护文件,对文件的每一种类型的访问:读、写、执行、附加、列目录等可分别加以控制。文件保护可由口令、存取表或专用的特定技术实现。<BR><BR>文件系统常常以层次或模块结构来实现。低层结构处理存储设备的物理特性,高层结构处理符号文件名和文件的逻辑特性,而中间结构将逻辑文件概念映射成物理设备特性。<BR><BR></DIV></TD></TR></TBODY></TABLE>
<FORM style="MARGIN: 0px" name=TheForm
onsubmit=javascript:document.all.Submit1.disabled=true; action=view.asp
method=post>
<TABLE cellSpacing=1 cellPadding=5 width="100%" align=center bgColor=#6595d6
border=0>
<TBODY>
<TR bgColor=#fff5ec>
<TD vAlign=top align=middle bgColor=#fff5ec colSpan=2 height=3>
<DIV align=left><FONT
color=#ff0000>本帖内容仅代表网友观点,与希赛网立场无关。如发现帖子内容有与法律抵触之处,请向<A class=chinablue
href="mailto:master@csai.cn">网站管理员</A>举报。</FONT></FONT></DIV></TD></TR>
<TR>
<TD class=chinabai vAlign=top align=middle bgColor=#6595d6 colSpan=2
height=3><IMG height=16 src="中英对照文件系统_files/shownew.gif" width=16
align=absMiddle><FONT
color=#ffffff>注意:本社区里的任何言论仅代表发言者个人的观点,与希赛网立场无关。请对您的言论负责,遵守中华人民共和国有关法律、法规。如果您的帖子违反<A
class=chinahong href="http://bbs.csai.cn/bbs/help/index.asp"
target=_blank><STRONG>希赛网社区规则</STRONG></A>,将立即删除;如果再次发布,则封IP。</FONT></TD></TR>
<TR>
<TD vAlign=top bgColor=#fefefe height=22><A name=Answer></A><IFRAME
src="中英对照文件系统_files/inc_search.htm" frameBorder=0 width="100%"
height=22></IFRAME><FONT color=red>Firefox浏览器用户请使用编辑器的[粘贴]按钮进行粘贴</FONT>
<INPUT type=hidden value={3D4241AA-9425-4F4F-BDE6-E5D32C15ECDA}
name=backtitle>
<DIV><INPUT id=PContent style="DISPLAY: none" type=hidden
name=PContent><INPUT id=PContent___Config style="DISPLAY: none"
type=hidden value=SkinPath=/fckeditor23/editor/skins/silver/><IFRAME
id=PContent___Frame src="中英对照文件系统_files/upload.htm" frameBorder=0
width="100%" scrolling=no height=260></IFRAME></DIV><INPUT type=hidden
value=1 name=backpage></TD></TR>
<TR>
<TD class=hai vAlign=top align=middle bgColor=#efefef height=22><INPUT
type=hidden value=post name=action> <INPUT type=submit value=提交回复 name=Submit1>(按撤消键或CTRL+Z进行撤消)</TD></TR></TBODY></TABLE></FORM><FONT
color=#666666>140.62500ms</FONT> </DIV>
<DIV id=body_right
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: right; OVERFLOW-X: hidden; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 176px; PADDING-TOP: 0px">
<DIV style="BACKGROUND-COLOR: #f7f7f7"><A class=chinablue
href="javascript:closead();"><IMG height=30 src="中英对照文件系统_files/closead_bt.gif"
width=176 border=0></A></DIV>
<TABLE borderColor=#6595d6 height="100%" cellSpacing=0 borderColorDark=#ffffff
cellPadding=0 width=177 bgColor=#ffffff border=1>
<TBODY>
<TR>
<TD vAlign=top>
<SCRIPT type=text/javascript>
var arrBaiduCproConfig=new Array();
arrBaiduCproConfig['uid'] =341368;
arrBaiduCproConfig['n'] ='csai_cpr';
arrBaiduCproConfig['tm'] =18;
arrBaiduCproConfig['cm'] =196;
arrBaiduCproConfig['um'] =22;
arrBaiduCproConfig['w'] =173;
arrBaiduCproConfig['h'] =600;
arrBaiduCproConfig['wn'] =1;
arrBaiduCproConfig['hn'] =4;
arrBaiduCproConfig['ta'] ='left';
arrBaiduCproConfig['tl'] ='top';
arrBaiduCproConfig['bu'] =1;
arrBaiduCproConfig['bd'] ='#DD6400';
arrBaiduCproConfig['bg'] ='#FEF0E2';
arrBaiduCproConfig['tt'] ='#0000ff';
arrBaiduCproConfig['ct'] ='#333333';
arrBaiduCproConfig['url'] ='#666666';
arrBaiduCproConfig['bdl'] ='#ffffff';
arrBaiduCproConfig['rad'] =1;
</SCRIPT>
<SCRIPT src="中英对照文件系统_files/ui.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
<!--
document.write(baiduCproIFrame());
-->
</SCRIPT>
<DIV style="MARGIN: 0px; OVERFLOW: hidden; WIDTH: 173px">
<SCRIPT src="中英对照文件系统_files/rightlist.htm" type=text/javascript></SCRIPT>
</DIV></TD></TR></TBODY></TABLE></DIV></DIV>
<SCRIPT>
function closead(){
var d_left=document.getElementById("body_left");
//var t_left=document.getElementById("body_leftTab");
var d_right=document.getElementById("body_right");
var arrDiv=document.getElementsByTagName("div");
for (var i=0;i<arrDiv.length;i++){
if(arrDiv[i].id=="cont_right") arrDiv[i].style.width='668px';
}
d_left.style.width='777px';
//t_left.style.width='777px';
d_right.style.display='none';
}
</SCRIPT>
<SCRIPT src="中英对照文件系统_files/api.js"></SCRIPT>
<DIV style="FLOAT: left" align=center><BR>
<SCRIPT language=javascript src="中英对照文件系统_files/showAds.htm"></SCRIPT>
<SCRIPT language=javascript src="中英对照文件系统_files/right.htm"></SCRIPT>
</DIV></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -