]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: save the oldest snapid of inode
authorYan, Zheng <zyan@redhat.com>
Tue, 20 Jan 2015 12:12:11 +0000 (20:12 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 5 Feb 2015 14:40:39 +0000 (22:40 +0800)
commitd62c67ca2041797fc7aa212ae4a37ba91e5620e7
treeea67d4b20c10e039ce77eee05f7dd8e7e9ec81e6
parent8624172d1acd486e4ed356dff180e582f1f0e975
mds: save the oldest snapid of inode

When moving a inode to different snapshot realm, we need to check if
the inode is snapshotted. If the inode is snapshotted, we create a
snapshot realm for it. The snapshot realm records inode's past snapshot
realm.

Currently there is no reliable way to check if a inode is snapshotted.
So add a new field to CInode the store the oldest snapid, it's used to
check if inode is snapshotted.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/CDir.cc
src/mds/CInode.cc
src/mds/CInode.h
src/mds/MDCache.cc
src/mds/Server.cc
src/mds/events/EMetaBlob.h
src/mds/journal.cc
src/mds/mdstypes.h