Lines Matching refs:current_fs
45 ext2_filsys current_fs = NULL;
57 current_fs = NULL;
65 current_fs = NULL;
71 current_fs = NULL;
83 unix_io_manager, ¤t_fs);
86 current_fs = NULL;
93 retval = ext2fs_read_inode_bitmap(current_fs);
98 retval = ext2fs_read_block_bitmap(current_fs);
106 retval = ext2fs_set_data_io(current_fs, data_io);
118 retval = ext2fs_close(current_fs);
121 current_fs = NULL;
204 if (current_fs->flags & EXT2_FLAG_IB_DIRTY) {
205 retval = ext2fs_write_inode_bitmap(current_fs);
209 if (current_fs->flags & EXT2_FLAG_BB_DIRTY) {
210 retval = ext2fs_write_block_bitmap(current_fs);
214 retval = ext2fs_close(current_fs);
217 current_fs = NULL;
232 current_fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
264 unix_io_manager, ¤t_fs);
267 current_fs = NULL;
331 list_super2(current_fs->super, out);
332 for (i=0; i < current_fs->group_desc_count; i++)
333 numdirs += current_fs->group_desc[i].bg_used_dirs_count;
341 gdt_csum = EXT2_HAS_RO_COMPAT_FEATURE(current_fs->super,
343 gdp = ¤t_fs->group_desc[0];
344 for (i = 0; i < current_fs->group_desc_count; i++, gdp++) {
392 current_fs->super->s_state |= EXT2_VALID_FS;
394 current_fs->super->s_state &= ~EXT2_VALID_FS;
395 ext2fs_mark_super_dirty(current_fs);
501 if (inode->i_extra_isize > EXT2_INODE_SIZE(current_fs->super) -
507 storage_size = EXT2_INODE_SIZE(current_fs->super) -
514 end = (char *) inode + EXT2_INODE_SIZE(current_fs->super);
546 ext2fs_block_iterate2(current_fs, inode, BLOCK_FLAG_READ_ONLY, NULL,
580 errcode = ext2fs_extent_open(current_fs, ino, &handle);
694 int os = current_fs->super->s_creator_os;
698 current_fs->super) > EXT2_GOOD_OLD_INODE_SIZE)
785 if (EXT2_INODE_SIZE(current_fs->super) > EXT2_GOOD_OLD_INODE_SIZE)
788 if (LINUX_S_ISLNK(inode->i_mode) && ext2fs_inode_data_blocks(current_fs,inode) == 0)
834 malloc(EXT2_INODE_SIZE(current_fs->super));
846 EXT2_INODE_SIZE(current_fs->super))) {
905 current_fs->blocksize - 1) /
906 current_fs->blocksize) + 1;
909 physical_width = int_log10(current_fs->super->s_blocks_count) + 1;
927 retval = ext2fs_check_directory(current_fs, inode);
958 if (!ext2fs_test_inode_bitmap(current_fs->inode_map,inode))
960 ext2fs_unmark_inode_bitmap(current_fs->inode_map,inode);
961 ext2fs_mark_ib_dirty(current_fs);
972 if (ext2fs_test_inode_bitmap(current_fs->inode_map,inode))
974 ext2fs_mark_inode_bitmap(current_fs->inode_map,inode);
975 ext2fs_mark_ib_dirty(current_fs);
985 if (ext2fs_test_inode_bitmap(current_fs->inode_map,inode))
1001 if (!ext2fs_test_block_bitmap(current_fs->block_map,block))
1004 ext2fs_unmark_block_bitmap(current_fs->block_map,block);
1007 ext2fs_mark_bb_dirty(current_fs);
1020 if (ext2fs_test_block_bitmap(current_fs->block_map,block))
1023 ext2fs_mark_block_bitmap(current_fs->block_map,block);
1026 ext2fs_mark_bb_dirty(current_fs);
1037 if (ext2fs_test_block_bitmap(current_fs->block_map,block))
1128 os = current_fs->super->s_creator_os;
1197 retval = ext2fs_check_directory(current_fs, inode);
1215 retval = ext2fs_get_pathname(current_fs, cwd, 0, &pathname);
1226 retval = ext2fs_get_pathname(current_fs, root, 0, &pathname);
1292 if (! (retval=ext2fs_namei(current_fs, root, cwd, destname, &dir)))
1315 retval = ext2fs_link(current_fs, dir, dest, ino,
1360 if (ext2fs_test_inode_bitmap(current_fs->inode_map, ino)) {
1375 ext2fs_block_iterate(current_fs, ino, BLOCK_FLAG_READ_ONLY, NULL,
1378 ext2fs_inode_alloc_stats2(current_fs, ino, +1, 0);
1400 retval = ext2fs_unlink(current_fs, dir, base_name, 0, 0);
1446 goal = current_fs->super->s_first_data_block;
1451 retval = ext2fs_new_block(current_fs, free_blk + 1, 0,
1499 retval = ext2fs_new_inode(current_fs, dir, mode, 0, &free_inode);
1515 retval = ext2fs_file_open(current_fs, newfile,
1571 retval = ext2fs_namei(current_fs, root, cwd, argv[2], &newfile);
1578 retval = ext2fs_new_inode(current_fs, cwd, 010755, 0, &newfile);
1585 retval = ext2fs_link(current_fs, cwd, argv[2], newfile,
1588 retval = ext2fs_expand_dir(current_fs, cwd);
1594 retval = ext2fs_link(current_fs, cwd, argv[2], newfile,
1602 if (ext2fs_test_inode_bitmap(current_fs->inode_map,newfile))
1604 ext2fs_inode_alloc_stats2(current_fs, newfile, +1, 0);
1608 current_fs->now ? current_fs->now : time(0);
1611 if (current_fs->super->s_feature_incompat &
1672 retval = ext2fs_new_inode(current_fs, cwd, 010755, 0, &newfile);
1678 retval = ext2fs_link(current_fs, cwd, argv[1], newfile, filetype);
1680 retval = ext2fs_expand_dir(current_fs, cwd);
1685 retval = ext2fs_link(current_fs, cwd, argv[1], newfile,
1692 if (ext2fs_test_inode_bitmap(current_fs->inode_map,newfile))
1694 ext2fs_mark_inode_bitmap(current_fs->inode_map, newfile);
1695 ext2fs_mark_ib_dirty(current_fs);
1699 current_fs->now ? current_fs->now : time(0);
1738 retval = ext2fs_mkdir(current_fs, parent, 0, name);
1740 retval = ext2fs_expand_dir(current_fs, parent);
1771 inode_buf.i_dtime = current_fs->now ? current_fs->now : time(0);
1777 ext2fs_block_iterate(current_fs, inode, BLOCK_FLAG_READ_ONLY, NULL,
1780 ext2fs_inode_alloc_stats2(current_fs, inode, -1,
1805 retval = ext2fs_namei(current_fs, root, cwd, argv[1], &inode_num);
1867 retval = ext2fs_namei(current_fs, root, cwd, argv[1], &inode_num);
1884 retval = ext2fs_dir_iterate2(current_fs, inode_num, 0,
1917 if (current_fs)
1919 current_fs->flags & EXT2_FLAG_RW ? "write" : "only");
1921 current_fs ? current_fs->device_name : "--none--");
1932 retval = ext2fs_expand_dir(current_fs, inode);
1949 ¤t_fs->super->s_feature_compat, 0))
1953 ext2fs_mark_super_dirty(current_fs);
1955 print_features(current_fs->super, stdout);
1974 errcode = ext2fs_bmap(current_fs, ino, 0, 0, 0, blk, &pblk);
1995 group = (ino - 1) / EXT2_INODES_PER_GROUP(current_fs->super);
1996 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(current_fs->super)) *
1997 EXT2_INODE_SIZE(current_fs->super);
1998 block = offset >> EXT2_BLOCK_SIZE_BITS(current_fs->super);
1999 if (!current_fs->group_desc[(unsigned)group].bg_inode_table) {
2004 block_nr = current_fs->group_desc[(unsigned)group].bg_inode_table +
2006 offset &= (EXT2_BLOCK_SIZE(current_fs->super) - 1);
2030 current_fs->now = now;
2240 if (current_fs)