1、Standard ECMA-1673rd Edition - June 1997Standardizing Information and Communication SystemsPhone: +41 22 849.60.00 - Fax: +41 22 849.60.01 - URL: http:/www.ecma.ch - Internet: helpdeskecma.chVolume and File Structure forWrite-Once and RewritableMedia using Non-SequentialRecording for InformationInte
2、rchangeStandard ECMA-1673rd Edition - June 1997Standardizing Information and Communication SystemsPhone: +41 22 849.60.00 - Fax: +41 22 849.60.01 - URL: http:/www.ecma.ch - Internet: helpdeskecma.chMB - ECMA-167.doc - 02.07.97 16:19Volume and File Structure forWrite-Once and RewritableMedia using No
3、n-SequentialRecording for InformationInterchangePart 1 - GeneralPart 2 - Volume and boot block recognitionPart 3 - Volume structurePart 4 - File structurePart 5 - Record structure.Brief HistoryThis ECMA Standard is a volume and file structure standard for interchanging files and as such, it is a pee
4、r to existing volumeand file structure standards such as ECMA-107 and ECMA-119. It is rather different from those standards in at least twoimportant ways. Firstly, it offers much more functionality, mainly because of user needs for increased character set support andfor more powerful file system fea
5、tures. Secondly, it acknowledges the separate concerns of booting, volume structure and filesystem structure. Rather than bundling these different functions together, this ECMA Standard carefully segregates thesefunctions into separate parts and describes in detail how those parts fit together. It i
6、s expected that future volume and filestructure standards will fit into this framework, rather than building other distinct and incompatible formats.This ECMA Standard consists of five Parts published in one Volume. Part 1 - General - specifies references, definitions,notations and basic structures
7、used in the other four Parts. Part 2 - Volume and boot block recognition - specifies formats andsystem requirements for recognising the volume structures on a medium and booting from a medium. Part 3 - Volume structure- specifies how to record various volume-related entities such as volumes, volume
8、sets and logical volumes. Part 4 - Filestructure - specifies how to record and interpret files, both file data and file attributes, and file hierarchies within logicalvolumes. Part 5 - Record structure - specifies how to record and interpret file data encoded as records.This ECMA Standard has been a
9、dopted by the ECMA General Assembly of June 1997.iTable of ContentsPart/PagePart 1: General1 Scope 1/12 Parts references 1/13 Conformance 1/13.1 Conformance of a medium 1/13.2 Conformance of an information processing system 1/14 References 1/25 Definitions 1/25.1 application 1/25.2 byte 1/25.3 descr
10、iptor 1/25.4 file 1/25.5 implementation 1/25.6 originating system 1/25.7 receiving system 1/25.8 record 1/35.9 sector 1/35.10 standard for recording 1/35.11 user 1/35.12 volume 1/35.13 volume set 1/36 Notation 1/36.1 Numerical notation 1/36.1.1 Decimal notation 1/36.1.2 Hexadecimal notation 1/46.2 B
11、it fields 1/46.3 Descriptor formats 1/46.4 Character strings 1/56.5 Arithmetic notation 1/56.6 Schema 1/56.7 Other notations 1/67 Basic types 1/67.1 Numerical values 1/67.1.1 8-bit unsigned numerical values 1/67.1.2 8-bit signed numerical values 1/67.1.3 16-bit unsigned numerical values 1/67.1.4 16-
12、bit signed numerical values 1/77.1.5 32-bit unsigned numerical values 1/77.1.6 32-bit signed numerical values 1/77.1.7 64-bit unsigned numerical values 1/77.2 Character sets and coding 1/77.2.1 Character set specification 1/87.2.2 CS0 character set 1/97.2.3 CS1 character set 1/97.2.4 CS2 character s
13、et 1/97.2.5 CS3 character set 1/97.2.6 CS4 character set 1/107.2.7 CS5 character set 1/10ii7.2.8 CS6 character set 1/107.2.9 CS7 character set 1/107.2.10 CS8 character set 1/107.2.11 List of character sets 1/117.2.12 Fixed-length character fields 1/117.3 Timestamp 1/117.4 Entity identifier 1/12Part
14、2 : Volume and Boot Block RecognitionSection 1 - General1 Scope 2/12 Parts references 2/13 Part interface 2/13.1 Input 2/13.2 Output 2/14 Conformance 2/15 Definitions 2/15.1 extent 2/16 Notation 2/17 Basic types 2/2Section 2 - Requirements for the medium for volume and boot block recognition8 Volume
15、 recognition 2/38.1 Arrangement of data on a volume 2/38.1.1 Sector numbers 2/38.2 Volume recognition space 2/38.3 Volume recognition area 2/38.3.1 Volume recognition sequence 2/38.4 Recording of descriptors 2/49 Volume recognition structures 2/49.1 Volume Structure Descriptor 2/49.2 Beginning Exten
16、ded Area Descriptor 2/59.3 Terminating Extended Area Descriptor 2/59.4 Boot Descriptor 2/610 Levels of medium interchange 2/810.1 Level 1 2/810.2 Level 2 2/8Section 3 - Requirements for systems for volume and boot block recognition11 Requirements for the description of systems 2/912 Requirements for
17、 an originating system 2/912.1 General 2/912.2 Optional access by user 2/912.2.1 Descriptors 2/913 Requirements for a receiving system 2/913.1 General 2/913.2 Optional access by user 2/913.2.1 Descriptors 2/9iiiAnnex A: Changes from ECMA 167/2 2/10Part 3 : Volume StructureSection 1 - General1 Scope
18、3/12 Parts references 3/13 Part interface 3/13.1 Input 3/13.2 Output 3/14 Conformance 3/25 Definitions 3/25.1 anchor point 3/25.2 Cyclic Redundancy Check (CRC) 3/25.3 extent 3/25.4 logical block 3/25.5 logical sector 3/25.6 logical volume 3/25.7 partition 3/26 Notation 3/27 Basic types 3/37.1 Extent
19、 Descriptor 3/37.2 Descriptor tag 3/3Section 2 - Requirements for the medium for volume structure8 Volume structure 3/68.1 Arrangement of information on a volume 3/68.1.1 Sector numbers 3/68.1.2 Logical sector 3/68.2 Volume space 3/68.3 Volume descriptors 3/68.4 Volume Descriptor Sequence 3/78.4.1 C
20、ontents of a Volume Descriptor Sequence 3/78.4.2 Recording of the Volume Descriptor Sequence 3/78.4.3 Prevailing descriptors 3/88.4.4 Recording of descriptors 3/98.5 Allocation of the volume space 3/98.6 Volume set 3/98.7 Partition 3/98.8 Logical volume 3/108.8.1 Logical blocks 3/108.8.2 Logical vol
21、ume integrity 3/109 Volume recognition structures 3/119.1 NSR Descriptor 3/1110 Volume data structures 3/1210.1 Primary Volume Descriptor 3/1210.2 Anchor Volume Descriptor Pointer 3/1510.3 Volume Descriptor Pointer 3/1510.4 Implementation Use Volume Descriptor 3/1610.5 Partition Descriptor 3/1710.6
22、Logical Volume Descriptor 3/19iv10.7 Partition maps 3/2110.7.1 Generic partition map 3/2110.7.2 Type 1 Partition Map 3/2110.7.3 Type 2 Partition Map 3/2210.8 Unallocated Space Descriptor 3/2210.9 Terminating Descriptor 3/2310.10 Logical Volume Integrity Descriptor 3/2311 Levels of medium interchange
23、 3/2511.1 Level 1 3/2511.2 Level 2 3/2611.3 Level 3 3/26Section 3 - Requirements for systems for volume structure12 Requirements for the description of systems 3/2713 Requirements for an originating system 3/2713.1 General 3/2713.2 Mandatory access by user 3/2713.2.1 Descriptors 3/2713.3 Optional ac
24、cess by user 3/2813.3.1 Descriptors 3/2813.3.2 Multivolume volume sets 3/2814 Requirements for a receiving system 3/2914.1 General 3/2914.2 Mandatory access by user 3/2914.2.1 Descriptors 3/29Annex A: Changes from ECMA 167/2 3/30Part 4 : File structureSection 1 - General1 Scope 4/12 Parts references
25、 4/13 Part interface 4/13.1 Input 4/13.2 Output 4/24 Conformance 4/25 Definitions 4/25.1 extent 4/25.2 file set 4/25.3 group ID 4/25.4 logical block 4/25.5 logical volume 4/25.6 partition 4/25.7 stream 4/35.8 user ID 4/36 Notation 4/37 Basic types 4/37.1 Recorded address 4/37.2 Descriptor Tag 4/3vSe
26、ction 2 - Requirements for the medium for file structure8 File structure 4/68.1 Volume set 4/68.2 Arrangement of information on a volume set 4/68.3 Arrangement of information on a logical volume 4/68.3.1 File Set Descriptor Sequence 4/68.4 Arrangement of information on a partition 4/68.5 File set 4/
27、78.6 Directories 4/78.6.1 Order of directory descriptors 4/88.6.2 Directory hierarchy size restrictions 4/88.7 Pathname 4/88.7.1 Resolved pathname 4/88.8 Files 4/98.8.1 Attributes of a file 4/98.8.2 Data space of a file 4/108.8.3 Streams of a File 4/108.9 Record structure 4/108.10 Information Contro
28、l Block (ICB) 4/118.10.1 ICB hierarchy 4/119 Additional File Data 4/129.1 Extended attributes 4/129.2 Stream Directory 4/1310 Partition space management 4/1410.1 Space sets 4/1411 Partition integrity 4/1412 Allocation descriptors 4/1512.1 Description of Files 4/1513 Recording of descriptors 4/1614 F
29、ile Data Structures 4/1614.1 File Set Descriptor 4/1614.2 Terminating Descriptor 4/1914.3 Partition Header Descriptor 4/2014.4 File Identifier Descriptor 4/2014.5 Allocation Extent Descriptor 4/2314.6 ICB Tag 4/2314.7 Indirect Entry 4/2714.8 Terminal Entry 4/2714.9 File Entry 4/2714.10 Extended Attr
30、ibutes 4/3314.10.1 Extended Attribute Header Descriptor 4/3414.10.2 Generic format 4/3414.10.3 Character Set Information 4/3514.10.4 Alternate Permissions 4/3614.10.5 File Times Extended Attribute 4/3914.10.6 Information Times Extended Attribute 4/4014.10.7 Device Specification 4/4114.10.8 Implement
31、ation Use Extended Attribute 4/4314.10.9 Application Use Extended Attribute 4/4314.11 Unallocated Space Entry 4/4414.12 Space Bitmap Descriptor 4/45vi14.13 Partition Integrity Entry 4/4614.14 Allocation descriptors 4/4714.14.1 Short Allocation Descriptor 4/4714.14.2 Long Allocation Descriptor 4/4714
32、.14.3 Extended Allocation Descriptor 4/4814.15 Logical Volume Header Descriptor 4/4914.16 Pathname 4/4914.17 Extended File Entry 4/5115 Levels of medium interchange 4/5315.1 Level 1 4/5315.2 Level 2 4/5415.3 Level 3 4/54Section 3 - Requirements for systems for file structure16 Requirements for the d
33、escription of systems 4/5517 Requirements for an originating system 4/5517.1 General 4/5517.2 Mandatory access by user 4/5517.2.1 Files 4/5517.2.2 File set 4/5517.2.3 Descriptors 4/5517.3 Optional access by user 4/5617.3.1 Records 4/5717.3.2 File types 4/5717.3.3 Permissions 4/5717.4 Restrictions 4/
34、5717.4.1 Multivolume volume sets 4/5717.4.2 Record length 4/5717.4.3 File Times 4/5717.4.4 Information Times 4/5817.4.5 Alternate Permissions 4/5818 Requirements for a receiving system 4/5818.1 General 4/5818.2 Files 4/5818.2.1 File types 4/5818.2.2 Permissions 4/5818.3 Mandatory access by user 4/58
35、18.3.1 Descriptors 4/5818.4 Restrictions 4/5918.4.1 Record length 4/5918.4.2 File Times 4/5918.4.3 Information Times 4/5918.4.4 Alternate Permissions 4/59viiAnnex A - ICB Strategies 4/60Annex B: Changes from ECMA 167/2 4/64Part 5: Record structureSection 1 - General1 Scope 5/12 Parts references 5/13
36、 Part interface 5/13.1 Input 5/13.2 Output 5/14 Reference 5/15 Conformance 5/16 Definitions 5/16.1 Data space of a file 5/17 Notation 5/28 Basic types 5/28.1 16-bit unsigned numerical values (MSB) 5/2Section 2 - Requirements for the medium for record structure9 Record structure 5/39.1 Relationship t
37、o a file 5/39.2 Record type 5/39.2.1 Padded fixed-length records 5/39.2.2 Fixed-length records 5/49.2.3 Variable-length records 5/49.2.4 Stream-print records 5/59.2.5 Stream-LF records 5/69.2.6 Stream-CR records 5/69.2.7 Stream-CRLF records 5/69.2.8 Stream-LFCR records 5/69.3 Record display attribut
38、es 5/79.3.1 LF-CR display attribute 5/79.3.2 First byte position display attribute 5/79.3.3 Implied display attribute 5/7Section 3 - Requirements for systems for record structure10 Requirements for the description of systems 5/811 Requirements for an originating system 5/811.1 General 5/811.1.1 File
39、s 5/811.1.2 Record length 5/812 Requirements for a receiving system 5/812.1 General 5/812.1.1 Files 5/812.1.2 Record length 5/8Standard ECMA - 167Volume and File Structure of Write-Once and Rewritable Media usingNon-Sequential Recording for Information InterchangePart 1: General1 ScopeThis ECMA Stan
40、dard specifies a format and associated system requirements for volume and boot block recognition,volume structure, file structure and record structure for the interchange of information on media between users ofinformation processing systems.The media shall be recorded as if the recording of sectors
41、 may be done in any order.Note 1The medium is not restricted to being of only one type; the type of medium may be either write once, or read only, orrewritable, or a combination of these types.This ECMA Standard consists of the following five Parts:Part 1: GeneralPart 2: Volume and Boot Block Recogn
42、itionPart 3: Volume StructurePart 4: File StructurePart 5: Record StructureAnnex A - ICB Strategies, is part of Part 4.Part 1 specifies references, definitions, notation and basic structures that apply to the other four Parts.2 Parts referencesThe first digit of a reference within this ECMA Standard
43、 identifies the Part, e.g. 2/5 refers to clause 5 in Part 2, andfigure 4/3 refers to figure 3 in Part 4.3 Conformance3.1 Conformance of a mediumA medium shall be in conformance with this ECMA Standard when it conforms to a standard for recording (see1/5.10) and information recorded on sectors of the
44、 medium conform to the specifications of Part 1 and one or moreof Parts 2, 3, 4 and 5. A statement of conformance shall identify the sectors of the medium on which information isrecorded according to the specifications of this ECMA Standard, and the Parts and the levels of medium interchange(see 2/1
45、0, 3/11, and 4/15) to which the contents of those sectors of the medium conform.3.2 Conformance of an information processing systemAn information processing system shall be in conformance with this ECMA Standard if it meets the requirementsspecified in Part 1 and one or more of Parts 2, 3, 4 and 5 e
46、ither for an originating system (see 2/12, 3/13, 4/17 and5/11) or for a receiving system (see 2/13, 3/14, 4/18 and 5/12) or for both types of system. A statement ofconformance shall identify the Parts, and the levels of the requirements for each of those Parts, which can be met bythe system.- 1/2 -4
47、 ReferencesECMA-6 7-Bit Coded Character Set (1991)ECMA-35 Code Extension Techniques (1994)ECMA-48 Control Functions for Coded Character Sets (1991)ECMA-94 8-Bit Single-Byte Coded Graphic Character Sets - Latin Alphabets No. 1 to No. 4 (1986)ECMA-107 Volume and File Structure of Flexible Disk Cartrid
48、ges for Information Interchange (1995)ECMA-119 Volume and File Structure of CDROM for Information Interchange (1987)ECMA-167/2 Volume and File Structure for Write-Once and Rewritable Media using Non-Sequential Recording forInformation Interchange, 2ndEdition, December 1994ECMA-168 Volume and File St
49、ructure for Read-Only and Write-Once Compact Disk Media for InformationInterchange (1994).ISO/IEC 13800:1996 Information Technology - Procedure for the registration of identifiers and attributes forvolume and file structure5 DefinitionsFor the purpose of this ECMA Standard, the following definitions apply.5.1 applicationA program that processes the contents of a file, and may also process selected attribute data relating to the file or tothe volume(s) on which the file is recorded.5.2 byteA string of eight binary digits operated upon as a unit. If the standard for recording (see 1/5.10) sp