Lines Matching refs:fs
53 ext2_filsys fs;
180 extern errcode_t ext2fs_extent_open(ext2_filsys fs, ext2_ino_t ino,
183 return ext2fs_extent_open2(fs, ino, NULL, ret_handle);
186 extern errcode_t ext2fs_extent_open2(ext2_filsys fs, ext2_ino_t ino,
195 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
198 if ((ino == 0) || (ino > fs->super->s_inodes_count))
211 handle->fs = fs;
217 retval = ext2fs_read_inode(fs, ino, handle->inode);
262 handle->inode->i_size + (fs->blocksize - 1))
263 >> EXT2_BLOCK_SIZE_BITS(fs->super));
435 retval = ext2fs_get_mem(handle->fs->blocksize,
442 if ((handle->fs->flags & EXT2_FLAG_IMAGE_FILE) &&
443 (handle->fs->io != handle->fs->image_io))
444 memset(newpath->buf, 0, handle->fs->blocksize);
446 retval = io_channel_read_blk(handle->fs->io,
455 retval = ext2fs_extent_header_verify(eh, handle->fs->blocksize);
549 retval = ext2fs_write_inode(handle->fs, handle->ino,
556 retval = io_channel_write_blk(handle->fs->io,
721 if (!(handle->fs->flags & EXT2_FLAG_RW))
771 if (!(handle->fs->flags & EXT2_FLAG_RW))
838 if (!(handle->fs->flags & EXT2_FLAG_RW))
922 block_buf = malloc(handle->fs->blocksize);
929 dgrp_t group = ext2fs_group_of_ino(handle->fs, handle->ino);
930 __u8 log_flex = handle->fs->super->s_log_groups_per_flex;
934 goal_blk = (group * handle->fs->super->s_blocks_per_group) +
935 handle->fs->super->s_first_data_block;
937 retval = ext2fs_alloc_block(handle->fs, (blk_t) goal_blk, block_buf,
952 neweh->eh_max = ext2fs_cpu_to_le16((handle->fs->blocksize -
965 retval = io_channel_write_blk(handle->fs->io, new_node_pblk, 1, block_buf);
1032 handle->inode->i_blocks += handle->fs->blocksize / 512;
1033 retval = ext2fs_write_inode(handle->fs, handle->ino,
1056 if (!(handle->fs->flags & EXT2_FLAG_RW))
1167 if (!(handle->fs->flags & EXT2_FLAG_RW))
1458 if (!(handle->fs->flags & EXT2_FLAG_RW))
1506 handle->inode->i_blocks -= handle->fs->blocksize / 512;
1507 retval = ext2fs_write_inode(handle->fs, handle->ino,
1509 ext2fs_block_alloc_stats(handle->fs, extent.e_pblk, -1);