Lines Matching defs:fs
22 errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block,
31 retval = io_channel_read_blk(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_block(ext2_filsys fs, blk_t block,
64 return ext2fs_read_dir_block2(fs, block, buf, 0);
68 errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block,
78 retval = ext2fs_get_mem(fs->blocksize, &buf);
81 memcpy(buf, inbuf, fs->blocksize);
83 end = buf + fs->blocksize;
86 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0)
101 retval = io_channel_write_blk(fs->io, block, 1, buf);
105 return io_channel_write_blk(fs->io, block, 1, (char *) inbuf);
110 errcode_t ext2fs_write_dir_block(ext2_filsys fs, blk_t block,
113 return ext2fs_write_dir_block2(fs, block, inbuf, 0);