/external/e2fsprogs/lib/ext2fs/ |
mkjournal.c | 44 errcode_t ext2fs_create_journal_superblock(ext2_filsys fs, 54 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb))) 57 memset (jsb, 0, fs->blocksize); 64 jsb->s_blocksize = htonl(fs->blocksize); 69 memcpy(jsb->s_uuid, fs->super->s_uuid, sizeof(fs->super->s_uuid)); 74 if (fs->super->s_feature_incompat & 77 if (fs->blocksize == 1024) 92 static errcode_t write_journal_file(ext2_filsys fs, char *filename, 100 if ((retval = ext2fs_create_journal_superblock(fs, size, flags, &buf)) 556 ext2_filsys fs; local [all...] |
ind_block.c | 22 errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) 28 int limit = fs->blocksize >> 2; 31 if ((fs->flags & EXT2_FLAG_IMAGE_FILE) && 32 (fs->io != fs->image_io)) 33 memset(buf, 0, fs->blocksize); 35 retval = io_channel_read_blk(fs->io, blk, 1, buf); 47 errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf) 52 int limit = fs->blocksize >> 2; 55 if (fs->flags & EXT2_FLAG_IMAGE_FILE [all...] |
inode.c | 34 ext2_filsys fs; member in struct:ext2_struct_inode_scan 47 errcode_t (*done_group)(ext2_filsys fs, 60 errcode_t ext2fs_flush_icache(ext2_filsys fs) 64 if (!fs->icache) 67 for (i=0; i < fs->icache->cache_size; i++) 68 fs->icache->cache[i].ino = 0; 70 fs->icache->buffer_blk = 0; 74 static errcode_t create_icache(ext2_filsys fs) 78 if (fs->icache) 80 retval = ext2fs_get_mem(sizeof(struct ext2_inode_cache), &fs->icache) 231 ext2_filsys fs = scan->fs; local [all...] |
expanddir.c | 27 static int expand_dir_proc(ext2_filsys fs, 44 retval = ext2fs_new_block(fs, last_blk, 0, &new_blk); 50 retval = ext2fs_new_dir_block(fs, 0, 0, &block); 56 retval = ext2fs_write_dir_block(fs, new_blk, block); 58 retval = ext2fs_get_mem(fs->blocksize, &block); 63 memset(block, 0, fs->blocksize); 64 retval = io_channel_write_blk(fs->io, new_blk, 1, block); 72 ext2fs_block_alloc_stats(fs, new_blk, +1); 81 errcode_t ext2fs_expand_dir(ext2_filsys fs, ext2_ino_t dir) 87 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS) [all...] |
alloc_sb.c | 43 int ext2fs_reserve_super_and_bgd(ext2_filsys fs, 50 num_blocks = ext2fs_super_and_bgd_loc(fs, group, &super_blk, 53 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) 54 old_desc_blocks = fs->super->s_first_meta_bg; 57 fs->desc_blocks + fs->super->s_reserved_gdt_blocks; 63 if (fs->super->s_reserved_gdt_blocks && fs->block_map == bmap) 64 fs->group_desc[group].bg_flags &= ~EXT2_BG_BLOCK_UNINIT; 66 if (old_desc_blk + j < fs->super->s_blocks_count [all...] |
read_bb_file.c | 32 errcode_t ext2fs_read_bb_FILE2(ext2_filsys fs, FILE *f, 35 void (*invalid)(ext2_filsys fs, 45 if (fs) 46 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 60 if (fs && 61 ((blockno < fs->super->s_first_data_block) || 62 (blockno >= fs->super->s_blocks_count))) { 64 (invalid)(fs, blockno, buf, priv_data); 78 static void call_compat_invalid(ext2_filsys fs, blk_t blk, 86 (st->invalid)(fs, blk) [all...] |
i_block.c | 29 errcode_t ext2fs_iblk_add_blocks(ext2_filsys fs, struct ext2_inode *inode, 34 if (!(fs->super->s_feature_ro_compat & 37 num_blocks *= fs->blocksize / 512; 41 if (fs->super->s_feature_ro_compat & 51 errcode_t ext2fs_iblk_sub_blocks(ext2_filsys fs, struct ext2_inode *inode, 56 if (!(fs->super->s_feature_ro_compat & 59 num_blocks *= fs->blocksize / 512; 66 if (fs->super->s_feature_ro_compat & 75 errcode_t ext2fs_iblk_set(ext2_filsys fs, struct ext2_inode *inode, blk64_t b) 77 if (!(fs->super->s_feature_ro_compat [all...] |
newdir.c | 28 errcode_t ext2fs_new_dir_block(ext2_filsys fs, ext2_ino_t dir_ino, 37 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 39 retval = ext2fs_get_mem(fs->blocksize, &buf); 42 memset(buf, 0, fs->blocksize); 45 retval = ext2fs_set_rec_len(fs, fs->blocksize, dir); 50 if (fs->super->s_feature_incompat & 59 rec_len = fs->blocksize - EXT2_DIR_REC_LEN(1); 66 retval = ext2fs_set_rec_len(fs, rec_len, dir);
|
dirblock.c | 22 errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block, 31 retval = io_channel_read_blk(fs->io, block, 1, buf); 36 end = (char *) buf + fs->blocksize; 49 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0) 61 errcode_t ext2fs_read_dir_block(ext2_filsys fs, blk_t block, 64 return ext2fs_read_dir_block2(fs, block, buf, 0); 68 errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block, 78 retval = ext2fs_get_mem(fs->blocksize, &buf); 81 memcpy(buf, inbuf, fs->blocksize); 83 end = buf + fs->blocksize [all...] |
ext2fs.h | 203 errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks); 204 errcode_t (*check_directory)(ext2_filsys fs, ext2_ino_t ino); 205 errcode_t (*write_bitmaps)(ext2_filsys fs); 206 errcode_t (*read_inode)(ext2_filsys fs, ext2_ino_t ino, 208 errcode_t (*write_inode)(ext2_filsys fs, ext2_ino_t ino, 236 errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal, 238 void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse); 553 extern errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, int mode, 555 extern errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal, 557 extern errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start [all...] |
ext_attr.c | 63 errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf) 67 retval = io_channel_read_blk(fs->io, block, 1, buf); 71 ext2fs_swap_ext_attr(buf, buf, fs->blocksize, 1); 76 errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block, void *inbuf) 83 retval = ext2fs_get_mem(fs->blocksize, &buf); 87 ext2fs_swap_ext_attr(buf, inbuf, fs->blocksize, 1); 91 retval = io_channel_write_blk(fs->io, block, 1, write_buf); 95 ext2fs_mark_changed(fs); 102 errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk, 110 if ((blk >= fs->super->s_blocks_count) | [all...] |
res_gdt.c | 26 static unsigned int list_backups(ext2_filsys fs, unsigned int *three, 33 if (!(fs->super->s_feature_ro_compat & 61 errcode_t ext2fs_create_resize_inode(ext2_filsys fs) 71 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 73 sb = fs->super; 75 retval = ext2fs_get_array(2, fs->blocksize, &dindir_buf); 78 gdt_buf = (__u32 *)((char *)dindir_buf + fs->blocksize); 80 retval = ext2fs_read_inode(fs, EXT2_RESIZE_INO, &inode); 90 retval = ext2fs_read_ind_block(fs, dindir_blk, dindir_buf); 94 blk_t goal = sb->s_first_data_block + fs->desc_blocks [all...] |
/external/grub/stage2/ |
ufs2.h | 244 struct fs { struct 254 grub_int32_t fs_old_size; /* number of blocks in fs */ 255 grub_int32_t fs_old_dsize; /* number of data blocks in fs */ 257 grub_int32_t fs_bsize; /* size of basic blocks in fs */ 258 grub_int32_t fs_fsize; /* size of frag blocks in fs */ 259 grub_int32_t fs_frag; /* number of frags in a block in fs */ 312 grub_u_int *fs_active; /* used by snapshots to track fs */ 319 grub_int64_t fs_size; /* number of blocks in fs */ 320 grub_int64_t fs_dsize; /* number of data blocks in fs */ 354 #define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb [all...] |
/sdk/ddms/libs/ddmuilib/tests/src/com/android/ddmuilib/logcat/ |
LogCatFilterSettingsSerializerTest.java | 28 LogCatFilter fs = new LogCatFilter( local 37 String s = serializer.encodeToPreferenceString(Arrays.asList(fs)); 43 assertEquals(fs.getName(), dfs.getName()); 44 assertEquals(fs.getTag(), dfs.getTag()); 45 assertEquals(fs.getText(), dfs.getText()); 46 assertEquals(fs.getPid(), dfs.getPid()); 47 assertEquals(fs.getAppName(), dfs.getAppName()); 48 assertEquals(fs.getLogLevel(), dfs.getLogLevel()); 53 LogCatFilter fs = new LogCatFilter( local 60 fs.setTransient() [all...] |
/external/e2fsprogs/e2fsck/ |
badblocks.c | 16 static int check_bb_inode_blocks(ext2_filsys fs, blk_t *block_nr, int blockcnt, 20 static void invalid_block(ext2_filsys fs EXT2FS_ATTR((unused)), blk_t blk) 29 ext2_filsys fs = ctx->fs; local 41 retval = ext2fs_block_iterate(fs, EXT2_BAD_INO, 0, 0, 54 retval = ext2fs_read_bb_inode(fs, &bb_list); 75 sprintf(buf, "badblocks -b %d -X %s%s%s %d", fs->blocksize, 78 fs->device_name, fs->super->s_blocks_count-1); 86 retval = ext2fs_read_bb_FILE(fs, f, &bb_list, invalid_block) [all...] |
swapfs.c | 34 static int swap_block(ext2_filsys fs, blk_t *block_nr, int blockcnt, 42 retval = ext2fs_read_dir_block(fs, *block_nr, sb->dir_buf); 47 retval = ext2fs_write_dir_block(fs, *block_nr, sb->dir_buf); 88 sb.dir_buf = block_buf + ctx->fs->blocksize*3; 94 retval = ext2fs_block_iterate(ctx->fs, ino, 0, block_buf, 112 ext2_filsys fs = ctx->fs; local 122 retval = ext2fs_get_array(fs->blocksize, fs->inode_blocks_per_group, 130 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4 218 ext2_filsys fs = ctx->fs; local [all...] |
super.c | 56 static int release_inode_block(ext2_filsys fs, 79 if ((blk < fs->super->s_first_data_block) || 80 (blk >= fs->super->s_blocks_count)) { 87 if (!ext2fs_test_block_bitmap(fs->block_map, blk)) { 106 pb->errcode = io_channel_read_blk(fs->io, blk, 1, 111 limit = fs->blocksize >> 2; 128 pb->errcode = io_channel_read_blk(fs->io, blk, 1, 133 fs->blocksize - pb->truncate_offset); 134 pb->errcode = io_channel_write_blk(fs->io, blk, 1, 144 ext2fs_block_alloc_stats(fs, blk, -1) 158 ext2_filsys fs = ctx->fs; local 226 ext2_filsys fs = ctx->fs; local 309 ext2_filsys fs = ctx->fs; local 456 ext2_filsys fs = ctx->fs; local 893 ext2_filsys fs = ctx->fs; local [all...] |
/external/genext2fs/ |
genext2fs.c | 21 // 6 Jun 2000 Bugfix: fs size multiple of 8 240 #define GRP_NBGROUPS(fs) \ 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) ) 248 #define GRP_GET_GROUP_IBM(fs,grp) ( get_blk((fs),(fs)->gd[(grp)].bg_inode_bitmap) 1962 filesystem *fs; local 2133 filesystem *fs; local 2536 filesystem *fs; local [all...] |
/external/e2fsprogs/misc/ |
e2freefrag.c | 51 void init_chunk_info(ext2_filsys fs, struct chunk_info *info) 55 info->blocksize_bits = ul_log2((unsigned long)fs->blocksize); 92 void scan_block_bitmap(ext2_filsys fs, struct chunk_info *info) 94 unsigned long long blocks_count = fs->super->s_blocks_count; 119 blk = fs->super->s_first_data_block; 122 used = ext2fs_fast_test_block_bitmap(fs->block_map, 142 errcode_t get_chunk_info(ext2_filsys fs, struct chunk_info *info) 150 scan_block_bitmap(fs, info); 153 fs->super->s_blocks_count, fs->super->s_free_blocks_count 258 ext2_filsys fs = NULL; local [all...] |
util.h | 25 extern unsigned int figure_journal_size(int size, ext2_filsys fs); 26 extern void print_check_message(ext2_filsys fs);
|
tune2fs.c | 154 static void remove_journal_device(ext2_filsys fs) 168 uuid_unparse(fs->super->s_journal_uuid, buf); 173 ext2fs_find_block_device(fs->super->s_journal_dev); 187 fs->blocksize, io_ptr, &jfs); 216 if (memcmp(fs->super->s_uuid, 245 fs->super->s_journal_dev = 0; 246 uuid_clear(fs->super->s_journal_uuid); 247 ext2fs_mark_super_dirty(fs); 253 static int release_blocks_proc(ext2_filsys fs, blk_t *blocknr, 261 ext2fs_unmark_block_bitmap(fs->block_map, block) 1537 ext2_filsys fs; local [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
BannedFilesTest.java | 51 FileUtils.FileStatus fs = new FileUtils.FileStatus(); local 52 if (!FileUtils.getFileStatus(file, fs, false)) { 55 assertTrue((fs.mode & FileUtils.S_ISUID) == 0); 56 assertTrue((fs.mode & FileUtils.S_ISGID) == 0);
|
/external/e2fsprogs/resize/ |
main.c | 100 static void determine_fs_stride(ext2_filsys fs) 107 if (fs->stride) 110 for (group = 0; group < fs->group_desc_count; group++) { 111 has_sb = ext2fs_bg_has_super(fs, group); 114 b_stride = fs->group_desc[group].bg_block_bitmap - 115 fs->group_desc[group-1].bg_block_bitmap - 116 fs->super->s_blocks_per_group; 117 i_stride = fs->group_desc[group].bg_inode_bitmap - 118 fs->group_desc[group-1].bg_inode_bitmap - 119 fs->super->s_blocks_per_group 152 ext2_filsys fs; local [all...] |
/frameworks/base/media/libstagefright/codecs/aacdec/ |
get_sbr_stopfreq.cpp | 77 if(fs < 32000) 79 k1_min = (Int) ( ( (float) (6000 * 2 * 64) / fs ) + 0.5 ); 83 if (fs < 64000) 85 k1_min = (Int) ( ( (float) (8000 * 2 * 64) / fs ) + 0.5 ); 89 k1_min = (Int) ( ((float) (10000 * 2 * 64) / fs ) + 0.5); 153 Int get_sbr_stopfreq(const Int32 fs, 159 switch (fs)
|
/system/extras/fatblock/ |
fatblock.h | 65 struct fs; 67 int import_tree(struct fs *fs, char *path); 68 int fs_read(struct fs *fs, char *buf, offset_t start, offset_t len);
|