Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d3485d37
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d3485d37
编写于
8月 19, 2005
作者:
S
Steve French
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CIFS] Finish cifs mount option which requests case insensitive path
name matching. Signed-off-by: Steve French (sfrench@us.ibm.com)
上级
c46fa8ac
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
6 deletion
+13
-6
fs/cifs/cifs_fs_sb.h
fs/cifs/cifs_fs_sb.h
+1
-2
fs/cifs/cifsglob.h
fs/cifs/cifsglob.h
+3
-2
fs/cifs/connect.c
fs/cifs/connect.c
+7
-2
fs/cifs/misc.c
fs/cifs/misc.c
+2
-0
未找到文件。
fs/cifs/cifs_fs_sb.h
浏览文件 @
d3485d37
...
...
@@ -26,8 +26,7 @@
#define CIFS_MOUNT_MAP_SPECIAL_CHR 0x20
/* remap illegal chars in filenames */
#define CIFS_MOUNT_POSIX_PATHS 0x40
/* Negotiate posix pathnames if possible. */
#define CIFS_MOUNT_UNX_EMUL 0x80
/* Network compat with SFUnix emulation */
#define CIFS_MOUNT_CASE_INSENS 0x100
/* Request case insenstive searches */
#define CIFS_MOUNT_NO_BRL 0x200
/* No sending byte range locks to srv */
#define CIFS_MOUNT_NO_BRL 0x100
/* No sending byte range locks to srv */
struct
cifs_sb_info
{
struct
cifsTconInfo
*
tcon
;
/* primary mount */
...
...
fs/cifs/cifsglob.h
浏览文件 @
d3485d37
...
...
@@ -110,8 +110,8 @@ enum protocolEnum {
*/
struct
TCP_Server_Info
{
char
server_Name
[
SERVER_NAME_LEN_WITH_NULL
];
/* 15 chars + X'20'in
16th */
char
unicode_server_Name
[
SERVER_NAME_LEN_WITH_NULL
*
2
];
/* Unicode version of server_Name */
char
server_Name
[
SERVER_NAME_LEN_WITH_NULL
];
/* 15 chars + X'20'
16th */
char
unicode_server_Name
[
SERVER_NAME_LEN_WITH_NULL
*
2
];
struct
socket
*
ssocket
;
union
{
struct
sockaddr_in
sockAddr
;
...
...
@@ -231,6 +231,7 @@ struct cifsTconInfo {
FILE_SYSTEM_ATTRIBUTE_INFO
fsAttrInfo
;
/* ok if file system name truncated */
FILE_SYSTEM_UNIX_INFO
fsUnixInfo
;
unsigned
retry
:
1
;
unsigned
nocase
:
1
;
/* BB add field for back pointer to sb struct? */
};
...
...
fs/cifs/connect.c
浏览文件 @
d3485d37
...
...
@@ -1048,6 +1048,11 @@ cifs_parse_mount_options(char *options, const char *devname,struct smb_vol *vol)
vol
->
nobrl
=
0
;
}
else
if
(
strnicmp
(
data
,
"nobrl"
,
5
)
==
0
)
{
vol
->
nobrl
=
1
;
/* turn off mandatory locking in mode
if remote locking is turned off since the
local vfs will do advisory */
if
(
vol
->
file_mode
==
(
S_IALLUGO
&
~
(
S_ISUID
|
S_IXGRP
)))
vol
->
file_mode
=
S_IALLUGO
;
}
else
if
(
strnicmp
(
data
,
"setuids"
,
7
)
==
0
)
{
vol
->
setuids
=
1
;
}
else
if
(
strnicmp
(
data
,
"nosetuids"
,
9
)
==
0
)
{
...
...
@@ -1707,8 +1712,6 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
cifs_sb
->
mnt_cifs_flags
|=
CIFS_MOUNT_NO_XATTR
;
if
(
volume_info
.
sfu_emul
)
cifs_sb
->
mnt_cifs_flags
|=
CIFS_MOUNT_UNX_EMUL
;
if
(
volume_info
.
nocase
)
cifs_sb
->
mnt_cifs_flags
|=
CIFS_MOUNT_CASE_INSENS
;
if
(
volume_info
.
nobrl
)
cifs_sb
->
mnt_cifs_flags
|=
CIFS_MOUNT_NO_BRL
;
...
...
@@ -1727,6 +1730,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
to the same server share the last value passed in
for the retry flag is used */
tcon
->
retry
=
volume_info
.
retry
;
tcon
->
nocase
=
volume_info
.
nocase
;
}
else
{
tcon
=
tconInfoAlloc
();
if
(
tcon
==
NULL
)
...
...
@@ -1755,6 +1759,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
if
(
!
rc
)
{
atomic_inc
(
&
pSesInfo
->
inUse
);
tcon
->
retry
=
volume_info
.
retry
;
tcon
->
nocase
=
volume_info
.
nocase
;
}
}
}
...
...
fs/cifs/misc.c
浏览文件 @
d3485d37
...
...
@@ -375,6 +375,8 @@ header_assemble(struct smb_hdr *buffer, char smb_command /* command */ ,
}
if
(
treeCon
->
Flags
&
SMB_SHARE_IS_IN_DFS
)
buffer
->
Flags2
|=
SMBFLG2_DFS
;
if
(
treeCon
->
nocase
)
buffer
->
Flags
|=
SMBFLG_CASELESS
;
if
((
treeCon
->
ses
)
&&
(
treeCon
->
ses
->
server
))
if
(
treeCon
->
ses
->
server
->
secMode
&
(
SECMODE_SIGN_REQUIRED
|
SECMODE_SIGN_ENABLED
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录