Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
422 | giacomo | 1 | #ifndef _HPFS_FS_SB |
2 | #define _HPFS_FS_SB |
||
3 | |||
4 | struct hpfs_sb_info { |
||
5 | ino_t sb_root; /* inode number of root dir */ |
||
6 | unsigned sb_fs_size; /* file system size, sectors */ |
||
7 | unsigned sb_bitmaps; /* sector number of bitmap list */ |
||
8 | unsigned sb_dirband_start; /* directory band start sector */ |
||
9 | unsigned sb_dirband_size; /* directory band size, dnodes */ |
||
10 | unsigned sb_dmap; /* sector number of dnode bit map */ |
||
11 | unsigned sb_n_free; /* free blocks for statfs, or -1 */ |
||
12 | unsigned sb_n_free_dnodes; /* free dnodes for statfs, or -1 */ |
||
13 | uid_t sb_uid; /* uid from mount options */ |
||
14 | gid_t sb_gid; /* gid from mount options */ |
||
15 | umode_t sb_mode; /* mode from mount options */ |
||
16 | unsigned sb_conv : 2; /* crlf->newline hackery */ |
||
17 | unsigned sb_eas : 2; /* eas: 0-ignore, 1-ro, 2-rw */ |
||
18 | unsigned sb_err : 2; /* on errs: 0-cont, 1-ro, 2-panic */ |
||
19 | unsigned sb_chk : 2; /* checks: 0-no, 1-normal, 2-strict */ |
||
20 | unsigned sb_lowercase : 1; /* downcase filenames hackery */ |
||
21 | unsigned sb_was_error : 1; /* there was an error, set dirty flag */ |
||
22 | unsigned sb_chkdsk : 2; /* chkdsk: 0-no, 1-on errs, 2-allways */ |
||
23 | unsigned sb_rd_fnode : 2; /* read fnode 0-no 1-dirs 2-all */ |
||
24 | unsigned sb_rd_inode : 2; /* lookup tells read_inode: 1-read fnode |
||
25 | 2-don't read fnode, file |
||
26 | 3-don't read fnode, direcotry */ |
||
27 | wait_queue_head_t sb_iget_q; |
||
28 | unsigned char *sb_cp_table; /* code page tables: */ |
||
29 | /* 128 bytes uppercasing table & */ |
||
30 | /* 128 bytes lowercasing table */ |
||
31 | unsigned *sb_bmp_dir; /* main bitmap directory */ |
||
32 | unsigned sb_c_bitmap; /* current bitmap */ |
||
33 | struct semaphore hpfs_creation_de; /* when creating dirents, nobody else |
||
34 | can alloc blocks */ |
||
35 | /*unsigned sb_mounting : 1;*/ |
||
36 | int sb_timeshift; |
||
37 | }; |
||
38 | |||
39 | #endif |