Home | History | Annotate | Download | only in e2fsck

Lines Matching refs:fs

50 	if (ctx->fs && ctx->fs->io) {
51 if (ctx->fs->io->magic == EXT2_ET_MAGIC_IO_CHANNEL)
52 io_channel_flush(ctx->fs->io);
215 ext2_filsys fs = ctx->fs;
227 retval = ext2fs_read_bitmaps(fs);
239 ext2_filsys fs = ctx->fs;
244 retval = ext2fs_write_bitmaps(fs);
256 ext2_filsys fs = ctx->fs;
264 if (fs != NULL) {
265 fs->super->s_state |= EXT2_ERROR_FS;
266 ext2fs_mark_super_dirty(fs);
267 ext2fs_close(fs);
388 retval = ext2fs_read_inode(ctx->fs, ino, inode);
402 retval = ext2fs_read_inode_full(ctx->fs, ino, inode, bufsize);
416 retval = ext2fs_write_inode_full(ctx->fs, ino, inode, bufsize);
429 retval = ext2fs_write_inode(ctx->fs, ino, inode);
448 blk_t get_backup_sb(e2fsck_t ctx, ext2_filsys fs, const char *name,
457 if (fs && fs->super) {
458 ret_sb = (fs->super->s_blocks_per_group +
459 fs->super->s_first_data_block);
462 ctx->blocksize = fs->blocksize;
561 errcode_t e2fsck_zero_blocks(ext2_filsys fs, blk_t blk, int num,
568 /* If fs is null, clean up the static buffer and return */
569 if (!fs) {
578 buf = malloc(fs->blocksize * STRIDE_LENGTH);
584 memset(buf, 0, fs->blocksize * STRIDE_LENGTH);
595 retval = io_channel_write_blk(fs->io, blk, count, buf);