some functions about inode