Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the use of open ino in MDCache

Shulou Source: shulou.com Published: 2022-05-31 18:12:23 09月21日 Update

This article mainly introduces what is the use of open ino in MDCache. It is very detailed and has a certain reference value. Interested friends must finish reading it!

The handle_open_ino () function in MDCache is responsible for processing MMDSOpenIno class messages. First, the CInode class object is obtained by calling get_inode (), and then the MMDSOpenInoReply class message is created. If the CInode is auth, all the directories from CInode to its root directory are saved to the ancestors array of the MMDSOpenInoReply class message. Finally, the MMDSOpenInoReply class message is sent to the destination MDS process.

The handle_open_ino_reply () function in MDCache is responsible for processing MMDSOpenInoReply class messages. First, get the corresponding open_ino_info_t object from the opening_inodes array, and then call the get_inode () function to get the CInode class object. If the CInode class object exists, call the open_ino_finish () function to complete the open ino operation. Otherwise, if the ancestors array in the MMDSOpenInoReply class message is not empty, call the _ open_ino_traverse_dir () function to deploy CInode and all its parent directories.

The above is all the content of this article "what is the use of open ino in MDCache?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Messages functions objects arrays contents directories articles processing value interests guys buddies more root directories purposes knowledge industries information channels processes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi NVidia MySQL Shulou Technology macOS