Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
49084c3b
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看板
提交
49084c3b
编写于
6月 25, 2011
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kill LOOKUP_CONTINUE
LOOKUP_PARENT is equivalent to it now Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
8aeb376c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
9 deletion
+3
-9
fs/namei.c
fs/namei.c
+3
-8
include/linux/namei.h
include/linux/namei.h
+0
-1
未找到文件。
fs/namei.c
浏览文件 @
49084c3b
...
...
@@ -664,7 +664,7 @@ static int follow_automount(struct path *path, unsigned flags,
/* We don't want to mount if someone supplied AT_NO_AUTOMOUNT
* and this is the terminal part of the path.
*/
if
((
flags
&
LOOKUP_NO_AUTOMOUNT
)
&&
!
(
flags
&
LOOKUP_
CONTINUE
))
if
((
flags
&
LOOKUP_NO_AUTOMOUNT
)
&&
!
(
flags
&
LOOKUP_
PARENT
))
return
-
EISDIR
;
/* we actually want to stop here */
/* We want to mount if someone is trying to open/create a file of any
...
...
@@ -676,7 +676,7 @@ static int follow_automount(struct path *path, unsigned flags,
* appended a '/' to the name.
*/
if
(
!
(
flags
&
LOOKUP_FOLLOW
)
&&
!
(
flags
&
(
LOOKUP_
CONTINUE
|
LOOKUP_DIRECTORY
|
!
(
flags
&
(
LOOKUP_
PARENT
|
LOOKUP_DIRECTORY
|
LOOKUP_OPEN
|
LOOKUP_CREATE
)))
return
-
EISDIR
;
...
...
@@ -695,7 +695,7 @@ static int follow_automount(struct path *path, unsigned flags,
* the path being looked up; if it wasn't then the remainder of
* the path is inaccessible and we should say so.
*/
if
(
PTR_ERR
(
mnt
)
==
-
EISDIR
&&
(
flags
&
LOOKUP_
CONTINUE
))
if
(
PTR_ERR
(
mnt
)
==
-
EISDIR
&&
(
flags
&
LOOKUP_
PARENT
))
return
-
EREMOTE
;
return
PTR_ERR
(
mnt
);
}
...
...
@@ -1281,7 +1281,6 @@ static int link_path_walk(const char *name, struct nameidata *nd)
{
struct
path
next
;
int
err
;
unsigned
int
lookup_flags
=
nd
->
flags
;
while
(
*
name
==
'/'
)
name
++
;
...
...
@@ -1295,8 +1294,6 @@ static int link_path_walk(const char *name, struct nameidata *nd)
unsigned
int
c
;
int
type
;
nd
->
flags
|=
LOOKUP_CONTINUE
;
err
=
may_lookup
(
nd
);
if
(
err
)
break
;
...
...
@@ -1358,8 +1355,6 @@ static int link_path_walk(const char *name, struct nameidata *nd)
/* here ends the main loop */
last_component:
/* Clear LOOKUP_CONTINUE iff it was previously unset */
nd
->
flags
&=
lookup_flags
|
~
LOOKUP_CONTINUE
;
nd
->
last
=
this
;
nd
->
last_type
=
type
;
return
0
;
...
...
include/linux/namei.h
浏览文件 @
49084c3b
...
...
@@ -48,7 +48,6 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT, LAST_BIND};
*/
#define LOOKUP_FOLLOW 0x0001
#define LOOKUP_DIRECTORY 0x0002
#define LOOKUP_CONTINUE 0x0004
#define LOOKUP_PARENT 0x0010
#define LOOKUP_REVAL 0x0020
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录