Lines Matching refs:global_fs
63 static ext2_filsys global_fs; /* Try not to use this directly */ variable
328 return translate_error(global_fs, 0, EXT2_ET_BAD_MAGIC); \
700 translate_error(global_fs, 0, EXT2_ET_BAD_MAGIC); in op_destroy()
728 translate_error(global_fs, 0, EXT2_ET_BAD_MAGIC); in op_init()
3774 &global_fs); in main()
3780 fctx.fs = global_fs; in main()
3781 global_fs->priv_data = &fctx; in main()
3784 if (ext2fs_has_feature_journal_needs_recovery(global_fs->super)) { in main()
3787 err = ext2fs_run_ext3_journal(&global_fs); in main()
3795 ext2fs_clear_feature_journal_needs_recovery(global_fs->super); in main()
3796 ext2fs_mark_super_dirty(global_fs); in main()
3805 if (ext2fs_has_feature_journal(global_fs->super)) in main()
3808 err = ext2fs_read_inode_bitmap(global_fs); in main()
3810 translate_error(global_fs, 0, err); in main()
3813 err = ext2fs_read_block_bitmap(global_fs); in main()
3815 translate_error(global_fs, 0, err); in main()
3820 if (!(global_fs->super->s_state & EXT2_VALID_FS)) in main()
3823 if (global_fs->super->s_max_mnt_count > 0 && in main()
3824 global_fs->super->s_mnt_count >= global_fs->super->s_max_mnt_count) in main()
3827 if (global_fs->super->s_checkinterval > 0 && in main()
3828 (time_t) (global_fs->super->s_lastcheck + in main()
3829 global_fs->super->s_checkinterval) <= time(0)) in main()
3832 if (global_fs->super->s_last_orphan) in main()
3836 if (global_fs->super->s_state & EXT2_ERROR_FS) { in main()
3867 err = ext2fs_close(global_fs); in main()
3870 global_fs = NULL; in main()