• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  linux/fs/adfs/dir_fplus.h
3  *
4  *  Copyright (C) 1999 Russell King
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  *  Structures of directories on the F+ format disk
11  */
12 
13 #define ADFS_FPLUS_NAME_LEN	255
14 
15 #define BIGDIRSTARTNAME ('S' | 'B' << 8 | 'P' << 16 | 'r' << 24)
16 #define BIGDIRENDNAME	('o' | 'v' << 8 | 'e' << 16 | 'n' << 24)
17 
18 struct adfs_bigdirheader {
19 	__u8	startmasseq;
20 	__u8	bigdirversion[3];
21 	__le32	bigdirstartname;
22 	__le32	bigdirnamelen;
23 	__le32	bigdirsize;
24 	__le32	bigdirentries;
25 	__le32	bigdirnamesize;
26 	__le32	bigdirparent;
27 	char	bigdirname[1];
28 };
29 
30 struct adfs_bigdirentry {
31 	__le32	bigdirload;
32 	__le32	bigdirexec;
33 	__le32	bigdirlen;
34 	__le32	bigdirindaddr;
35 	__le32	bigdirattr;
36 	__le32	bigdirobnamelen;
37 	__le32	bigdirobnameptr;
38 };
39 
40 struct adfs_bigdirtail {
41 	__le32	bigdirendname;
42 	__u8	bigdirendmasseq;
43 	__u8	reserved[2];
44 	__u8	bigdircheckbyte;
45 };
46