Home | History | Annotate | Download | only in ext2fs

Lines Matching defs:fs

24 	ext2_filsys 		fs;
34 #define BMAP_BUFFER (file->buf + fs->blocksize)
36 errcode_t ext2fs_file_open2(ext2_filsys fs, ext2_ino_t ino,
48 !(fs->flags & EXT2_FLAG_RW))
57 file->fs = fs;
64 retval = ext2fs_read_inode(fs, ino, &file->inode);
69 retval = ext2fs_get_array(3, fs->blocksize, &file->buf);
83 errcode_t ext2fs_file_open(ext2_filsys fs, ext2_ino_t ino,
86 return ext2fs_file_open2(fs, ino, NULL, flags, ret);
96 return file->fs;
124 ext2_filsys fs;
127 fs = file->fs;
138 retval = ext2fs_bmap2(fs, file->ino, &file->inode,
145 retval = io_channel_write_blk64(fs->io, file->physblock, 1, file->buf);
163 b = file->pos / file->fs->blocksize;
185 ext2_filsys fs = file->fs;
189 retval = ext2fs_bmap2(fs, file->ino, &file->inode,
196 retval = io_channel_read_blk64(fs->io,
202 memset(file->buf, 0, fs->blocksize);
229 ext2_filsys fs;
236 fs = file->fs;
246 start = file->pos % fs->blocksize;
247 c = fs->blocksize - start;
271 ext2_filsys fs;
277 fs = file->fs;
287 start = file->pos % fs->blocksize;
288 c = fs->blocksize - start;
296 retval = load_buffer(file, (c == fs->blocksize));
305 retval = ext2fs_bmap2(fs, file->ino, &file->inode,
400 ext2_filsys fs = file->fs;
402 ext2_off64_t off = offset % fs->blocksize;
415 retval = ext2fs_bmap2(fs, file->ino, NULL, NULL, 0,
416 offset / fs->blocksize, &ret_flags, &blk);
423 retval = ext2fs_get_mem(fs->blocksize, &b);
428 retval = io_channel_read_blk64(fs->io, blk, 1, b);
432 memset(b + off, 0, fs->blocksize - off);
434 retval = io_channel_write_blk64(fs->io, blk, 1, b);
455 if (size && ext2fs_file_block_offset_too_big(file->fs, &file->inode,
456 (size - 1) / file->fs->blocksize))
458 truncate_block = ((size + file->fs->blocksize - 1) >>
459 EXT2_BLOCK_SIZE_BITS(file->fs->super));
461 old_truncate = ((old_size + file->fs->blocksize - 1) >>
462 EXT2_BLOCK_SIZE_BITS(file->fs->super));
467 (!EXT2_HAS_RO_COMPAT_FEATURE(file->fs->super,
469 file->fs->super->s_rev_level == EXT2_GOOD_OLD_REV)) {
470 file->fs->super->s_feature_ro_compat |=
472 ext2fs_update_dynamic_rev(file->fs);
473 ext2fs_mark_super_dirty(file->fs);
479 retval = ext2fs_write_inode(file->fs, file->ino, &file->inode);
491 return ext2fs_punch(file->fs, file->ino, &file->inode, 0,