HomeSort by relevance Sort by last modified time
    Searched refs:fs (Results 51 - 75 of 891) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/e2fsprogs/lib/ext2fs/
mkdir.c 33 errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum,
43 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
49 retval = ext2fs_new_inode(fs, parent, LINUX_S_IFDIR | 0755,
58 retval = ext2fs_new_block(fs, 0, 0, &blk);
65 retval = ext2fs_new_dir_block(fs, ino, parent, &block);
73 retval = ext2fs_read_inode(fs, parent, &parent_inode);
83 inode.i_mode = LINUX_S_IFDIR | (0777 & ~fs->umask);
85 ext2fs_iblk_set(fs, &inode, 1);
88 inode.i_size = fs->blocksize;
93 retval = ext2fs_write_dir_block(fs, blk, block)
    [all...]
initialize.c 66 static unsigned int calc_reserved_gdt_blocks(ext2_filsys fs)
68 struct ext2_super_block *sb = fs->super;
81 rsv_gdb = ext2fs_div_ceil(rsv_groups, gdpb) - fs->desc_blocks;
96 ext2_filsys fs; local
114 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs);
118 memset(fs, 0, sizeof(struct struct_ext2_filsys));
119 fs->magic = EXT2_ET_MAGIC_EXT2FS_FILSYS;
120 fs->flags = flags | EXT2_FLAG_RW;
121 fs->umask = 022;
123 fs->flags |= EXT2_FLAG_SWAP_BYTES
    [all...]
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)
230 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);
  /ndk/sources/cxx-stl/llvm-libc++/test/input.output/file.streams/fstreams/ofstream.members/
rdbuf.pass.cpp 25 std::ofstream fs(temp);
26 std::filebuf* fb = fs.rdbuf();
31 std::wofstream fs(temp);
32 std::wfilebuf* fb = fs.rdbuf();
  /external/e2fsprogs/e2fsck/
pass5.c 32 init_resource_track(&rtrack, ctx->fs->io);
39 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2))
64 print_resource_track(ctx, _("Pass 5"), &rtrack, ctx->fs->io);
105 ext2_filsys fs = ctx->fs; local
121 fs->group_desc_count * sizeof(int), "free block count array");
123 if ((fs->super->s_first_data_block <
125 (fs->super->s_blocks_count-1 >
128 pctx.blk = fs->super->s_first_data_block;
129 pctx.blk2 = fs->super->s_blocks_count -1
328 ext2_filsys fs = ctx->fs; local
546 ext2_filsys fs = ctx->fs; local
590 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...]
  /ndk/sources/cxx-stl/llvm-libc++/test/input.output/file.streams/fstreams/ofstream.assign/
member_swap.pass.cpp 35 std::ifstream fs(temp1);
37 fs >> x;
39 fs >> x;
44 std::ifstream fs(temp2);
46 fs >> x;
48 fs >> x;
62 std::wifstream fs(temp1);
64 fs >> x;
66 fs >> x;
71 std::wifstream fs(temp2)
    [all...]
nonmember_swap.pass.cpp 36 std::ifstream fs(temp1);
38 fs >> x;
40 fs >> x;
45 std::ifstream fs(temp2);
47 fs >> x;
49 fs >> x;
63 std::wifstream fs(temp1);
65 fs >> x;
67 fs >> x;
72 std::wifstream fs(temp2)
    [all...]
  /external/llvm/lib/Support/
FileOutputBuffer.cpp 20 using llvm::sys::fs::mapped_file_region;
32 sys::fs::remove(Twine(TempPath), Existed);
40 sys::fs::file_status Stat;
41 error_code EC = sys::fs::status(FilePath, Stat);
43 case sys::fs::file_type::file_not_found:
46 case sys::fs::file_type::regular_file: {
48 // FIXME: There is no sys::fs:: api for checking this.
61 EC = sys::fs::remove(FilePath, Existed);
68 EC = sys::fs::unique_file(Twine(FilePath) + ".tmp%%%%%%%",
80 sys::fs::file_status Stat2
    [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...]
  /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)
1963 filesystem *fs; local
2134 filesystem *fs; local
2537 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
259 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)
1587 ext2_filsys fs; local
    [all...]
  /frameworks/compile/mclinker/include/mcld/Support/
RealPath.h 19 namespace fs { namespace in namespace:mcld::sys
45 } // namespace of fs
55 struct less<mcld::sys::fs::RealPath> : public binary_function<
56 mcld::sys::fs::RealPath,
57 mcld::sys::fs::RealPath,
60 bool operator() (const mcld::sys::fs::RealPath& pX,
61 const mcld::sys::fs::RealPath& pY) const {
  /frameworks/compile/mclinker/include/mcld/
BitcodeOption.h 33 void setPath(const sys::fs::Path& pPath) { m_Path = pPath; }
35 const sys::fs::Path& getPath() const { return m_Path; }
42 sys::fs::Path m_Path;
  /cts/tests/tests/security/src/android/security/cts/
BannedFilesTest.java 67 FileUtils.FileStatus fs = new FileUtils.FileStatus(); local
68 if (!FileUtils.getFileStatus(file, fs, false)) {
71 assertTrue("File \"" + file + "\" is setUID", (fs.mode & FileUtils.S_ISUID) == 0);
72 assertTrue("File \"" + file + "\" is setGID", (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...]

Completed in 473 milliseconds

1 23 4 5 6 7 8 91011>>