Lines Matching refs:inode

82 	/* Check that the root inode is in a sane state */
100 /* Unpack to an allocated buffer, trusting in the inode's size field. */
103 struct cramfs_inode *inode = (struct cramfs_inode *)(begin + offset);
104 unsigned long size = CRAMFS_24 (inode->size);
123 struct cramfs_inode *inode;
127 inode = (struct cramfs_inode *) (begin + offset +
135 namelen = CRAMFS_GET_NAMELEN (inode) << 2;
136 name = (char *) inode + sizeof (struct cramfs_inode);
156 if (S_ISDIR (CRAMFS_16 (inode->mode))) {
159 (inode) << 2,
160 CRAMFS_24 (inode->
163 } else if (S_ISREG (CRAMFS_16 (inode->mode))) {
165 } else if (S_ISLNK (CRAMFS_16 (inode->mode))) {
193 CRAMFS_16 (inode->mode));
208 struct cramfs_inode *inode = (struct cramfs_inode *) (begin + offset);
210 (begin + (CRAMFS_GET_OFFSET (inode) << 2));
211 unsigned long curr_block = (CRAMFS_GET_OFFSET (inode) +
212 (((CRAMFS_24 (inode->size)) +
219 for (i = 0; i < ((CRAMFS_24 (inode->size) + 4095) >> 12); i++) {
256 struct cramfs_inode *inode = (struct cramfs_inode *)
266 namelen = CRAMFS_GET_NAMELEN (inode) << 2;
267 name = (char *) inode + sizeof (struct cramfs_inode);
278 printf (" %s %8d %*.*s", mkmodestr (CRAMFS_16 (inode->mode), str),
279 CRAMFS_24 (inode->size), namelen, namelen, name);
281 if ((CRAMFS_16 (inode->mode) & S_IFMT) == S_IFLNK) {
296 struct cramfs_inode *inode;
304 /* Root directory. Use root inode in super block */
317 /* Resolving was successful. Examine the inode */
318 inode = (struct cramfs_inode *) (PART_OFFSET(info) + offset);
319 if (!S_ISDIR (CRAMFS_16 (inode->mode))) {
325 offset = CRAMFS_GET_OFFSET (inode) << 2;
326 size = CRAMFS_24 (inode->size);
331 inode = (struct cramfs_inode *) (PART_OFFSET(info) + offset +