Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/external/grub/stage2/
Dfs.h146 struct fs struct
253 #define fs_postbl(fs, cylno) \ argument
254 (((fs)->fs_postblformat == FS_42POSTBLFMT) \
255 ? ((fs)->fs_opostbl[cylno]) \
256 : ((short *)((char *)(fs) + (fs)->fs_postbloff) + (cylno) * (fs)->fs_nrpos))
257 #define fs_rotbl(fs) \ argument
258 (((fs)->fs_postblformat == FS_42POSTBLFMT) \
259 ? ((fs)->fs_space) \
260 : ((u_char *)((char *)(fs) + (fs)->fs_rotbloff)))
267 #define fs_cs(fs, indx) \ argument
[all …]
Dufs2.h244 struct fs { struct
354 #define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb) argument
355 #define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb) argument
361 #define cgbase(fs, c) ((ufs2_daddr_t)((fs)->fs_fpg * (c))) argument
362 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
363 #define cgstart(fs, c) \ argument
364 ((fs)->fs_magic == FS_UFS2_MAGIC ? cgbase(fs, c) : \
365 (cgbase(fs, c) + (fs)->fs_old_cgoffset * ((c) & ~((fs)->fs_old_cgmask))))
373 #define ino_to_cg(fs, x) ((x) / (fs)->fs_ipg) argument
374 #define ino_to_fsba(fs, x) \ argument
[all …]
/external/e2fsprogs/lib/ext2fs/
Dopenfs.c32 blk_t ext2fs_descriptor_block_loc(ext2_filsys fs, blk_t group_block, dgrp_t i) in ext2fs_descriptor_block_loc() argument
38 if (!(fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) || in ext2fs_descriptor_block_loc()
39 (i < fs->super->s_first_meta_bg)) in ext2fs_descriptor_block_loc()
42 bg = EXT2_DESC_PER_BLOCK(fs->super) * i; in ext2fs_descriptor_block_loc()
43 if (ext2fs_bg_has_super(fs, bg)) in ext2fs_descriptor_block_loc()
45 ret_blk = ext2fs_group_first_block(fs, bg) + has_super; in ext2fs_descriptor_block_loc()
54 if (group_block != fs->super->s_first_data_block && in ext2fs_descriptor_block_loc()
55 ((ret_blk + fs->super->s_blocks_per_group) < in ext2fs_descriptor_block_loc()
56 fs->super->s_blocks_count)) in ext2fs_descriptor_block_loc()
57 ret_blk += fs->super->s_blocks_per_group; in ext2fs_descriptor_block_loc()
[all …]
Drw_bitmaps.c30 static errcode_t write_bitmaps(ext2_filsys fs, int do_inode, int do_block) in write_bitmaps() argument
40 blk_t blk_itr = fs->super->s_first_data_block; in write_bitmaps()
43 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); in write_bitmaps()
45 if (!(fs->flags & EXT2_FLAG_RW)) in write_bitmaps()
48 if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in write_bitmaps()
54 block_nbytes = EXT2_BLOCKS_PER_GROUP(fs->super) / 8; in write_bitmaps()
55 retval = ext2fs_get_memalign(fs->blocksize, fs->blocksize, in write_bitmaps()
59 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps()
63 ((EXT2_INODES_PER_GROUP(fs->super)+7) / 8); in write_bitmaps()
64 retval = ext2fs_get_memalign(fs->blocksize, fs->blocksize, in write_bitmaps()
[all …]
Dclosefs.c35 int ext2fs_bg_has_super(ext2_filsys fs, int group_block) in ext2fs_bg_has_super() argument
37 if (!(fs->super->s_feature_ro_compat & in ext2fs_bg_has_super()
61 int ext2fs_super_and_bgd_loc(ext2_filsys fs, in ext2fs_super_and_bgd_loc() argument
73 group_block = ext2fs_group_first_block(fs, group); in ext2fs_super_and_bgd_loc()
75 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) in ext2fs_super_and_bgd_loc()
76 old_desc_blocks = fs->super->s_first_meta_bg; in ext2fs_super_and_bgd_loc()
79 fs->desc_blocks + fs->super->s_reserved_gdt_blocks; in ext2fs_super_and_bgd_loc()
81 if (group == fs->group_desc_count-1) { in ext2fs_super_and_bgd_loc()
82 numblocks = (fs->super->s_blocks_count - in ext2fs_super_and_bgd_loc()
83 fs->super->s_first_data_block) % in ext2fs_super_and_bgd_loc()
[all …]
Dalloc_tables.c36 static blk_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk_t start_blk, in flexbg_offset() argument
44 flexbg_size = 1 << fs->super->s_log_groups_per_flex; in flexbg_offset()
47 if (size > (int) (fs->super->s_blocks_per_group / 8)) in flexbg_offset()
48 size = (int) fs->super->s_blocks_per_group / 8; in flexbg_offset()
63 start_blk = ext2fs_group_first_block(fs, flexbg_size * flexbg); in flexbg_offset()
65 if (last_grp > fs->group_desc_count) in flexbg_offset()
66 last_grp = fs->group_desc_count; in flexbg_offset()
67 last_blk = ext2fs_group_last_block(fs, last_grp); in flexbg_offset()
70 if (ext2fs_get_free_blocks(fs, start_blk, last_blk, 1, bmap, in flexbg_offset()
74 if (ext2fs_get_free_blocks(fs, first_free + offset, last_blk, size, in flexbg_offset()
[all …]
Dalloc.c31 static void check_block_uninit(ext2_filsys fs, ext2fs_block_bitmap map, in check_block_uninit() argument
38 if (!(EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in check_block_uninit()
40 !(fs->group_desc[group].bg_flags & EXT2_BG_BLOCK_UNINIT)) in check_block_uninit()
43 blk = (group * fs->super->s_blocks_per_group) + in check_block_uninit()
44 fs->super->s_first_data_block; in check_block_uninit()
46 ext2fs_super_and_bgd_loc(fs, group, &super_blk, in check_block_uninit()
49 if (fs->super->s_feature_incompat & in check_block_uninit()
51 old_desc_blocks = fs->super->s_first_meta_bg; in check_block_uninit()
53 old_desc_blocks = fs->desc_blocks + fs->super->s_reserved_gdt_blocks; in check_block_uninit()
55 for (i=0; i < fs->super->s_blocks_per_group; i++, blk++) { in check_block_uninit()
[all …]
Dinode.c34 ext2_filsys fs; member
47 errcode_t (*done_group)(ext2_filsys fs,
60 errcode_t ext2fs_flush_icache(ext2_filsys fs) in ext2fs_flush_icache() argument
64 if (!fs->icache) in ext2fs_flush_icache()
67 for (i=0; i < fs->icache->cache_size; i++) in ext2fs_flush_icache()
68 fs->icache->cache[i].ino = 0; in ext2fs_flush_icache()
70 fs->icache->buffer_blk = 0; in ext2fs_flush_icache()
74 static errcode_t create_icache(ext2_filsys fs) in create_icache() argument
78 if (fs->icache) in create_icache()
80 retval = ext2fs_get_mem(sizeof(struct ext2_inode_cache), &fs->icache); in create_icache()
[all …]
Dalloc_stats.c17 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino, in ext2fs_inode_alloc_stats2() argument
20 int group = ext2fs_group_of_ino(fs, ino); in ext2fs_inode_alloc_stats2()
23 if (ino > fs->super->s_inodes_count) { in ext2fs_inode_alloc_stats2()
30 ext2fs_mark_inode_bitmap(fs->inode_map, ino); in ext2fs_inode_alloc_stats2()
32 ext2fs_unmark_inode_bitmap(fs->inode_map, ino); in ext2fs_inode_alloc_stats2()
33 fs->group_desc[group].bg_free_inodes_count -= inuse; in ext2fs_inode_alloc_stats2()
35 fs->group_desc[group].bg_used_dirs_count += inuse; in ext2fs_inode_alloc_stats2()
39 fs->group_desc[group].bg_flags &= ~EXT2_BG_INODE_UNINIT; in ext2fs_inode_alloc_stats2()
40 if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in ext2fs_inode_alloc_stats2()
42 ext2_ino_t first_unused_inode = fs->super->s_inodes_per_group - in ext2fs_inode_alloc_stats2()
[all …]
Dinitialize.c66 static unsigned int calc_reserved_gdt_blocks(ext2_filsys fs) in calc_reserved_gdt_blocks() argument
68 struct ext2_super_block *sb = fs->super; in calc_reserved_gdt_blocks()
81 rsv_gdb = ext2fs_div_ceil(rsv_groups, gdpb) - fs->desc_blocks; in calc_reserved_gdt_blocks()
96 ext2_filsys fs; in ext2fs_initialize() local
114 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); in ext2fs_initialize()
118 memset(fs, 0, sizeof(struct struct_ext2_filsys)); in ext2fs_initialize()
119 fs->magic = EXT2_ET_MAGIC_EXT2FS_FILSYS; in ext2fs_initialize()
120 fs->flags = flags | EXT2_FLAG_RW; in ext2fs_initialize()
121 fs->umask = 022; in ext2fs_initialize()
123 fs->flags |= EXT2_FLAG_SWAP_BYTES; in ext2fs_initialize()
[all …]
Dcsum.c32 STATIC __u16 ext2fs_group_desc_csum(ext2_filsys fs, dgrp_t group) in ext2fs_group_desc_csum() argument
37 desc = &fs->group_desc[group]; in ext2fs_group_desc_csum()
39 if (fs->super->s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_GDT_CSUM) { in ext2fs_group_desc_csum()
51 crc = ext2fs_crc16(~0, fs->super->s_uuid, in ext2fs_group_desc_csum()
52 sizeof(fs->super->s_uuid)); in ext2fs_group_desc_csum()
58 if (offset < fs->super->s_desc_size) { in ext2fs_group_desc_csum()
60 fs->super->s_desc_size - offset); in ext2fs_group_desc_csum()
67 int ext2fs_group_desc_csum_verify(ext2_filsys fs, dgrp_t group) in ext2fs_group_desc_csum_verify() argument
69 if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in ext2fs_group_desc_csum_verify()
71 (fs->group_desc[group].bg_checksum != in ext2fs_group_desc_csum_verify()
[all …]
Dfreefs.c22 void ext2fs_free(ext2_filsys fs) in ext2fs_free() argument
24 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS)) in ext2fs_free()
26 if (fs->image_io != fs->io) { in ext2fs_free()
27 if (fs->image_io) in ext2fs_free()
28 io_channel_close(fs->image_io); in ext2fs_free()
30 if (fs->io) { in ext2fs_free()
31 io_channel_close(fs->io); in ext2fs_free()
33 if (fs->device_name) in ext2fs_free()
34 ext2fs_free_mem(&fs->device_name); in ext2fs_free()
35 if (fs->super) in ext2fs_free()
[all …]
Dimager.c61 errcode_t ext2fs_image_inode_write(ext2_filsys fs, int fd, int flags) in ext2fs_image_inode_write() argument
69 buf = malloc(fs->blocksize * BUF_BLOCKS); in ext2fs_image_inode_write()
73 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_write()
74 blk = fs->group_desc[(unsigned)group].bg_inode_table; in ext2fs_image_inode_write()
79 left = fs->inode_blocks_per_group; in ext2fs_image_inode_write()
84 retval = io_channel_read_blk(fs->io, blk, c, buf); in ext2fs_image_inode_write()
94 if (check_zero_block(cp, fs->blocksize)) { in ext2fs_image_inode_write()
98 cp += fs->blocksize; in ext2fs_image_inode_write()
99 lseek(fd, fs->blocksize, SEEK_CUR); in ext2fs_image_inode_write()
104 if (check_zero_block(cp + d*fs->blocksize, fs->blocksize)) in ext2fs_image_inode_write()
[all …]
Ddupfs.c24 ext2_filsys fs; in ext2fs_dup_handle() local
29 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); in ext2fs_dup_handle()
33 *fs = *src; in ext2fs_dup_handle()
34 fs->device_name = 0; in ext2fs_dup_handle()
35 fs->super = 0; in ext2fs_dup_handle()
36 fs->orig_super = 0; in ext2fs_dup_handle()
37 fs->group_desc = 0; in ext2fs_dup_handle()
38 fs->inode_map = 0; in ext2fs_dup_handle()
39 fs->block_map = 0; in ext2fs_dup_handle()
40 fs->badblocks = 0; in ext2fs_dup_handle()
[all …]
Dmkjournal.c44 errcode_t ext2fs_create_journal_superblock(ext2_filsys fs, in ext2fs_create_journal_superblock() argument
54 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb))) in ext2fs_create_journal_superblock()
57 memset (jsb, 0, fs->blocksize); in ext2fs_create_journal_superblock()
64 jsb->s_blocksize = htonl(fs->blocksize); in ext2fs_create_journal_superblock()
69 memcpy(jsb->s_uuid, fs->super->s_uuid, sizeof(fs->super->s_uuid)); in ext2fs_create_journal_superblock()
74 if (fs->super->s_feature_incompat & in ext2fs_create_journal_superblock()
77 if (fs->blocksize == 1024) in ext2fs_create_journal_superblock()
92 static errcode_t write_journal_file(ext2_filsys fs, char *filename, in write_journal_file() argument
100 if ((retval = ext2fs_create_journal_superblock(fs, size, flags, &buf))) in write_journal_file()
111 ret_size = write(fd, buf, fs->blocksize); in write_journal_file()
[all …]
Dext2fs.h213 errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks);
214 errcode_t (*check_directory)(ext2_filsys fs, ext2_ino_t ino);
215 errcode_t (*write_bitmaps)(ext2_filsys fs);
216 errcode_t (*read_inode)(ext2_filsys fs, ext2_ino_t ino,
218 errcode_t (*write_inode)(ext2_filsys fs, ext2_ino_t ino,
246 errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal,
248 void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse);
563 extern errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, int mode,
565 extern errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal,
567 extern errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start,
[all …]
/external/e2fsprogs/resize/
Dresize2fs.c43 static void fix_uninit_block_bitmaps(ext2_filsys fs);
50 static errcode_t fix_resize_inode(ext2_filsys fs);
51 static errcode_t ext2fs_calculate_summary_stats(ext2_filsys fs);
52 static errcode_t fix_sb_journal_backup(ext2_filsys fs);
57 #define FS_BLOCK_BM(fs, i) ((fs)->group_desc[(i)].bg_block_bitmap) argument
58 #define FS_INODE_BM(fs, i) ((fs)->group_desc[(i)].bg_inode_bitmap) argument
59 #define FS_INODE_TB(fs, i) ((fs)->group_desc[(i)].bg_inode_table) argument
61 #define IS_BLOCK_BM(fs, i, blk) ((blk) == FS_BLOCK_BM((fs),(i))) argument
62 #define IS_INODE_BM(fs, i, blk) ((blk) == FS_INODE_BM((fs),(i))) argument
64 #define IS_INODE_TB(fs, i, blk) (((blk) >= FS_INODE_TB((fs), (i))) && \ argument
[all …]
/external/webkit/Tools/Scripts/webkitpy/common/system/
Dfilesystem_unittest.py52 fs = FileSystem()
53 cwd = fs.getcwd()
57 fs.chdir(newdir)
58 self.assertEquals(fs.getcwd(), newdir)
59 fs.chdir(cwd)
62 fs = FileSystem()
66 self.assertRaises(OSError, fs.chdir, newdir)
69 fs = FileSystem()
70 self.assertTrue(fs.exists(self._this_file))
73 fs = FileSystem()
[all …]
/external/e2fsprogs/e2fsck/
Dpass5.c32 init_resource_track(&rtrack, ctx->fs->io); in e2fsck_pass5()
39 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2)) in e2fsck_pass5()
64 print_resource_track(ctx, _("Pass 5"), &rtrack, ctx->fs->io); in e2fsck_pass5()
105 ext2_filsys fs = ctx->fs; in check_block_bitmaps() local
121 fs->group_desc_count * sizeof(int), "free block count array"); in check_block_bitmaps()
123 if ((fs->super->s_first_data_block < in check_block_bitmaps()
125 (fs->super->s_blocks_count-1 > in check_block_bitmaps()
128 pctx.blk = fs->super->s_first_data_block; in check_block_bitmaps()
129 pctx.blk2 = fs->super->s_blocks_count -1; in check_block_bitmaps()
138 if ((fs->super->s_first_data_block < in check_block_bitmaps()
[all …]
Dsuper.c56 static int release_inode_block(ext2_filsys fs, in release_inode_block() argument
79 if ((blk < fs->super->s_first_data_block) || in release_inode_block()
80 (blk >= fs->super->s_blocks_count)) { in release_inode_block()
87 if (!ext2fs_test_block_bitmap(fs->block_map, blk)) { in release_inode_block()
106 pb->errcode = io_channel_read_blk(fs->io, blk, 1, in release_inode_block()
111 limit = fs->blocksize >> 2; in release_inode_block()
128 pb->errcode = io_channel_read_blk(fs->io, blk, 1, in release_inode_block()
133 fs->blocksize - pb->truncate_offset); in release_inode_block()
134 pb->errcode = io_channel_write_blk(fs->io, blk, 1, in release_inode_block()
144 ext2fs_block_alloc_stats(fs, blk, -1); in release_inode_block()
[all …]
/external/opencv/cxcore/src/
Dcxpersistence.cpp108 typedef void (*CvStartWriteStruct)( struct CvFileStorage* fs, const char* key,
110 typedef void (*CvEndWriteStruct)( struct CvFileStorage* fs );
111 typedef void (*CvWriteInt)( struct CvFileStorage* fs, const char* key, int value );
112 typedef void (*CvWriteReal)( struct CvFileStorage* fs, const char* key, double value );
113 typedef void (*CvWriteString)( struct CvFileStorage* fs, const char* key,
115 typedef void (*CvWriteComment)( struct CvFileStorage* fs, const char* comment, int eol_comment );
116 typedef void (*CvStartNextStream)( struct CvFileStorage* fs );
163 #define CV_IS_FILE_STORAGE(fs) ((fs) != 0 && (fs)->flags == CV_FILE_STORAGE) argument
165 #define CV_CHECK_FILE_STORAGE(fs) \ argument
167 if( !CV_IS_FILE_STORAGE(fs) ) \
[all …]
/external/genext2fs/
Dgenext2fs.c240 #define GRP_NBGROUPS(fs) \ argument
241 (((fs)->sb.s_blocks_count - fs->sb.s_first_data_block + \
242 (fs)->sb.s_blocks_per_group - 1) / (fs)->sb.s_blocks_per_group)
245 #define GRP_GET_GROUP_BBM(fs,grp) ( get_blk((fs),(fs)->gd[(grp)].bg_block_bitmap) ) argument
248 #define GRP_GET_GROUP_IBM(fs,grp) ( get_blk((fs),(fs)->gd[(grp)].bg_inode_bitmap) ) argument
251 #define GRP_GROUP_OF_INODE(fs,nod) ( ((nod)-1) / (fs)->sb.s_inodes_per_group) argument
254 #define GRP_GET_INODE_BITMAP(fs,nod) \ argument
255 ( GRP_GET_GROUP_IBM((fs),GRP_GROUP_OF_INODE((fs),(nod))) )
258 #define GRP_IBM_OFFSET(fs,nod) \ argument
259 ( (nod) - GRP_GROUP_OF_INODE((fs),(nod))*(fs)->sb.s_inodes_per_group )
[all …]
/external/e2fsprogs/misc/
Dtune2fs.c154 static void remove_journal_device(ext2_filsys fs) in remove_journal_device() argument
168 uuid_unparse(fs->super->s_journal_uuid, buf); in remove_journal_device()
173 ext2fs_find_block_device(fs->super->s_journal_dev); in remove_journal_device()
187 fs->blocksize, io_ptr, &jfs); in remove_journal_device()
216 if (memcmp(fs->super->s_uuid, in remove_journal_device()
245 fs->super->s_journal_dev = 0; in remove_journal_device()
246 uuid_clear(fs->super->s_journal_uuid); in remove_journal_device()
247 ext2fs_mark_super_dirty(fs); in remove_journal_device()
253 static int release_blocks_proc(ext2_filsys fs, blk_t *blocknr, in release_blocks_proc() argument
261 ext2fs_unmark_block_bitmap(fs->block_map, block); in release_blocks_proc()
[all …]
Ddumpe2fs.c111 static void print_bg_opts(ext2_filsys fs, dgrp_t i) in print_bg_opts() argument
115 if (fs->super->s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_GDT_CSUM) in print_bg_opts()
116 bg_flags = fs->group_desc[i].bg_flags; in print_bg_opts()
129 static void print_bg_rel_offset(ext2_filsys fs, blk64_t block, int itable, in print_bg_rel_offset() argument
136 } else if (fs->super->s_feature_incompat & in print_bg_rel_offset()
138 dgrp_t flex_grp = ext2fs_group_of_blk(fs, block); in print_bg_rel_offset()
140 (unsigned)(block-ext2fs_group_first_block(fs,flex_grp))); in print_bg_rel_offset()
144 static void list_desc (ext2_filsys fs) in list_desc() argument
153 blk_t blk_itr = fs->super->s_first_data_block; in list_desc()
156 block_nbytes = EXT2_BLOCKS_PER_GROUP(fs->super) / 8; in list_desc()
[all …]
/external/valgrind/main/none/tests/mips32/
DMoveIns.stdout.exp-BE2 mfc1 $t1, $f0 :: fs 4.676074, rt 0x4095a266
3 mfc1 $t2, $f1 :: fs 272008302207532160516096.000000, rt 0x66666666
4 mfc1 $t3, $f2 :: fs -1.875000, rt 0xbff00000
5 mfc1 $t4, $f3 :: fs 0.000000, rt 0x0
6 mfc1 $t5, $f4 :: fs 1.875000, rt 0x3ff00000
7 mfc1 $t6, $f5 :: fs 0.000000, rt 0x0
8 mfc1 $t7, $f6 :: fs 0.000000, rt 0x252a2e2b
9 mfc1 $v0, $f7 :: fs 0.000000, rt 0x262d2d2a
10 mfc1 $v1, $f8 :: fs nan, rt 0xffffffff
11 mfc1 $s0, $f9 :: fs nan, rt 0xffffffff
[all …]

12345678910>>...16