Home
last modified time | relevance | path

Searched +full:- +full:fs (Results 1 – 25 of 1162) sorted by relevance

12345678910>>...47

/external/ltp/utils/ffsb-6.0-rc2/
Dffsb_fs.c2 * Copyright (c) International Business Machines Corp., 2001-2004
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
30 void init_ffsb_fs(ffsb_fs_t * fs, char *basedir, uint32_t num_data_dirs, in init_ffsb_fs() argument
33 memset(fs, 0, sizeof(ffsb_fs_t)); in init_ffsb_fs()
34 fs->basedir = ffsb_strdup(basedir); in init_ffsb_fs()
35 fs->num_dirs = num_data_dirs; in init_ffsb_fs()
36 fs->num_start_files = numstartfiles; in init_ffsb_fs()
37 fs->flags = flags; in init_ffsb_fs()
38 fs->create_blocksize = FFSB_FS_DEFAULT_CREATE_BLOCKSIZE; in init_ffsb_fs()
39 fs->age_blocksize = FFSB_FS_DEFAULT_AGE_BLOCKSIZE; in init_ffsb_fs()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dopenfs.c2 * openfs.c --- open an ext2 filesystem
6 * %Begin-Header%
9 * %End-Header%
36 blk64_t ext2fs_descriptor_block_loc2(ext2_filsys fs, blk64_t group_block, in ext2fs_descriptor_block_loc2() argument
44 * On a bigalloc FS with 1K blocks, block 0 is reserved for non-ext4 in ext2fs_descriptor_block_loc2()
47 if (i == 0 && fs->blocksize == 1024 && EXT2FS_CLUSTER_RATIO(fs) > 1) in ext2fs_descriptor_block_loc2()
50 if (!ext2fs_has_feature_meta_bg(fs->super) || in ext2fs_descriptor_block_loc2()
51 (i < fs->super->s_first_meta_bg)) in ext2fs_descriptor_block_loc2()
54 bg = EXT2_DESC_PER_BLOCK(fs->super) * i; in ext2fs_descriptor_block_loc2()
55 if (ext2fs_bg_has_super(fs, bg)) in ext2fs_descriptor_block_loc2()
[all …]
Drw_bitmaps.c2 * rw_bitmaps.c --- routines to read and write the inode and block bitmaps.
6 * %Begin-Header%
9 * %End-Header%
31 static errcode_t write_bitmaps(ext2_filsys fs, int do_inode, int do_block) in write_bitmaps() argument
41 blk64_t blk_itr = EXT2FS_B2C(fs, fs->super->s_first_data_block); in write_bitmaps()
44 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); in write_bitmaps()
46 if (!(fs->flags & EXT2_FLAG_RW)) in write_bitmaps()
49 csum_flag = ext2fs_has_group_desc_csum(fs); in write_bitmaps()
53 block_nbytes = EXT2_CLUSTERS_PER_GROUP(fs->super) / 8; in write_bitmaps()
54 retval = io_channel_alloc_buf(fs->io, 0, &block_buf); in write_bitmaps()
[all …]
Dmmp.c6 * %Begin-Header%
9 * %End-Header%
40 #pragma GCC diagnostic ignored "-Wunused-parameter"
44 errcode_t ext2fs_mmp_read(ext2_filsys fs, blk64_t mmp_blk, void *buf) in ext2fs_mmp_read() argument
50 if ((mmp_blk <= fs->super->s_first_data_block) || in ext2fs_mmp_read()
51 (mmp_blk >= ext2fs_blocks_count(fs->super))) in ext2fs_mmp_read()
59 if (fs->mmp_fd <= 0) { in ext2fs_mmp_read()
60 fs->mmp_fd = open(fs->device_name, O_RDWR | O_DIRECT); in ext2fs_mmp_read()
61 if (fs->mmp_fd < 0) { in ext2fs_mmp_read()
67 if (fs->mmp_cmp == NULL) { in ext2fs_mmp_read()
[all …]
Dalloc_stats.c2 * alloc_stats.c --- Update allocation statistics for ext2fs
6 * %Begin-Header%
9 * %End-Header%
18 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino, in ext2fs_inode_alloc_stats2() argument
21 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()
31 ext2fs_mark_inode_bitmap2(fs->inode_map, ino); in ext2fs_inode_alloc_stats2()
33 ext2fs_unmark_inode_bitmap2(fs->inode_map, ino); in ext2fs_inode_alloc_stats2()
34 ext2fs_bg_free_inodes_count_set(fs, group, ext2fs_bg_free_inodes_count(fs, group) - inuse); in ext2fs_inode_alloc_stats2()
36 ext2fs_bg_used_dirs_count_set(fs, group, ext2fs_bg_used_dirs_count(fs, group) + inuse); in ext2fs_inode_alloc_stats2()
[all …]
Dblknum.c2 * blknum.c --- Functions to handle blk64_t and high/low 64-bit block
8 * %Begin-Header%
11 * %End-Header%
20 dgrp_t ext2fs_group_of_blk2(ext2_filsys fs, blk64_t blk) in ext2fs_group_of_blk2() argument
22 return (blk - fs->super->s_first_data_block) / in ext2fs_group_of_blk2()
23 fs->super->s_blocks_per_group; in ext2fs_group_of_blk2()
29 blk64_t ext2fs_group_first_block2(ext2_filsys fs, dgrp_t group) in ext2fs_group_first_block2() argument
31 return fs->super->s_first_data_block + in ext2fs_group_first_block2()
32 EXT2_GROUPS_TO_BLOCKS(fs->super, group); in ext2fs_group_first_block2()
38 blk64_t ext2fs_group_last_block2(ext2_filsys fs, dgrp_t group) in ext2fs_group_last_block2() argument
[all …]
Dclosefs.c2 * closefs.c --- close an ext2 filesystem
6 * %Begin-Header%
9 * %End-Header%
36 int ext2fs_bg_has_super(ext2_filsys fs, dgrp_t group) in ext2fs_bg_has_super() argument
40 if (ext2fs_has_feature_sparse_super2(fs->super)) { in ext2fs_bg_has_super()
41 if (group == fs->super->s_backup_bgs[0] || in ext2fs_bg_has_super()
42 group == fs->super->s_backup_bgs[1]) in ext2fs_bg_has_super()
46 if ((group <= 1) || !ext2fs_has_feature_sparse_super(fs->super)) in ext2fs_bg_has_super()
59 * @fs: ext2 fs pointer
71 errcode_t ext2fs_super_and_bgd_loc2(ext2_filsys fs, in ext2fs_super_and_bgd_loc2() argument
[all …]
Dalloc_tables.c2 * alloc_tables.c --- Allocate tables for a newly initialized
7 * %Begin-Header%
10 * %End-Header%
38 static blk64_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk64_t start_blk, in flexbg_offset() argument
46 flexbg_size = 1 << fs->super->s_log_groups_per_flex; in flexbg_offset()
50 if (size > (int) (fs->super->s_blocks_per_group / 4)) in flexbg_offset()
51 size = (int) fs->super->s_blocks_per_group / 4; in flexbg_offset()
57 if (start_blk && start_blk < ext2fs_blocks_count(fs->super) && in flexbg_offset()
58 ext2fs_get_free_blocks2(fs, start_blk, start_blk + size, elem_size, in flexbg_offset()
62 start_blk = ext2fs_group_first_block2(fs, flexbg_size * flexbg); in flexbg_offset()
[all …]
Dalloc.c2 * alloc.c --- allocate new inodes, blocks for ext2fs
6 * %Begin-Header%
9 * %End-Header%
42 void ext2fs_clear_block_uninit(ext2_filsys fs, dgrp_t group) in ext2fs_clear_block_uninit() argument
44 if (group >= fs->group_desc_count || in ext2fs_clear_block_uninit()
45 !ext2fs_has_group_desc_csum(fs) || in ext2fs_clear_block_uninit()
46 !(ext2fs_bg_flags_test(fs, group, EXT2_BG_BLOCK_UNINIT))) in ext2fs_clear_block_uninit()
51 ext2fs_bg_flags_clear(fs, group, EXT2_BG_BLOCK_UNINIT); in ext2fs_clear_block_uninit()
52 ext2fs_group_desc_csum_set(fs, group); in ext2fs_clear_block_uninit()
53 ext2fs_mark_super_dirty(fs); in ext2fs_clear_block_uninit()
[all …]
Dcsum.c2 * csum.c --- checksumming of ext3 structures
7 * %Begin-Header%
10 * %End-Header%
24 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
33 void ext2fs_init_csum_seed(ext2_filsys fs) in ext2fs_init_csum_seed() argument
35 if (ext2fs_has_feature_csum_seed(fs->super)) in ext2fs_init_csum_seed()
36 fs->csum_seed = fs->super->s_checksum_seed; in ext2fs_init_csum_seed()
37 else if (ext2fs_has_feature_metadata_csum(fs->super) || in ext2fs_init_csum_seed()
38 ext2fs_has_feature_ea_inode(fs->super)) in ext2fs_init_csum_seed()
39 fs->csum_seed = ext2fs_crc32c_le(~0, fs->super->s_uuid, in ext2fs_init_csum_seed()
[all …]
Dinode.c2 * inode.c --- utility routines to read and write inodes
6 * %Begin-Header%
9 * %End-Header%
35 #define SCAN_BLOCK_STATUS(scan) ((scan)->temp_buffer + (scan)->inode_size)
39 ext2_filsys fs; member
52 errcode_t (*done_group)(ext2_filsys fs,
65 errcode_t ext2fs_flush_icache(ext2_filsys fs) in ext2fs_flush_icache() argument
69 if (!fs->icache) in ext2fs_flush_icache()
72 for (i=0; i < fs->icache->cache_size; i++) in ext2fs_flush_icache()
73 fs->icache->cache[i].ino = 0; in ext2fs_flush_icache()
[all …]
Dfreefs.c2 * freefs.c --- free an ext2 filesystem
6 * %Begin-Header%
9 * %End-Header%
22 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()
[all …]
Dimager.c2 * image.c --- writes out the critical parts of the filesystem as a
10 * %Begin-Header%
13 * %End-Header%
52 left--; in check_zero_block()
62 errcode_t ext2fs_image_inode_write(ext2_filsys fs, int fd, int flags) in ext2fs_image_inode_write() argument
71 buf = malloc(fs->blocksize * BUF_BLOCKS); in ext2fs_image_inode_write()
75 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_write()
76 blk = ext2fs_inode_table_loc(fs, (unsigned)group); in ext2fs_image_inode_write()
81 left = fs->inode_blocks_per_group; in ext2fs_image_inode_write()
86 retval = io_channel_read_blk64(fs->io, blk, c, buf); in ext2fs_image_inode_write()
[all …]
Ddupfs.c2 * dupfs.c --- duplicate a ext2 filesystem handle
6 * %Begin-Header%
9 * %End-Header%
25 ext2_filsys fs; in ext2fs_dup_handle() local
30 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); in ext2fs_dup_handle()
34 *fs = *src; in ext2fs_dup_handle()
35 fs->device_name = 0; in ext2fs_dup_handle()
36 fs->super = 0; in ext2fs_dup_handle()
37 fs->orig_super = 0; in ext2fs_dup_handle()
38 fs->group_desc = 0; in ext2fs_dup_handle()
[all …]
Dinitialize.c2 * initialize.c --- initialize a filesystem handle given superblock
7 * %Begin-Header%
10 * %End-Header%
58 static unsigned int calc_reserved_gdt_blocks(ext2_filsys fs) in calc_reserved_gdt_blocks() argument
60 struct ext2_super_block *sb = fs->super; in calc_reserved_gdt_blocks()
61 unsigned long bpg = sb->s_blocks_per_group; in calc_reserved_gdt_blocks()
76 rsv_groups = ext2fs_div_ceil(max_blocks - sb->s_first_data_block, bpg); in calc_reserved_gdt_blocks()
77 rsv_gdb = ext2fs_div_ceil(rsv_groups, gdpb) - fs->desc_blocks; in calc_reserved_gdt_blocks()
92 ext2_filsys fs; in ext2fs_initialize() local
115 retval = ext2fs_get_mem(sizeof(struct struct_ext2_filsys), &fs); in ext2fs_initialize()
[all …]
Dext2fs.h2 * ext2fs.h --- ext2fs
6 * %Begin-Header%
9 * %End-Header%
32 * Non-GNU C compilers won't necessarily understand inline
116 ext2_filsys fs; member
151 /* Ye Olde 32-bit version */
238 /* XXX FIXME-64: not 64-bit safe, but not used? */
239 errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks);
240 errcode_t (*check_directory)(ext2_filsys fs, ext2_ino_t ino);
241 errcode_t (*write_bitmaps)(ext2_filsys fs);
[all …]
/external/e2fsprogs/debugfs/
Dfilefrag.c2 * filefrag.c --- display the fragmentation information for a file
69 static void print_header(struct filefrag_struct *fs) in print_header() argument
71 if (fs->options & VERBOSE_OPT) { in print_header()
72 fprintf(fs->f, "%4s %*s %*s %*s %*s\n", "ext", in print_header()
73 fs->logical_width, "logical", fs->physical_width, in print_header()
74 "physical", fs->physical_width, "expected", in print_header()
75 fs->logical_width, "length"); in print_header()
79 static void report_filefrag(struct filefrag_struct *fs) in report_filefrag() argument
81 if (fs->num == 0) in report_filefrag()
83 if (fs->options & VERBOSE_OPT) { in report_filefrag()
[all …]
/external/u-boot/fs/ext4/
Dext4_write.c1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2011 - 2012 Samsung Electronics
9 * Ext4 read optimization taken from Open-Moko
13 * esd gmbh <www.esd-electronics.com>
14 * Reinhard Arlt <reinhard.arlt@esd-electronics.com>
16 * based on code from grub2 fs/ext2.c and fs/fshelp.c by
17 * GRUB -- GRand Unified Bootloader
32 sb->free_inodes = cpu_to_le32(le32_to_cpu(sb->free_inodes) + 1); in ext4fs_sb_free_inodes_inc()
37 sb->free_blocks = cpu_to_le32(le32_to_cpu(sb->free_blocks) + 1); in ext4fs_sb_free_blocks_inc()
41 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_inodes_inc() argument
[all …]
/external/lua/src/
Dlcode.c36 #define hasjumps(e) ((e)->t != (e)->f)
46 switch (e->k) { in tonumeral()
48 if (v) setivalue(v, e->u.ival); in tonumeral()
51 if (v) setfltvalue(v, e->u.nval); in tonumeral()
64 void luaK_nil (FuncState *fs, int from, int n) { in luaK_nil() argument
66 int l = from + n - 1; /* last register to set nil */ in luaK_nil()
67 if (fs->pc > fs->lasttarget) { /* no jumps to current position? */ in luaK_nil()
68 previous = &fs->f->code[fs->pc-1]; in luaK_nil()
77 SETARG_B(*previous, l - from); in luaK_nil()
82 luaK_codeABC(fs, OP_LOADNIL, from, n - 1, 0); /* else no optimization */ in luaK_nil()
[all …]
Dlparser.c60 ** prototypes for recursive non-terminal functions
68 ls->t.token = 0; /* remove "near <token>" from final message */ in semerror()
75 luaO_pushfstring(ls->L, "%s expected", luaX_token2str(ls, token))); in error_expected()
79 static l_noret errorlimit (FuncState *fs, int limit, const char *what) { in errorlimit() argument
80 lua_State *L = fs->ls->L; in errorlimit()
82 int line = fs->f->linedefined; in errorlimit()
88 luaX_syntaxerror(fs->ls, msg); in errorlimit()
92 static void checklimit (FuncState *fs, int v, int l, const char *what) { in checklimit() argument
93 if (v > l) errorlimit(fs, l, what); in checklimit()
98 if (ls->t.token == c) { in testnext()
[all …]
/external/e2fsprogs/e2fsck/
Dpass5.c2 * pass5.c --- check block and inode bitmaps against on-disk bitmaps
6 * %Begin-Header%
9 * %End-Header%
42 init_resource_track(&rtrack, ctx->fs->io); in e2fsck_pass5()
45 if (!(ctx->options & E2F_OPT_PREEN)) in e2fsck_pass5()
48 if (ctx->progress) in e2fsck_pass5()
49 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2)) in e2fsck_pass5()
55 if (ctx->flags & E2F_FLAG_SIGNAL_MASK) in e2fsck_pass5()
58 if (ctx->flags & E2F_FLAG_SIGNAL_MASK) in e2fsck_pass5()
61 if (ctx->flags & E2F_FLAG_SIGNAL_MASK) in e2fsck_pass5()
[all …]
Dsuper.c2 * e2fsck.c - superblock checks
6 * %Begin-Header%
9 * %End-Header%
35 (flags & LOG2_CHECK && (value & (value - 1)) != 0)) { in check_super_value()
40 ctx->flags |= E2F_FLAG_ABORT; in check_super_value()
54 (flags & LOG2_CHECK && (value & (value - 1)) != 0)) { in check_super_value64()
59 ctx->flags |= E2F_FLAG_ABORT; in check_super_value64()
82 static int release_inode_block(ext2_filsys fs, in release_inode_block() argument
93 blk64_t cluster = EXT2FS_B2C(fs, *block_nr); in release_inode_block()
97 ctx = pb->ctx; in release_inode_block()
[all …]
/external/e2fsprogs/resize/
Dresize2fs.c2 * resize2fs.c --- ext2 main routine
9 * %Begin-Header%
12 * %End-Header%
44 static void fix_uninit_block_bitmaps(ext2_filsys fs);
51 static errcode_t fix_resize_inode(ext2_filsys fs);
52 static errcode_t ext2fs_calculate_summary_stats(ext2_filsys fs);
53 static errcode_t fix_sb_journal_backup(ext2_filsys fs);
54 static errcode_t mark_table_blocks(ext2_filsys fs,
66 static inline int is_block_bm(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_block_bm() argument
68 return blk == ext2fs_block_bitmap_loc(fs, grp); in is_block_bm()
[all …]
/external/e2fsprogs/misc/
Dfuse2fs.c2 * fuse2fs.c - FUSE server for e2fsprogs.
6 * %Begin-Header%
9 * %End-Header%
19 # include <linux/fs.h>
68 # define dbg_printf(f, a...) do {printf("FUSE2FS-" f, ## a); \
96 errcode_t ext2fs_run_ext3_journal(ext2_filsys *fs);
98 #ifdef CONFIG_JBD_DEBUG /* Enabled by configure --enable-jbd-debug */
99 int journal_enable_debug = -1;
123 #pragma GCC diagnostic ignored "-Wpedantic"
139 return -1; in acl_ea_count()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DPath.cpp1 //===- llvm/unittest/Support/Path.cpp - Path tests ------------------------===//
8 //===----------------------------------------------------------------------===//
15 #include "llvm/Config/llvm-config.h"
72 EXPECT_FALSE(path::is_separator('-')); in TEST()
139 EXPECT_FALSE(ci->empty()); in TEST()
148 EXPECT_FALSE(ci->empty()); in TEST()
154 // Crash test most of the API - since we're iterating over all of our paths in TEST()
175 ASSERT_NO_ERROR(fs::make_absolute(temp_store)); in TEST()
190 ASSERT_NO_ERROR(sys::fs::make_absolute("/root", Relative)); in TEST()
231 // these paths. Other decompositions (e.g. "//" -> "" + "//") are also in TEST()
[all …]

12345678910>>...47