icbtag format
RBP | 大きさ | 型 | 名称 | 内容 |
0〜3 | 4 | unsigned long | Prior Recorded Number of Direct Entries | =0 |
4〜5 | 2 | unsigned short | Strategy Type | =4 ICB階層構造 |
6〜7 | 2 | unsigned char[2] | Strategy Parameter | ={0,0} |
8〜9 | 2 | unsigned short | Maximum Number of Entries | (=1) |
10 | 1 | unsigned char | Reserved | =0 |
11 | 1 | unsigned char | File Type | =4:ディレクトリ =5:ファイル |
12〜17 | 6 | struct lb_addr | Parent ICB Location | ={0,0} |
18〜19 | 2 | unsigned short | Flags | フラグ |
UDF1.02 の Strategy Type は 4 か 4096 です。4096 は追記媒体用です。
File Type はこれ以外もあります。
Parent ICB Location の使用は任意です。使わなければ 0 です。
Flags は次のとおりです。
Flags
bit | 意味 | 多くの場合 |
0〜2 | Allocation descriptor
0:short_ad を使用 1:long_ad を使用 2:ext_ad を使用 3:ファイル/ディレクトリの本体 4〜7:予約 | DVD-ROM では 0 |
3 | Directory sorted | 0 |
4 | Non-relocatable | 1 |
5 | Archive | 1 |
6 | Setuid | 0 |
7 | Setgid | 0 |
8 | Sticky | 0 |
9 | Contiguous | 1 |
10 | System | 0 |
11 | Transformed | 0 |
12 | Multi-versions | 0 |
13 | Stream | 0 |
14〜15 | 予約 | 0 |
多くの DVD-ROM では、0x0230 です。