Ceph File System IO Path

All file data in CephFS is stored as RADOS objects. CephFS clients can directlyaccess RADOS to operate on file data. MDS only handles metadata operations.

To read/write a CephFS file, client needs to have ‘file read/write’ capabilitiesfor corresponding inode. If client does not have required capabilities, it sendsa ‘cap message’ to MDS, telling MDS what it wants. MDS will issue capabilitiesto client when it is possible. Once client has ‘file read/write’ capabilities,it can directly access RADOS to read/write file data. File data are stored asRADOS objects in the form of <inode number>.<object index>. See ‘Data Striping’section of Architecture for more information. If the file is only opened byone client, MDS also issues ‘file cache/buffer’ capabilities to the only client.The ‘file cache’ capability means that file read can be satisfied by clientcache. The ‘file buffer’ capability means that file write can be buffered inclient cache.

CephFS IO Path - 图1