Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d1eee0c0
Commit
d1eee0c0
authored
Jan 22, 2016
by
Yan, Zheng
Committed by
Ilya Dryomov
Mar 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: encode ctime in cap message
Signed-off-by:
Yan, Zheng
<
zyan@redhat.com
>
parent
b5d91704
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
fs/ceph/caps.c
fs/ceph/caps.c
+7
-4
No files found.
fs/ceph/caps.c
View file @
d1eee0c0
...
...
@@ -991,7 +991,7 @@ static int send_cap_msg(struct ceph_mds_session *session,
u32
seq
,
u64
flush_tid
,
u64
oldest_flush_tid
,
u32
issue_seq
,
u32
mseq
,
u64
size
,
u64
max_size
,
struct
timespec
*
mtime
,
struct
timespec
*
atime
,
u64
time_warp_seq
,
struct
timespec
*
ctime
,
u64
time_warp_seq
,
kuid_t
uid
,
kgid_t
gid
,
umode_t
mode
,
u64
xattr_version
,
struct
ceph_buffer
*
xattrs_buf
,
...
...
@@ -1042,6 +1042,8 @@ static int send_cap_msg(struct ceph_mds_session *session,
ceph_encode_timespec
(
&
fc
->
mtime
,
mtime
);
if
(
atime
)
ceph_encode_timespec
(
&
fc
->
atime
,
atime
);
if
(
ctime
)
ceph_encode_timespec
(
&
fc
->
ctime
,
ctime
);
fc
->
time_warp_seq
=
cpu_to_le32
(
time_warp_seq
);
fc
->
uid
=
cpu_to_le32
(
from_kuid
(
&
init_user_ns
,
uid
));
...
...
@@ -1116,7 +1118,7 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
int
held
,
revoking
,
dropping
,
keep
;
u64
seq
,
issue_seq
,
mseq
,
time_warp_seq
,
follows
;
u64
size
,
max_size
;
struct
timespec
mtime
,
atime
;
struct
timespec
mtime
,
atime
,
ctime
;
int
wake
=
0
;
umode_t
mode
;
kuid_t
uid
;
...
...
@@ -1180,6 +1182,7 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
ci
->
i_requested_max_size
=
max_size
;
mtime
=
inode
->
i_mtime
;
atime
=
inode
->
i_atime
;
ctime
=
inode
->
i_ctime
;
time_warp_seq
=
ci
->
i_time_warp_seq
;
uid
=
inode
->
i_uid
;
gid
=
inode
->
i_gid
;
...
...
@@ -1198,7 +1201,7 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
ret
=
send_cap_msg
(
session
,
ceph_vino
(
inode
).
ino
,
cap_id
,
op
,
keep
,
want
,
flushing
,
seq
,
flush_tid
,
oldest_flush_tid
,
issue_seq
,
mseq
,
size
,
max_size
,
&
mtime
,
&
atime
,
time_warp_seq
,
size
,
max_size
,
&
mtime
,
&
atime
,
&
ctime
,
time_warp_seq
,
uid
,
gid
,
mode
,
xattr_version
,
xattr_blob
,
follows
,
inline_data
);
if
(
ret
<
0
)
{
...
...
@@ -1320,7 +1323,7 @@ void __ceph_flush_snaps(struct ceph_inode_info *ci,
capsnap
->
dirty
,
0
,
capsnap
->
flush_tid
,
0
,
0
,
mseq
,
capsnap
->
size
,
0
,
&
capsnap
->
mtime
,
&
capsnap
->
atime
,
capsnap
->
time_warp_seq
,
&
capsnap
->
ctime
,
capsnap
->
time_warp_seq
,
capsnap
->
uid
,
capsnap
->
gid
,
capsnap
->
mode
,
capsnap
->
xattr_version
,
capsnap
->
xattr_blob
,
capsnap
->
follows
,
capsnap
->
inline_data
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment