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
a9129faf
Commit
a9129faf
authored
Nov 09, 2013
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 3.0 sources from stable (v3.0.101)
parent
6454195c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
cifssmb.c
sources/3.0/cifssmb.c
+12
-12
connect.c
sources/3.0/connect.c
+2
-0
No files found.
sources/3.0/cifssmb.c
View file @
a9129faf
...
...
@@ -3520,13 +3520,12 @@ CIFSSMBSetCIFSACL(const int xid, struct cifs_tcon *tcon, __u16 fid,
int
rc
=
0
;
int
bytes_returned
=
0
;
SET_SEC_DESC_REQ
*
pSMB
=
NULL
;
NTRANSACT_RSP
*
pSMBr
=
NULL
;
void
*
pSMBr
;
setCifsAclRetry:
rc
=
smb_init
(
SMB_COM_NT_TRANSACT
,
19
,
tcon
,
(
void
**
)
&
pSMB
,
(
void
**
)
&
pSMBr
);
rc
=
smb_init
(
SMB_COM_NT_TRANSACT
,
19
,
tcon
,
(
void
**
)
&
pSMB
,
&
pSMBr
);
if
(
rc
)
return
(
rc
)
;
return
rc
;
pSMB
->
MaxSetupCount
=
0
;
pSMB
->
Reserved
=
0
;
...
...
@@ -3554,9 +3553,8 @@ setCifsAclRetry:
pSMB
->
AclFlags
=
cpu_to_le32
(
CIFS_ACL_DACL
);
if
(
pntsd
&&
acllen
)
{
memcpy
((
char
*
)
&
pSMBr
->
hdr
.
Protocol
+
data_offset
,
(
char
*
)
pntsd
,
acllen
);
memcpy
((
char
*
)
pSMBr
+
offsetof
(
struct
smb_hdr
,
Protocol
)
+
data_offset
,
pntsd
,
acllen
);
inc_rfc1001_len
(
pSMB
,
byte_count
+
data_count
);
}
else
inc_rfc1001_len
(
pSMB
,
byte_count
);
...
...
@@ -5338,7 +5336,8 @@ CIFSSMBSetFileInfo(const int xid, struct cifs_tcon *tcon,
param_offset
=
offsetof
(
struct
smb_com_transaction2_sfi_req
,
Fid
)
-
4
;
offset
=
param_offset
+
params
;
data_offset
=
(
char
*
)
(
&
pSMB
->
hdr
.
Protocol
)
+
offset
;
data_offset
=
(
char
*
)
pSMB
+
offsetof
(
struct
smb_hdr
,
Protocol
)
+
offset
;
count
=
sizeof
(
FILE_BASIC_INFO
);
pSMB
->
MaxParameterCount
=
cpu_to_le16
(
2
);
...
...
@@ -5607,7 +5606,7 @@ CIFSSMBUnixSetFileInfo(const int xid, struct cifs_tcon *tcon,
u16
fid
,
u32
pid_of_opener
)
{
struct
smb_com_transaction2_sfi_req
*
pSMB
=
NULL
;
FILE_UNIX_BASIC_INFO
*
data_offset
;
char
*
data_offset
;
int
rc
=
0
;
u16
params
,
param_offset
,
offset
,
byte_count
,
count
;
...
...
@@ -5629,8 +5628,9 @@ CIFSSMBUnixSetFileInfo(const int xid, struct cifs_tcon *tcon,
param_offset
=
offsetof
(
struct
smb_com_transaction2_sfi_req
,
Fid
)
-
4
;
offset
=
param_offset
+
params
;
data_offset
=
(
FILE_UNIX_BASIC_INFO
*
)
((
char
*
)(
&
pSMB
->
hdr
.
Protocol
)
+
offset
);
data_offset
=
(
char
*
)
pSMB
+
offsetof
(
struct
smb_hdr
,
Protocol
)
+
offset
;
count
=
sizeof
(
FILE_UNIX_BASIC_INFO
);
pSMB
->
MaxParameterCount
=
cpu_to_le16
(
2
);
...
...
@@ -5652,7 +5652,7 @@ CIFSSMBUnixSetFileInfo(const int xid, struct cifs_tcon *tcon,
inc_rfc1001_len
(
pSMB
,
byte_count
);
pSMB
->
ByteCount
=
cpu_to_le16
(
byte_count
);
cifs_fill_unix_set_info
(
data_offset
,
args
);
cifs_fill_unix_set_info
(
(
FILE_UNIX_BASIC_INFO
*
)
data_offset
,
args
);
rc
=
SendReceiveNoRsp
(
xid
,
tcon
->
ses
,
(
struct
smb_hdr
*
)
pSMB
,
0
);
if
(
rc
)
...
...
sources/3.0/connect.c
View file @
a9129faf
...
...
@@ -158,6 +158,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
try_to_freeze
();
/* we should try only the port we connected to before */
mutex_lock
(
&
server
->
srv_mutex
);
rc
=
generic_ip_connect
(
server
);
if
(
rc
)
{
cFYI
(
1
,
"reconnect error %d"
,
rc
);
...
...
@@ -169,6 +170,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
server
->
tcpStatus
=
CifsNeedNegotiate
;
spin_unlock
(
&
GlobalMid_Lock
);
}
mutex_unlock
(
&
server
->
srv_mutex
);
}
while
(
server
->
tcpStatus
==
CifsNeedReconnect
);
return
rc
;
...
...
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