43 #include <linux/xattr.h>
71 i_uid_write(inode, i_uid);
72 i_gid_write(inode, i_gid);
85 unsigned int ino_number)
90 TRACE(
"Entered squashfs_iget\n");
122 TRACE(
"Entered squashfs_read_inode\n");
128 &offset,
sizeof(*sqshb_ino));
132 err = squashfs_new_inode(sb, inode, sqshb_ino);
142 unsigned int frag_offset,
frag;
171 squashfs_i(inode)->fragment_block = frag_blk;
172 squashfs_i(inode)->fragment_size = frag_size;
173 squashfs_i(inode)->fragment_offset = frag_offset;
175 squashfs_i(inode)->block_list_start =
block;
176 squashfs_i(inode)->offset =
offset;
179 TRACE(
"File inode %x:%x, start_block %llx, block_list_start "
181 offset, squashfs_i(inode)->
start, block, offset);
185 unsigned int frag_offset,
frag;
218 squashfs_i(inode)->fragment_block = frag_blk;
219 squashfs_i(inode)->fragment_size = frag_size;
220 squashfs_i(inode)->fragment_offset = frag_offset;
222 squashfs_i(inode)->block_list_start =
block;
223 squashfs_i(inode)->offset =
offset;
226 TRACE(
"File inode %x:%x, start_block %llx, block_list_start "
228 offset, squashfs_i(inode)->
start, block, offset);
246 squashfs_i(inode)->dir_idx_cnt = 0;
249 TRACE(
"Directory inode %x:%x, start_block %llx, offset %x\n",
251 squashfs_i(inode)->
start,
271 squashfs_i(inode)->dir_idx_start =
block;
272 squashfs_i(inode)->dir_idx_offset =
offset;
276 TRACE(
"Long directory inode %x:%x, start_block %llx, offset "
278 squashfs_i(inode)->
start,
296 squashfs_i(inode)->start =
block;
297 squashfs_i(inode)->offset =
offset;
307 &offset,
sizeof(xattr));
313 TRACE(
"Symbolic link inode %x:%x, start_block %llx, offset "
336 TRACE(
"Device inode %x:%x, rdev %x\n",
360 TRACE(
"Device inode %x:%x, rdev %x\n",
401 ERROR(
"Unknown inode type %d in squashfs_iget!\n", type);
407 &squashfs_i(inode)->xattr_count,
408 &squashfs_i(inode)->xattr_size,
409 &squashfs_i(inode)->
xattr);
412 inode->
i_blocks += ((squashfs_i(inode)->xattr_size - 1) >> 9)
415 squashfs_i(inode)->xattr_count = 0;
420 ERROR(
"Unable to read inode 0x%llx\n", ino);