Home
last modified time | relevance | path

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

12345678910>>...108

/third_party/node/test/parallel/
Dtest-fs-null-bytes.js25 const fs = require('fs'); constant
54 check(fs.access, fs.accessSync, 'foo\u0000bar');
55 check(fs.access, fs.accessSync, 'foo\u0000bar', fs.F_OK);
56 check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar', 'abc');
57 check(fs.chmod, fs.chmodSync, 'foo\u0000bar', '0644');
58 check(fs.chown, fs.chownSync, 'foo\u0000bar', 12, 34);
59 check(fs.copyFile, fs.copyFileSync, 'foo\u0000bar', 'abc');
60 check(fs.copyFile, fs.copyFileSync, 'abc', 'foo\u0000bar');
61 check(fs.lchown, fs.lchownSync, 'foo\u0000bar', 12, 34);
62 check(fs.link, fs.linkSync, 'foo\u0000bar', 'foobar');
[all …]
/third_party/boost/libs/filesystem/test/
Doperations_test.cpp35 namespace fs = boost::filesystem;
69 inline void setenv_(const char* name, const fs::path::value_type* val, int) in setenv_()
120 fs::directory_iterator end_itr;
121 fs::path dir;
122 fs::path d1;
123 fs::path d2;
124 fs::path f0;
125 fs::path f1;
126 fs::path d1f1;
130 fs::path ng(" no-way, Jose");
[all …]
Dcopy_test.cpp35 namespace fs = boost::filesystem;
39 void create_file(fs::path const& ph, std::string const& contents = std::string()) in create_file()
48 void verify_file(fs::path const& ph, std::string const& expected) in verify_file()
62 fs::path create_tree() in create_tree()
64 fs::path root_dir = fs::unique_path(); in create_tree()
66 fs::create_directory(root_dir); in create_tree()
70 fs::create_directory(root_dir / "d1"); in create_tree()
73 fs::create_directory(root_dir / "d1/d1"); in create_tree()
76 fs::create_directory(root_dir / "d1/d2"); in create_tree()
78 fs::create_directory(root_dir / "d2"); in create_tree()
[all …]
/third_party/e2fsprogs/lib/ext2fs/
Dopenfs.c35 blk64_t ext2fs_descriptor_block_loc2(ext2_filsys fs, blk64_t group_block, in ext2fs_descriptor_block_loc2() argument
46 if (i == 0 && fs->blocksize == 1024 && EXT2FS_CLUSTER_RATIO(fs) > 1) in ext2fs_descriptor_block_loc2()
49 if (!ext2fs_has_feature_meta_bg(fs->super) || in ext2fs_descriptor_block_loc2()
50 (i < fs->super->s_first_meta_bg)) in ext2fs_descriptor_block_loc2()
53 bg = EXT2_DESC_PER_BLOCK(fs->super) * i; in ext2fs_descriptor_block_loc2()
54 if (ext2fs_bg_has_super(fs, bg)) in ext2fs_descriptor_block_loc2()
56 ret_blk = ext2fs_group_first_block2(fs, bg); in ext2fs_descriptor_block_loc2()
65 if (group_block != fs->super->s_first_data_block && in ext2fs_descriptor_block_loc2()
66 ((ret_blk + has_super + fs->super->s_blocks_per_group) < in ext2fs_descriptor_block_loc2()
67 ext2fs_blocks_count(fs->super))) { in ext2fs_descriptor_block_loc2()
[all …]
Dalloc_stats.c18 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()
40 ext2fs_bg_flags_clear(fs, group, EXT2_BG_INODE_UNINIT); in ext2fs_inode_alloc_stats2()
41 if (ext2fs_has_group_desc_csum(fs)) { in ext2fs_inode_alloc_stats2()
42 ext2_ino_t first_unused_inode = fs->super->s_inodes_per_group - in ext2fs_inode_alloc_stats2()
[all …]
Dclosefs.c36 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()
71 errcode_t ext2fs_super_and_bgd_loc2(ext2_filsys fs, in ext2fs_super_and_bgd_loc2() argument
84 group_block = ext2fs_group_first_block2(fs, group); in ext2fs_super_and_bgd_loc2()
85 if (group_block == 0 && fs->blocksize == 1024) in ext2fs_super_and_bgd_loc2()
88 if (ext2fs_has_feature_meta_bg(fs->super)) in ext2fs_super_and_bgd_loc2()
89 old_desc_blocks = fs->super->s_first_meta_bg; in ext2fs_super_and_bgd_loc2()
[all …]
Dmmp.c44 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()
69 if (stat(fs->device_name, &st) == 0 && in ext2fs_mmp_read()
73 fs->mmp_fd = open(fs->device_name, flags); in ext2fs_mmp_read()
74 if (fs->mmp_fd < 0) { in ext2fs_mmp_read()
80 if (fs->mmp_cmp == NULL) { in ext2fs_mmp_read()
81 int align = ext2fs_get_dio_alignment(fs->mmp_fd); in ext2fs_mmp_read()
83 retval = ext2fs_get_memalign(fs->blocksize, align, in ext2fs_mmp_read()
[all …]
Dalloc_tables.c38 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()
64 if (last_grp > fs->group_desc_count-1) in flexbg_offset()
65 last_grp = fs->group_desc_count-1; in flexbg_offset()
66 last_blk = ext2fs_group_last_block2(fs, last_grp); in flexbg_offset()
[all …]
Drw_bitmaps.c53 static errcode_t write_bitmaps(ext2_filsys fs, int do_inode, int do_block) in write_bitmaps() argument
63 blk64_t blk_itr = EXT2FS_B2C(fs, fs->super->s_first_data_block); in write_bitmaps()
66 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); in write_bitmaps()
68 if (!(fs->flags & EXT2_FLAG_RW)) in write_bitmaps()
71 csum_flag = ext2fs_has_group_desc_csum(fs); in write_bitmaps()
75 block_nbytes = EXT2_CLUSTERS_PER_GROUP(fs->super) / 8; in write_bitmaps()
76 retval = io_channel_alloc_buf(fs->io, 0, &block_buf); in write_bitmaps()
79 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps()
83 ((EXT2_INODES_PER_GROUP(fs->super)+7) / 8); in write_bitmaps()
84 retval = io_channel_alloc_buf(fs->io, 0, &inode_buf); in write_bitmaps()
[all …]
Dblknum.c20 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
40 return (group == fs->group_desc_count - 1 ? in ext2fs_group_last_block2()
41 ext2fs_blocks_count(fs->super) - 1 : in ext2fs_group_last_block2()
42 ext2fs_group_first_block2(fs, group) + in ext2fs_group_last_block2()
[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 …]
Dalloc.c42 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()
54 ext2fs_mark_bb_dirty(fs); in ext2fs_clear_block_uninit()
60 static void check_inode_uninit(ext2_filsys fs, ext2fs_inode_bitmap map, in check_inode_uninit() argument
65 if (group >= fs->group_desc_count || in check_inode_uninit()
[all …]
Dinitialize.c58 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()
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()
119 memset(fs, 0, sizeof(struct struct_ext2_filsys)); in ext2fs_initialize()
120 fs->magic = EXT2_ET_MAGIC_EXT2FS_FILSYS; in ext2fs_initialize()
121 fs->flags = flags | EXT2_FLAG_RW; in ext2fs_initialize()
122 fs->umask = 022; in ext2fs_initialize()
123 fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE; in ext2fs_initialize()
[all …]
Dinode.c39 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()
75 fs->icache->buffer_blk = 0; in ext2fs_flush_icache()
98 errcode_t ext2fs_create_inode_cache(ext2_filsys fs, unsigned int cache_size) in ext2fs_create_inode_cache() argument
103 if (fs->icache) in ext2fs_create_inode_cache()
105 retval = ext2fs_get_mem(sizeof(struct ext2_inode_cache), &fs->icache); in ext2fs_create_inode_cache()
[all …]
Dcsum.c33 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()
40 sizeof(fs->super->s_uuid)); in ext2fs_init_csum_seed()
43 static __u32 ext2fs_mmp_csum(ext2_filsys fs, struct mmp_struct *mmp) in ext2fs_mmp_csum() argument
47 return ext2fs_crc32c_le(fs->csum_seed, (unsigned char *)mmp, offset); in ext2fs_mmp_csum()
50 int ext2fs_mmp_csum_verify(ext2_filsys fs, struct mmp_struct *mmp) in ext2fs_mmp_csum_verify() argument
[all …]
Dimager.c62 errcode_t ext2fs_image_inode_write(ext2_filsys fs, int fd, int flags) in ext2fs_image_inode_write() argument
72 buf = malloc(fs->blocksize * BUF_BLOCKS); in ext2fs_image_inode_write()
76 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_write()
77 blk = ext2fs_inode_table_loc(fs, group); in ext2fs_image_inode_write()
82 left = fs->inode_blocks_per_group; in ext2fs_image_inode_write()
87 retval = io_channel_read_blk64(fs->io, blk, c, buf); in ext2fs_image_inode_write()
97 if (check_zero_block(cp, fs->blocksize)) { in ext2fs_image_inode_write()
101 cp += fs->blocksize; in ext2fs_image_inode_write()
102 r = ext2fs_llseek(fd, fs->blocksize, in ext2fs_image_inode_write()
113 d * fs->blocksize, in ext2fs_image_inode_write()
[all …]
/third_party/boost/tools/bcp/
Dadd_path.cpp23 void bcp_implementation::add_path(const fs::path& p) in add_path()
25 fs::path normalized_path = p; in add_path()
27 if(fs::exists(m_boost_path / normalized_path)) in add_path()
29 if(fs::is_directory(m_boost_path / normalized_path)) in add_path()
41 void bcp_implementation::add_directory(const fs::path& p) in add_directory()
56 if(m_cvs_mode && !fs::exists(m_boost_path / p / "CVS/Entries")) in add_directory()
58 if(m_svn_mode && !fs::exists(m_boost_path / p / ".svn/entries")) in add_directory()
63 fs::directory_iterator i(m_boost_path / p); in add_directory()
64 fs::directory_iterator j; in add_directory()
74 fs::path np = s; in add_directory()
[all …]
/third_party/ffmpeg/libavfilter/
Dframesync.c69 static int consume_from_fifos(FFFrameSync *fs);
76 void ff_framesync_preinit(FFFrameSync *fs) in ff_framesync_preinit() argument
78 if (fs->class) in ff_framesync_preinit()
80 fs->class = &framesync_class; in ff_framesync_preinit()
81 av_opt_set_defaults(fs); in ff_framesync_preinit()
84 int ff_framesync_init(FFFrameSync *fs, AVFilterContext *parent, unsigned nb_in) in ff_framesync_init() argument
91 ff_framesync_preinit(fs); in ff_framesync_init()
92 fs->parent = parent; in ff_framesync_init()
93 fs->nb_in = nb_in; in ff_framesync_init()
95 fs->in = av_calloc(nb_in, sizeof(*fs->in)); in ff_framesync_init()
[all …]
/third_party/e2fsprogs/debugfs/
Dfilefrag.c69 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()
84 if (fs->expected) in report_filefrag()
[all …]
/third_party/node/deps/npm/node_modules/graceful-fs/
Dpolyfills.js25 function patch (fs) { argument
32 patchLchmod(fs)
36 if (!fs.lutimes) {
37 patchLutimes(fs)
45 fs.chown = chownFix(fs.chown)
46 fs.fchown = chownFix(fs.fchown)
47 fs.lchown = chownFix(fs.lchown)
49 fs.chmod = chmodFix(fs.chmod)
50 fs.fchmod = chmodFix(fs.fchmod)
51 fs.lchmod = chmodFix(fs.lchmod)
[all …]
/third_party/typescript/src/testRunner/unittests/tsbuild/
DoutFile.ts82 modifyFs?: (fs: vfs.FileSystem) => void;
83 modifyAgainFs?: (fs: vfs.FileSystem) => void;
103 … modifyFs: fs => replaceText(fs, relSources[Project.first][Source.ts][Part.one], "Hello", "Hola"),
109 … modifyFs: fs => appendText(fs, relSources[Project.first][Source.ts][Part.one], "console.log(s);"),
120 fs: () => outFileFs, constant
147 … modifyFs: fs => replaceText(fs, sources[Project.third][Source.config], `"composite": true,`, ""),
155 …modifyFs: fs => replaceText(fs, sources[Project.third][Source.config], `"composite": true,`, `"inc…
164 …modifyFs: fs => replaceText(fs, sources[Project.third][Source.config], `"composite": true,`, `"com…
172 const fs = outFileFs.shadow(); constant
173 const host = fakes.SolutionBuilderHost.create(fs);
[all …]
Dsample.ts18 const fs = projFs.shadow(); constant
19 const host = fakes.SolutionBuilderHost.create(fs);
22 fs.makeReadonly();
23 return fs;
30 fs: () => projFs,
32 modifyFs: fs => fs.writeFileSync("/src/logic/tsconfig.json", JSON.stringify({
41 fs: () => projFs,
43 modifyFs: fs => fs.writeFileSync("/src/logic/tsconfig.json", JSON.stringify({
52 fs: () => projFs,
54 … modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"composite": true,`, ""),
[all …]
/third_party/e2fsprogs/e2fsck/
Dsuper.c82 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()
111 if ((blk < fs->super->s_first_data_block) || in release_inode_block()
112 (blk >= ext2fs_blocks_count(fs->super))) { in release_inode_block()
119 if (!ext2fs_test_block_bitmap2(fs->block_map, blk)) { in release_inode_block()
138 pb->errcode = io_channel_read_blk64(fs->io, blk, 1, in release_inode_block()
143 limit = fs->blocksize >> 2; in release_inode_block()
160 pb->errcode = io_channel_read_blk64(fs->io, blk, 1, in release_inode_block()
165 fs->blocksize - pb->truncate_offset); in release_inode_block()
166 pb->errcode = io_channel_write_blk64(fs->io, blk, 1, in release_inode_block()
[all …]
Dpass5.c42 init_resource_track(&rtrack, ctx->fs->io); in e2fsck_pass5()
49 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2)) in e2fsck_pass5()
79 print_resource_track(ctx, _("Pass 5"), &rtrack, ctx->fs->io); in e2fsck_pass5()
91 if (!ext2fs_has_feature_metadata_csum(ctx->fs->super)) in check_inode_bitmap_checksum()
95 if (ext2fs_test_ib_dirty(ctx->fs)) in check_inode_bitmap_checksum()
98 nbytes = (size_t)(EXT2_INODES_PER_GROUP(ctx->fs->super) / 8); in check_inode_bitmap_checksum()
99 retval = ext2fs_get_mem(ctx->fs->blocksize, &buf); in check_inode_bitmap_checksum()
107 for (i = 0; i < ctx->fs->group_desc_count; i++) { in check_inode_bitmap_checksum()
108 if (ext2fs_bg_flags_test(ctx->fs, i, EXT2_BG_INODE_UNINIT)) in check_inode_bitmap_checksum()
112 retval = ext2fs_get_inode_bitmap_range2(ctx->fs->inode_map, in check_inode_bitmap_checksum()
[all …]
/third_party/e2fsprogs/resize/
Dresize2fs.c44 static void fix_uninit_block_bitmaps(ext2_filsys fs);
51 static errcode_t fix_resize_inode(ext2_filsys fs);
52 static errcode_t resize2fs_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()
71 static inline int is_inode_bm(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_inode_bm() argument
73 return blk == ext2fs_inode_bitmap_loc(fs, grp); in is_inode_bm()
76 static int is_inode_tb(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_inode_tb() argument
[all …]

12345678910>>...108