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
Kirill Smelkov
linux
Commits
450b21d1
Commit
450b21d1
authored
Jul 17, 2002
by
Petr Vandrovec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not call ncp_lookup_validate on mountpoint.
parent
7fde4915
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
fs/ncpfs/dir.c
fs/ncpfs/dir.c
+8
-1
fs/ncpfs/inode.c
fs/ncpfs/inode.c
+2
-2
No files found.
fs/ncpfs/dir.c
View file @
450b21d1
...
...
@@ -73,7 +73,7 @@ static int ncp_hash_dentry(struct dentry *, struct qstr *);
static
int
ncp_compare_dentry
(
struct
dentry
*
,
struct
qstr
*
,
struct
qstr
*
);
static
int
ncp_delete_dentry
(
struct
dentry
*
);
struct
dentry_operations
ncp_dentry_operations
=
st
atic
st
ruct
dentry_operations
ncp_dentry_operations
=
{
d_revalidate:
ncp_lookup_validate
,
d_hash:
ncp_hash_dentry
,
...
...
@@ -81,6 +81,13 @@ struct dentry_operations ncp_dentry_operations =
d_delete:
ncp_delete_dentry
,
};
struct
dentry_operations
ncp_root_dentry_operations
=
{
d_hash:
ncp_hash_dentry
,
d_compare:
ncp_compare_dentry
,
d_delete:
ncp_delete_dentry
,
};
/*
* Note: leave the hash unchanged if the directory
...
...
fs/ncpfs/inode.c
View file @
450b21d1
...
...
@@ -90,7 +90,7 @@ static struct super_operations ncp_sops =
statfs:
ncp_statfs
,
};
extern
struct
dentry_operations
ncp_dentry_operations
;
extern
struct
dentry_operations
ncp_
root_
dentry_operations
;
#ifdef CONFIG_NCPFS_EXTRAS
extern
struct
address_space_operations
ncp_symlink_aops
;
extern
int
ncp_symlink
(
struct
inode
*
,
struct
dentry
*
,
const
char
*
);
...
...
@@ -502,7 +502,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
sb
->
s_root
=
d_alloc_root
(
root_inode
);
if
(
!
sb
->
s_root
)
goto
out_no_root
;
sb
->
s_root
->
d_op
=
&
ncp_dentry_operations
;
sb
->
s_root
->
d_op
=
&
ncp_
root_
dentry_operations
;
return
0
;
out_no_root:
...
...
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