]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: update backtrace when old format inode is touched 750/head
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 21 Oct 2013 01:06:16 +0000 (09:06 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Mon, 21 Oct 2013 01:06:16 +0000 (09:06 +0800)
commit9fa357d37b4460f560c9f16640e62f372464a9aa
tree31258ebaaaffe01f68514547eca7325430e93d38
parent1f02d006b7de828299b1e4e9ad530d88a3b9781c
mds: update backtrace when old format inode is touched

We updated inode format version to 7 when introducing inode backtrace.
If we found a inode's format version < 7 when fetching the inode, set
the inode's backtrace_version to 0, to indicate the inode's backtrace
is out of data. When touching a inode with backtrace_version == 0, we
also update its backtrace.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Locker.cc
src/mds/Server.cc
src/mds/mdstypes.cc