Fixes: http://tracker.ceph.com/issues/23532
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
mds_session_timeout, mds_session_autoclose, and mds_max_file_size are now
obsolete.
+ * Each mds rank now maintains a table that tracks open files and their
+ ancestor directories. Recovering MDS can quickly get open files' pathes,
+ significantly reducing the time of loading inodes for open files. MDS
+ creates the table automatically if it does not exist.
+
* *RBD*
* The RBD C API's rbd_discard method now enforces a maximum length of
is about 400 bytes, size of CDir is about 700 bytes. These data structures are
quite large. Please be careful if you want to add new fields to them.
+*OpenFileTable*
+ Open file table tracks open files and their ancestor directories. Recovering
+ MDS can easily get open files' pathes, significantly reducing the time of
+ loading inodes for open files. Each entry in the table corresponds to an inode,
+ it records linkage information (parent inode and dentry name) of the inode. MDS
+ can constructs the inode's path by recursively lookup parent inode's linkage.
+ Open file table is stored in omap of RADOS objects, table entries correspond to
+ KV pairs in omap.