Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b46c92d9
Commit
b46c92d9
authored
Nov 18, 2002
by
Art Haas
Committed by
David Woodhouse
Nov 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializer for fs/ext2/dir.c
parent
082c5d06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
fs/ext2/dir.c
fs/ext2/dir.c
+15
-15
No files found.
fs/ext2/dir.c
View file @
b46c92d9
...
...
@@ -215,25 +215,25 @@ ext2_validate_entry(char *base, unsigned offset, unsigned mask)
}
static
unsigned
char
ext2_filetype_table
[
EXT2_FT_MAX
]
=
{
[
EXT2_FT_UNKNOWN
]
DT_UNKNOWN
,
[
EXT2_FT_REG_FILE
]
DT_REG
,
[
EXT2_FT_DIR
]
DT_DIR
,
[
EXT2_FT_CHRDEV
]
DT_CHR
,
[
EXT2_FT_BLKDEV
]
DT_BLK
,
[
EXT2_FT_FIFO
]
DT_FIFO
,
[
EXT2_FT_SOCK
]
DT_SOCK
,
[
EXT2_FT_SYMLINK
]
DT_LNK
,
[
EXT2_FT_UNKNOWN
]
=
DT_UNKNOWN
,
[
EXT2_FT_REG_FILE
]
=
DT_REG
,
[
EXT2_FT_DIR
]
=
DT_DIR
,
[
EXT2_FT_CHRDEV
]
=
DT_CHR
,
[
EXT2_FT_BLKDEV
]
=
DT_BLK
,
[
EXT2_FT_FIFO
]
=
DT_FIFO
,
[
EXT2_FT_SOCK
]
=
DT_SOCK
,
[
EXT2_FT_SYMLINK
]
=
DT_LNK
,
};
#define S_SHIFT 12
static
unsigned
char
ext2_type_by_mode
[
S_IFMT
>>
S_SHIFT
]
=
{
[
S_IFREG
>>
S_SHIFT
]
EXT2_FT_REG_FILE
,
[
S_IFDIR
>>
S_SHIFT
]
EXT2_FT_DIR
,
[
S_IFCHR
>>
S_SHIFT
]
EXT2_FT_CHRDEV
,
[
S_IFBLK
>>
S_SHIFT
]
EXT2_FT_BLKDEV
,
[
S_IFIFO
>>
S_SHIFT
]
EXT2_FT_FIFO
,
[
S_IFSOCK
>>
S_SHIFT
]
EXT2_FT_SOCK
,
[
S_IFLNK
>>
S_SHIFT
]
EXT2_FT_SYMLINK
,
[
S_IFREG
>>
S_SHIFT
]
=
EXT2_FT_REG_FILE
,
[
S_IFDIR
>>
S_SHIFT
]
=
EXT2_FT_DIR
,
[
S_IFCHR
>>
S_SHIFT
]
=
EXT2_FT_CHRDEV
,
[
S_IFBLK
>>
S_SHIFT
]
=
EXT2_FT_BLKDEV
,
[
S_IFIFO
>>
S_SHIFT
]
=
EXT2_FT_FIFO
,
[
S_IFSOCK
>>
S_SHIFT
]
=
EXT2_FT_SOCK
,
[
S_IFLNK
>>
S_SHIFT
]
=
EXT2_FT_SYMLINK
,
};
static
inline
void
ext2_set_de_type
(
ext2_dirent
*
de
,
struct
inode
*
inode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment