ceph: carry snapshot creation time with inodes
MDS InodeStat v3 wire structures include a trailing snapshot creation time member. Unmarshall this and retain it for a future vxattr. Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
committed by
Ilya Dryomov
parent
e1b8143914
commit
193e7b3762
@@ -813,6 +813,7 @@ static int fill_inode(struct inode *inode, struct page *locked_page,
|
||||
dout("%p mode 0%o uid.gid %d.%d\n", inode, inode->i_mode,
|
||||
from_kuid(&init_user_ns, inode->i_uid),
|
||||
from_kgid(&init_user_ns, inode->i_gid));
|
||||
ceph_decode_timespec64(&ci->i_snap_btime, &iinfo->snap_btime);
|
||||
}
|
||||
|
||||
if ((new_version || (new_issued & CEPH_CAP_LINK_SHARED)) &&
|
||||
|
||||
Reference in New Issue
Block a user