Lines Matching refs:fs
22 errcode_t ext2fs_read_dir_block3(ext2_filsys fs, blk64_t block,
31 retval = io_channel_read_blk64(fs->io, block, 1, buf);
36 end = (char *) buf + fs->blocksize;
49 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0)
61 errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block,
64 return ext2fs_read_dir_block3(fs, block, buf, flags);
67 errcode_t ext2fs_read_dir_block(ext2_filsys fs, blk_t block,
70 return ext2fs_read_dir_block3(fs, block, buf, 0);
74 errcode_t ext2fs_write_dir_block3(ext2_filsys fs, blk64_t block,
84 retval = ext2fs_get_mem(fs->blocksize, &buf);
87 memcpy(buf, inbuf, fs->blocksize);
89 end = buf + fs->blocksize;
92 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0)
107 retval = io_channel_write_blk64(fs->io, block, 1, buf);
111 return io_channel_write_blk64(fs->io, block, 1, (char *) inbuf);
115 errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block,
118 return ext2fs_write_dir_block3(fs, block, inbuf, flags);
121 errcode_t ext2fs_write_dir_block(ext2_filsys fs, blk_t block,
124 return ext2fs_write_dir_block3(fs, block, inbuf, 0);