Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
5a9ab125
Commit
5a9ab125
authored
Oct 26, 2011
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix DFS handling in cifs_get_file_info for 2.6.34
parent
37cf9114
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
inode.c
sources/2.6.34/inode.c
+12
-7
No files found.
sources/2.6.34/inode.c
View file @
5a9ab125
...
...
@@ -508,7 +508,16 @@ int cifs_get_file_info(struct file *filp)
xid
=
GetXid
();
rc
=
CIFSSMBQFileInfo
(
xid
,
tcon
,
cfile
->
netfid
,
&
find_data
);
if
(
rc
==
-
EOPNOTSUPP
||
rc
==
-
EINVAL
)
{
switch
(
rc
)
{
case
0
:
cifs_all_info_to_fattr
(
&
fattr
,
&
find_data
,
cifs_sb
,
false
);
break
;
case
-
EREMOTE
:
cifs_create_dfs_fattr
(
&
fattr
,
inode
->
i_sb
);
rc
=
0
;
break
;
case
-
EOPNOTSUPP
:
case
-
EINVAL
:
/*
* FIXME: legacy server -- fall back to path-based call?
* for now, just skip revalidating and mark inode for
...
...
@@ -516,18 +525,14 @@ int cifs_get_file_info(struct file *filp)
*/
rc
=
0
;
CIFS_I
(
inode
)
->
time
=
0
;
default:
goto
cgfi_exit
;
}
else
if
(
rc
==
-
EREMOTE
)
{
cifs_create_dfs_fattr
(
&
fattr
,
inode
->
i_sb
);
rc
=
0
;
}
else
if
(
rc
)
goto
cgfi_exit
;
}
/*
* don't bother with SFU junk here -- just mark inode as needing
* revalidation.
*/
cifs_all_info_to_fattr
(
&
fattr
,
&
find_data
,
cifs_sb
,
false
);
fattr
.
cf_uniqueid
=
CIFS_I
(
inode
)
->
uniqueid
;
fattr
.
cf_flags
|=
CIFS_FATTR_NEED_REVAL
;
cifs_fattr_to_inode
(
inode
,
&
fattr
);
...
...
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