Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
f6db25a8
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f6db25a8
编写于
5月 23, 2010
作者:
P
Phillip Lougher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
squashfs: constify xattr handlers
Signed-off-by:
N
Phillip Lougher
<
phillip@lougher.demon.co.uk
>
上级
0f87ee08
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
fs/squashfs/squashfs.h
fs/squashfs/squashfs.h
+1
-1
fs/squashfs/xattr.c
fs/squashfs/xattr.c
+7
-7
未找到文件。
fs/squashfs/squashfs.h
浏览文件 @
f6db25a8
...
...
@@ -100,7 +100,7 @@ extern const struct address_space_operations squashfs_symlink_aops;
extern
const
struct
inode_operations
squashfs_symlink_inode_ops
;
/* xattr.c */
extern
struct
xattr_handler
*
squashfs_xattr_handlers
[];
extern
const
struct
xattr_handler
*
squashfs_xattr_handlers
[];
/* zlib_wrapper.c */
extern
const
struct
squashfs_decompressor
squashfs_zlib_comp_ops
;
fs/squashfs/xattr.c
浏览文件 @
f6db25a8
...
...
@@ -34,7 +34,7 @@
#include "squashfs_fs_i.h"
#include "squashfs.h"
static
struct
xattr_handler
*
squashfs_xattr_handler
(
int
);
static
const
struct
xattr_handler
*
squashfs_xattr_handler
(
int
);
ssize_t
squashfs_listxattr
(
struct
dentry
*
d
,
char
*
buffer
,
size_t
buffer_size
)
...
...
@@ -57,7 +57,7 @@ ssize_t squashfs_listxattr(struct dentry *d, char *buffer,
while
(
count
--
)
{
struct
squashfs_xattr_entry
entry
;
struct
squashfs_xattr_val
val
;
struct
xattr_handler
*
handler
;
const
struct
xattr_handler
*
handler
;
int
name_size
,
prefix_size
=
0
;
err
=
squashfs_read_metadata
(
sb
,
&
entry
,
&
start
,
&
offset
,
...
...
@@ -228,7 +228,7 @@ static int squashfs_user_get(struct dentry *d, const char *name, void *buffer,
buffer
,
size
);
}
static
struct
xattr_handler
squashfs_xattr_user_handler
=
{
static
const
struct
xattr_handler
squashfs_xattr_user_handler
=
{
.
prefix
=
XATTR_USER_PREFIX
,
.
list
=
squashfs_user_list
,
.
get
=
squashfs_user_get
...
...
@@ -258,7 +258,7 @@ static int squashfs_trusted_get(struct dentry *d, const char *name,
buffer
,
size
);
}
static
struct
xattr_handler
squashfs_xattr_trusted_handler
=
{
static
const
struct
xattr_handler
squashfs_xattr_trusted_handler
=
{
.
prefix
=
XATTR_TRUSTED_PREFIX
,
.
list
=
squashfs_trusted_list
,
.
get
=
squashfs_trusted_get
...
...
@@ -285,13 +285,13 @@ static int squashfs_security_get(struct dentry *d, const char *name,
buffer
,
size
);
}
static
struct
xattr_handler
squashfs_xattr_security_handler
=
{
static
const
struct
xattr_handler
squashfs_xattr_security_handler
=
{
.
prefix
=
XATTR_SECURITY_PREFIX
,
.
list
=
squashfs_security_list
,
.
get
=
squashfs_security_get
};
static
inline
struct
xattr_handler
*
squashfs_xattr_handler
(
int
type
)
static
inline
const
struct
xattr_handler
*
squashfs_xattr_handler
(
int
type
)
{
if
(
type
&
~
(
SQUASHFS_XATTR_PREFIX_MASK
|
SQUASHFS_XATTR_VALUE_OOL
))
/* ignore unrecognised type */
...
...
@@ -310,7 +310,7 @@ static inline struct xattr_handler *squashfs_xattr_handler(int type)
}
}
struct
xattr_handler
*
squashfs_xattr_handlers
[]
=
{
const
struct
xattr_handler
*
squashfs_xattr_handlers
[]
=
{
&
squashfs_xattr_user_handler
,
&
squashfs_xattr_trusted_handler
,
&
squashfs_xattr_security_handler
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录