2008年01月23日

UDF1.02 4-9 Implementation Use Extended Attribute

Implementation Use Extended Attribute には、そのファイルの様々な情報を、 その情報用のフォーマットを用意することで記述できます。

一般的な Implementation Use Extended Attribute は、次のようになります。

Implementation Use Extended Attribute format
RBP大きさ名称内容
0〜34unsigned longAttribute Type=2048
41unsigned charAttribute Subtype=1
5〜73unsigned char[3]Reserved=0
8〜114unsigned longAttribute Length (=A_L)属性長 (4の倍数) [bytes]
12〜154unsigned longImplementation Use Length (=IU_L)(=4) 処理方法用の長さ [bytes]
16〜4732struct regidImplementation Identifier*処理方法名
48〜A_L-1IU_Lunsigned char[IU_L]Implementation Use処理方法用



DVD-ROM では、これを使って Free Extended Attribute Space (空き拡張属性空間) と、 Copyright Management Information (著作権管理情報) を記述します。


Free Extended Attribute Space は、それが記録されている処理方法用拡張属性内の未使用領域を記述するために使います。 これは、拡張属性を追加、上書きするときに有用です。

Free Extended Attribute Space format
RBP大きさ名称内容
0〜34unsigned longAttribute Type=2048
41unsigned charAttribute Subtype=1
5〜73unsigned char[3]Reserved=0
8〜114unsigned longAttribute Length (=A_L)(=52) 属性長 (4の倍数) [bytes]
12〜154unsigned longImplementation Use Length (=IU_L)(=4) 処理方法用の長さ [bytes]
16〜4732struct regidImplementation Identifier="*UDF FreeEASpace"
48〜492unsigned shortHeader ChecksumヘッダのCRC
50〜A_L-1IU_L-2unsigned char[IU_L-2]Free EA Space(=0) 空き領域長さ

Header Checksum は上48バイトの単純な総和の下 1 バイトです。

空きが無ければ、
A_L = 52
IU_L = 4
と置き、Free EA Space の 2 バイトを 0 にセットすれば十分です。


Copyright Management Information は、そのファイルの著作権情報を記述します。

Copyright Management Information format
RBP大きさ名称内容
0〜34unsigned longAttribute Type=2048
41unsigned charAttribute Subtype=1
5〜73unsigned char[3]Reserved=0
8〜114unsigned longAttribute Length (=A_L)=56 属性長 (4の倍数) [bytes]
12〜154unsigned longImplementation Use Length (=IU_L)=8 処理方法用の長さ [bytes]
16〜4732struct regidImplementation Identifier="*UDF DVD CGMS Info"
48〜492unsigned shortHeader ChecksumヘッダのCRC
501unsigned charCGMS InformationCGMS
511unsigned charData Structure TypeProtection System Information の形式
52〜554unsigned char[4]Protection System Information保護システム情報

CGMS Information は次のとおりです。

CGMS Information field
bit意味多くの場合
0〜3予約0
4〜5CGMS0:コピー制限なし
1:使用されない
2:1回だけ可
3:コピー不可
6予約0
7Copyrighted Material0:著作物は含まれず
1:著作物を含む


Data Structure Type は、0 のみ用意されており、1〜255 は予約です。 Data Structure Type = 0 のとき、Protection System Information は次のとおりです。

Protection System Information field for Data Structure Type 0
RBP大きさ名称内容
01unsigned charProtection System Type=0:保護システムなし
=1:保護システム1
=2〜255:予約
1〜33unsigned char[3]Reserved=0



UDF1.02 では、これら以外に OS 別のフォーマットも用意されていますが、割愛します。

posted by 七癖 at 08:02| Comment(0) | TrackBack(0) | ファイルシステム | このブログの読者になる | 更新情報をチェックする
×

この広告は90日以上新しい記事の投稿がないブログに表示されております。