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
da9090a2
Commit
da9090a2
authored
Nov 09, 2013
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix STATUS_SHARING_VIOLATION error mapping for 3.9
parent
f763d5fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
inode.c
sources/3.9/inode.c
+6
-4
netmisc.c
sources/3.9/netmisc.c
+1
-1
No files found.
sources/3.9/inode.c
View file @
da9090a2
...
...
@@ -1049,7 +1049,7 @@ cifs_rename_pending_delete(const char *full_path, struct dentry *dentry,
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_MAP_SPECIAL_CHR
);
if
(
rc
!=
0
)
{
rc
=
-
E
BU
SY
;
rc
=
-
E
TXTB
SY
;
goto
undo_setattr
;
}
...
...
@@ -1068,7 +1068,7 @@ cifs_rename_pending_delete(const char *full_path, struct dentry *dentry,
if
(
rc
==
-
ENOENT
)
rc
=
0
;
else
if
(
rc
!=
0
)
{
rc
=
-
E
BU
SY
;
rc
=
-
E
TXTB
SY
;
goto
undo_rename
;
}
cifsInode
->
delete_pending
=
true
;
...
...
@@ -1175,13 +1175,15 @@ psx_del_no_retry:
cifs_drop_nlink
(
inode
);
}
else
if
(
rc
==
-
ENOENT
)
{
d_drop
(
dentry
);
}
else
if
(
rc
==
-
E
BU
SY
)
{
}
else
if
(
rc
==
-
E
TXTB
SY
)
{
if
(
server
->
ops
->
rename_pending_delete
)
{
rc
=
server
->
ops
->
rename_pending_delete
(
full_path
,
dentry
,
xid
);
if
(
rc
==
0
)
cifs_drop_nlink
(
inode
);
}
if
(
rc
==
-
ETXTBSY
)
rc
=
-
EBUSY
;
}
else
if
((
rc
==
-
EACCES
)
&&
(
dosattr
==
0
)
&&
inode
)
{
attrs
=
kzalloc
(
sizeof
(
*
attrs
),
GFP_KERNEL
);
if
(
attrs
==
NULL
)
{
...
...
@@ -1522,7 +1524,7 @@ cifs_do_rename(const unsigned int xid, struct dentry *from_dentry,
* source. Note that cross directory moves do not work with
* rename by filehandle to various Windows servers.
*/
if
(
rc
==
0
||
rc
!=
-
E
BU
SY
)
if
(
rc
==
0
||
rc
!=
-
E
TXTB
SY
)
goto
do_rename_exit
;
/* open-file renames don't work across directories */
...
...
sources/3.9/netmisc.c
View file @
da9090a2
...
...
@@ -62,7 +62,7 @@ static const struct smb_to_posix_error mapping_table_ERRDOS[] = {
{
ERRdiffdevice
,
-
EXDEV
},
{
ERRnofiles
,
-
ENOENT
},
{
ERRwriteprot
,
-
EROFS
},
{
ERRbadshare
,
-
E
BU
SY
},
{
ERRbadshare
,
-
E
TXTB
SY
},
{
ERRlock
,
-
EACCES
},
{
ERRunsup
,
-
EINVAL
},
{
ERRnosuchshare
,
-
ENXIO
},
...
...
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