URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
199 |
simons |
#ifndef _MSDOS_FS_I
|
2 |
|
|
#define _MSDOS_FS_I
|
3 |
|
|
|
4 |
|
|
#ifndef _LINUX_PIPE_FS_I_H
|
5 |
|
|
#include <linux/pipe_fs_i.h>
|
6 |
|
|
#endif
|
7 |
|
|
|
8 |
|
|
/*
|
9 |
|
|
* MS-DOS file system inode data in memory
|
10 |
|
|
*/
|
11 |
|
|
|
12 |
|
|
struct msdos_inode_info {
|
13 |
|
|
/*
|
14 |
|
|
UMSDOS manage special file and fifo as normal empty
|
15 |
|
|
msdos file. fifo inode processing conflict with msdos
|
16 |
|
|
processing. So I insert the pipe_inode_info so the
|
17 |
|
|
information does not overlap. This increases the size of
|
18 |
|
|
the msdos_inode_info, but the clear winner here is
|
19 |
|
|
the ext2_inode_info. So it does not change anything to
|
20 |
|
|
the total size of a struct inode.
|
21 |
|
|
|
22 |
|
|
I have not put it conditional. With the advent of loadable
|
23 |
|
|
file system drivers, it would be very easy to compile
|
24 |
|
|
a MsDOS FS driver unaware of UMSDOS and then later to
|
25 |
|
|
load a (then incompatible) UMSDOS FS driver.
|
26 |
|
|
*/
|
27 |
|
|
struct pipe_inode_info reserved;
|
28 |
|
|
int i_start; /* first cluster or 0 */
|
29 |
|
|
int i_logstart; /* logical first cluster */
|
30 |
|
|
int i_attrs; /* unused attribute bits */
|
31 |
|
|
int i_busy; /* file is either deleted but still open, or
|
32 |
|
|
inconsistent (mkdir) */
|
33 |
|
|
struct inode *i_depend; /* pointer to inode that depends on the
|
34 |
|
|
current inode */
|
35 |
|
|
struct inode *i_old; /* pointer to the old inode this inode
|
36 |
|
|
depends on */
|
37 |
|
|
struct inode *i_linked; /* pointer to inode linked to the current one,
|
38 |
|
|
happens when an open file is moved */
|
39 |
|
|
struct inode *i_oldlink;/* pointer to open inode that references
|
40 |
|
|
the same file */
|
41 |
|
|
int i_binary; /* file contains non-text data */
|
42 |
|
|
};
|
43 |
|
|
|
44 |
|
|
#endif
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.