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
35b516ed
Commit
35b516ed
authored
Nov 25, 2003
by
Steve French
Committed by
Steve French
Nov 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rcvtimeout set improperly for some cifs servers
parent
ad7a647c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
fs/cifs/README
fs/cifs/README
+8
-7
fs/cifs/connect.c
fs/cifs/connect.c
+7
-7
No files found.
fs/cifs/README
View file @
35b516ed
...
...
@@ -53,12 +53,13 @@ would simply type "make install").
If you do not have the utility mount.cifs (in the Samba 3.0 source tree and on
the CIFS VFS web site) copy it to the same directory in which mount.smbfs and
similar files reside (usually /sbin). Although the helper software is required,
mount.cifs is recommended. Eventually the Samba 3.0 utility program "net" may
also be helpful since it may someday provide easier mount syntax for users used
to Windows e.g. net use <mount point> <UNC name or cifs URL> Note that running
Winbind on all of your Linux clients is useful in in mapping Uids and Gids
consistently to the proper network user. The mount.cifs mount helper can be
similar files reside (usually /sbin). Although the helper software is not
required, mount.cifs is recommended. Eventually the Samba 3.0 utility program
"net" may also be helpful since it may someday provide easier mount syntax for
users who are used to Windows e.g. net use <mount point> <UNC name or cifs URL>
Note that running the Winbind pam/nss module (logon service) on all of your
Linux clients is useful in mapping Uids and Gids consistently across the
domain to the proper network user. The mount.cifs mount helper can be
trivially built from Samba 3.0 or later source e.g. by executing:
gcc samba/source/client/mount.cifs.c -o mount.cifs
...
...
@@ -73,7 +74,7 @@ supports the SNIA CIFS Unix Extensions standard (e.g. Samba 2.2.5 or later or
Samba 3.0) but the CIFS vfs works fine with a wide variety of CIFS servers.
Note that uid, gid and file permissions will display default values if you do
not have a server that supports the Unix extensions for CIFS (such as Samba
2.2.
3
or later). To enable the Unix CIFS Extensions in the Samba server, add
2.2.
5
or later). To enable the Unix CIFS Extensions in the Samba server, add
the line:
unix extensions = yes
...
...
fs/cifs/connect.c
View file @
35b516ed
...
...
@@ -811,18 +811,17 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket)
rc
=
(
*
csocket
)
->
ops
->
connect
(
*
csocket
,
(
struct
sockaddr
*
)
psin_server
,
sizeof
(
struct
sockaddr_in
),
0
);
if
(
rc
>=
0
)
{
return
rc
;
}
}
/* do not retry on the same port we just failed on */
if
(
psin_server
->
sin_port
!=
htons
(
CIFS_PORT
))
{
psin_server
->
sin_port
=
htons
(
CIFS_PORT
);
if
(
rc
<
0
)
{
/* do not retry on the same port we just failed on */
if
(
psin_server
->
sin_port
!=
htons
(
CIFS_PORT
))
{
psin_server
->
sin_port
=
htons
(
CIFS_PORT
);
rc
=
(
*
csocket
)
->
ops
->
connect
(
*
csocket
,
rc
=
(
*
csocket
)
->
ops
->
connect
(
*
csocket
,
(
struct
sockaddr
*
)
psin_server
,
sizeof
(
struct
sockaddr_in
),
0
);
}
}
if
(
rc
<
0
)
{
psin_server
->
sin_port
=
htons
(
RFC1001_PORT
);
...
...
@@ -840,6 +839,7 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket)
the default. sock_setsockopt not used because it expects
user space buffer */
(
*
csocket
)
->
sk
->
sk_rcvtimeo
=
7
*
HZ
;
cFYI
(
1
,(
"timeout addr: %p "
,
&
((
*
csocket
)
->
sk
->
sk_rcvtimeo
)));
/* BB removeme BB */
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