cls: add get_inode & update inode

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>