Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a8b763a9
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看板
提交
a8b763a9
编写于
7月 08, 2010
作者:
S
Sage Weil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ceph: use %pU to print uuid (fsid)
Signed-off-by:
N
Sage Weil
<
sage@newdream.net
>
上级
f0b18d9f
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
8 addition
and
15 deletion
+8
-15
fs/ceph/debugfs.c
fs/ceph/debugfs.c
+2
-2
fs/ceph/super.c
fs/ceph/super.c
+6
-6
fs/ceph/super.h
fs/ceph/super.h
+0
-7
未找到文件。
fs/ceph/debugfs.c
浏览文件 @
a8b763a9
...
...
@@ -361,8 +361,8 @@ int ceph_debugfs_client_init(struct ceph_client *client)
int
ret
=
0
;
char
name
[
80
];
snprintf
(
name
,
sizeof
(
name
),
FSID_FORMAT
".client%lld"
,
PR_FSID
(
&
client
->
fsid
),
client
->
monc
.
auth
->
global_id
);
snprintf
(
name
,
sizeof
(
name
),
"%pU.client%lld"
,
&
client
->
fsid
,
client
->
monc
.
auth
->
global_id
);
client
->
debugfs_dir
=
debugfs_create_dir
(
name
,
ceph_debugfs_dir
);
if
(
!
client
->
debugfs_dir
)
...
...
fs/ceph/super.c
浏览文件 @
a8b763a9
...
...
@@ -151,7 +151,7 @@ static int ceph_show_options(struct seq_file *m, struct vfsmount *mnt)
struct
ceph_mount_args
*
args
=
client
->
mount_args
;
if
(
args
->
flags
&
CEPH_OPT_FSID
)
seq_printf
(
m
,
",fsid=
"
FSID_FORMAT
,
PR_FSID
(
&
args
->
fsid
)
);
seq_printf
(
m
,
",fsid=
%pU"
,
&
args
->
fsid
);
if
(
args
->
flags
&
CEPH_OPT_NOSHARE
)
seq_puts
(
m
,
",noshare"
);
if
(
args
->
flags
&
CEPH_OPT_DIRSTAT
)
...
...
@@ -408,7 +408,7 @@ static int parse_fsid(const char *str, struct ceph_fsid *fsid)
if
(
i
==
16
)
err
=
0
;
dout
(
"parse_fsid ret %d got fsid
"
FSID_FORMAT
,
err
,
PR_FSID
(
fsid
)
);
dout
(
"parse_fsid ret %d got fsid
%pU"
,
err
,
fsid
);
return
err
;
}
...
...
@@ -727,13 +727,13 @@ int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid)
{
if
(
client
->
have_fsid
)
{
if
(
ceph_fsid_compare
(
&
client
->
fsid
,
fsid
))
{
pr_err
(
"bad fsid, had
"
FSID_FORMAT
" got "
FSID_FORMAT
,
PR_FSID
(
&
client
->
fsid
),
PR_FSID
(
fsid
)
);
pr_err
(
"bad fsid, had
%pU got %pU"
,
&
client
->
fsid
,
fsid
);
return
-
1
;
}
}
else
{
pr_info
(
"client%lld fsid
"
FSID_FORMAT
"
\n
"
,
client
->
monc
.
auth
->
global_id
,
PR_FSID
(
fsid
)
);
pr_info
(
"client%lld fsid
%pU
\n
"
,
client
->
monc
.
auth
->
global_id
,
fsid
);
memcpy
(
&
client
->
fsid
,
fsid
,
sizeof
(
*
fsid
));
ceph_debugfs_client_init
(
client
);
client
->
have_fsid
=
true
;
...
...
fs/ceph/super.h
浏览文件 @
a8b763a9
...
...
@@ -746,13 +746,6 @@ extern struct kmem_cache *ceph_file_cachep;
extern
const
char
*
ceph_msg_type_name
(
int
type
);
extern
int
ceph_check_fsid
(
struct
ceph_client
*
client
,
struct
ceph_fsid
*
fsid
);
#define FSID_FORMAT "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-" \
"%02x%02x%02x%02x%02x%02x"
#define PR_FSID(f) (f)->fsid[0], (f)->fsid[1], (f)->fsid[2], (f)->fsid[3], \
(f)->fsid[4], (f)->fsid[5], (f)->fsid[6], (f)->fsid[7], \
(f)->fsid[8], (f)->fsid[9], (f)->fsid[10], (f)->fsid[11], \
(f)->fsid[12], (f)->fsid[13], (f)->fsid[14], (f)->fsid[15]
/* inode.c */
extern
const
struct
inode_operations
ceph_file_iops
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录