Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
175a4eb7
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
175a4eb7
编写于
7月 26, 2011
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fs: propagate umode_t, misc bits
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
030a8ba4
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
17 addition
and
17 deletion
+17
-17
fs/btrfs/inode.c
fs/btrfs/inode.c
+2
-2
fs/cramfs/inode.c
fs/cramfs/inode.c
+1
-1
fs/ecryptfs/inode.c
fs/ecryptfs/inode.c
+1
-1
fs/freevxfs/vxfs_inode.c
fs/freevxfs/vxfs_inode.c
+2
-2
fs/gfs2/inode.c
fs/gfs2/inode.c
+5
-5
fs/nfsd/nfsfh.c
fs/nfsd/nfsfh.c
+2
-2
fs/nfsd/nfsfh.h
fs/nfsd/nfsfh.h
+1
-1
fs/nfsd/vfs.c
fs/nfsd/vfs.c
+2
-2
fs/nfsd/vfs.h
fs/nfsd/vfs.h
+1
-1
未找到文件。
fs/btrfs/inode.c
浏览文件 @
175a4eb7
...
@@ -4412,8 +4412,8 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
...
@@ -4412,8 +4412,8 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
struct
btrfs_root
*
root
,
struct
btrfs_root
*
root
,
struct
inode
*
dir
,
struct
inode
*
dir
,
const
char
*
name
,
int
name_len
,
const
char
*
name
,
int
name_len
,
u64
ref_objectid
,
u64
objectid
,
int
mode
,
u64
ref_objectid
,
u64
objectid
,
u64
*
index
)
u
mode_t
mode
,
u
64
*
index
)
{
{
struct
inode
*
inode
;
struct
inode
*
inode
;
struct
btrfs_inode_item
*
inode_item
;
struct
btrfs_inode_item
*
inode_item
;
...
...
fs/cramfs/inode.c
浏览文件 @
175a4eb7
...
@@ -378,7 +378,7 @@ static int cramfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
...
@@ -378,7 +378,7 @@ static int cramfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
unsigned
long
nextoffset
;
unsigned
long
nextoffset
;
char
*
name
;
char
*
name
;
ino_t
ino
;
ino_t
ino
;
mode_t
mode
;
u
mode_t
mode
;
int
namelen
,
error
;
int
namelen
,
error
;
mutex_lock
(
&
read_mutex
);
mutex_lock
(
&
read_mutex
);
...
...
fs/ecryptfs/inode.c
浏览文件 @
175a4eb7
...
@@ -158,7 +158,7 @@ static int ecryptfs_interpose(struct dentry *lower_dentry,
...
@@ -158,7 +158,7 @@ static int ecryptfs_interpose(struct dentry *lower_dentry,
*/
*/
static
struct
inode
*
static
struct
inode
*
ecryptfs_do_create
(
struct
inode
*
directory_inode
,
ecryptfs_do_create
(
struct
inode
*
directory_inode
,
struct
dentry
*
ecryptfs_dentry
,
in
t
mode
)
struct
dentry
*
ecryptfs_dentry
,
umode_
t
mode
)
{
{
int
rc
;
int
rc
;
struct
dentry
*
lower_dentry
;
struct
dentry
*
lower_dentry
;
...
...
fs/freevxfs/vxfs_inode.c
浏览文件 @
175a4eb7
...
@@ -187,10 +187,10 @@ vxfs_stiget(struct super_block *sbp, ino_t ino)
...
@@ -187,10 +187,10 @@ vxfs_stiget(struct super_block *sbp, ino_t ino)
* vxfs_transmod returns a Linux mode_t for a given
* vxfs_transmod returns a Linux mode_t for a given
* VxFS inode structure.
* VxFS inode structure.
*/
*/
static
__inline__
mode_t
static
__inline__
u
mode_t
vxfs_transmod
(
struct
vxfs_inode_info
*
vip
)
vxfs_transmod
(
struct
vxfs_inode_info
*
vip
)
{
{
mode_t
ret
=
vip
->
vii_mode
&
~
VXFS_TYPE_MASK
;
u
mode_t
ret
=
vip
->
vii_mode
&
~
VXFS_TYPE_MASK
;
if
(
VXFS_ISFIFO
(
vip
))
if
(
VXFS_ISFIFO
(
vip
))
ret
|=
S_IFIFO
;
ret
|=
S_IFIFO
;
...
...
fs/gfs2/inode.c
浏览文件 @
175a4eb7
...
@@ -333,7 +333,7 @@ struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
...
@@ -333,7 +333,7 @@ struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
*/
*/
static
int
create_ok
(
struct
gfs2_inode
*
dip
,
const
struct
qstr
*
name
,
static
int
create_ok
(
struct
gfs2_inode
*
dip
,
const
struct
qstr
*
name
,
u
nsigned
in
t
mode
)
u
mode_
t
mode
)
{
{
int
error
;
int
error
;
...
@@ -364,7 +364,7 @@ static int create_ok(struct gfs2_inode *dip, const struct qstr *name,
...
@@ -364,7 +364,7 @@ static int create_ok(struct gfs2_inode *dip, const struct qstr *name,
return
0
;
return
0
;
}
}
static
void
munge_mode_uid_gid
(
struct
gfs2_inode
*
dip
,
u
nsigned
in
t
*
mode
,
static
void
munge_mode_uid_gid
(
struct
gfs2_inode
*
dip
,
u
mode_
t
*
mode
,
unsigned
int
*
uid
,
unsigned
int
*
gid
)
unsigned
int
*
uid
,
unsigned
int
*
gid
)
{
{
if
(
GFS2_SB
(
&
dip
->
i_inode
)
->
sd_args
.
ar_suiddir
&&
if
(
GFS2_SB
(
&
dip
->
i_inode
)
->
sd_args
.
ar_suiddir
&&
...
@@ -447,7 +447,7 @@ static void gfs2_init_dir(struct buffer_head *dibh,
...
@@ -447,7 +447,7 @@ static void gfs2_init_dir(struct buffer_head *dibh,
*/
*/
static
void
init_dinode
(
struct
gfs2_inode
*
dip
,
struct
gfs2_glock
*
gl
,
static
void
init_dinode
(
struct
gfs2_inode
*
dip
,
struct
gfs2_glock
*
gl
,
const
struct
gfs2_inum_host
*
inum
,
u
nsigned
in
t
mode
,
const
struct
gfs2_inum_host
*
inum
,
u
mode_
t
mode
,
unsigned
int
uid
,
unsigned
int
gid
,
unsigned
int
uid
,
unsigned
int
gid
,
const
u64
*
generation
,
dev_t
dev
,
const
char
*
symname
,
const
u64
*
generation
,
dev_t
dev
,
const
char
*
symname
,
unsigned
size
,
struct
buffer_head
**
bhp
)
unsigned
size
,
struct
buffer_head
**
bhp
)
...
@@ -516,7 +516,7 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
...
@@ -516,7 +516,7 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
}
}
static
int
make_dinode
(
struct
gfs2_inode
*
dip
,
struct
gfs2_glock
*
gl
,
static
int
make_dinode
(
struct
gfs2_inode
*
dip
,
struct
gfs2_glock
*
gl
,
u
nsigned
in
t
mode
,
const
struct
gfs2_inum_host
*
inum
,
u
mode_
t
mode
,
const
struct
gfs2_inum_host
*
inum
,
const
u64
*
generation
,
dev_t
dev
,
const
char
*
symname
,
const
u64
*
generation
,
dev_t
dev
,
const
char
*
symname
,
unsigned
int
size
,
struct
buffer_head
**
bhp
)
unsigned
int
size
,
struct
buffer_head
**
bhp
)
{
{
...
@@ -659,7 +659,7 @@ static int gfs2_security_init(struct gfs2_inode *dip, struct gfs2_inode *ip,
...
@@ -659,7 +659,7 @@ static int gfs2_security_init(struct gfs2_inode *dip, struct gfs2_inode *ip,
*/
*/
static
int
gfs2_create_inode
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
static
int
gfs2_create_inode
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
u
nsigned
in
t
mode
,
dev_t
dev
,
const
char
*
symname
,
u
mode_
t
mode
,
dev_t
dev
,
const
char
*
symname
,
unsigned
int
size
,
int
excl
)
unsigned
int
size
,
int
excl
)
{
{
const
struct
qstr
*
name
=
&
dentry
->
d_name
;
const
struct
qstr
*
name
=
&
dentry
->
d_name
;
...
...
fs/nfsd/nfsfh.c
浏览文件 @
175a4eb7
...
@@ -59,7 +59,7 @@ static int nfsd_acceptable(void *expv, struct dentry *dentry)
...
@@ -59,7 +59,7 @@ static int nfsd_acceptable(void *expv, struct dentry *dentry)
* the write call).
* the write call).
*/
*/
static
inline
__be32
static
inline
__be32
nfsd_mode_check
(
struct
svc_rqst
*
rqstp
,
umode_t
mode
,
in
t
requested
)
nfsd_mode_check
(
struct
svc_rqst
*
rqstp
,
umode_t
mode
,
umode_
t
requested
)
{
{
mode
&=
S_IFMT
;
mode
&=
S_IFMT
;
...
@@ -293,7 +293,7 @@ static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp)
...
@@ -293,7 +293,7 @@ static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp)
* include/linux/nfsd/nfsd.h.
* include/linux/nfsd/nfsd.h.
*/
*/
__be32
__be32
fh_verify
(
struct
svc_rqst
*
rqstp
,
struct
svc_fh
*
fhp
,
in
t
type
,
int
access
)
fh_verify
(
struct
svc_rqst
*
rqstp
,
struct
svc_fh
*
fhp
,
umode_
t
type
,
int
access
)
{
{
struct
svc_export
*
exp
;
struct
svc_export
*
exp
;
struct
dentry
*
dentry
;
struct
dentry
*
dentry
;
...
...
fs/nfsd/nfsfh.h
浏览文件 @
175a4eb7
...
@@ -102,7 +102,7 @@ extern char * SVCFH_fmt(struct svc_fh *fhp);
...
@@ -102,7 +102,7 @@ extern char * SVCFH_fmt(struct svc_fh *fhp);
/*
/*
* Function prototypes
* Function prototypes
*/
*/
__be32
fh_verify
(
struct
svc_rqst
*
,
struct
svc_fh
*
,
in
t
,
int
);
__be32
fh_verify
(
struct
svc_rqst
*
,
struct
svc_fh
*
,
umode_
t
,
int
);
__be32
fh_compose
(
struct
svc_fh
*
,
struct
svc_export
*
,
struct
dentry
*
,
struct
svc_fh
*
);
__be32
fh_compose
(
struct
svc_fh
*
,
struct
svc_export
*
,
struct
dentry
*
,
struct
svc_fh
*
);
__be32
fh_update
(
struct
svc_fh
*
);
__be32
fh_update
(
struct
svc_fh
*
);
void
fh_put
(
struct
svc_fh
*
);
void
fh_put
(
struct
svc_fh
*
);
...
...
fs/nfsd/vfs.c
浏览文件 @
175a4eb7
...
@@ -307,7 +307,7 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,
...
@@ -307,7 +307,7 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,
struct
dentry
*
dentry
;
struct
dentry
*
dentry
;
struct
inode
*
inode
;
struct
inode
*
inode
;
int
accmode
=
NFSD_MAY_SATTR
;
int
accmode
=
NFSD_MAY_SATTR
;
in
t
ftype
=
0
;
umode_
t
ftype
=
0
;
__be32
err
;
__be32
err
;
int
host_err
;
int
host_err
;
int
size_change
=
0
;
int
size_change
=
0
;
...
@@ -730,7 +730,7 @@ static int nfsd_open_break_lease(struct inode *inode, int access)
...
@@ -730,7 +730,7 @@ static int nfsd_open_break_lease(struct inode *inode, int access)
* N.B. After this call fhp needs an fh_put
* N.B. After this call fhp needs an fh_put
*/
*/
__be32
__be32
nfsd_open
(
struct
svc_rqst
*
rqstp
,
struct
svc_fh
*
fhp
,
in
t
type
,
nfsd_open
(
struct
svc_rqst
*
rqstp
,
struct
svc_fh
*
fhp
,
umode_
t
type
,
int
access
,
struct
file
**
filp
)
int
access
,
struct
file
**
filp
)
{
{
struct
dentry
*
dentry
;
struct
dentry
*
dentry
;
...
...
fs/nfsd/vfs.h
浏览文件 @
175a4eb7
...
@@ -66,7 +66,7 @@ __be32 do_nfsd_create(struct svc_rqst *, struct svc_fh *,
...
@@ -66,7 +66,7 @@ __be32 do_nfsd_create(struct svc_rqst *, struct svc_fh *,
__be32
nfsd_commit
(
struct
svc_rqst
*
,
struct
svc_fh
*
,
__be32
nfsd_commit
(
struct
svc_rqst
*
,
struct
svc_fh
*
,
loff_t
,
unsigned
long
);
loff_t
,
unsigned
long
);
#endif
/* CONFIG_NFSD_V3 */
#endif
/* CONFIG_NFSD_V3 */
__be32
nfsd_open
(
struct
svc_rqst
*
,
struct
svc_fh
*
,
in
t
,
__be32
nfsd_open
(
struct
svc_rqst
*
,
struct
svc_fh
*
,
umode_
t
,
int
,
struct
file
**
);
int
,
struct
file
**
);
void
nfsd_close
(
struct
file
*
);
void
nfsd_close
(
struct
file
*
);
__be32
nfsd_read
(
struct
svc_rqst
*
,
struct
svc_fh
*
,
__be32
nfsd_read
(
struct
svc_rqst
*
,
struct
svc_fh
*
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录