Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:fs

39 static int process_block(ext2_filsys fs, blk64_t *block_nr,
57 if (++block >= ext2fs_blocks_count(fs->super))
58 block = fs->super->s_first_data_block;
66 retval = io_channel_read_blk64(fs->io, orig, 1, pb->buf);
71 retval = io_channel_write_blk64(fs->io, block, 1, pb->buf);
86 retval = ext2fs_add_dir_block2(fs->dblist, pb->ino,
96 errcode_t ext2fs_move_blocks(ext2_filsys fs,
108 retval = ext2fs_open_inode_scan(fs, 0, &scan);
114 pb.alloc_map = alloc_map ? alloc_map : fs->block_map;
117 retval = ext2fs_get_array(4, fs->blocksize, &block_buf);
120 pb.buf = block_buf + fs->blocksize * 3;
128 if (fs->dblist) {
129 ext2fs_free_dblist(fs->dblist);
130 fs->dblist = NULL;
132 retval = ext2fs_init_dblist(fs, 0);
143 !ext2fs_inode_has_valid_blocks2(fs, &inode))
152 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf,