HomeSort by relevance Sort by last modified time
    Searched refs:fs (Results 1 - 25 of 284) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/e2fsprogs/lib/ext2fs/
dupfs.c 24 ext2_filsys fs; local
29 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs);
33 *fs = *src;
34 fs->device_name = 0;
35 fs->super = 0;
36 fs->orig_super = 0;
37 fs->group_desc = 0;
38 fs->inode_map = 0;
39 fs->block_map = 0;
40 fs->badblocks = 0
    [all...]
openfs.c 32 blk_t ext2fs_descriptor_block_loc(ext2_filsys fs, blk_t group_block, dgrp_t i)
38 if (!(fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) ||
39 (i < fs->super->s_first_meta_bg))
42 bg = (fs->blocksize / sizeof (struct ext2_group_desc)) * i;
43 if (ext2fs_bg_has_super(fs, bg))
45 ret_blk = (fs->super->s_first_data_block + has_super +
46 (bg * fs->super->s_blocks_per_group));
55 if (group_block != fs->super->s_first_data_block &&
56 ((ret_blk + fs->super->s_blocks_per_group) <
57 fs->super->s_blocks_count)
86 ext2_filsys fs; local
    [all...]
alloc_stats.c 18 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino,
21 int group = ext2fs_group_of_ino(fs, ino);
24 ext2fs_mark_inode_bitmap(fs->inode_map, ino);
26 ext2fs_unmark_inode_bitmap(fs->inode_map, ino);
27 fs->group_desc[group].bg_free_inodes_count -= inuse;
29 fs->group_desc[group].bg_used_dirs_count += inuse;
30 fs->super->s_free_inodes_count -= inuse;
31 ext2fs_mark_super_dirty(fs);
32 ext2fs_mark_ib_dirty(fs);
35 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_t ino, int inuse
    [all...]
rw_bitmaps.c 44 static void ext2fs_swap_bitmap(ext2_filsys fs, char *bitmap, int nbytes)
54 static errcode_t write_bitmaps(ext2_filsys fs, int do_inode, int do_block)
66 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
68 if (!(fs->flags & EXT2_FLAG_RW))
70 if (EXT2_HAS_COMPAT_FEATURE(fs->super,
76 block_bitmap = fs->block_map->bitmap;
77 block_nbytes = EXT2_BLOCKS_PER_GROUP(fs->super) / 8;
78 retval = ext2fs_get_mem(fs->blocksize, &block_buf);
81 memset(block_buf, 0xff, fs->blocksize);
84 inode_bitmap = fs->inode_map->bitmap
    [all...]
freefs.c 22 void ext2fs_free(ext2_filsys fs)
24 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS))
26 if (fs->image_io != fs->io) {
27 if (fs->image_io)
28 io_channel_close(fs->image_io);
30 if (fs->io) {
31 io_channel_close(fs->io);
33 if (fs->device_name
    [all...]
closefs.c 35 int ext2fs_bg_has_super(ext2_filsys fs, int group_block)
37 if (!(fs->super->s_feature_ro_compat &
48 int ext2fs_super_and_bgd_loc(ext2_filsys fs,
60 group_block = fs->super->s_first_data_block +
61 (group * fs->super->s_blocks_per_group);
63 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG)
64 old_desc_blocks = fs->super->s_first_meta_bg;
67 fs->desc_blocks + fs->super->s_reserved_gdt_blocks;
69 if (group == fs->group_desc_count-1)
    [all...]
initialize.c 66 static unsigned int calc_reserved_gdt_blocks(ext2_filsys fs)
68 struct ext2_super_block *sb = fs->super;
70 unsigned int gdpb = fs->blocksize / sizeof(struct ext2_group_desc);
81 rsv_gdb = ext2fs_div_ceil(rsv_groups, gdpb) - fs->desc_blocks;
96 ext2_filsys fs; local
113 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs);
117 memset(fs, 0, sizeof(struct struct_ext2_filsys));
118 fs->magic = EXT2_ET_MAGIC_EXT2FS_FILSYS;
119 fs->flags = flags | EXT2_FLAG_RW;
120 fs->umask = 022
    [all...]
alloc_tables.c 30 errcode_t ext2fs_allocate_group_table(ext2_filsys fs, dgrp_t group,
37 group_blk = ext2fs_group_first_block(fs, group);
38 last_blk = ext2fs_group_last_block(fs, group);
41 bmap = fs->block_map;
46 if (fs->stride) {
47 retval = ext2fs_get_free_blocks(fs, group_blk, last_blk,
51 start_blk += fs->inode_blocks_per_group;
52 start_blk += ((fs->stride * group) %
59 if (!fs->group_desc[group].bg_block_bitmap) {
60 retval = ext2fs_get_free_blocks(fs, start_blk, last_blk
    [all...]
ext_attr.c 26 errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf)
30 retval = io_channel_read_blk(fs->io, block, 1, buf);
34 if ((fs->flags & (EXT2_FLAG_SWAP_BYTES|
36 ext2fs_swap_ext_attr(buf, buf, fs->blocksize, 1);
41 errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block, void *inbuf)
48 if ((fs->flags & EXT2_FLAG_SWAP_BYTES) ||
49 (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE)) {
50 retval = ext2fs_get_mem(fs->blocksize, &buf);
54 ext2fs_swap_ext_attr(buf, inbuf, fs->blocksize, 1);
58 retval = io_channel_write_blk(fs->io, block, 1, write_buf)
    [all...]
check_desc.c 32 errcode_t ext2fs_check_desc(ext2_filsys fs)
35 blk_t first_block = fs->super->s_first_data_block;
38 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
40 for (i = 0; i < fs->group_desc_count; i++) {
41 first_block = ext2fs_group_first_block(fs, i);
42 last_block = ext2fs_group_last_block(fs, i);
48 if (fs->group_desc[i].bg_block_bitmap < first_block ||
49 fs->group_desc[i].bg_block_bitmap > last_block)
55 if (fs->group_desc[i].bg_inode_bitmap < first_block ||
56 fs->group_desc[i].bg_inode_bitmap > last_block
    [all...]
ind_block.c 22 errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf)
27 int limit = fs->blocksize >> 2;
29 if ((fs->flags & EXT2_FLAG_IMAGE_FILE) &&
30 (fs->io != fs->image_io))
31 memset(buf, 0, fs->blocksize);
33 retval = io_channel_read_blk(fs->io, blk, 1, buf);
38 if (fs->flags & (EXT2_FLAG_SWAP_BYTES | EXT2_FLAG_SWAP_BYTES_READ)) {
47 errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf)
51 int limit = fs->blocksize >> 2
    [all...]
imager.c 61 errcode_t ext2fs_image_inode_write(ext2_filsys fs, int fd, int flags)
69 buf = malloc(fs->blocksize * BUF_BLOCKS);
73 for (group = 0; group < fs->group_desc_count; group++) {
74 blk = fs->group_desc[(unsigned)group].bg_inode_table;
79 left = fs->inode_blocks_per_group;
84 retval = io_channel_read_blk(fs->io, blk, c, buf);
94 if (check_zero_block(cp, fs->blocksize)) {
98 cp += fs->blocksize;
99 lseek(fd, fs->blocksize, SEEK_CUR);
104 if (check_zero_block(cp + d*fs->blocksize, fs->blocksize)
    [all...]
alloc.c 35 errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir,
43 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
46 map = fs->inode_map;
51 dir_group = (dir - 1) / EXT2_INODES_PER_GROUP(fs->super);
53 start_inode = (dir_group * EXT2_INODES_PER_GROUP(fs->super)) + 1;
54 if (start_inode < EXT2_FIRST_INODE(fs->super))
55 start_inode = EXT2_FIRST_INODE(fs->super);
62 if (i > fs->super->s_inodes_count)
63 i = EXT2_FIRST_INODE(fs->super);
76 errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal
    [all...]
inode.c 33 ext2_filsys fs; member in struct:ext2_struct_inode_scan
46 errcode_t (*done_group)(ext2_filsys fs,
59 errcode_t ext2fs_flush_icache(ext2_filsys fs)
63 if (!fs->icache)
66 for (i=0; i < fs->icache->cache_size; i++)
67 fs->icache->cache[i].ino = 0;
69 fs->icache->buffer_blk = 0;
73 static errcode_t create_icache(ext2_filsys fs)
77 if (fs->icache)
79 retval = ext2fs_get_mem(sizeof(struct ext2_inode_cache), &fs->icache)
    [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...]
  /external/grub/stage2/
fs.h 42 * @(#)fs.h 7.7 (Berkeley) 5/9/89
57 * For file system fs, the offsets of the various blocks of interest
59 * [fs->fs_sblkno] Super-block
60 * [fs->fs_cblkno] Cylinder group block
61 * [fs->fs_iblkno] Inode blocks
62 * [fs->fs_dblkno] Data blocks
63 * The beginning of cylinder group cg in fs, is given by
64 * the ``cgbase(fs, cg)'' macro.
89 * information in the inode, using the ``blksize(fs, ip, lbn)'' macro.
146 struct fs struct
    [all...]
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...]
  /external/opencore/codecs_v2/audio/aac/dec/src/
get_sbr_startfreq.h 77 Int get_sbr_startfreq(const Int32 fs,
get_sbr_stopfreq.h 77 Int get_sbr_stopfreq(const Int32 fs,
  /frameworks/base/media/libstagefright/codecs/aacdec/
get_sbr_startfreq.h 77 Int get_sbr_startfreq(const Int32 fs,
get_sbr_stopfreq.h 77 Int get_sbr_stopfreq(const Int32 fs,
  /bionic/libc/string/
strtotimeval.c 37 long fs; /* Fractional seconds */ local
40 fs = 0;
48 fs = 0;
53 fs = fs*10 + (*s - '0');
58 fs *= 10;
61 ts->tv_usec = fs;
  /external/e2fsprogs/resize/
resize2fs.c 49 static errcode_t fix_resize_inode(ext2_filsys fs);
50 static errcode_t ext2fs_calculate_summary_stats(ext2_filsys fs);
55 #define FS_BLOCK_BM(fs, i) ((fs)->group_desc[(i)].bg_block_bitmap)
56 #define FS_INODE_BM(fs, i) ((fs)->group_desc[(i)].bg_inode_bitmap)
57 #define FS_INODE_TB(fs, i) ((fs)->group_desc[(i)].bg_inode_table)
59 #define IS_BLOCK_BM(fs, i, blk) ((blk) == FS_BLOCK_BM((fs),(i))
436 ext2_filsys fs; local
594 ext2_filsys fs = rfs->new_fs; local
634 ext2_filsys fs, old_fs; local
873 ext2_filsys fs = rfs->new_fs; local
906 ext2_filsys fs = rfs->new_fs; local
1394 ext2_filsys fs = rfs->new_fs; local
    [all...]
  /external/e2fsprogs/e2fsck/
pass5.c 42 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2))
113 ext2_filsys fs = ctx->fs; local
129 fs->group_desc_count * sizeof(int), "free block count array");
131 if ((fs->super->s_first_data_block <
133 (fs->super->s_blocks_count-1 >
136 pctx.blk = fs->super->s_first_data_block;
137 pctx.blk2 = fs->super->s_blocks_count -1;
146 if ((fs->super->s_first_data_block <
147 ext2fs_get_block_bitmap_start(fs->block_map)) |
311 ext2_filsys fs = ctx->fs; local
516 ext2_filsys fs = ctx->fs; local
560 ext2_filsys fs = ctx->fs; local
    [all...]
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...]

Completed in 179 milliseconds

1 2 3 4 5 6 7 8 91011>>