Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:fs

53 	ext2_filsys		fs;
179 errcode_t ext2fs_extent_open(ext2_filsys fs, ext2_ino_t ino,
182 return ext2fs_extent_open2(fs, ino, NULL, ret_handle);
185 errcode_t ext2fs_extent_open2(ext2_filsys fs, ext2_ino_t ino,
194 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
197 if ((ino == 0) || (ino > fs->super->s_inodes_count))
206 handle->fs = fs;
212 retval = ext2fs_read_inode(fs, ino, handle->inode);
256 (EXT2_I_SIZE(handle->inode) + fs->blocksize - 1) >>
257 EXT2_BLOCK_SIZE_BITS(fs->super);
431 retval = ext2fs_get_mem(handle->fs->blocksize,
438 if ((handle->fs->flags & EXT2_FLAG_IMAGE_FILE) &&
439 (handle->fs->io != handle->fs->image_io))
440 memset(newpath->buf, 0, handle->fs->blocksize);
442 retval = io_channel_read_blk64(handle->fs->io,
451 retval = ext2fs_extent_header_verify(eh, handle->fs->blocksize);
545 retval = ext2fs_write_inode(handle->fs, handle->ino,
552 retval = io_channel_write_blk64(handle->fs->io,
719 if (!(handle->fs->flags & EXT2_FLAG_RW))
773 if (!(handle->fs->flags & EXT2_FLAG_RW))
840 if (!(handle->fs->flags & EXT2_FLAG_RW))
924 block_buf = malloc(handle->fs->blocksize);
931 dgrp_t group = ext2fs_group_of_ino(handle->fs, handle->ino);
932 __u8 log_flex = handle->fs->super->s_log_groups_per_flex;
936 goal_blk = ext2fs_group_first_block2(handle->fs, group);
938 retval = ext2fs_alloc_block2(handle->fs, goal_blk, block_buf,
953 neweh->eh_max = ext2fs_cpu_to_le16((handle->fs->blocksize -
966 retval = io_channel_write_blk64(handle->fs->io, new_node_pblk, 1,
1034 handle->inode->i_blocks += (handle->fs->blocksize *
1035 EXT2FS_CLUSTER_RATIO(handle->fs)) / 512;
1036 retval = ext2fs_write_inode(handle->fs, handle->ino,
1059 if (!(handle->fs->flags & EXT2_FLAG_RW))
1170 if (!(handle->fs->flags & EXT2_FLAG_RW))
1467 if (!(handle->fs->flags & EXT2_FLAG_RW))
1516 (handle->fs->blocksize *
1517 EXT2FS_CLUSTER_RATIO(handle->fs)) / 512;
1518 retval = ext2fs_write_inode(handle->fs, handle->ino,
1520 ext2fs_block_alloc_stats2(handle->fs,